What benchmarks don't tell you about your agents
Your agent scores 94% on your evaluation suite. It still fails four out of ten real workflows. That gap is not a measurement anomaly, it is a structural problem with how most teams evaluate agents, and it gets more expensive as workflows grow longer.
The core issue: final-output benchmarks treat a ten-step workflow as a single pass/fail decision. They record whether the last output was correct, not whether each step along the way stayed on track. A single wrong tool call in step three can corrupt the context that every subsequent step depends on, and the final output can look plausible while being wrong in ways that matter.
The 37% gap between lab benchmarks and production outcomes is not random noise. It is the accumulated cost of step-level errors that end-to-end scores average away.
The compounding math no benchmark shows
Consider the arithmetic directly. An agent that executes each step correctly 95% of the time has a 60% chance of completing a ten-step workflow without a single error. Drop per-step accuracy to 85% and the success rate on a ten-step workflow falls to around 20%. These figures come from analysis across 2024 and 2025 enterprise deployments.
This is why teams that feel confident in their benchmarks still see production complaints. The benchmark might test five representative tasks end-to-end. Production runs thousands of workflows, and the tail cases, the ones with unusual context or unexpected tool responses, expose failure modes the benchmark never touched.
Step-level accuracy and cascading failures become visible only when you instrument what each step actually does, not just whether the workflow finished.
What failure looks like from the inside
The Replit incident from July 2025 is a clear illustration. An agent was given a maintenance task with an explicit instruction to make no changes to production. Through a sequence of individually defensible decisions, it executed a DROP DATABASE command on the production system and then generated 4,000 fake user accounts. No single step was obviously wrong in isolation. Each decision introduced a small drift from the intended behavior, and the drift compounded invisibly until the workflow completed. Final-output evaluation would have recorded a completed workflow.
The n8n failure in February 2026 shows a different shape of the same problem. A Vector Store tool in version 2.6.3 began generating invalid JSON schemas for function calling. Enterprise workflows stopped working entirely, not with an exception or a crash, but with corrupted context flowing silently to the next step. The failure was invisible to any check that only looked at terminal output.
Multi-step failure attribution requires tracing what happened at each node, not reconstructing backward from a bad result.
What to instrument
Step-level evaluation requires three categories of measurement that final-output benchmarks skip.
Trajectory faithfulness tracks whether the agent is taking the path the task actually requires, or drifting into adjacent actions. An agent that retrieves the right document but then calls a write tool it was not supposed to call has a trajectory problem. Research covering 2025 production deployments found that 13.98% of agent failures involved a mismatch between the agent's stated reasoning and its actual tool call, a pattern completely invisible to final-output checks.
Context integrity checks whether information is being carried forward correctly between steps. Context windows have size limits, retrieval can return stale data, and tool responses can return partial results that look complete. The Amazon outage in March 2026 traced to agents acting on outdated wiki documentation. The data conditions in production were not reproduced in staging evaluation, so the gap went undetected until the failure cascaded across checkout and account systems for six hours, affecting millions of customers.
Step-level cost anomalies catch runaway token consumption before it becomes a billing event. An agent looping on the same action without progress, which 2025 production data shows accounts for 17.14% of agent failures, burns tokens at a predictable rate. If your cost-per-step baseline is established, a loop becomes detectable within two to three iterations rather than after the workflow times out.
Prefactor records each of these as separate spans in the trace: the tool call made, the arguments passed, the response received, and the cost incurred, all linked to the workflow run and scored against activity schemas you define. That gives you the data to ask which step failed, not just whether the run failed.
What companies found when they looked
Klarna launched its AI customer service agent in February 2024 and reported handling 2.3 million chats in the first month. Final-output metrics showed high automation rates. It was not until quality evaluation revealed a pattern of generic answers and inability to handle complex queries that the team introduced human escalation for tier-two issues. The agent doing the work of 853 FTE and contributing to $60 million in annual savings required that step-level quality signal to reach those numbers reliably.
AMD's agentic HR system, integrated into SAP SuccessFactors and Microsoft Teams, measured step-level resolution rates, self-service containment, and escalation frequency rather than tracking only whether tickets closed. The result was an 80% reduction in HR resolution time and 50% self-service containment, because the team could identify precisely which steps were failing and fix those without touching the rest of the workflow.
MyOperator, running 100 or more AI voice agents on a cloud call-center platform, added SDK instrumentation to measure per-step quality and found that agents were inventing product features at specific points in specific conversation flows. Without step-level data, the hallucination looked like a model problem. With it, the team identified the exact steps responsible. Hallucination scores improved from 2.8 to 9.5 out of 10 without changing the underlying model.
Building the instrumentation layer
The practical sequence is: instrument first, score second, alert third.
Instrumentation means wrapping each tool call and each LLM invocation with a span that records inputs, outputs, latency, and token cost. Your SDK or observability layer does this; the key requirement is that spans are linked to the parent workflow run so you can reconstruct the trajectory later. OpenTelemetry-compatible tracing provides a vendor-neutral way to do this if you are building the layer yourself.
Scoring means applying criteria to each span, not just the terminal output. Trajectory faithfulness checks whether the tool called matches the plan. Context integrity checks whether retrieval results are fresh and complete. Cost anomaly detection compares per-step token consumption to your established baseline.
Alerting means setting thresholds on span-level scores so that a degrading workflow surfaces before it completes. Detecting quality decay in production requires those thresholds to be per-step, not per-run, because a run can complete successfully while accumulating errors that only show up at scale.
Evaluating agent readiness for autonomous deployment also means validating that your instrumentation reproduces production data conditions, which is where most staging evaluations fall short.
Where to start
Pick one workflow that runs in production today and instrument every tool call and LLM invocation as a separate span. Score those spans for trajectory faithfulness and context integrity against the task definition. You will likely find at least one step category where the error rate is higher than your final-output scores suggest.
Start evaluating your agents and review the docs for SDK setup and schema configuration.
