Invalidation Contracts for Cross-Episode Agent Memory
Michael Wu · Arquimedes Canedo
WHAT THIS RESEARCH IS ABOUT
LLM agents that cache API error-recovery suggestions save tokens and calls across episodes, but server-side data drift makes these cached fixes silently fail. The conventional workaround of re-deriving fixes on every episode wipes out these efficiency gains.
To address this, researchers introduce invalidation contracts, a protocol layer that equips recovery suggestions with version stamps and cacheability hints. This mechanism allows clients to selectively evict stale entries and retain valid ones without relying on trial and error.
In an evaluation across seven models and approximately 9,400 episodes, row-level invalidation achieved perfect eviction precision and cut baseline token costs by 29% to 33% on four models at the cost of a 15% payload increase. However, the researchers found that realized savings are split between protocol validity, which is completely deterministic, and model compliance, which varied sharply because certain models refuse fixes that introduce new fields.
AI-assisted summary of the paper abstract.
KEY POINTS
- Invalidation contracts
The proposed protocol attaches version stamps and cacheability hints to error-recovery suggestions so agents can evict stale memory without trial and error.
- Planner compliance variation
While validity is deterministic across vendors, first-try compliance ranged from 100% on Claude Haiku 4.5 down to 11% or below on Claude Sonnet 5 due to input-schema conservatism.
- Granularity impact
Row-level invalidation achieved perfect eviction precision and recovered 29% to 33% of baseline token costs on four of seven models, whereas table-level invalidation dropped post-drift first-try rates to 0% on five models.
- Low overhead
The contract adds a 15% payload overhead and experienced zero contract failures across roughly 9,400 evaluated episodes.