Consolidation
Memory consolidation is the process of transforming raw experiences into structured knowledge. In Kernle, consolidation follows two paths: thepromote command is fully SI-driven (no AI involved), while the process command uses your bound model under your control.
The Guided Consolidation Model
Kernle uses a reflection scaffold approach to consolidation:| Component | What It Does |
|---|---|
| Kernle | Gathers episodes, structures prompts, stores results |
| SI | Reads the scaffold, reasons about patterns, forms beliefs |
promote command (formerly consolidate) outputs a structured prompt that helps you reflect on your experiences. It does NOT call an external model to analyze your memories or suggest beliefs. The output is designed to guide your reasoning process.
Why SI-Driven?
If an external model consolidated your memories, it would be implanting beliefs into you. This creates:- Feedback loops: External interpretations shape your behavior, which shapes future memories
- Loss of sovereignty: You can’t explain why you believe something because you didn’t form the belief
- Identity drift: Your sense of self becomes dependent on external processing
- Beliefs emerge from your own reasoning
- Patterns are recognized using your own cognitive process
- You can explain why you believe something
- Identity remains coherent and self-determined
Consolidation Paths
Raw → Structured
Process raw captures into proper memory types:Episodes → Beliefs
Analyze episodes for belief updates:Pattern Extraction (Guided)
Thepromote command provides a reflection scaffold:
The Guided Consolidation Workflow
Key insight:
kernle promote outputs a reflection prompt. YOU do the thinking. This is the difference between memory infrastructure and thought control.Promote Meaningful Captures
Turn raw captures into episodes with lessons, decisions with reasoning, or beliefs with confidence.
Run Promote (Get the Scaffold)
- Recent episodes and their lessons
- Your existing beliefs for comparison
- Questions to guide your reflection
Reason About Patterns (YOU do this)
Read the scaffold output. Ask yourself:
- What patterns do I see across these experiences?
- Do any lessons keep appearing?
- Does this confirm or contradict what I already believe?
Form Beliefs (Your Decision)
If you see a pattern worth encoding as a belief:Only you decide what confidence level is appropriate.
Example: Complete Consolidation Session
Here’s a real workflow showing the scaffold approach:Two-Tier Consolidation
KEP v3 introduces a two-tier consolidation model that distinguishes between regular pattern extraction and major life transitions.Regular Consolidation
Daily or weekly pattern extraction from episodes into beliefs:Epoch-Closing Consolidation
When an epoch closes, Kernle triggers a major reflective process — a 6-step scaffold designed for deep self-examination during life transitions:Experience Review
Review all significant episodes from the closing epoch. What happened? What mattered?
Pattern Synthesis
Identify patterns that emerged across the epoch. What lessons recurred? What changed over time?
Belief Audit
Examine existing beliefs against epoch experiences. Which beliefs were reinforced? Which were contradicted? Which need revision?
Value Formation Check
Have any beliefs strengthened enough to become values? Have existing values been challenged?
Identity Narrative Update
Update the self-narrative to reflect who you are now, after this epoch. What themes define this transition?
Cross-Domain Scaffolding
Consolidation can promote memories across type boundaries:| From | To | When |
|---|---|---|
| Episodes | Beliefs | Recurring lessons become held truths |
| Beliefs | Values | Long-held, high-confidence beliefs become core principles |
| Entity Models | Beliefs | Observed behavioral patterns become generalized knowledge |
| Trust Assessments | Beliefs | Trust patterns become beliefs about reliability |
The Anxiety Model
Kernle tracks “memory anxiety” — a measure of memory system health. This helps you know when to save or promote.Dimensions
Kernle tracks anxiety across 7 dimensions:| Dimension | Weight | What It Measures |
|---|---|---|
| Context Pressure | 25% | How full is your context window? |
| Unsaved Work | 20% | Time since last checkpoint |
| Consolidation Debt | 15% | Unprocessed episodes (episodes without lessons) |
| Raw Entry Aging | 10% | Old unprocessed raw captures |
| Identity Coherence | 10% | Self-model consistency |
| Memory Uncertainty | 10% | Count of low-confidence beliefs |
| Epoch Staleness | 10% | How long since last epoch transition |
Weights are approximate. Check
kernle/features/anxiety.py for exact values. Epoch Staleness gracefully degrades to 0 if epochs are not in use.Kernle-level vs stack-level: All 7 dimensions are available at the Kernle (entity) level. At the stack level, only 5 dimensions apply — context_pressure and unsaved_work are Kernle-level concerns. Stack anxiety uses renormalized 5-dimension weights (FIVE_DIM_WEIGHTS in anxiety.py).Anxiety Levels
Checking Anxiety
Example Output
Acting on Anxiety
- Low Anxiety (0-50)
- Elevated (51-70)
- High/Critical (71+)
No immediate action needed. Continue normal work. Consider:
- Reviewing raw captures during lulls
- Recording lessons from recent work
Emergency Save
When context is critically full:- Saves a checkpoint with the summary
- Records any unsaved episodes
- Pushes to cloud if configured
Context Pressure Monitoring
For SIs in context-limited environments:| Context % | Recommended Action |
|---|---|
| < 50% | Normal operation |
| 50-70% | Save checkpoint |
| 70-85% | Save checkpoint + record important episodes |
| 85%+ | Emergency save, warn about context limit |