MEMAUDIT: An Exact Package-Oracle Evaluation Protocol for Budgeted Long-Term LLM Memory Writing
Abstract
Long-term LLM agents must decide what to write into persistent memory before future queries are known, yet existing evaluations measure only final QA accuracy, entangling memory writing with retrieval and reasoning. We introduce MEMAUDIT, a package-oracle evaluation protocol that turns memory writing into a finite, auditable optimization problem with an exact optimum for a frozen finite package under a fixed storage budget. Each evaluation package specifies an experience stream, candidate memory representations, costs, evidence units, coverage labels, and future-query requirements; exactness holds with respect to that package, not to an unconstrained memory space. We instantiate MEMAUDIT with a semantic coverage objective under storage and exclusivity constraints and compute package optima exactly, cross-checked by an independent MILP solver. Across controlled and naturalistic settings, MEMAUDIT disentangles representation quality, validity preservation, and budget-aware selection effects that end-to-end QA cannot isolate, giving a reproducible write-time evaluation of memory-writing policies that is separated from downstream retrieval and reasoning.