← Reports

Memory Unification Report

Sessions 1-3 executed 2026-04-21 · Session 4 scheduled mid-May · Atlas-approved

3
Sessions Done
681
Chunks Pending Embed
5,776
GBrain Pages
4 wk
Until vault.db Retire

Session Summary

SessionStatusCommitWhat Shipped
1 — Folder Migration Done fe6e29e Persona-split layout (lucienne/ + luci/), 205 files migrated, extractor + index.py portability
2 — GBrain Expansion Mac+Luci d0e0779 487 memory pages imported into GBrain, invariant flipped, pka-sync.sh updated both machines
3 — Doc Cleanup Done bde72d9 CLAUDE.md unified query order (Rule 14), vault_mcp.py fallback docs, SETUP.md cleanup
4 — vault.db Retire May 2026 Dashboard rewrite, delete index.py/schema.sql/vault.db, monthly stale sweep

Architecture Change

Before (2026-04-20)

Auto-memory: flat Vault/memory/auto/
Retrieval:   vault.db (primary)
             GBrain (content only)
             MC API (ops)
Invariant:   auto-memories NEVER enter GBrain
Query order: 3 contradictory blocks in CLAUDE.md
Extractor:   hardcoded ~/PKA path

After (2026-04-21)

Auto-memory: auto/lucienne/ + auto/luci/
Retrieval:   GBrain (primary — all content + memories)
             vault.db (secondary, retiring)
             MC API (ops)
Invariant:   RETIRED — memories now in GBrain
Query order: Single canonical Rule 14
Extractor:   PKA_ROOT + PKA_MEMORY_PERSONA env vars

Key Decisions

DecisionChoiceRationale
Folder split axisPersona (not device)Multiple Lucienne machines produce identical context; device-split fragments retrieval
Auto-memories in GBrainYes — invariant retiredSemantic search > conceptual purity; 3 weeks of GBrain A/B evidence
vault.db4-week parallel runSafety net; delete mid-May if GBrain proves sufficient
Session summariesDeferredAuto-memory markdown is sufficient; raw JSONL preprocessing not needed yet
XPS / Mac MiniDeferredWill be set up when machines are actively used

Files Changed (across 3 sessions)

Configuration

Code

Documentation

Pending Items

ItemWhenBlocker?
681 stale GBrain chunks need embeddingNext pka-sync after session ends (~15 min)No — auto-resolves
XPS gbrain setup + settings.local.jsonWhen XPS is actively usedNo
Mac Mini gbrain setupWhen Mac Mini comes onlineNo
3 failing files on Luci SB importInvestigate when convenientNo — pre-existing
Session 4: vault.db retirementMid-May 2026 (after 4-week parallel run)Waiting period
settings.local.json reverts on git stash/popOne-time — re-check at session startNo — boot step 5 catches it

Query Order (New Rule 14)

1. Claude's native auto-memory (session context, MEMORY.md)
2. GBrain — mcp__gbrain__query (primary retrieval for ALL content)
3. Flat-file / vault.db — mcp__vault__memory_search (auto-memory recall, structured queries)
4. Luci MC API — tickets, heartbeats, task_runs, scheduler status

Routing exceptions:
  • PKA system questions → dispatch Atlas (Explain mode)
  • Complex multi-type recall → memory-manager skill