This is the boring reference implementation for the ADR-021 memory contract.
It is intentionally small:
retainstores one derived memory record per stable session-historyentry.id- duplicate
retainfor the same agent andentry.idis a no-op forgetwrites a tombstone and suppresses later recall- replaying the same
entry.idafterforgetremains a no-op recallreturns a few recent or query-matching summaries from the retained set
State is file-backed under MEMORY_REF_DIR and defaults to /data/reference-memory.
This adapter is used by the capability-wave spike and the rollcall example so the shipped example path exercises the same contract documented in site/guide/memory.md.