Skip to content

fix(storage): neuron_state record-id mismatch broke activation persistence#29

Merged
acidkill merged 1 commit into
mainfrom
fix/neuron-state-id-prefix
Jun 22, 2026
Merged

fix(storage): neuron_state record-id mismatch broke activation persistence#29
acidkill merged 1 commit into
mainfrom
fix/neuron-state-id-prefix

Conversation

@acidkill

Copy link
Copy Markdown
Owner

Summary

Re-scope of #16 down to just the neuron_state record-id fix. The rest of #16 was an integration branch carrying deployment-specific code; the other atomic PRs (#17#27) are already merged.

add_neuron writes the activation-state record as neuron_state:state_<sid>, but get_neuron_state, update_neuron_state and the delete path addressed neuron_state:<sid> without the state_ prefix. So every get_neuron_state missed and returned None, every update/merge was a silent no-op, and the batch helpers (which delegate to these) cascaded empty. recall → reinforce read empty states and wrote nothing back, so access_frequency / last_activated / activation_level stayed at 0 and the whole activation → decay → tiering → consolidation loop was dormant.

Fix

Three reader call sites now address neuron_state:state_<sid>, matching the writer in add_neuron.

Credit

Originally reported and fixed by @RobertSigmundsson in #16; re-scoped here to the neuron_state change only (co-authored).

Type of Change

  • Bug fix (non-breaking)

…tence

add_neuron writes the activation-state record as neuron_state:state_<sid>, but
get_neuron_state, update_neuron_state and the delete path addressed
neuron_state:<sid> without the state_ prefix. So every get_neuron_state missed
and returned None, every update/merge was a silent no-op, and the batch helpers
(which delegate to these) cascaded empty. recall -> reinforce read empty states
and wrote nothing back, so access_frequency / last_activated / activation_level
stayed at 0 and the whole activation -> decay -> tiering -> consolidation loop
was dormant.

Three reader call sites now address neuron_state:state_<sid>, matching the writer.

Re-scoped from #16 to the neuron_state fix only, dropping the unrelated
deployment-specific changes that PR also carried.

Co-authored-by: Robert Sigmundsson <230784065+RobertSigmundsson@users.noreply.github.com>
@acidkill acidkill merged commit 1a425bd into main Jun 22, 2026
7 checks passed
@acidkill acidkill deleted the fix/neuron-state-id-prefix branch June 22, 2026 12:27
acidkill pushed a commit that referenced this pull request Jun 22, 2026
New MCP tool that finds and explains the shortest path between two
entities in the neural graph. Returns step-by-step explanation with
synapse types, weights, and supporting fiber evidence.

- Bidirectional BFS in get_path() (traverses both edge directions)
- ConnectionExplainer engine with candidate matching + evidence hydration
- ConnectionHandler MCP mixin (tool #29)
- 11 new tests covering path found/not found/evidence/dispatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant