Manuscript Offprint

arXiv:2610.41025

ReplayRCA: Measuring Post-hoc Diagnosis and Live Oversight of Agent Failures by Counterfactual Replay

Jeremy Canale, Fabien Soulis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

When a language-model agent fails a multi-step task, can another model find the decisive mistake and fix it with a single action? We introduce ReplayRCA, a benchmark that scores such diagnoses by intervention rather than by agreement with annotations. The environment is restored to the exact state preceding the chosen step, the proposed action replaces the agent's own, and the same agent continues on its own. The score, which we call causal repair, is the continuation success rate minus that of a paired placebo that replays the agent's original action through the same mechanism, so that success the agent would have had anyway is removed. Two tracks share this protocol: a post-hoc autopsy, where the diagnoser sees the whole failed run and is told that it failed, and live oversight, where a supervisor watches the run unfold and may intervene once, before an irreversible action, without knowing whether the run will fail. Tasks come from OpsWorld, a deterministic, procedurally generated back-office environment with six difficulty levels, the last of which is multimodal (QR codes, photographed forms, handwriting), so that fresh instances can be generated at will, which limits the memorisation of released items, and every restoration is verified. On 62 calibrated systematic failures, the highest-scoring of 13 frontier models (Grok 4.7) reaches a causal repair of +51.3 points; none of the 78 pairwise differences survives multiple-comparison correction, so the observed order is not a reliable hierarchy; in the configurations we could run, the flagship models of the two largest vendors, GPT-6 Astra and Claude Fable 5.1, come 8th and 12th (the Claude models ran below their top reasoning effort, which an ablation shows costs Claude Haiku 5.5 15.2 points), and 5 items are repaired by no model. Forcing a strong model to intervene at the last step costs it 17.1 points, so the structural shortcut that dominates annotation-based attribution benchmarks does not transfer. On 87 runs, the two best live supervisors are not separable, and one of them is a small open-weight model (DeepSeek V4.1 Flash); the supervisor that is among the best post-hoc diagnosers (GPT-6.1 Sol) is the weakest live one, with the largest gap between explaining and preventing (-14.5 points on the same runs, p = 0.002), so post-hoc diagnostic performance can be a poor proxy for live oversight performance. The benchmark is offered as a reusable protocol rather than as a leaderboard: the environment and the evaluation code are released at https://github.com/jeremy1392/RCAreplay.

1 Introduction

Language-model agents now execute long sequences of consequential actions: they refund customers, cancel orders, edit inventories, modify code. When such a run fails, someone has to understand why, and the natural candidate is another model. A growing line of work therefore evaluates failure attribution: given a failed trajectory, name the responsible agent and the decisive step [Zhang et al., 2025, Liu et al., 2026, Zhang et al., 2026b, Chen et al., 2026]. These benchmarks score a diagnosis by comparing it with a human or model label. Two problems follow. First, labels are themselves contestable: an annotator's "decisive step" is a judgement, and a different but equally valid repair point is scored as wrong. Second, label-based scores are vulnerable to structural shortcuts: Naagarajan and Streif [2026] show that always naming the last step is correct 67–96% of the time on existing suites, and falls to near chance only on the subset of failures whose decisive step can be confirmed by replay.

Replay offers a different standard of truth. If the world can be restored to the state it was in before step t and the agent can be made to continue from a corrected action, then a diagnosis is right exactly when the correction makes the agent succeed. Several recent methods use such counterfactual re-execution to produce attributions or repairs [Zhang et al., 2026a, Shah, 2026, Bonagiri et al., 2026, Lin et al., 2026, Luan et al., 2026]. We turn it into the scoring rule of a benchmark for the models that do the diagnosing, and we add the control that Luan et al. [2026] identify as missing from rerun-based evaluation: a paired placebo, so that the agent's own propensity to recover on a second try is not credited to the diagnoser.

The same mechanism lets us ask a second question that attribution benchmarks cannot: does the ability to explain a failure after the fact imply the ability to prevent it? In the oversight track, a supervisor model watches the run as it happens, is shown each irreversible action before it executes, and may replace one of them. It is never told whether the run is going to fail, and runs that were going to succeed are mixed in so that false alarms are measured. This is the setting of scalable oversight and AI control [Bowman et al., 2022, Kenton et al., 2024, Greenblatt et al., 2023, Kale et al., 2025], applied to honest mistakes rather than to adversarial agents, and scored by consequences.

References (49)