MemContract: Contract-Sensitive Evaluation for Mutable Agent Memory
Abstract
A memory system can retrieve a fact accurately and still apply it after correction, deletion, or deprecation. MemContract makes these state-management failures observable through six executable contracts and 1,080 multi-session tasks with distractor sessions, alias rotation, and controlled memory interventions. Across twelve systems, the ten structured memory systems span only 3.7 and 3.9 percentage points on store and retrieve, but 33.2 points on complete provenance; Zep/Graphiti achieves 69.4% balanced contract satisfaction, exceeding our controlled Graph Memory's 67.6%. Complementary interventions identify auditable mutation state as a practical design lever: withholding Graph's audit affordances lowers its score to 61.9%, while an append-only audit log and exposed status raise Hybrid RAG+KV from 62.4% to 66.3%, recovering most of its deficit. A symmetric backend-by-interface comparison measures the additional benefit of prompt and schema tuning under equal effort. Across ten structured systems evaluated on 240 downstream episodes, mutation scores retain a partial correlation of 0.83 with task completion after controlling for store/retrieve. On the correction-bearing episodes, superseded-policy use is 41.3% for RAG, 8.7% for Graph, and 8.0% for Zep/Graphiti. MemContract connects a failure to its prerequisite, state obligation, and tested interface repair, making mutable-memory evaluation actionable for agent design.