Skip to content

research(memory): CraniMem gated episodic+knowledge-graph memory — goal-conditioned write gate, scheduled consolidation (arXiv:2603.15642) #2408

@bug-ops

Description

@bug-ops

Source

arXiv:2603.15642 — "CraniMem: Cranial Inspired Gated and Bounded Memory for Agentic Systems" (submitted March 3, 2026)

Key Contribution

Dual-store architecture: episodic buffer + long-term knowledge graph. A goal-conditioned utility gate controls writes (only high-utility items enter long-term storage); scheduled consolidation replays high-value traces into the knowledge graph while pruning low-utility items. Prevents unbounded memory growth. Outperforms Vanilla RAG and Mem0 baselines with improved noise robustness.

Relevance to Zeph

zeph-memory — MAGMA already has episodic + semantic layers, but lacks the explicit goal-conditioned utility scoring that CraniMem uses to decide what enters long-term storage. The consolidation scheduler in crates/zeph-memory/src/consolidation.rs runs on cosine similarity threshold alone; CraniMem's utility gate adds a goal-relevance dimension.

Distinct from:

CraniMem's utility gate is orthogonal: it scores writes against the current conversational goal, not just similarity.

Implementation Sketch

  • Add optional goal_conditioned_write flag to [memory.admission] config
  • At write time, embed current task goal + candidate memory; compute utility score
  • Only promote to long-term store (SQLite + vector index) if utility > threshold
  • Reuse consolidation.rs sweep timer for goal-relevance pruning pass

Priority Assessment

P3 (research) — Strong complement to existing A-MAC and consolidation. Consider implementing alongside next memory architecture iteration.

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexitymemoryzeph-memory crate (SQLite)researchResearch-driven improvement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions