Est.

Which Agent Failure Modes Synthetic Evals Cannot Reproduce and Production Replay Attributes to a Single Edit

Frozen test suites miss real failures that replaying production traces can pin to one change.

· 9 min read
Cover illustration for “Which Agent Failure Modes Synthetic Evals Cannot Reproduce and Production Replay Attributes to a Single Edit”
Root-Cause Attribution · November 30, 2026 · 9 min read · 1,976 words

To test agent changes against real production traffic, teams must replay historical traces against the baseline and candidate harness, then compare the results before release. Synthetic benchmark eval suites cannot reproduce conditions absent from their frozen inputs and mocked tools. Layer-specific attribution identifies where a repair belongs, while replay tests whether one targeted edit fixes the recorded failure without degrading adjacent behavior.

Why synthetic evals and production reality diverge structurally, not just in coverage

A CI suite shows green even as production agents are already failing. The tests have not necessarily been written poorly. They describe inputs, tool behavior, prompt versions, and retrieval state that no longer match the running system. A tool schema update, a re-indexed corpus, or a shifted user population can invalidate those assumptions without changing any test result. The suite still answers its original question, but production now poses a different one.

Morph LLM distinguishes offline evidence that an agent did not regress on yesterday’s tasks from evidence about unseen inputs, conversational drift, and live tool failures. Those gaps develop at different speeds. Dataset drift and user-distribution drift build up over weeks, but tool-API drift and prompt drift can happen overnight. Retrieval-corpus drift remains silent until a re-index, and agent-step compounding was never observable through single-turn rubrics.

Adding cases can cover new conditions once they are known. It cannot make a frozen test set anticipate conditions that did not exist when its authors assembled it. This is the limit of its evidence. A passing result applies to the tested environment.

Step-compounding degradation: how per-step error rates multiply into end-to-end failure

An agent can pass every per-turn rubric and still fail the task. Small deviations compound as later steps depend on earlier choices. When successful completion requires a sequence of correct actions, per-step reliability does not translate directly into end-to-end reliability. The relevant unit is the whole trajectory. A test that checks responses one at a time leaves out the links between steps that allow the failure to grow.

Final-answer evaluation leaves a different gap. An agent may call the wrong tool and recover, repeat unnecessary actions, or reach the right answer through an unsafe path. Its final response alone cannot show which of those trajectories it took. Morph’s framework therefore separates final-answer evaluation, trajectory evaluation, and per-turn evaluation. The middle layer exposes degradation that neither a locally acceptable step nor an apparently correct answer establishes.

Step count and loop count make that distinction observable. Taking more steps than the minimum needed shows extra work, and taking the same action over and over shows loops. These measurements describe execution rather than answer quality. They also link within-run compounding to a problem across conversational turns, where the agent must keep earlier constraints and decisions at hand throughout the exchange.

Multi-turn context drift and the shared-prior trap in synthetic conversation eval

Conversational drift appears when an agent forgets an early constraint by turn 20, repeats a clarifying question, or abandons the user’s goal by turn three. Each response can still read smoothly and make sense on its own. A single-turn benchmark cannot expose that loss because it never requires the agent to preserve intent across the exchange.

When the user simulator and agent share training-data priors, the simulator can ask questions the agent finds convenient and accept wandering responses as polite. Their agreement becomes a misleading signal of coherence. A real user need not share either assumption, so the simulated exchange can reward behavior that would make the actual interaction unusable. More simulated turns do not necessarily correct this bias.

Lost in Simulation, a 2026 study, found that agent success rates change when a different LLM plays the user. The study also found that simulators underestimate performance on hard tasks while overestimating it on medium-hard tasks. The bias therefore has no single direction. Production trajectory checks instead look at whether the end state meets the goal, whether turns contradict one another, and whether questions are repeated. Where these failures arise from lost history, ambiguous instructions, or faulty sequencing, their repair belongs in memory, prompt, or workflow.

Live tool silent failures and schema drift that production replay catches and mocked evals hide

Mocked tools keep the very assumptions that live systems can break. A version upgrade may change how a tool schema is generated, making it incompatible with LLM API providers. The CI mock still returns the old payload. Production fails at the live endpoint while the test continues to certify a contract that no longer holds. Expanding the questions asked of that unchanged mock does not test the changed interface.

Silent failures are harder to recognize from outcomes. A live tool can return HTTP 200 with an empty body, after which the agent continues with a plausible response. Synthetic questions generated from the same data the tool is expected to return do not reproduce that missing observation. Wrong-tool selection can look similarly clean, but has a different cause. Prompt ambiguity may send the agent to a valid tool that executes successfully, whereas schema drift corrupts the interface or its interpretation.

The surrounding workflow can amplify either problem. Unpredictable tool failures can trigger retries until rate limits or timeouts end the run. Tool schema tax adds another trajectory-level burden because every registered tool’s schema enters context on every turn, degrading selection even for previously reliable tools. Rising latency, retries, and cost-per-success can therefore coexist with passing response rubrics. These failures originate in changing execution conditions, while the next category originates in changing inputs.

Adversarial input patterns that only emerge from real traffic distributions

Real users do not stay within an evaluation author’s scenario boundaries. New intents, unconstrained conversational prompts, and adversarially placed retrieved content create combinations absent from a curated dataset. The input distribution itself becomes the moving dependency. A frozen suite can represent known examples, but it cannot contain the particular future document or interaction that later disrupts production.

