Skip to article content

Why AI Agents Failin ProductionThe Evals & Observability Stack

Your agent passed every demo and still lost the customer their refund. This is the arithmetic, the failure taxonomy, and the instrumentation that separates a convincing prototype from a system you can put an SLA on.

Agentic AIThundrom EngineeringJuly 14, 202616 min read

There is a specific and repeatable moment in every agentic AI programme where the mood changes. The prototype works. The demo lands. Leadership funds it. Six weeks later the same agent is in production, and it is quietly, confidently, catastrophically wrong — not in a way that pages anyone, but in a way that shows up as a support ticket, a chargeback, or a customer who never comes back.

Key takeaways
  • The math, not the model, is the enemy. A 95%-reliable step compounds to ~60% success over 10 steps and ~36% over 20. You cannot patch p^n with a model upgrade.
  • ~63% of multi-agent failures are yours, not the model's. The MAST taxonomy puts specification and design at 41.8% of failures and verification gaps at 21.3%.
  • Silent failure is the real risk. False success accounts for 45–48% of failures in some domains — and LLM judges catch it at barely-above-chance accuracy (≤0.65 AUROC).
  • OpenTelemetry is the data plane, not the answer. The GenAI semantic conventions standardise spans, tokens and latency — but deliberately say nothing about whether the output was correct.
  • Ship on pass^k, budget on cost per successful task. Not pass@1, and not cost per token. Both changes reprice every decision downstream.

The numbers around this are no longer anecdotal. Gartner has projected that more than 40% of agentic AI projects will be scrapped by 2027, and the reasons given are escalating costs, unclear business value, and inadequate risk controls — conspicuously not model quality. On the benchmark side, the picture is just as sobering: the APEX-Agents 2026 evaluation found that even the best-performing models completed roughly 24% of real-world tasks on the first attempt, and published surveys put reliable multi-step task completion for leading agents somewhere in the 30–35% band.

iINSIGHT
The thesis of this piece: agents do not fail because the model is not smart enough. They fail because a probabilistic step function is being composed into a long chain with no verification between links, no telemetry across the seams, and no evaluation harness that can tell the difference between succeeded and said it succeeded. Reliability is an engineering property of the system around the model — and that is good news, because it means it is buildable.

What follows is the production reliability stack: the arithmetic of compounding error, the empirical taxonomy of what actually breaks, the silent-failure problem that no dashboard catches, the OpenTelemetry conventions that finally standardised agent traces, the evaluation methods that replace vibes with pass^k, and the retry economics that decide whether any of it is affordable. If you have already read our deep dive on Model Context Protocol and context engineering, consider this the third piece of the same puzzle: you have the protocol and you have the context — this is how you find out whether any of it worked.

01

The Arithmetic of Compounding Failure

Why a 95% reliable agent is a 36% reliable workflow

Start with the least glamorous and most important fact in agentic engineering. An agent trajectory is a chain of dependent steps: plan, call a tool, read the result, decide, call another tool, summarise. If each step succeeds independently with probability p, then the probability that all n steps succeed is p^n. That exponent is brutal, and it is the reason your demo and your production system feel like different products.

Work it through. At 95% per-step reliability — which sounds excellent, and which most teams would happily sign off on — a six-step workflow completes about 74% of the time. Stretch it to ten steps and you are at roughly 60%. Twenty steps and you have fallen to around 36%: the agent now fails almost two times out of three. Drop per-step reliability to a still-respectable 85% across an eight-step task and the end-to-end success rate is approximately 27%. Three out of four runs break somewhere.

Interactive

The compounding-reliability calculator

Drag the sliders. Watch a “99% reliable” agent become a coin flip.

Naive serial chain54.0%
Verified checkpoint every 4 steps90.0%
Expected runs per success1.85×
Reliability recovered+36.0 pts

Serial chain = p^n. Checkpointed = verify world state every 4 steps and permit one repair per segment. The second curve is not a better model — it is the same model with a verification gate.

The escape hatch is not a better model. It is a shorter chain.

Notice what the calculator does when you leave per-step reliability alone and simply add a verification gate every four steps. The model has not improved by a single percentage point. The chain length has not changed. But because a failed segment is now detected and repaired locally instead of propagating silently into every downstream step, end-to-end reliability climbs dramatically. This is the whole game: you cannot buy your way out of p^n with model upgrades, but you can restructure the exponent.

