Skip to content

Habenula Phase 1: lateral habenula / anti-reward channel#124

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

Habenula Phase 1: lateral habenula / anti-reward channel#124
TSchonleber wants to merge 2 commits into
mainfrom
brain-regions-habenula-phase-1

Conversation

@TSchonleber
Copy link
Copy Markdown
Owner

Summary

Records negative-reward-prediction-error events as a first-class channel separate from bg_td_events. Pairs antisymmetrically with LC: LC on +surprise, Hb on −surprise / omission.

What's in

  • Migration 070 — 3 tables, 5 seed triggers, single state row.
  • 5 MCP toolshabenula_status, habenula_fire, habenula_register_trigger, habenula_history, habenula_reset.
  • 10 tests, all green.
  • Design proposal at docs/proposals/habenula.md.

What's NOT in

  • No bg_modulators.tonic_da damping (Phase 3).
  • No auto-fire from outcome_annotate negative outcomes (Phase 2).
  • No BG-disengagement enforcement (Phase 4).

Live

  • Backup taken to ~/agentmemory/backups/brain.db.pre-hb-*.db.
  • Migration 070 applied to live brain.db.
  • 10/10 tests green.

🤖 Generated with Claude Code

TSchonleber and others added 2 commits May 20, 2026 00:52
Negative-RPE source. Pairs antisymmetrically with LC: LC fires on
+surprise / novelty; habenula fires on −surprise / omission /
aversion. Records reward-omission, aversive valences, repeated
failures as a dedicated channel separate from bg_td_events.

Phase 1 is inspection-only. Computes suggested_da_damp for Phase 3
readers but does NOT yet damp bg_modulators.tonic_da.

- Migration 070: 3 tables (triggers, firings, state) + 5 seed
  triggers (reward_omission, retrieval_failure, repeated_low_utility,
  aversive_valence, task_abandoned).
- mcp_tools_habenula: 5 tools (status, fire, register_trigger,
  history, reset).
- 10 tests; all green.
- Design proposal at docs/proposals/habenula.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-habenula-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