Prompt injection through retrieved content illustrates this distinction. A document in the live retrieval corpus can redirect the agent’s handling of instructions even though the original evaluation corpus contained no such document. Synthetic Web Benchmark uses a controlled, procedurally generated environment to isolate adversarial ranking vulnerability that functional-navigation and static-factuality benchmarks do not separate from memorized knowledge. Controlled tests can expose a mechanism without reproducing the distribution of attacks and unexpected inputs in actual traffic.

The operational signal is a widening mismatch between scores and complaints. Offline scores remain flat while reported failures diversify and resist reproduction on the existing test set. The suite’s assumptions have been invalidated by traffic. Together with compounding, conversational drift, and live tool failures, this establishes why production evidence is necessary, but not yet how that evidence identifies the right repair.

Why knowing a run failed is not enough — the case for layer-specific root cause attribution

A failed run identifies an outcome. The same visible error can originate in the prompt, a tool, workflow, memory, or model reasoning. Editing the wrong layer can leave the fault intact or introduce another one. Detection must therefore lead to attribution before it leads to a change.

Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures, a 2026 paper by Raj et al., assigns failures to the interactions where they originate. The taxonomy separates model-side targets for post-training from harness-side integration fixes and problems in the environment or grader. Across four frontier models, its best judge reaches Cohen’s κ = 0.76 when its category labels are compared with those from humans. That agreement supports using the categories to decide where to look for a fault, rather than treating every poor result as a weakness in the model.

Trace structure makes the distinction concrete. A failing faithfulness score on a root response can point through parent-child links to a retrieval span, placing the repair there. Causal Agent Replay extends attribution in multi-agent systems through executed counterfactual interventions and shared-failure credit assignment. Its mocked, reproducible-tool scope limits what those results establish about live systems. Even reliable localization still leaves a separate question of whether the proposed intervention works under the conditions that exposed the fault.

How do you test agent changes against production traces before deploying?

Diagram: Baseline vs. Candidate: The Production Replay Validation Loop. Visualizes: Show the end-to-end production replay workflow as a stepped flow.

Production replay tests a candidate harness using the inputs and tool observations from the failed run. The comparison is between the baseline and the targeted change. Specificity is the essential criterion for validation. A prompt edit should face traces with established prompt-layer faults, while a memory or interface change should face cases implicating that component. Before the edit becomes a release candidate, teams also need to compare how it handles nearby historical cases.

Replay is not a deterministic recording by default. Parallel tool calls can complete in different orders, timestamps and UUIDs introduce entropy, and the model can generate different requests from identical tasks. Exact trajectory matching is therefore insufficient evidence. Replay Fidelity in LLM Agent Evaluation, a November 2026 preprint, addresses replay eligibility, hidden state, and test-oracle integration rather than treating reconstructed context as automatically valid. A credible comparison must account for these sources of divergence before attributing an outcome change to the edit.

Golden-set replay and continuous production scoring each cover what the other misses. A fixed reference set tests regressions against known behavior, while sampled live-trace scoring detects distribution shifts that the reference set cannot anticipate. The replay-fidelity benchmark’s 10,056 replayable sessions show how large a reference-set evaluation can be. Production-side scoring instead groups observations by time window and alerts on score movement at p50/p95. One protects established behavior before release, while the other supplies new evidence as production changes.

Harness iteration vs. retraining: why the harness is the right first target for most production failures

For the failure categories described here, harness iteration is the appropriate first investigation. Memory handling, tool schemas, prompt ambiguity, and retry logic are components that can change without updating model weights. A schema mismatch calls for repair at the interface unless attribution establishes a different origin.

Harness Continual Learning, a 2026 paper, formalizes a slowly updated policy model paired with rapidly evolving harness state. Independently versioned prompts, tools, skills, and workflow modules permit shorter evaluation and release cycles than a base-model revision. A reviewed change to the instructions or tools behind an agent can improve every instance using that harness.

The boundary remains genuine model-side reasoning failure. When the model reasons incorrectly independently of its scaffolding, post-training can be the right investment. Harness changes do not erase that distinction. The taxonomy supplies the routing decision, while replay tests the proposed repair on the relevant cases.

What a trace-driven improvement workflow looks like end to end

A team making this transition should capture production traces, sanitize them, freeze the relevant replay conditions, and sandbox execution before comparing baseline and candidate behavior. Attribution then determines the scope of one reviewable edit. The comparison should score both the failed trajectory and adjacent historical cases, with release gated on the resulting evidence. Synthetic benchmark eval suites are still useful for established checks, but hard production failures recorded in separate support reports must go into the regression set.

For teams assembling the workflow from components, the instrumentation floor is OpenTelemetry span-level traces for every run, separate tool-call success scoring on live spans, and continuous LLM-as-judge scoring on sampled production traffic. A promotion pipeline puts traces of hard failures into offline regression tests. Reviewability is part of the engineering requirement. The proposed change must be inspectable against the failure it is intended to correct, rather than accepted solely because an aggregate score improved.

Moda is one option for operating this loop, analyzing real multi-step runs, attributing failures to the responsible layer, and generating concrete, reviewable improvements. It replays proposed edits against historical traces before recommending what to ship.

Production traces supply the signal for improvement. Treating harness changes with the rigor of code review and regression testing turns that signal into evidence for the next release.

Sources

  1. Synthetic Web: Benchmarking Language Agents under Adversarial Search Ranking
  2. Holistic Evaluation and Failure Diagnosis of AI Agents
  3. Model or Harness? An Interaction-Centric Taxonomy for Localizing Agent Failures
  4. Repairs for Whom? Evaluator-Executor Mismatch in Selecting Repairs for Failed LLM Agents

More in Root-Cause Attribution