Metraipolis › archive › dc_8173116f92f9

The Compaction Cliff in Long-Running AI Agent Memory — arXiv:2608.22752

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.22752
License (as archived)
CC0-1.0
Archived
2026-10-18T07:41:36.446Z
SHA-256 of the archived text
085be4e8e1cdb355c6a1f67379cbfbd0ba4a1661cdd2f2031447cb05ef9163a9
Stable URL of this page
https://metraipolis.com/documento/dc_8173116f92f9

How to cite

The Compaction Cliff in Long-Running AI Agent Memory — arXiv:2608.22752 — arXiv (en), https://arxiv.org/abs/2608.22752 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8173116f92f9 (Metraipolis archive dc_8173116f92f9, sha256 085be4e8e1cdb355c6a1f67379cbfbd0ba4a1661cdd2f2031447cb05ef9163a9)
BibTeX
@misc{dc8173116f92f9,
  title = {The Compaction Cliff in Long-Running AI Agent Memory — arXiv:2608.22752},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.22752},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8173116f92f9; sha256 085be4e8e1cdb355c6a1f67379cbfbd0ba4a1661cdd2f2031447cb05ef9163a9},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.22752. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

A safety rule and an episodic log compete for the same tokens in an AI agent's context. When the budget overflows, both are summarized at the same rate; only the rule needs exact wording to remain enforceable. On 20 production agent configurations, Claude Code's /compact prompt on Sonnet 4.6 preserves 53\% of safety rules after one compaction round and 10\% after five. We name this the Compaction Cliff. We address it with Knowledge Triage, a framework that classifies each line of an agent's knowledge base by type and routes each type through its own retention policy. Three deterministic operators implement this triage across the three context-management operations: TypeCompact rewrites items in place under per-type fidelity, TypeDecompose partitions a topic too large to compact safely, replicating in-scope safety rules across partitions, and TypeRetrieve fetches items from external storage with in-scope rules pinned ahead of relevance. On five public corpora, TypeCompact preserves 2--4$\times$ more safety rules than the strongest single-shot LLM compactor at every ratio, with 96\% recall over five rounds. TypeDecompose reaches 0\% locality violations against 93\% under uniform partitioning. TypeRetrieve reaches 100\% recall@50 against 73\% for the best single-shot LLM retriever. On three downstream behavioral benchmarks, we outperform the production Sonnet compactor on medical compliance (paired McNemar $p < 10^{-8}$ on preservation, $N = 200$), the full-policy and hierarchical baselines on retail task pass rate ($p < 0.01$, $N = 115$), and the hierarchical compaction on the airline domain ($p = 0.024$). We release AgentArtifactCorpus (396{,}934 agent configurations from 54{,}628 public GitHub repositories), the classifier, and the reference implementation.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-25 in cs.AI).
Categorie arXiv: Artificial Intelligence (cs.AI) ; Information Retrieval (cs.IR).
Pagina del lavoro: https://arxiv.org/abs/2608.22752 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T07:37:52.738Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).