arXiv(opens in a new tab)cs.AIAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.29228

Localizing Emergent Failures in Agentic AI: Recovering Minimal Repair Families via Counterfactual Replay

Bingjie Li, Yumeng Song, Zhongming Yao, Tianyi Li

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

Bingjie Li*, Yumeng Song†, Zhongming Yao‡, and Tianyi Li†

  • School of Computer Science and Engineering, Northeastern University, Shenyang, China

libingjie@mails.neu.edu.cn

† Department of Computer Science, Aalborg University, Aalborg, Denmark

{yumengs,tianyi}@cs.aau.dk

‡ College of Computer Science and Technology, Zhejiang University, Hangzhou, China

yaozzzm@gmail.com

Abstract—Failures in large language model (LLM) multi-agent systems are difficult to diagnose because an incorrect outcome may depend on several interacting messages. Pointwise localization or ranking cannot distinguish a jointly necessary repair, where multiple events must change together, from alternative repairs, where any one of several events is sufficient. We formulate failure localization as recovery of the complete family of inclusion-minimal successful interventions within a declared size bound. We propose Graph-Constrained Joint Replay (GCJR), which constructs an event dependency graph, tests graph-feasible singleton and pair interventions through paired-clean counterfactual replay, and filters non-minimal successes. For fixed replay outcomes, GCJR is exact within its declared graph domain while avoiding graph-blind pair enumeration. On 90 in-scope cases from a 120-DAG controlled benchmark, GCJR achieves 1.000 Family Exact Match and reduces mean replay calls from 56.3 to 25.3 (55.1%). In a 24-case, four-agent LLM pilot, it again achieves 1.000 Family Exact Match and reduces mean model calls from 21 to 10 (52.4%), whereas single-event replay misses jointly necessary repairs. Edge masking substantially degrades recovery, showing that graph completeness is a substantive assumption. These results provide a controlled, oracle-assisted proof of concept for set-valued multi-agent failure localization rather than open-world automatic repair.

Index Terms—LLM multi-agent systems, failure localization, counterfactual replay, minimal repair family, event dependency graph

I. INTRODUCTION

Agentic AI systems composed of multiple large language model (LLM) agents solve complex tasks by assigning specialized roles and exchanging intermediate results. Frameworks such as AutoGen, MetaGPT, and ChatDev illustrate the benefits of role-based collaboration [1]–[3], while MultiAgent-Bench shows that communication protocols and interaction topologies materially affect task outcomes [4]. This distributed interaction structure also complicates debugging: an incorrect final answer does not reveal which earlier interaction must change, because an error may originate in a single message, propagate through downstream agents, or arise only through the joint effect of multiple messages.

Existing diagnostic work has catalogued multi-agent failure modes [5] and localized failures to responsible agents or decisive steps [6], [7]. Graph-based methods use information dependencies, hierarchical causal structure, or paired successful traces to narrow root-step search [8]–[10]. Intervention-based methods validate edited trajectories [11], construct step-level counterfactual repairs [12], or distribute responsibility across interacting steps [13]. These advances make localization increasingly actionable, but leave a set-level question underspecified: which smallest combinations of interactions can restore success? A pointwise label or ranking cannot distinguish a jointly necessary failure, where two messages must both be repaired, from an alternative-repair failure, where either message is sufficient.

We study this question with Graph-Constrained Joint Replay (GCJR). GCJR represents an execution trace as a directed interaction graph, replaces selected candidate messages with matched clean counterparts, and validates each intervention by replaying the workflow from an available checkpoint. It tests graph-feasible message sets in increasing cardinality and retains every inclusion-minimal successful intervention within a declared search bound. For convenience, we call this collection the minimal repair family. Unlike a scalar responsibility score, the returned family can express singleton faults, jointly necessary repairs, and multiple alternative repairs. The method is deliberately oracle-assisted: it localizes failures under controlled replay but does not generate repair messages automatically.

Our contributions are threefold:

• We expose a blind spot of pointwise failure attribution by separating joint necessity from alternative sufficiency, and define a replay-verifiable, set-level target over all inclusion-minimal successful interventions within an explicit search bound.

• We develop GCJR, a dependency-aware procedure that searches singleton and pair interventions, uses replay as a success certificate, and returns the complete family within its declared graph-feasible domain without collapsing it into per-event scores.

  • We provide controlled evidence on both symbolic workflows and a real LLM multi-agent system. GCJR matches exhaustive search in repair-family recovery while reducing replay calls by 52–55%, and identifies jointly necessary repairs missed by pointwise baselines.

References (23)