v0.22.0
Cognitive Modes + Sleep Consolidation
Phase 5: the cognitive architecture layer.
CognitiveMode
OBSERVATIONAL(System A) /ACTION_ORIENTED(System B) enum onSkillStageresolve_cognitive_mode()infers frommodewhen not explicitly set- Watcher detects mode mismatches,
mode_balance()reports A/B distribution
SleepConsolidation
- 5-step post-batch cycle: prune → replay → compress → counterfactual → promote
- Replays successful
PatternRunRecords intoEpisodicMemorywith tier promotion - Compresses recurring high-success patterns into consolidated
PatternTemplates counterfactual_replay()diffs bi-temporal corrections to detect outcome-changing facts- Promotes frequently-accessed ACETYLATION histone marks to permanent METHYLATION
Also included
- 18 new tests (1071 total)
- Examples 76 (cognitive modes) and 77 (sleep consolidation)
- Consolidation Space
- Article: cognitive modes (§6), consolidation implementation (§8)