Locus Coeruleus Phase 1: schema + read+CRUD tools (issue #116 follow-up)#121
Closed
TSchonleber wants to merge 2 commits into
Closed
Locus Coeruleus Phase 1: schema + read+CRUD tools (issue #116 follow-up)#121TSchonleber wants to merge 2 commits into
TSchonleber wants to merge 2 commits into
Conversation
This was referenced May 20, 2026
Owner
Author
|
Superseded by #138 ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ships Locus Coeruleus Phase 1 as an additive inspection/CRUD layer: migration 067, LC proposal, five MCP tools, docs, changelog, and tests. LC now has a concrete trigger catalog, activation log, and single-row tonic/phasic state without changing dispatch behavior or writing downstream NE modulators.
Context
LC is the norepinephrine readiness broadcaster that turns surprise, novelty, and explicit alert events into a global gain signal. brainctl already has surprise sources in cerebellum prediction errors and BG TD errors; this PR adds the LC surface those sources will feed in Phase 2.
Parallel to Claude's NB Phase 1 work on branch
brain-regions-nb-phase-1.What's in
db/migrations/067_locus_coeruleus.sql:lc_triggers,lc_firings,lc_state, required indexes, seed triggers, and schema_version 67.agentmemory.mcp_tools_locus_coeruleus:lc_status,lc_fire,lc_register_trigger,lc_signal_history,lc_set_mode.mcp_server.pyregistration and_build_dispatch()introspection helper used by the requested smoke check.docs/proposals/locus_coeruleus.md, MCP docs row, coverage tracker update, and CHANGELOG entry.init_schema.sqlparity for migration 066 plus 067 so fresh installs match migrated installs.What's NOT in
bg_modulators.lc_ne; Phase 1 only reads that dial inlc_status.Test plan checklist
/tmpcopy of livebrain.dband verified tables, seeds,lc_state, and schema_version 67./Users/r4vager/agentmemory/backups/brain.db.pre-lc-20260520T033749Z.db, applied migration 067 live, and verifiedbg_modulators.lc_neremained0.5.python3 -m pytest tests/test_mcp_tools_locus_coeruleus.py -x.python3 -c "from agentmemory.mcp_server import _build_dispatch; d=_build_dispatch(); print([k for k in d if k.startswith('lc_')])"returns all five LC tools.2249 passed, 28 skipped, 2 xfailed.