From Trace to Fix: Residual Task State in Long-Horizon Agents
Abstract
Recovering from failures in long-horizon, stateful language agents is challenging because the action introducing a defect, the symptom exposing it, and the persistent state requiring repair frequently diverge. Existing methods largely focus on retrospective failure attribution, leaving sequential diagnosis and state repair poorly integrated under constrained budgets. We introduce TRACE-FIX, a unified recovery framework centered on versioned residual task state. Trace transforms execution logs into a structured dependency-linked ledger, prioritizing unresolved task requirements rather than salient surface errors. Fix formulates recovery as budgeted planning over admissible actions, incorporating outcome forecasting and explicit repair-reserve constraints to prevent premature budget exhaustion. To rigorously decouple localization accuracy from downstream repair capability, we present LongH-Debug, evaluating root-cause attribution, verified-fault recovery, and end-to-end closed-loop execution independently. Our empirical analysis demonstrates that structured residual tracking substantially improves causal localization over raw-trace baselines, while budget-aware sequential planning converts verified fault signals into more reliable task recovery without destructive trial-and-error. Code is available at https://github.com/toffeecat/tracedp.
Create a lesson
Related papers
FALCA: Falsification-Aware Reinforcement Learning with Hierarchical Credit Assignment for Long-Horizon Deep Search Agents
Shared title terminologycs.AIZijun Dou, Kun Luo, Chaofan Li et al.
CUA-Recovery: Benchmarking Error Recovery in Long-Horizon Computer-Use Agents
Shared title terminologycs.AIXu Hu, Haoming Li, Yuxiang Wang et al.
Harness Self-Evolution for Long-Horizon Terminal Agents
Shared title terminologycs.AIRuhan Wang, Yucheng Shi, Zongxia Li et al.
From Code to Playable Systems: CEGame-Bench for Long-Horizon Game Creation Agents
Shared title terminologycs.AIZixuan Dong, Yanghai Wang, Hanyan Bian et al.
ClueFlow: Learning Long-Horizon Search through Attributed Research-State Transitions
Shared title terminologycs.AIYicheng Wang, Wentao Tan, Yidan Huang et al.
MatHarness: Towards Long-Horizon Open-ended AutoResearch for Computational Materials Science
Shared title terminologycs.AIYanlin Fei, Lei Li, Shaolong Chen et al.