Teams of language-model agents, where several model instances with different roles pass messages to solve one task, often fail without any single agent visibly breaking. The coder builds against a spec the planner has already revised. Two agents each assume the other will run the tests. A reviewer approves a draft that no longer matches the task. Current tools for finding "who caused the failure and when" read the finished transcript after the run has already failed. That is too late to rescue it.
We propose a monitor that runs alongside the team. After each message it extracts a small structured snapshot of what that agent believes: the goal, the current subtask, who owns what, and what has been promised. It then checks the snapshots against each other, the way a pilot notices that the rest of the formation has turned while they have not. When teammates' beliefs become inconsistent, the monitor names the smallest set of agents whose deviation explains the conflicts. It also names the step where the deviation began, and it can intervene before the task ends.
The idea revives a 25-year-old line of multi-agent research called socially attentive monitoring, in which agents detect their own failures by comparing themselves to peers. It transplants that idea into LLM agent teams, where the thing being compared is extracted belief rather than observed motion. Modular design enters in a narrower but necessary role. It gives us a replay harness with one streaming interface, so that post-hoc attribution methods and our online monitor can be compared fairly on identical transcript prefixes.
Core Claim
Our central claim is that a large share of LLM multi-agent failures are breakdowns between agents, not errors inside one agent. For these failures, an explicit consistency check over teammates' extracted beliefs detects the decisive error earlier and localizes it more accurately than any whole-transcript classifier restricted to the same prefix. The claim is deliberately narrow. We expect no advantage on failures that live inside a single agent's reasoning, such as an arithmetic slip. Showing that the gain is concentrated on inter-agent failure categories is part of the evidence, not a caveat.
What is new relative to existing work is the combination of three properties. The monitor runs online, meaning it sees only the prefix of the conversation so far. It uses formal relational constraints between agents rather than generic message-graph statistics. And it outputs a localized pair of agent and step that can drive a targeted fix.
Where This Sits in Prior Work
The social-monitoring literature supplies the method. Social Comparison for Failure Detection and Recovery in Multi-Agent Settings and Robust Agent Teams via Socially-Attentive Monitoring had agents infer teammates' plans from observed behavior and flag discrepancies with their own plan. This caught failures that self-monitoring missed, a blind spot also described in Execution Monitoring and Diagnosis in Multi-Agent Environments. Towards Model-Based Diagnosis of Coordination Failures made the idea precise. It models required relations between agents' actions as a graph, with two kinds of constraint: actions that must co-occur (concurrence) and actions that must not overlap (mutual exclusion). It shows that finding the minimal set of faulty agents is a minimum vertex cover over violated constraints. That problem is NP-hard in general but trivial for teams of fewer than ten agents.
We reuse this formulation almost directly. The difference is what gets compared. Those systems compared plan operators of hand-built reactive agents. We compare beliefs extracted from free-text messages, in teams whose plans are never written down.
On the Design of Social Diagnosis Algorithms for Multi-Agent Teams constrains our architecture. Across 2,372 simulated battlefield failures, it found that distributed peer-to-peer diagnosis produced message explosions and runtimes near 500 ms at ten agents, while a centralized reporter stayed under 50 ms. We therefore use a single observer that reads the message bus and never ask agents to model each other. This also keeps the team's own prompts untouched.
Recent LLM attribution work motivates the gap and supplies our strongest competitors. Which Agent Causes Task Failures and When? introduced the Who&When benchmark and the target of an (agent, step) pair. Frontier-model judges reach only 14.2% step accuracy, 8.77% on hand-crafted systems, and humans disagree on the decisive step 15–30% of the time. AgenTracer trains an 8B attributor on the counterfactually labeled TracerTraj-2.5K. It uses the attribution as feedback for a retry, gaining 4.8%–14.2% on MetaGPT and MaAS. Beyond LLM-Based Reasoning: Lightweight GNNs for Agent Failure Attribution, called AFANet, uses a 65K-parameter graph neural network over conversation graphs. AgentTrace traces backward through an execution graph with a linear ranker.
All four read the complete trace after failure. None encodes inter-agent constraints; their graphs carry only temporal, communication and data edges.
One AgentTrace result partly cuts against structural cleverness. Position features alone reach 87.3% Hit@1 on its synthetic benchmark. That warns us that synthetic injection benchmarks may reward "guess an early step," so we must report a position-only baseline everywhere.
The closest existing system is AgentMonitor (code). It wraps agents with one line of code, turns intercepted messages into network statistics such as PageRank, and predicts final task score with a gradient-boosted regressor while the run is still going. It reports 0.82 correlation from only 10% of the trace. It is online, but it predicts a scalar outcome and cannot say which agent or step went wrong. Our monitor shares its non-invasive interception but replaces topology statistics with belief-consistency constraints and outputs a localization.
The modular-design literature supplies an evaluation principle rather than a mechanism. DeepDIVA and the Universal Causal Evaluation Engine show that fair comparison requires every method to sit behind the same interface with identical data handling and seeding. We apply that principle to the online-versus-post-hoc question, which is currently impossible to answer fairly because each attribution method ships its own offline pipeline.
Research Program
The system has three parts, kept separate so that each can be swapped and ablated.
The first part is a belief extractor. After each message, a small model fills a fixed schema for the sending agent. The schema has four fields: the task goal as the agent currently states it, the subtask it is working on, ownership claims ("I will write the tests," "you handle deployment"), and commitments with their status. The schema is task-agnostic by design. We fine-tune the extractor on silver labels from a larger model, using a few hundred transcripts, and measure its field-level agreement with human annotation on a held-out set.
The second part is a constraint checker. It holds three generic constraint templates that are instantiated automatically from the schemas.
Agreement is the concurrence analogue. Agents active in the same phase must hold the same goal and the same view of completed subtasks.
Exclusivity is the mutual-exclusion analogue, and it has two failure directions:
- two agents claim the same artifact or role;
- an obligation is claimed by no agent although each believes another holds it.
Commitment consistency requires that an agent's later actions not contradict its earlier stated commitments unless a teammate released it.
At step $t$ the checker produces a set of violated constraints $V_t$. Each constraint involves two or more agents. The diagnosis is then computed as follows:
$$D_t = \arg\min_{S \subseteq A} |S| \ \text{ subject to every } v \in V_t \text{ involving at least one agent in } S,$$
where $A$ is the set of agents. Ties are broken by preferring agents whose belief changed most recently without a triggering message. The step estimate for agent $i \in D_t$ is the earliest step at which $i$'s snapshot first participated in a violation that is still unresolved. With fewer than ten agents, $D_t$ is found by exhaustive search in microseconds.
The third part is a streaming harness. Every detector, including post-hoc ones, implements one interface. It receives message $t$, may emit an alarm, and when it alarms it must commit to an (agent, step) guess using only messages 1 through $t$. Existing benchmark transcripts are replayed through this interface with fixed seeds and logged versions, so all methods see byte-identical prefixes. For live experiments, the same interface drives an intervention hook: on alarm, the flagged agent receives the conflicting beliefs and the owning teammate's message, then regenerates its turn.
Baselines
The naive reference points come first. One never alarms, which yields the unmonitored team's success rate. Another always guesses a fixed early position. This is the position heuristic that AgentTrace found reaches 87.3% Hit@1 on its own synthetic traces. We tune the fixed position per benchmark on the training split, so it serves as an honest floor for step localization.
The strongest existing attribution methods are AgenTracer-8B and AFANet. AgenTracer is the most accurate reported on Who&When and TracerTraj. The file reports only its relative margin: up to 18.18% over Gemini-2.5-Pro and Claude-4-Sonnet. No absolute Who&When step accuracy for it was found on Lacuna, so we will rerun it. AFANet reports 74.16% agent micro-F1 on AEGIS-Bench.
We run both in two modes. In the first, they are applied to each prefix as released. In the second, and more importantly, they are retrained on prefixes: training examples are truncated transcripts labeled with the decisive (agent, step) whenever that step lies within the prefix. This gives them the same online training signal our monitor's tunable parts get. All methods share the same training splits and the same extractor-free inputs. Each receives an equal hyperparameter search budget, which we fix at the same number of search trials per method.
For the online setting we also run AgentMonitor's regressor with a tuned alarm threshold. It is the only existing runtime monitor. Since it cannot localize, we pair its alarm with the position heuristic for the step guess. For AgentTrace-style backward tracing we use the synthetic benchmark, where it reports 94.9% Hit@1 post hoc.
Two ablations isolate our key ingredient. The first gives the extracted belief snapshots to AFANet's graph network as extra node features, with no constraint checking. This tells us whether the value lies in explicit relational constraints or merely in the extracted information. The second keeps the constraint checker but replaces extracted beliefs with raw message embeddings compared by similarity. This tells us whether structured extraction matters.
Beating the field means the following. On inter-agent failure categories, at matched false-alarm rate, the monitor must show higher step accuracy within a tolerance window and earlier detection than the prefix-retrained AgenTracer and AFANet. It must also beat the ablation that feeds beliefs to the graph network.
Why not just…?
Why not just run the post-hoc attributors on prefixes? This is the real threat. A model like AgenTracer, retrained on truncated transcripts, may learn the same divergence signals implicitly. If prefix-retrained AgenTracer matches our monitor on inter-agent categories at equal latency, the constraint mechanism adds nothing beyond interpretability. The contribution would then shrink to the harness and the finding that online attribution is feasible. We will report that outcome as such. The prefix-retrained baseline and the belief-features-into-graph-network ablation exist precisely to settle this.
Why not just ask a frontier model to judge each step as it happens? The step-by-step judge in Which Agent Causes Task Failures and When? is exactly this procedure run offline. It reached 14.2% step accuracy and 8.77% on hand-crafted systems, and AgentTrace reports GPT-4 at 8.3 s per trace versus 0.12 s for graph tracing. Running such a judge every turn multiplies that cost by trace length. We include it as a baseline on a budget-matched subset anyway, since a stronger model could change the picture.
Why not just have each agent check its own work? Self-checking is the "lonely agent" design. The foundational papers show it misses failures where the agent's local state looks fine but diverges from the team's, and that is exactly our target category. We test it directly by adding a self-verification prompt to each agent in live runs and comparing rescue rates.
Why not just threshold AgentMonitor's failure predictor? Its reported 0.58 cross-task correlation and scalar output mean it can say a run is going badly but not whom to correct. AgenTracer's retry gains come specifically from localized feedback. The live experiment compares untargeted restarts triggered by AgentMonitor with our targeted regeneration at equal extra token cost.
Proposed Experiments
We start with an attribution study on replayed transcripts from four sources: Who&When, AEGIS-Bench, TracerTraj-2.5K, and the AgentTrace 550-scenario set. The main metrics are three: agent accuracy; step accuracy within a window of ±k steps, with k chosen to reflect the 15–30% human disagreement and reported for k = 0, 1 and 2; and detection delay, measured as steps between the decisive error and the first correct alarm. We plot these against false-alarm rate on successful runs.
Every result is broken down by AEGIS-Bench's 14 error categories. The decisive check is a category-by-method interaction. We predict large gains for the monitor on categories such as task-specification deviation and role confusion, and parity or losses on single-agent reasoning errors. If gains are uniform across categories, our explanation is wrong. If there are no gains anywhere, the claim fails.
No reported result was found on Lacuna for streaming or prefix-restricted attribution on any of these benchmarks. The online numbers for every baseline will therefore be produced by us, under the shared harness. Post-hoc numbers will be checked against the published figures of 74.16% AEGIS micro-F1 for AFANet and 94.9% Hit@1 for AgentTrace, which validates that our reruns are faithful.
The second study measures rescue in live runs. We run MetaGPT-style teams on the TracerTraj task families: MBPP+ and KodCode for coding, MATH and GSM8K for math, and GAIA and HotpotQA for general agentic tasks. We compare four conditions: no monitoring, AgentMonitor-triggered restart, AgenTracer post-hoc feedback with one retry (the setting where 4.8%–14.2% gains are reported), and our in-run targeted regeneration. All conditions are capped at the same total token budget.
Success rate is the headline measure. We also report the fraction of failures in which the monitor alarmed before the terminal step, the extractor's own cost as a share of team tokens, and extractor field accuracy, so that extraction errors can be separated from checking errors.
We add one cheap sanity check: the fraction of Who&When and AEGIS failures that human annotators classify as inter-agent. If that fraction is small, the method is correct but narrow, and the note's framing should say so.
References
- Social Comparison for Failure Detection and Recovery in Multi-Agent Settings
- Robust Agent Teams via Socially-Attentive Monitoring
- Execution Monitoring and Diagnosis in Multi-Agent Environments
- Towards Model-Based Diagnosis of Coordination Failures
- On the Design of Social Diagnosis Algorithms for Multi-Agent Teams
- Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems
- AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?
- Beyond LLM-Based Reasoning: Lightweight GNNs for Agent Failure Attribution
- AgentTrace: Causal Graph Tracing for Root Cause Analysis in Deployed Multi-Agent Systems
- AgentMonitor: A Plug-and-Play Framework for Predictive and Secure Multi-Agent Systems
- DeepDIVA: A Highly-Functional Python Framework for Reproducible Experiments
- Universal Causal Evaluation Engine: An API for empirically evaluating causal inference models