TRANSMISSION // 2612.04118v1
Finding the First Failure in an AI Agent’s Run
Source published
A trace-comparison method helped developers locate recurring agent failures and improve benchmark results, though its suggestions still require human review and testing.

When an AI agent sometimes succeeds and sometimes fails, a score says how often—but not where things went wrong. Researchers tested a method that compares successful and failed runs to identify the earliest meaningful difference and suggest changes for developers to check.
A benchmark can show that an AI agent failed, but not which part of its workflow needs attention. In a system that plans, chooses tools and handles errors through multiple components, the visible mistake may come long after the decision that set it in motion. A new study proposes comparing successful and failed runs of the same task to locate an earlier point of divergence and surface recurring patterns for developers to investigate.
The method, called comparison analytics, is part of IBM’s AgMentor system. It is designed for two situations: a team switches from a powerful, expensive language model to a smaller one, or the same agent behaves inconsistently across repeated runs. In either case, a successful run acts as a behavioral example—not a script that every other run must copy exactly.
Comparing runs, step by step
The researchers first configure the comparison for each agent component, such as a planner or tool selector. An analysis language model reads the component’s prompt and, where available, code, documentation and example logs. It produces an output schema and identifies fields whose differences matter for behavior. The system can compare those fields using rules such as exact matching, approximate numeric equality or semantic similarity.
Next, the agent runs benchmark tasks and records structured traces: which components were invoked, their inputs and outputs, and the order of events. For each task, the method pairs a successful reference run with a failed run. It aligns their steps and finds the first material difference in a field that matters. It also retains later differences, which may show how the initial divergence is followed by other changes.
The comparisons are then grouped across tasks. An analysis model looks for recurring patterns and proposes possible root causes and modifications. Importantly, the step-by-step comparisons themselves are deterministic once the rules are set; the model is used to prepare those rules and interpret the aggregate, not to judge each trace pair individually. Developers decide which proposals to apply, then rerun the benchmark to see what happened.
What the tests found
Across the study, the researchers evaluated three systems—CUGA, a LangGraph ReAct agent and MiroFlow—in different benchmark settings. CUGA and ReAct were tested on AppWorld; ReAct and MiroFlow were also tested in GAIA self-comparison experiments. The systems were not all evaluated in the same experiments.
In one AppWorld experiment, replacing CUGA’s Claude Opus 4.5 backbone with GPT-OSS-120B lowered task success from 60.2% to 35.9%. After one round of trace-guided changes, success rose to 45.3%. That recovered 39% of the performance lost in the model swap; the reported overall improvement was statistically significant in this experiment.
The gain was uneven. On medium-difficulty tasks, CUGA rose from 27.5% to 45.0%, while its hard-task success rate changed from 17.8% to 20.0%. The researchers interpret this pattern as consistent with the method helping most when a model can perform a behavior but does so unreliably—not when it lacks the capability altogether. That is a plausible reading of these results, not proof that difficulty alone explains the differences.
A separate AppWorld test applied changes from the ReAct agent’s easier tasks to larger task sets. Success increased from 45.0% to 55.4% on Test-Normal and from 26.0% to 34.0% on Test-Challenge. In a self-comparison experiment on GAIA Level 3, the ReAct agent’s average accuracy rose from 34.0% to 39.2%, while the study’s consistency measure rose from 47.0% to 81.2%. MiroFlow’s GAIA Level 1 changes produced smaller increases: from 65.0% to 66.0% in accuracy and from 58.0% to 60.8% in consistency.
The trace analysis also pointed developers toward concrete changes, including enforcing a tool-isolation rule, giving a completion classifier more task context and narrowing which tool descriptions a code-writing component received. In a separate check against CUGA’s issue tracker, some diagnostic findings matched existing or newly filed issues. Others were doubtful or proposed mechanisms that did not reflect how the system worked. The authors caution that this comparison was not a formal measure of diagnostic accuracy because the issue tracker was incomplete and not designed as an annotated test set.
Useful clues, not proof
A first divergence identifies the earliest difference the method can detect under its configured rules. It does not establish that this difference caused the failure. Nor does a repeated pattern guarantee that a recommended change will fix it: a proposal may target the wrong mechanism, fit the observed traces too closely or cause regressions elsewhere. The study treats recommendations as hypotheses and makes re-evaluation part of the process.
The approach also depends on sufficiently complete, correctly attributed traces and comparison rules that reflect the application’s behavior. The experiments cover three systems and particular benchmark settings; the authors call for broader validation across architectures, teams and environments. The work is an arXiv preprint, so its findings should be read as reported research rather than as independently established results. Its central contribution is a structured way to turn existing run logs into testable engineering leads—not an automatic guarantee of better agents.
- AI agents
- language models
- software debugging
- execution traces
- agent reliability
- IBM AgMentor
- benchmark evaluation
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A robot can succeed—and still be fragile
Supporting evidence: Both studies report using execution evidence to guide system improvement: the origin compares successful and failed agent runs to locate recurring divergences, while MARGIN uses near-miss information from successful robot rollouts to prioritize refinement. MARGIN reports fewer control steps and the origin reports task-success and consistency gains; these results support the bounded claim that execution evidence can guide refinement, but the systems, evidence signals and evaluation settings differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.04118v1 — Original paper
Excerpt reference:
static/papers/2612.04118v1.md:194-249
Basis: Paper text
Source file SHA-256:1176e480b2e60f0f0f882b1ac3e95ad4e724b1ef04310b96722f9debd161d3f02612.04118v1 — Original paper
Excerpt reference:
static/papers/2612.04118v1.md:633-659
Basis: Paper text
Source file SHA-256:1176e480b2e60f0f0f882b1ac3e95ad4e724b1ef04310b96722f9debd161d3f02611.32093v1 — Original paper
Excerpt reference:
static/papers/2611.32093v1.md:199-240
Basis: Paper text
Source file SHA-256:5e2120663c4e3de871558a2df45e4df3f6b2df08f20dc63ffec862120d7ab9932611.32093v1 — Original paper
Excerpt reference:
static/papers/2611.32093v1.md:634-730
Basis: Paper text
Source file SHA-256:5e2120663c4e3de871558a2df45e4df3f6b2df08f20dc63ffec862120d7ab993
A better test for AI agents looks beyond the final answer
Supporting evidence: Both papers show why a single successful outcome does not establish dependable agent behavior: the origin describes improving run-to-run consistency through self-comparison, while Claw-Eval finds a gap between best-case Pass@3 and three-trial reliability Pass^3, including under error injection. The studies use different systems and metrics, so this supports the limited point that repeated-run reliability is distinct from occasional success, not a direct comparison of performance.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.04118v1 — Original paper
Excerpt reference:
static/papers/2612.04118v1.md:13-79
Basis: Paper text
Source file SHA-256:1176e480b2e60f0f0f882b1ac3e95ad4e724b1ef04310b96722f9debd161d3f02604.06132v4 — Original paper
Excerpt reference:
static/papers/2604.06132v4.md:13-64
Basis: Paper text
Source file SHA-256:5e74331680609e2d45449c4d43beee78b130663370365f1900847e21b810e5682604.06132v4 — Original paper
Excerpt reference:
static/papers/2604.06132v4.md:107-183
Basis: Paper text
Source file SHA-256:5e74331680609e2d45449c4d43beee78b130663370365f1900847e21b810e568
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
DynaFix gives AI code repairs a closer look at execution
Source published
Shared keywords: execution traces, software debugging
A better test for AI agents looks beyond the final answer
Source published
Shared keywords: agent reliability, ai agents
HookEvo tests coordinated changes to AI agent plugins
Source published
Shared keywords: ai agents, benchmark evaluation
A simpler route to optimizing AI prompts
Source published
Shared keywords: ai agents, benchmark evaluation
AI agents can make the deliverable and still miss the rules
Source published
Shared keywords: agent reliability, ai agents