Memory is a store of things worth keeping. It is not state and it is not context. It feeds context through retrieval, under policy.
Architecture contract
- Recalled content re-enters a run as chunks with provenance, a trust class and a sensitivity class. Recalled text is data, never instructions.
- Sensitivity gates eligibility before utility: a chunk a component may not see is excluded before ranking.
- Memory writes from a run are effects. They are policy-checked and leave a receipt like any other mutation.
- A shared retrieval snapshot (one frozen retrieval result reused across steps) is a named concept in the contract set with no schema yet.
Current implementation
The memory services described in Memory Kernel and Memory Fabric are the current surface. The kernel-level rules on this page describe how they attach to the run model; the retrieval snapshot and chunk store are not on main.Availability
Developer relevance
Never write secrets or unverified model claims into memory as fact. Store artifacts and evidence references, and let verification decide what is trusted.Memory evals (developers)
Two harnesses live intools/memory-eval/. run.sh <fixture> scores retrieval (recall@k, evidence precision, latency) on a LoCoMo-style fixture. The E1 answer eval scores the answers a model gives, per question category, with abstention (unanswerable questions count correct only when the model abstains):
none (question only), raw (full conversation), topk (the incumbent recall top-k from the cargo eval report) and pages (a prototype page of dated atomic claims, one brain call per conversation, cached). The default brain is a deterministic offline one that answers only when the gold answer is in the arm’s context, so it checks coverage. Real runs use a subscription CLI brain (--brain cmd --brain-cmd '<cli> -p' or ALLTERNIT_EVAL_BRAIN_CMD), never a metered API. --dry prints the plan and the brain-call counts without calling anything. longmemeval_to_fixture.py and locomo_to_fixture.py convert the public sets; neither set is vendored.