From Trace to Fix: Residual Task State in Long-Horizon Agents
Zile Huang, Ser-nam Lim
Key points
From the paper's conclusion- We introduce TRACE-FIX, a unified recovery framework centered on versioned residual task state.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DeFA: Dependency-Guided Failure Attribution for LLM AgentsarXiv · 2026
- Lost in Recovery: Demystifying Recovery Behavior of Computer-Use Agents via Goal-Oriented Action ReplayarXiv · 2026
- ReflectPO: Reflection-Guided Policy Optimization for Long-Horizon LLM AgentsarXiv · 2026
- Travel Back To Move Forward: Retrospective Exploration and Evolving for Long Horizon AgentsarXiv · 2026
- My FAULT: Self-Diagnosis as Credit Assignment in Self-Evolving Agentic Reinforcement LearningarXiv · 2026
- From Faulty Memories to Corrected Actions: Dependency-Guided Rollback Repair for Memory-Augmented AgentsarXiv · 2026