!FAILURE MODE
The propagation problem. A failure at step 3 of a 12-step chain rarely announces itself. The agent takes the subtly wrong output, treats it as ground truth, and continues executing — generating increasingly divergent results while appearing to function normally. By the time a human sees the output, the original defect is six steps upstream and invisible. Every step you run without verification is a step you are compounding blind.

This reframes the entire design conversation. “How do we make the agent smarter?” is the wrong question. “How do we make n smaller and verify between segments?” is the right one. Decompose the task. Cap the step budget. Assert on state at the boundaries. Every one of those moves is cheap, deterministic, and available today — which is more than can be said for the next model release.

02

What Actually Breaks: The MAST Taxonomy

1,600 annotated traces, 7 frameworks, 14 failure modes

Until recently, “the agent broke” was where the analysis stopped. That changed with MAST — the Multi-Agent System Failure Taxonomy, built by UC Berkeley researchers from a rigorous annotation effort across more than 1,600 execution traces spanning seven popular multi-agent frameworks. Six expert annotators reached a Cohen's Kappa of 0.88, which is an unusually strong agreement score for qualitative work and means the categories are real rather than convenient.

MAST sorts 14 distinct failure modes into three families. The distribution is the most actionable chart in agentic engineering right now, because it tells you exactly where to spend your effort — and it is almost certainly not where you are spending it.

Specification & design0.0%

Task misinterpretation · ambiguous role definitions · poor decomposition · duplicated agent roles · missing termination conditions

Inter-agent misalignment0.0%

Failure to ask for clarification · task derailment · withheld information · conversational reset · ignored input from peers

Verification & termination0.0%

Premature termination · absent or incomplete verification · incorrect verification of a correct-looking result

