Sleep Architecture Phase 1 (Avenue 1 from research memo)#129
Closed
TSchonleber wants to merge 2 commits into
Closed
Sleep Architecture Phase 1 (Avenue 1 from research memo)#129TSchonleber wants to merge 2 commits into
TSchonleber wants to merge 2 commits into
Conversation
5-stage sleep state machine: awake / NREM1 / NREM2 / NREM3-SWS / REM. Each stage has permitted_operations encoding what canonical memory operations are appropriate (SWS = SWR replay; REM = bisociation + DMN simulate; NREM2 = spindle consolidation). Phase 1 = manual transitions + permission queries. Phase 2 auto- progresses through ultradian cycles from ARAS signal. Phase 3 stage- gates consolidation_run / dream_cycle / replay calls. - Migration 074: 3 tables (catalog with 5 seeded stages + state + transitions) - mcp_tools_sleep_architecture: 5 tools (status, transition, advance, operation_permitted, history) - 10 tests; all green - Operationalizes Avenue 1 from PR #125 research-avenues memo Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Operationalizes Avenue 1 from PR #125. 5-stage sleep state machine with per-stage permitted_operations encoding what canonical memory operations are appropriate.
What's in
sleep_status,sleep_transition,sleep_advance(canonical),sleep_operation_permitted(stage-gating query),sleep_history.What's NOT in
sleep_operation_permitted) — Phase 3.Live
~/agentmemory/backups/brain.db.pre-sleep-*.db🤖 Generated with Claude Code