Root-Cause Attribution Is a Search Problem: Continual Search for Long-Horizon Agent Failures
cs.AI, cs.HC, cs.LG, cs.SE
Submitted: 2026-09-11
Updated: 2026-09-28
Code: https://github.com/anthropics/claude-agent-sdk-python
License: http://creativecommons.org/licenses/by/4.0/
The gist: The increasing deployment of AI agents in long-horizon tasks yields massive execution logs.
Terminology
Abstract
The increasing deployment of AI agents in long-horizon tasks yields massive execution logs. Diagnosing failures within these records is crucial for reliability, as it transforms outcome-level signals into actionable interventions. The sheer scale of the data renders human review impractical, driving the need for automated root-cause attribution (RCA). However, automated RCA methods using LLMs suffer from low diagnostic accuracy, especially as execution traces grow larger. They struggle because relevant information is often sparse, distributed across distant actions, and disconnected from the visible failure, reducing root-cause attribution to a massive search problem. Existing RCA methods typically rely on one-shot LLM judgments to diagnose failures from execution traces. While effective for shorter trajectories, these judges tend to settle on a plausible diagnosis early, leaving critical evidence in longer traces unexamined. We introduce Continual Search, an iterative framework that nudges the judge, over successive turns, to keep searching for unresolved diagnostic evidence. We evaluate Continual Search across four existing RCA benchmarks. Recognizing the lack of massive execution traces in current benchmarks, we introduce MegaRCA-Mix to evaluate RCA at scale. MegaRCA-Mix provides a challenging testbed of 50 human-annotated failure trials spanning long-horizon, execution-heavy tasks. Across multiple benchmark suites and model families, Continual Search consistently improves attribution performance. On MegaRCA-Mix, for example, it improves GPT-5.5's F1 score by more than 40%, from 0.349 to 0.498. More interestingly, within the same model family, lower-tier models can even surpass their higher-tier counterparts, demonstrating that effective search supersedes raw model scale.
Sources
- Constitutional AI: Harmlessness from AI Feedback
- AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
- From Noisy Traces to Root Causes: Structural Trajectory Analysis and Causal Extraction for Agent Optimization
- xbench: Tracking Agents Productivity Scaling with Profession-Aligned Real-World Evaluations
- SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?
- SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work?
- TRAIL: Trace Reasoning and Agentic Issue Localization
- Improving Factuality and Reasoning in Language Models through Multiagent Debate
- Context Length Alone Hurts LLM Performance Despite Perfect Retrieval
- Gaia2: Benchmarking LLM Agents on Dynamic and Asynchronous Environments
- DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Tasks
- Nine Judges, Two Effective Votes: Correlated Errors Undermine LLM Evaluation Panels
- Are You Sure? Challenging LLMs Leads to Performance Drops in The FlipFlop Experiment
- Escaping the Context Bottleneck: Active Context Curation for LLM Agents via Reinforcement Learning
- Who&When Pro: Can LLMs Really Attribute Failures in AI Agents?
- LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Tasks
- When Agents Commit Too Soon: Diagnosing Premature Commitment in LLM Agents
- Humanity's Last Exam
- TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectories
- Qwen2.5 Technical Report
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems