Cleaning an Agent's History Hurts When the World Still Holds the Error
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.
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.
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.