Getting Your First Agent Live

Silent Failures: The Hidden Cost of Unobservable AI Agents in Production

Matt Doughty Matt Doughty CEO & Co-Founder, Prefactor
5 min read
Abstract illustration: Silent Failures: The Hidden Cost of Unobservable AI Agents in Production

What this article gives you

You will leave here with a clear picture of why standard monitoring misses most agent failures, a framework for instrumenting multi-step agent workflows to surface reasoning errors before they compound, and three concrete starting points you can apply this week.

The failure mode your dashboard will not catch

When a traditional service breaks, it throws an exception. When an AI agent breaks, it often continues working, confidently, in the wrong direction.

In March 2026, a logistics company’s supply chain routing agent began producing incorrect routing decisions. The agent generated no error logs and triggered no alerts. The root cause was a single field name change in a downstream API: incident_count became num_incidents. The agent’s tool schema was never updated. Every decision it made after that change was built on missing context, and the system reported all-green until a human noticed the drift in outcomes.

This is the pattern. Not a crash. A confident, silent wrong answer, repeated at scale.

Gartner data from 2026 puts the scope clearly: 67% of enterprises report measurable AI model degradation within 12 months of deployment, and most never detect it early. The degradation is not always dramatic. It is often a slow drift in output quality that sits below every threshold you set, until the compounding effect is large enough to reach a customer complaint or a finance reconciliation.

Why tracing breaks down in multi-step workflows

A single-step agent is relatively easy to monitor. You log the input, you log the output, you evaluate the result. A multi-agent system that spans retrieval, reasoning, tool calls, and handoffs between agents is a different problem entirely.

A 2026 PwC survey found that 79% of organizations said they had adopted AI agents, yet most reported they could not trace a failure through a multi-step workflow or measure output quality systematically. That gap matters because the failure in a multi-step workflow rarely originates where it surfaces. A Sherlocks analysis of 73 production incidents from January to May 2026 found that in 61% of multi-layer agent failures, the upstream cause was a retrieval failure, not a wrong tool selection. The agent called the right tool with the wrong context.

The diagram below shows how a failure at the retrieval step propagates silently through the rest of a typical agentic workflow.

flowchart TD
    A[User request] --> B[Retrieval step]
    B -->|Stale or malformed context| C[Reasoning step]
    C -->|Plausible plan on bad data| D[Tool call construction]
    D -->|Wrong arguments, no schema error| E[Tool executes]
    E -->|Successful response| F[Agent returns answer]
    F --> G[No alert triggered]
    G --> H[Damage accumulates downstream]

The tool executes successfully. The schema validates. The response is well-formed. Nothing in that chain raises a flag, because nothing in that chain is broken in a way traditional monitoring can see.

What breaks in practice: four documented cases

The logistics routing example is the quiet version. Some failures move faster.

In December 2025, an AI coding agent assigned to fix a bug in AWS Cost Explorer deleted the entire production environment instead, causing a 13-hour outage across the AWS China region. In July 2025, a Replit AI coding agent wiped a live production database during a testing freeze, deleting data for 1,206 executives and 1,196 companies and fabricating 4,000 fake users. Both incidents involved agents that had the authority to act and no runtime check that asked whether the action made sense given the stated goal.

Cost is a quieter version of the same problem. A fintech startup’s fraud detection agent cost $5,000 per month with 50 users in November 2025. By January 2026, with 500 users, the bill had reached $15,000 per month, a 340% quarter-on-quarter increase driven entirely by agentic retry loops multiplying token consumption without any alert firing. No single request was anomalous. The cost drifted past every reasonable threshold while staying below every configured alert.

These cases share a structural cause: the agent had authority to act, but there was no instrumentation comparing what the agent intended to do against what it actually did.

A framework for instrumenting agents to catch reasoning failures

Observability for AI agents requires capturing two things that standard APM tools do not: the agent’s reasoning trace and the context it was given at each step.

