Memory an agent can explain
Store what an agent saw, thought and decided as graph records, each with two times. Ask what it knew at 9:00 yesterday, why it believed something, and what it believed before it changed its mind.
Procedures an agent calls itself
Each record carries a valid time and a recorded time, so the whole memory is replayable and explainable — not just its latest state.
01Episodes
Record what happened in a session; replay it in order.
Stored as (:Session)-[:HAD_EVENT]->(:Event). The payload is a string. With an embedding model the text is embedded in the same commit; otherwise keyword search still finds it.
02Beliefs, with evidence and revision
Record a belief with the evidence behind it, revise it when the facts change, and walk the revision chain.
A revision is a new belief linked to the old one by REVISES; the old one is marked superseded. Evidence can be records or quoted passages, checked before writing, with supports / contradicts counts per version. An evidence id that names no node is refused (EVIDENCE_NOT_FOUND).
03Session summaries
Consolidate a session into a summary you can retrieve later.
04Salience
Reinforce what matters; decay the rest on your own schedule.
The engine does not decay on its own — call applySalienceDecay on a schedule.
05Retrieval: match, then expand
Find the closest records by meaning, then expand across the relationships you choose — in one call.
Over MCP, higher-level recall is available too: recall, fused_recall (keyword, meaning and graph-neighbourhood ranks blended by one documented rule, each source's contribution shown), reflect and entity_page.
06Embedding-model drift
Every vector index records the model it was built with; see which need re-embedding when the default changes.
db.memory.reembed(model) rebuilds the affected indexes in the background.
What did the agent know at a given time?
Add atRecorded (or atValid) to a read and every top-level MATCH rewinds to that moment. A query that already carries a time clause is refused.
Recall over HTTP uses {"v": 2, "query": "...", "k": 5}, and searches what was saved with remember and save_document.
forget takes a memory out of recall and records who and why; restore puts it back. Neither is erasure — to make a person's sealed values unreadable, destroy their subject key (see provenance and cryptographic erasure).