Cleaning an Agent's History Hurts When the World Still Holds the Error
Egor Pakhomov, Anurag Koul, Hongjun Liu, Bo Pang, Shafiq Joty, Erik Nijkamp
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.
Create a lesson
Related papers
γ-Scape: An Agent-Centric World for Mobile Embodied Intelligence
Shared title terminology · Xiaotao Zhang, Lin Qian, Hao Zhang et al.
LiveGeo: Benchmarking Geographic Agents in Continuously Evolving Worlds
Shared title terminology · Pengcheng Zhou, Xuanyu Liu, Yanchen Yin et al.
AFTER: A World Model with Adaptive Fast--Slow Timescales for Error-Driven Retention
Shared title terminology · Haoyi Zhang, Qi Zhang, Yunfan Ren et al.
Dependable Long-Horizon LLM Agents: A Trajectory-Centered Empirical Study of Where Errors Enter and Which Controls Reach Them
Shared title terminology · Shaohuang Wang, Jinghao Wen, Xulei Zhang et al.
MetaRigor: From Agentic Automation to Verifiable End-to-End Meta-Analysis Through Scientific Decision Boundaries
Shared title terminology · Yifeng Xie, Chenke Li, Yangshuo Miao et al.
Learning Inside Types: Epistemic Typestates for Safe Multi-Agent Reinforcement Learning
Shared title terminology · Lorenzo Bacchiani, Mario Bravetti, Giovanni Pau et al.