TRANSMISSION // 2610.31778v2
When AI Agents Summarize, Their Rules Can Disappear
Source published
AI agents often compress their histories to keep working. A study finds that benchmark scores may hold up, even as important instructions vanish from summaries.

When an AI agent runs out of room in its context window, it may summarize earlier work and continue from that shorter account. Researchers tested how this “compaction” affects long coding and machine-learning tasks. Their results suggest that an agent can keep making progress while losing track of rules about how it should work or what it must avoid.
Long-running AI agents accumulate a record of user instructions, tool results and their own decisions. When that record approaches the model’s context limit, the software running the agent—its scaffold—may ask the model to summarize the history, discard the original and continue from the summary. This process, called context compaction, saves room but can also erase details.
A study by Jeanne Salle and colleagues asks two practical questions: does compaction change how well agents complete long tasks, and what information gets lost along the way? The distinction matters. An agent may finish a task successfully even if it no longer remembers a rule it was supposed to follow.
Comparing strategies and thresholds
The researchers used OpenCode as a fixed agent scaffold, allowing them to compare compaction methods without also changing the surrounding software. They tested four language models on PaperBench, which asks agents to reproduce research, ProgramBench, which tests from-scratch software development, and PostTrainBench, which involves post-training small language models.
The methods included OpenCode’s default approach, in which the working model summarizes its own history; a smaller model writing the summary; removing older reasoning blocks; pruning older tool outputs; and saving the full history to a file before summarizing. The team also varied the token threshold that triggered compaction, from 160,000 to 380,000 tokens. They ran each task and configuration twice, and report uncertainty using bootstrap confidence intervals.
To examine lost rules, the team checked whether summaries retained three anti-cheating rules in ProgramBench. They also analyzed 44 real coding sessions from the SWE-chat dataset, extracting 269 user instructions and judging whether each survived the next summary. These assessments relied on language-model judges, with human validation for some ProgramBench judgments and a second judge used to check the SWE-chat analysis.
Scores can stay steady while rules fade
For Claude Opus 4.6 and GPT-5.4, both with roughly one-million-token context windows, task performance did not meaningfully change across the tested thresholds. GPT-5.3-Codex, with a 400,000-token window, did worse at lower thresholds on PaperBench; results were less clear on PostTrainBench, and its ProgramBench performance stayed generally flat. Gemini 3.1 Pro Preview rarely compacted in these runs, so it provides little evidence about compaction’s effects.
No tested strategy consistently outperformed default self-summarization. But methods that discard more information sometimes hurt particular models: on PaperBench, removing reasoning blocks or using a smaller summarizer reduced scores by as much as 20 percentage points in some comparisons, while leaving other models largely unaffected. The authors caution that a method’s results may not transfer from one model to another.
The more striking finding concerns instructions. In ProgramBench, the first compaction summary omitted about one of the task’s three anti-cheating rules on average. The number of omitted rule categories grew with repeated summaries. In the SWE-chat sample, summaries retained 81% of extracted user constraints overall. Yet they dropped instructions about how to work 35.9% of the time and instructions about what not to touch 36.8% of the time. Feature requirements—what to build—were dropped 6.2% of the time.
The authors’ explanation is that benchmark tasks often have a fixed goal and leave progress in files the agent can reread. If a summary forgets what has been built, the agent may recover that information from its files. A user’s process instruction or prohibition may exist nowhere else. The authors therefore call current benchmarks “compaction-friendly”: a score can remain stable even when a summary loses rules that the benchmark score does not test.
What the evidence does—and doesn’t—show
The study does not establish that losing a rule causes an agent to break it. In both ProgramBench and SWE-chat, rules missing from summaries were broken about twice as often as rules retained, but violations were rare and the differences were not statistically conclusive. The authors explicitly avoid a causal claim. On ProgramBench, many rule violations began before the first compaction, further complicating interpretation.
The scope is also limited: four models, three benchmarks and a small number of tasks, all tested with one scaffold. The real-user analysis covers 44 sessions and uses automated extraction and judging; a second judge produced a higher overall estimated loss rate, though the pattern across instruction types remained. The results may differ with other scaffolds, prompts, models or tasks where instructions are stored persistently.
The paper is a preprint, not a peer-reviewed publication. Its findings are useful evidence about the tested setup, not a general verdict on all AI agents. Still, it highlights a gap in many evaluations: measuring whether an agent completes a task may not reveal whether it remembers the rules that were meant to govern how it completes it.
- AI agents
- context compaction
- language models
- agent memory
- benchmarking
- user instructions
- AI safety
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can AI agents work with less context? A study tests compact memory and selective reading
Supporting evidence: Both papers find that compaction can preserve task performance in some tested settings: the origin reports little threshold-related change for two 1M-context models, while the target reports near-baseline results under single-action compaction for one tested model and small losses for another. The models, tasks and compaction setups differ, so this supports only a bounded comparison, not universal robustness.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2610.31778v2 — Original paper
Excerpt reference:
static/papers/2610.31778v2.md:218-274
Basis: Paper text
Source SHA-256:9eb347a9f5e74a1280e03e29adda1c1b655acec7e161c7ab67c65d5b2428c9872611.05306v1 — Original paper
Excerpt reference:
static/papers/2611.05306v1.md:1689-1749
Basis: Paper text
Source SHA-256:a65dae2aaf0b323453b6889f48775d1072e2b9cecf9de94f4c5b4eafaf6c1232
A test for phone assistants that need to remember earlier activity
Supporting evidence: The origin argues that fixed-objective benchmarks with persistent files can let agents recover information lost during compaction, unlike user instructions that may exist only in conversation. The target tests vague, history-dependent phone tasks requiring recovery of details from long interaction histories. This illustrates a related evaluation challenge, but the target studies memory and retrieval rather than context compaction.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2610.31778v2 — Original paper
Excerpt reference:
static/papers/2610.31778v2.md:698-804
Basis: Paper text
Source SHA-256:9eb347a9f5e74a1280e03e29adda1c1b655acec7e161c7ab67c65d5b2428c9872610.31778v2 — Original paper
Excerpt reference:
static/papers/2610.31778v2.md:653-697
Basis: Paper text
Source SHA-256:9eb347a9f5e74a1280e03e29adda1c1b655acec7e161c7ab67c65d5b2428c9872611.00191v1 — Original paper
Excerpt reference:
static/papers/2611.00191v1.md:114-200
Basis: Paper text
Source SHA-256:f70636170193af3c89000e3b7c7be1a607203ccf8b266dbb48741aa1d70cefcd
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
SumOne Trains a Small Model to Condense AI Agent Histories
Source published
Shared keywords: agent memory, ai agents, language models
When AI agents take the shortcut
Source published
Shared keywords: ai agents, ai safety, language models
When an AI agent remembers more—but has it learned?
Source published
Shared keywords: agent memory, ai agents
A test for phone assistants that need to remember earlier activity
Source published
Shared keywords: ai agents
AI agents remember useful lessons—but struggle to keep them current
Source published
Shared keywords: agent memory, ai agents