Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 15 · November 14, 2026 · Sat
Today's stories
22 stories · 9 companies
Home / November 14, 2026 / Cleaning an Agent's History Hurts When the World Still Holds the Error
← Back
Paper Agents Score68

Cleaning an Agent's History Hurts When the World Still Holds the Error

In brief
How an agent's history is edited depends for its effect on whether the error still exists in the real world. People working on context compression and task handoff need to re-examine their cleaning strategies.
arXiv cs.AI Egor Pakhomov, Anurag Koul, Hongjun Liu, Bo Pang, Shafiq Joty, Erik Nijkamp · RSS · arxiv.org
Nov 13 · 13:00 Read the original ↗
01Summary

When an agent compresses, repairs or hands its history to the next model, does how the history describes its own errors affect later performance? The paper freezes an agent mid-task, keeps its real-world state, then separately edits the history or the world state and lets a receiving model continue. The conclusion: the same correct content helps or hurts depending on whether the world still holds the error. On AgentCE-Bench, after an agent writes a wrong value, keeping the error while adding a truthful note raised the recovery rate on remaining goals from 51% to 66%; writing that step as a completed action instead lowered it from 50% to 44%. On AppWorld, a success receipt after a database write lowered whole-task success from 45% to 28% when the write had not actually taken effect, and raised it from 38% to 49% when it had. Combining both directions across two receiving models gives 27 percentage points, and six of eight receiving models were positive at the 97.5% level. The paper tested only two environments and a few receiving models; longer histories and more complex toolchains in real products are not yet covered.

02Background

Context compression and task handoff are already routine for long-horizon agents, but past evaluations were done under a fixed world state, treating "written correctly in the history" and "done correctly in the world" as the same thing. In real systems the two often come apart: the history is cleaned up, but the side effects remain in the database or files.

03Impact

When doing context compression or agent handoff, it is not enough to check whether the history is self-consistent; you also need to check whether the world state still holds unrepaired side effects. Rewriting a failed step as "completed" may be worse than not cleaning it up at all.