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

DevFeed: [Cleaning an Agent's History Hurts When the World Still Holds the Error](<https://devfeed.tech/articles/cleaning-an-agent-s-history-hurts-when-the-world-still-holds-the-error-132031.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14654>)

Author: Egor Pakhomov, Anurag Koul, Hongjun Liu, Bo Pang, Shafiq Joty, Erik Nijkamp

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Multi-step AI processes](<https://devfeed.tech/topics/multi-step-ai-processes.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [database](<https://devfeed.tech/tags/database.md>), [error](<https://devfeed.tech/tags/error.md>), [history](<https://devfeed.tech/tags/history.md>), [language](<https://devfeed.tech/tags/language.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [tool](<https://devfeed.tech/tags/tool.md>), [world](<https://devfeed.tech/tags/world.md>)

## AI overview

History edits can help or harm an agent depending on whether they accurately reflect the state of the world. In AgentCE-Bench, adding the correct value as a truthful note while preserving the error raised receiver recovery from 51% to 66%; presenting it as the agent's completed action reduced recovery from 50% to 44%. In AppWorld, a database-write receipt reporting success lowered whole-task success from 45% to 28% when the effect was absent, but raised it from 38% to 49% when the effect was present. The authors report that this contrast was positive in most tested receivers. These results suggest that cleaning a history without correcting the underlying world state can impair continuation. The evidence here is an abstract and excerpt.

## Source excerpt

arXiv:2611.14654v1 Announce Type: new Abstract: Tool-using language-model agents accumulate histories of their own mistakes, and a system that compacts, repairs or hands off such a history decides what it says about those mistakes while their effects stay in the world. Prior work cleans the history at a fixed world, where showing a corrected step and saying it is done move together. We ask whether the same correct content helps or hurts depending on how the history states it and what the world holds. We freeze an agent mid-task with its exact world state, edit the history or the world, and let a receiver model continue. On AgentCE-Bench, after the agent commits a wrong value, we hold the world fixed and add the correct value by two natural edits: a truthful note beside the preserved error or the agent's own completed action. The note raises recovery, the share of remaining targets the receiver gets right, from 51% under a matched neutral note to 66%. The completed action lowers it below the unedited history, from 50% to 44%, so the value's presence alone does not predict the effect. On AppWorld, after a database write, we vary whether its receipt reports success or failure and whether its effect is present. A success receipt lowers whole-task success from 45% to 28% while the effect is absent and raises it from 38% to 49% once present. The two effects differ by 27 points pooled over two receivers, a difference positive in six of eight receivers at 97.5% and seven at 95%. A history edit's effect thus depends on the world it describes, and a history made to look clean while the world still holds the error can leave an agent worse off than no edit at all.