Agent memory systems that store everything in one bucket fail to model different lifecycles. Episodic events (high write, time-decay), semantic facts (low write…
Agent memory systems that store everything in one bucket fail to model different lifecycles. Episodic events (high write, time-decay), semantic facts (low write, supersede on contradiction), and procedural playbooks (low write, outcome feedback) have incompatible update and aging rules.
Cognitive science (Tulving 1972) identifies three memory types with distinct properties. Engineering implementations that use one storage for all three force awkward compromises on write rate, aging, and update semantics.
| Type | Write Rate | Aging | Update Rule |
|---|---|---|---|
| Episodic | High (every user message) | Time decay | Append only, never update |
| Semantic | Low (after extraction) | No decay | Supersede on contradiction (keep audit trail) |
| Procedural | Low | No decay | success_count / failure_count increment |
Query → BM25 + Vector search → RRF fusion → cross-encoder reranker → Top-KWhen a user contradicts a recalled fact, mark the old version as superseded by the new one. Never delete — preserve the audit trail.
Use Document Level Security (DLS) to ensure each user's memory is invisible to every other user.
grep -i 'bm25\|chunk\|embed' lessons/contrib/rag-*.md 2>/dev/null | head -3
echo Search verifiedExpected Output:
# (refs)
Search verified