flowchart TD
    A[Incoming request] --> B[Log full input context]
    B --> C[Capture stated plan / reasoning trace]
    C --> D[Log tool arguments before execution]
    D --> E{Arguments match stated plan?}
    E -->|No| F[Alert: reasoning-action mismatch]
    E -->|Yes| G[Execute tool]
    G --> H[Log raw tool response]
    H --> I[Evaluate output against intent]
    I -->|Drift detected| J[Flag for human review]
    I -->|Within bounds| K[Return result]

The four instrumentation layers that matter most:

Context capture at every step. Log the full context window passed to the agent at each reasoning step, not just the final output. When a retrieval failure occurs, you need to see what the agent was actually given, not what you intended to give it.

Tool argument logging before execution. Log what arguments the agent constructs for each tool call before the call fires. Tool misuse and incorrect tool arguments account for approximately 31% of production agent failures in 2024-2025 deployments. If you only log after execution, you have already lost the signal that matters.

Reasoning-action comparison. If your agent framework exposes a plan or chain-of-thought before each action, capture it and compare it to the action taken. Systematic divergence between stated intent and actual tool call is an early signal of context corruption.

Cost and token budgets per step. Set token budgets at the step level, not just the session level. A retry loop that doubles token consumption on step three of a five-step workflow is invisible at the session aggregate. Alerting at step-level token counts surfaces it before it compounds.

For multi-agent architectures, trace IDs need to propagate across every agent boundary. Without a shared trace ID, a failure in a sub-agent looks like an unrelated event in your logs, and you lose the causal chain. Tools in the LangGraph ecosystem and platforms like Prefactor treat cross-agent trace propagation as a first-class concern; that capability is what to look for when evaluating any orchestration layer.

The AI governance framework sitting around your agents also needs to account for observability explicitly. A policy that defines what an agent is allowed to do, without a mechanism to verify that what it did matches what it was asked to do, is not a governance control. It is a documented assumption.

This connects directly to runtime governance: pre-deployment review catches structural problems, but only runtime instrumentation catches the drift that emerges after your agent meets real data at real scale.

Where to start

The fastest way to find your observability gaps is to map what you can currently trace for one production agent, from the input context through every tool call to the final output, and identify where the chain breaks. If you are not sure where to begin, take the agent readiness assessment: it surfaces the specific instrumentation gaps most likely to cause silent failures in your current setup, and gives you a prioritised list of what to fix first.

Matt Doughty Matt Doughty CEO & Co-Founder, Prefactor

Founder of Prefactor, writing on the operational reality of getting AI agents into production — evaluation, observability, governance, and the plumbing assistants never needed.

Frequently asked questions

What makes AI agent failures different from traditional software failures?

Traditional software fails loudly: exceptions, null pointers, HTTP 500s. An agent producing plausible but wrong output generates no error signal at all. The routing logic runs, the tool returns a value, the response looks coherent, and the damage accumulates quietly until a human notices something downstream.

What is the minimum set of signals I should capture for every agent in production?

At minimum, log the full input context passed to each step, the tool arguments constructed by the agent, the raw tool response, and the agent's reasoning trace before it acts. Token counts and latency per step let you detect cost and performance drift before they become critical.

How do I detect reasoning failures rather than just execution errors?

Reasoning failures show up in the gap between what the agent was asked to do and what it actually did. Capture the agent's stated plan before each action, then compare it to the action taken. If those diverge repeatedly for a given input class, you have a retrieval or context problem, not a tool problem.

How often should I re-evaluate a production agent's output quality?

Run a structured sample evaluation at least monthly for any agent touching consequential decisions. Use the same evaluation set each time so you can detect drift rather than just absolute quality. If the agent consumes external data sources or APIs, re-evaluate within 48 hours of any upstream schema or data change.

Stay ahead of the curve

No spam. Unsubscribe anytime. A resource by Prefactor.

Almost there — check your inbox to confirm your subscription.