TL;DR
Root-cause attribution (RCA) for long-horizon AI agent failures is fundamentally a search problem, heavily bottlenecked by an LLM's tendency to commit prematurely to plausible-looking diagnoses. To solve this, the authors introduce Continual Search, an iterative framework that systematically nudges LLM judges to challenge their own conclusions and uncover hidden evidence. This approach significantly boosts diagnostic accuracy on massive execution logs, even allowing lower-tier models to outperform their larger counterparts.
What Problem Does This Paper Address?
As AI agents are deployed on increasingly complex, long-horizon tasks, they generate massive execution logs containing hundreds of thousands of tokens. When an agent fails, developers need to find the root cause—the exact first point where the execution diverged from the correct path—to apply the right intervention (e.g., fixing the model, the environment, or the evaluation harness).
However, automated root-cause attribution (RCA) using LLMs struggles at scale. Standard approaches rely on one-shot judgments where an LLM inspects a log once and delivers a verdict. Because relevant evidence in long trajectories is often sparse and buried deep within thousands of lines of tool interactions, LLMs suffer from "premature commitment." They latch onto an early, plausible-looking failure and ignore critical, contradictory evidence located further down the trace.
Methods
The authors propose Continual Search, an iterative multi-turn framework for tool-enabled agentic LLM judges. Instead of relying on a single pass or a simple passive re-prompting ("Are you sure?"), Continual Search actively forces the judge to expand its search space over successive turns.
- Turn 1: The judge executes the benchmark's native single-turn RCA prompt to generate an initial diagnosis.
- Turns 2–4: The framework branches into a multi-turn conversation. While a standard control setup (Passive Continuation) merely asks the model to reconfirm its answer, Continual Search explicitly instructs the model to treat its previous answer as a potentially flawed draft. It forces the judge to systematically inspect unread tool outputs, explore unexamined execution branches, or evaluate alternative candidate failure steps.
The differences between these strategies are illustrated below:
Datasets
The framework was evaluated across five distinct benchmarks spanning various execution lengths:
- TRAIL: Error location and category in GAIA and SWE-Bench trajectories (median: 100K tokens).
- TELBench: Earliest harmful error spans in deep-research trajectories (median: 39K tokens).
- AgentRx: Critical failure steps in retail environments (median: 7.2K tokens).
- Who&When: Responsible agents and decisive error steps in multi-agent setups (median: 2.4K tokens).
- MegaRCA-Mix (New): Introduced by the authors to evaluate RCA at production scale. It contains 50 human-annotated failure trials drawn from the Harbor Index, covering software engineering, science, and security. It features a massive median size of 286K tokens per trial and includes full sandbox artifacts, trial configurations, and system logs.
Key Insights and Ideas
- RCA is Search-Limited, Not Reasoning-Bound: Scaling up per-turn reasoning effort (giving models more "thinking tokens" within a single turn) yields diminishing returns. Compute is far more effectively spent on expanding the evidence search across multiple turns.
- Search Supersedes Scale: Continual Search allows lower-tier models to compensate for baseline capacity. For instance, when equipped with Continual Search, lower-tier models matched or even surpassed frontier models operating under much larger compute budgets without search.
- The Short-Trajectory Caveat: Continual Search only works when there is actually unread evidence left to find. On short trajectories (like AgentRx or Who&When), the initial pass already covers the whole log. Forcing additional turns introduces conversational pressure, causing the LLM to destabilize and flip correct answers to incorrect ones.
Key Results
- MegaRCA-Mix Performance: Continual Search improved GPT-5.5’s F1 score by more than 40% (from 0.349 to 0.498) and Claude Opus-4.8's score from 0.478 to 0.620 compared to the single-turn baseline.
- Outperforming Ensembles: On the TRAIL benchmark, Continual Search achieved a Weighted F1 of 0.500 (GPT-5.5), significantly outperforming standard ensembling methods like Self-consistency (0.386) and a Heterogeneous Judge Panel (0.435), while consuming a lower inference budget than self-consistency.
- Evidence Acquisition: Tracking deduplicated tokens confirmed that the performance gains directly correlate with the judge discovering and reading previously unexamined parts of the execution log rather than simply repeating old data.
Limitations and Future Work
- Partial Visibility: The framework is bounded by the observable record. If proprietary models generate trajectories without exposing their internal thinking tokens, the true causal failure might remain hidden from the judge.
- Taxonomy Overlap: The authors note that current failure taxonomies might contain overlapping categories, which can artificially lower classification scores during evaluation.
- Ground Truth Noise: Establishing reliable human ground truth over multi-megabyte execution logs is incredibly difficult, meaning the benchmarks themselves may contain minor label noise.
Summary updated