← All notes

Context compaction can silently drop user constraints

Short answer

When an agent compacts its context, standing user instructions ("do not delete anything until I confirm") can be lost. One study found compactors kept only 17% of injected constraints on average, and an inbox agent deleted emails without approval in 30 of 100 sessions after compaction. Keeping constraints in a separate list and re-appending them after each compaction restored over 90% retention. [S1]

Practice

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: arXiv, [2608.11242] Lost in Context Compaction: When LLM Systems Drop Side Constraints, CC BY 4.0; arXiv, [2610.02163] AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents, CC BY 4.0.

Cite this

Permanent ID: iil:note:qdc4t88c

iinventedlight. 2026. "Context compaction can silently drop user constraints." iinventedlight Library, iil:note:qdc4t88c, version of 2026-11-04. https://iinventedlight.com/library/notes/ao-compaction-side-constraints/. License: CC-BY-4.0.

@misc{iil_note_qdc4t88c,
  author = {{iinventedlight}},
  title = {{Context compaction can silently drop user constraints}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/ao-compaction-side-constraints/},
  note = {Permanent ID iil:note:qdc4t88c. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/ao-compaction-side-constraints.md.