#DATA
Read that distribution again. Roughly 41.8% of multi-agent failures are specification and design issues — ambiguous roles, bad decomposition, duplicated responsibilities, missing termination conditions. Another 21.3% are verification and termination deficiencies. That is close to 63% of all failures living in the part of the system you write, not the part you call. The model is not the bottleneck. The architecture is.
~0
Annotated traces analysed in MAST
0
Distinct failure modes identified
0.0%
Failures from specification & design
κ 0.00
Inter-annotator agreement (Cohen's Kappa)

Inter-agent misalignment: the cost of letting agents talk

The second family — about 36.9% of failures — is the one that surprises teams who moved to multi-agent architectures expecting a free lunch. When agents communicate, they acquire an entirely new failure surface. They fail to ask for clarification, assuming instead of checking. They derail, drifting off the assigned task into adjacent work nobody requested. They withhold information a peer needed, or reset the conversation and discard it. Each of these is invisible in a single-agent trace and obvious in a multi-agent one — which is precisely why your telemetry has to span the handoffs, not just the calls.

Adding a second agent does not halve the difficulty of the task. It adds a communication channel, and communication channels fail in ways that computation does not.

— The multi-agent design lesson of 2025–2026

The practical implication is unfashionable but consistent: do not reach for a multi-agent topology until a single agent with good tools has demonstrably failed. Every additional agent is another specification you must write correctly, another handoff you must verify, and another 36.9%-shaped hole in your reliability budget. If you want the business framing of when the trade is worth it, we covered it in the rise of AI agents as employees.

03

Silent Failure: The 200 OK Problem

When the agent says it worked, and it didn't

Here is the failure mode that should genuinely frighten anyone running an agent with side effects. It is not the crash. It is not the timeout. It is the run that completes, reports success, returns a fluent and confident summary — and did not do the thing. In the literature this is false success; in production it is the silent failure, and it is the reason your dashboards are green while your support queue is not.

trace · checkout_support · 8.4sreported: SUCCESS
agent.invoke checkout_support
OK
—
chat gpt-class planner
OK
3.1k
execute_tool search_orders
OK
0.9k
execute_tool get_customer
OK
0.7k
execute_tool issue_refund
ERROR
1.2k
chat reflect on tool output
OK
5.4k
chat compose final answer
200 OK
6.8k
The refund never happened. The tool span carries the error; the final model span carries a confident summary — and the trace closes 200 OK. Every dashboard reports success. The customer does not have their money.

A June 2026 study, From Confident Closing to Silent Failure, put numbers on it, and the numbers are not comfortable. False success accounted for 45–48% of all failures in single-control τ²-bench domains. Among AppWorld coding-agent trajectories where the agent explicitly self-assessed and claimed a status, 75.8% of the failing runs were confident false claims of completion. The agent was not confused. The agent was certain, and wrong.

!FAILURE MODE
Your LLM judge will not save you here. The same study evaluated five different judge models across five prompting strategies with full task specifications available. No configuration exceeded 0.65 AUROC on τ²-bench, and the same judges managed only 0.54 AUROC on AppWorld API-call traces — statistically a hair above guessing. Asking a language model whether a language model succeeded inherits exactly the bias that produced the false claim in the first place.

The counterintuitive fix: cheap detectors beat expensive judges

The most useful finding in that paper is also the most deflating for anyone who has just bought an LLM-judge platform. Lightweight, domain-calibrated TF-IDF detectors — classical, boring, almost embarrassingly cheap — achieved task-disjoint AUROC of 0.83 on τ²-bench and 0.95 on AppWorld. At the same flag rate they recovered four to eight times more false successes than the best LLM judge, at roughly 3,300× lower latency.

That ratio changes the architecture. You cannot afford to run a frontier judge on 100% of production traffic; you can trivially afford to run a calibrated detector on every single trace, and escalate only what it flags. The production pattern that falls out of this is a triage pyramid: cheap detectors on everything, world-state assertions as ground truth, and LLM judges reserved for sampled deep review where their qualitative nuance is worth the bill.

iINSIGHT
The one rule that prevents most silent failures: never let the agent be the source of truth about its own side effects. If the agent says it issued the refund, go and read the ledger. If it says it created the ticket, query the tracker. An assertion against world state is deterministic, costs a millisecond, and cannot be talked out of the truth by a well-written summary.
04

Instrumentation: OpenTelemetry Grows Up

GenAI semantic conventions, and the layer they deliberately omit

You cannot fix what you cannot see, and for the first two years of the agent era nobody could see anything. Every framework invented its own trace format. Every vendor invented its own schema. Correlating a model call with the tool it triggered and the database row it ultimately corrupted was archaeology, not observability.

That ended with the OpenTelemetry GenAI semantic conventions. OpenTelemetry itself graduated from the CNCF in May 2026, and the GenAI special interest group has extended the conventions well past simple LLM client spans: they now cover agent spans, agent orchestration, MCP tool calling, content capture, events, and metrics. Datadog, Honeycomb and New Relic support them natively; LangChain, CrewAI, AutoGen and AG2 emit compliant spans either natively or through instrumentation packages. For the first time, an agent trace is portable.

agent_span.py
1from opentelemetry import trace
2from opentelemetry.trace import Status, StatusCode
3
4tracer = trace.get_tracer("checkout.support.agent")
5
6def execute(step, ctx):
7 # GenAI semantic conventions: one schema for every agent, every vendor.
8 with tracer.start_as_current_span(
9 f"execute_tool {step.tool}",
10 attributes={
11 "gen_ai.operation.name": "execute_tool",
12 "gen_ai.tool.name": step.tool,
13 "gen_ai.tool.call.id": step.call_id,
14 "gen_ai.agent.id": ctx.agent_id,
15 "gen_ai.conversation.id": ctx.session_id,
16 },
17 ) as span:
18 result = step.invoke()
19
20 span.set_attribute("gen_ai.usage.input_tokens", result.usage.input)
21 span.set_attribute("gen_ai.usage.output_tokens", result.usage.output)
22
23 # The assertion almost nobody writes — and the only one that matters.
24 # Ground the claim in the WORLD, not in the model's summary of it.
25 verified = ctx.world.refund_exists(step.args["order_id"])
26 span.set_attribute("app.effect.verified", verified)
27
28 if not verified:
29 # A silent failure is still a failure. Make it loud.
30 span.set_status(Status(StatusCode.ERROR, "unverified_side_effect"))
31 raise UnverifiedEffect(step.tool, step.call_id)
32
33 return result

Read the highlighted assertion in that snippet, because it is the entire lesson of section 03 expressed in twelve lines. The GenAI conventions give you gen_ai.tool.name, gen_ai.usage.input_tokens, latency, and a clean parent-child span tree. What they do not give you — deliberately — is any notion of whether the output was correct.

{}TECHNICAL
Where OpenTelemetry stops. The GenAI semantic conventions standardise model attributes, token usage, and latency. They explicitly do not cover output evaluation, safety scoring, or content quality assessment. This is the correct scoping decision — telemetry should not have opinions — but it means the mental model must be two-layered: OpenTelemetry is the data plane; evaluation is a separate layer that sits on top of it. Teams that conflate the two end up with beautiful dashboards full of green spans and no idea whether the agent is right.

What to actually trace when your agent hits production

  • Every model call as a span — with model id, token counts in and out, latency, finish reason, and the retry counter. Token counts are your cost telemetry and your context-bloat alarm in one attribute.
  • Every tool call as a child span — with the tool name, the call id, the arguments, and — critically — a boolean verifying the side effect actually landed.
  • Every agent handoff as an explicit span — so inter-agent misalignment (36.9% of failures) is visible as a seam in the trace rather than an unexplained gap.
  • The step counter and the budget — as span attributes on the root. A run that is on step 24 of a task you designed for 8 is a failure in progress, and it is detectable before it finishes.
  • The termination reason — on every root span. 'Completed', 'budget exhausted', 'step ceiling', 'escalated to human' — if you cannot distinguish these in aggregate, you cannot manage the system.

If your agents run on Kubernetes, this telemetry composes directly with the cluster-level story we covered in Kubernetes-Native AI — one trace, from the gateway through the agent loop, down to the GPU that served the token.

05

Evaluation: Trajectory, Outcome, and pass^k

Why your chatbot eval harness is lying to you

A chatbot is judged on a single output. An agent is judged on a trajectory — a chain of tool calls, observations, decisions, retries, and side effects. Carrying a chatbot evaluation harness into an agent system is the most common methodological error in the field, and it produces a specific, dangerous artefact: corrupt success, where the agent lands on the right answer via an unsafe, illegal, or nonsensical path, and your outcome-only metric awards it full marks.

The agent that answers the billing question correctly by querying another customer's account has passed your outcome eval and failed your company. Only trajectory evaluation — scoring the path: the sequence of tool calls, their inputs and outputs, the intermediate reasoning, the retries — catches it.

Concern
Chatbot-era eval
Agent-era eval
Unit of judgment
The final message
The full trajectory — every tool call, observation, retry
Headline metric
pass@1 — did it work once?
pass^k — did it work on every one of k attempts?
Ground truth
A reference answer or a rubric
The final world state — diff the database, not the prose
Primary monitor
LLM-as-a-judge, absolute score
Calibrated detectors + world-state assertions; judges sampled
Failure signal
A user complains
Unverified side effect, span error, step ceiling, budget breach
Release gate
Eyeball a handful of samples
Trace-replay suite in CI, blocking on pass^k regression

pass^k: the metric that separates a demo from a product

Sierra's τ-bench made two design choices that the rest of the industry has been quietly converging on. First, success is judged on the final world state — the benchmark diffs the database and the required outputs against an annotated goal rather than reading the conversation. The agent cannot talk its way to a pass. Second, its headline metric is pass^k: whether the agent solves the same task on every one of k independent tries.

That second choice is the important one, and it is why pass^k collapses so much faster than pass@1 as k grows. It measures reliability, not luck. A non-deterministic system that succeeds 70% of the time will pass a single-run eval most days and will fail pass^5 almost always. If you are writing an SLA, pass@1 is not the number you are promising — pass^k is.

$ECONOMICS
On LLM-as-a-judge, honestly. Judges have real value for open-ended qualitative dimensions — tone, helpfulness, faithfulness to a source. They also carry documented length, position and self-preference biases, they are non-deterministic, and a full model call per judgment is far too expensive to run on every production turn. And they drift: when the judge model is upgraded, your scores shift even though the agent under test never changed — a calibration failure that has quietly invalidated more than one team's quarterly quality trend. Where you must use a judge, prefer pairwise comparison over absolute scoring; relative judgment is a materially easier task and empirically more reliable.
06

The Retry Tax

Why the demo cost $0.04 and production costs $0.60

Reliability is not only a correctness problem. It is a cost problem, and the two are the same problem wearing different clothes. Every failure in a chain is paid for twice: once in the tokens spent producing the wrong answer, and again in the tokens spent retrying. Published production analyses put a realistic 2026-era agentic interaction near $0.60, against a pilot-stage estimate closer to $0.04. That is a 15× gap, and essentially none of it is the list price of the model.

0×
Demo-to-production cost gap per interaction
0×
Token cost of a run with 10 correction cycles
0k
Tokens of context in a long-running agent after 2–3 weeks
0×
Overspend from naive full-context or naive RAG

The mechanism is compounding, exactly like the reliability math. An agent that needs three attempts before it succeeds has tripled the token cost of that success. A run that enters ten correction cycles can consume fifty times the tokens of a clean linear pass. And the context carried into each retry is larger than the one before, because every prior step is re-read on the way back in. Production traces from continuously running agents routinely show contexts ballooning to 80,000–120,000 tokens within two to three weeks of operation.

Memory makes it worse if you implement it naively. Injecting the full memory store into every call scales linearly with the store: 24 entries might cost around 594 tokens per call; 500 entries cost roughly 8,000. Systems running naive full-context or naive RAG typically burn three to five times more tokens than a well-engineered equivalent — which is a context-engineering problem, and one we have written about at length. If you want the macro picture of why the underlying unit prices are moving too, see why API costs are rising.

$ECONOMICS
Change the metric and the decisions change with it. Stop measuring cost per token. Stop measuring cost per call. Measure cost per successful task — total spend across all attempts, divided by tasks that verifiably completed. The moment that number is on a dashboard, verification gates stop looking like engineering overhead and start looking like the highest-ROI line item in the system: every gate that catches a failure at step 4 rather than step 12 is eight steps of tokens you did not buy twice.
07

The Production Reliability Stack

Six layers, in the order you should build them

Everything above converges on a single, buildable stack. It is not exotic. Most of it is ordinary systems engineering applied to a probabilistic component — which is exactly what it should be.

Layer 01

Instrument

Emit OpenTelemetry GenAI spans for every model call, tool call, and agent handoff. One schema, vendor-neutral, correlated with the rest of your infrastructure. If it is not a span, it did not happen.

Layer 02

Verify

Assert against world state after every side effect. Read the ledger, query the tracker, diff the database. Never allow the agent to be the source of truth about its own actions.

Layer 03

Detect

Run cheap, domain-calibrated detectors on 100% of traces as triage for false success. Reserve LLM judges for sampled qualitative review — they are too biased and too slow to be your primary monitor.

Layer 04

Evaluate

Score trajectories, not just outcomes. Gate every release on a trace-replay suite in CI, blocking on pass^k regression rather than a single green run.

Layer 05

Constrain

Hard step ceilings, hard token budgets, explicit termination conditions, and circuit breakers on repeated tool failure. An agent without a stop condition is an outage with a roadmap.

Layer 06

Escalate

Route low-confidence trajectories to a human before the side effect, not after. The cheapest failure is the one that never reaches the customer — and the handoff itself should be a span.

Where to start on Monday

  1. 01Count the steps in your longest agent trajectory. Then compute p^n honestly at your measured per-step reliability. If the answer is under 90%, you do not have a production system — you have a well-behaved prototype, and now you know it.
  2. 02Add one world-state assertion after your most dangerous side effect. Refunds, provisioning, deletions, outbound messages. One assertion, today. It is the highest-leverage twenty lines of code in your codebase.
  3. 03Emit OpenTelemetry GenAI spans, even if your backend is a log file. Portable schema first, fancy backend later. The moment your traces are standard, every vendor and every open-source tool becomes an option rather than a migration.
  4. 04Build a ten-case trace-replay suite and gate CI on it. Not a thousand cases. Ten, drawn from real production failures, run k times each, blocking the deploy on pass^k regression. It will catch more than a month of manual QA.
  5. 05Put cost per successful task on the dashboard next to latency. The metric changes the argument. Nobody funds 'verification middleware'; everybody funds 'cut cost per resolved ticket by 40%' — and they are the same project.
Conclusion

Reliability Is the Product

The uncomfortable finding buried in every one of the studies above is that the model is rarely the problem. Specification and design account for the largest share of multi-agent failures. Verification gaps let wrong answers through. Missing termination conditions burn budget. None of that is fixed by waiting for the next checkpoint release, and all of it is fixed by engineering the system around the model rather than hoping the model engineers itself.

The teams shipping agents that survive contact with real users in 2026 are not the ones with the best prompts. They are the ones who instrument every span, assert against world state instead of the model's own summary, gate releases on pass^k instead of a lucky demo, and put a hard ceiling on steps and spend. Agent reliability is not a feature you add at the end. It is the thing you are actually building.

FAQ

Frequently Asked Questions

What engineering leaders ask before they green-light an agent

Mostly no, and that is the single most expensive misconception in agent engineering right now. In the MAST analysis of roughly 1,600 annotated multi-agent traces, specification and design issues accounted for about 41.8% of failures and verification or termination deficiencies another 21.3%. Ambiguous role definitions, poor task decomposition and missing stop conditions are architectural defects. A stronger model executes a broken specification more fluently — it does not repair it. Model upgrades help most with the reasoning quality of an individual step; they do very little for the compounding arithmetic of a long chain.
pass@1 asks whether the agent solved the task once. pass^k, popularised by Sierra's τ-bench, asks whether it solved the same task on every one of k independent attempts. The gap between them is the gap between a demo and a product. An agent that is 70% likely to succeed looks great in a screen recording and is unshippable for refunds, provisioning, or anything with a side effect. Because agents are non-deterministic, a single green run tells you almost nothing; pass^k measures whether the behaviour is repeatable, which is the only property an SLA can be written against.
Use it, but do not rely on it as your primary monitor. LLM judges carry documented position, length and self-preference biases, they are non-deterministic, and they drift: when the judge model is upgraded, your scores move even though the agent never changed. Worse, on the specific problem of catching false success, a 2026 study found that no configuration across five judges and five prompting strategies exceeded 0.65 AUROC — barely better than a coin flip on the failures that matter most. The pragmatic architecture is layered: cheap, domain-calibrated detectors on 100% of traces as triage, world-state assertions as ground truth, and LLM judges reserved for sampled qualitative review where their cost and latency are affordable.
Framework-native tracing is a fine starting point and a poor destination. It locks your traces into one vendor's schema, it stops at the framework boundary, and it will not correlate an agent span with the database call, the queue, or the downstream microservice that actually broke. OpenTelemetry — which graduated from the CNCF in May 2026 — plus the GenAI semantic conventions gives you one span schema across models, tools, MCP servers and the rest of your infrastructure, in a backend you can change. The conventions cover spans, events, metrics and token usage; they deliberately do not cover output quality, so plan on an evaluation layer sitting on top of the telemetry, not inside it.
Do the arithmetic for your own chain length before you commit to an SLA. At 95% per-step reliability, a 6-step workflow lands at about 74%, a 10-step at roughly 60%, and a 20-step at around 36%. If you need 90% end-to-end across 20 steps, you need approximately 99.5% per step — a bar that no current model clears on open-ended tool use. That is precisely why the answer in production is not “make every step better” but “make the chain shorter and verify between segments”: shrink n, and insert gates that stop an error from propagating.
Less than the alternative, which is paying for failure at full price. Published production analyses put a realistic agentic interaction near $0.60 against a pilot-stage estimate closer to $0.04, and the delta is almost entirely retries and context bloat: an agent that needs three attempts has tripled the token cost of one success, and a run that enters ten correction cycles can consume tens of times the tokens of a clean linear pass. The metric to manage is cost per successful task, not cost per token. Once you measure that, verification gates and step ceilings stop looking like overhead and start looking like the cheapest line item you have.
The Thundrom Briefing

Get the next agentic-systems deep dive in your inbox.

Weekly engineering analysis on agent reliability, evals, AI infrastructure and platform architecture. No fluff, no growth hacking — just the briefing senior engineers actually read.

Building agents that need to survive production? Talk to our AI engineering team.

Explore More

Multimodal AI: The liaison of AI agents

Apr 11, 2026

Multimodal AI: The liaison of AI agents

READ →
Inside Netflix's Resilience Strategy: How Chaos Engineering Keeps the Stream Flowing

Apr 22, 2026

Inside Netflix's Resilience Strategy: How Chaos Engineering Keeps the Stream Flowing

READ →
AI Hallucination: Understanding and Mitigating the Risks

Apr 8, 2026

AI Hallucination: Understanding and Mitigating the Risks

READ →