Skip to content

Hippocampus CA1 + Subiculum Phase 1 (trisynaptic loop completion)#126

Closed
TSchonleber wants to merge 2 commits into
mainfrom
brain-regions-ca1-phase-1
Closed

Hippocampus CA1 + Subiculum Phase 1 (trisynaptic loop completion)#126
TSchonleber wants to merge 2 commits into
mainfrom
brain-regions-ca1-phase-1

Conversation

@TSchonleber
Copy link
Copy Markdown
Owner

Summary

Completes the hippocampal trisynaptic loop. Migration 059 shipped DG (pattern separation) + CA3 (pattern completion); this PR adds CA1 (match/mismatch detector between entorhinal input and CA3 output) + Subiculum (hippocampal output bridge to cortex).

EC L2 -> DG -> CA3 -> CA1 -> Subiculum -> EC L5/L6 -> cortex
                       ^         ^
                    added now

What's in

  • Migration 071 — 3 tables; hippocampus_ca1_state seeded.
  • 4 MCP toolsca1_compare, ca1_status, subiculum_output, ca1_subiculum_history.
  • 9 tests, all green.
  • Design proposal at docs/proposals/hippocampus_ca1_subiculum.md.

What's NOT in

  • No auto-wiring into hippocampus_dg/ca3 pipeline (Phase 2).
  • No subiculum-to-workspace_broadcasts (Phase 3).
  • ca1_compare uses naive Hamming-distance hash similarity (Phase 2 swaps to embedding cosine).

Live

  • Backup at ~/agentmemory/backups/brain.db.pre-ca1-*.db
  • Migration 071 applied.
  • 9/9 tests green.

🤖 Generated with Claude Code

TSchonleber and others added 2 commits May 20, 2026 00:59
Migration 059 shipped DG (pattern separation) + CA3 (pattern
completion); this migration adds CA1 (match/mismatch detector
between entorhinal input and CA3 output) + Subiculum (hippocampal
output bridge to cortex).

Completes the canonical hippocampal trisynaptic circuit:
  EC L2 -> DG -> CA3 -> CA1 -> Subiculum -> EC L5/L6 -> cortex
                          ^         ^
                       added now

Phase 1 is inspection + manual writes; Phase 2 auto-wires.

- Migration 071: 3 tables (CA1 comparisons + state + Subiculum
  outputs). State seeded with id=1, EWMA rates at 0.5.
- mcp_tools_hippocampus_ca1: 4 tools (ca1_compare, ca1_status,
  subiculum_output, ca1_subiculum_history).
- ca1_compare auto-derives classification from hash-similarity
  match_score (>=0.85=match, <=0.15=mismatch, [0.4,0.6]=ambiguous,
  else partial). Phase 2 swaps hash similarity for embedding cosine.
- 9 tests; all green.
- Design proposal at docs/proposals/hippocampus_ca1_subiculum.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@TSchonleber
Copy link
Copy Markdown
Owner Author

Superseded by #138 (brainctl-consolidation-v2), which already merged this work into main as part of the v2 tool surface consolidation. Closing as redundant.

@TSchonleber TSchonleber deleted the brain-regions-ca1-phase-1 branch May 21, 2026 08:15
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