What Silent Degradation Actually Looks Like in Agent Execution Graphs

Agent graphs can finish cleanly and still answer wrongly.

· 9 min read
Cover illustration for “What Silent Degradation Actually Looks Like in Agent Execution Graphs”
Agent Hallucination · November 18, 2026 · 9 min read · 1,934 words

Silent failure detection for AI agents in production requires tracing what each node received, what it did, and how its output changed the state passed onward. An execution graph can finish without errors yet give a wrong answer because of corrupted tool data, lost context, or goal drift that builds up along the way. Detecting that degradation requires evaluating production traces against the agent’s original instructions.

Why execution graphs hide failures that error logs cannot see

A clean dashboard can show that requests succeeded while the agent behind it makes wrong decisions. Nothing has crashed, timed out, or thrown an exception. Traditional monitoring looks for those discrete events because they identify a failure the system can name. An agent execution graph introduces a different problem, because retrieval, reasoning, tool calls, memory writes, and handoffs can each complete while corrupting the state passed to the next node.

A node health check establishes that an operation completed, leaving preservation of the information needed downstream unverified. A silent failure at step 3 may therefore appear only as a wrong result at step 10, without an error pointing back to its origin. As the graph gets deeper, branching edges and sub-agent handoffs give that corruption more paths to travel.

How a tool call swallows bad data without signaling it

A downstream API field rename shows how corruption enters through an apparently successful tool call. If incident_count becomes num_incidents while the agent’s tool contract still expects the old field, the response can arrive successfully without providing the value the agent expects. The request itself has not failed. Yet a routing decision built on the missing or misread value can be wrong, even when the output looks reasonable.

The model may improvise around that unexpected structure. This is what makes schema drift different from a conventional API outage, where an explicit failure interrupts execution. Here, the response supplies enough material for the agent to continue, but not necessarily enough to continue correctly. A plausible answer can conceal the broken contract.

Sherlocks’ production incident analysis found that tool-call and schema drift accounted for 31% of production agent failures, the largest share of any category. Failures were found fairly quickly when schema validation was in place, while fixing them took much longer without it. The engineering implication is to retain tool arguments before execution and the raw response afterward. Without that comparison, a reviewer sees the agent’s interpretation of the response rather than the evidence from which it was constructed.

How retrieval failure upstream makes the right tool call wrong

The agent can select the right tool and construct arguments that satisfy its schema while acting on stale or irrelevant context. In that case, the tool call is where the upstream error becomes visible. Debugging only the execution node places the investigation one step too late.

Sherlocks’ analysis of 73 production incidents found that, in 61% of multi-layer failures, a retrieval failure at layer 2 was the upstream cause that made the tool call at layer 1 go wrong. The propagation follows a coherent sequence. Stale or malformed retrieved context enters a reasoning step, which constructs a plausible plan and then produces wrong arguments that pass validation. The tool returns successfully, and the agent presents the result without an alert.

Freshness is distinct from structural validity in this chain. An outdated policy can be readable, relevant to the query, and still unsuitable for the decision being made. Because retrieval does not score freshness by default, nothing necessarily marks that evidence as unsafe to use. Capturing the complete context passed into each reasoning step makes it possible to compare what the agent actually received with what the task required.

How context narrows across edges in long reasoning chains

A long graph can lose information even when retrieval gets it right. Each node passes a transformed version of its input onward, and those transformations can progressively narrow the agent’s working context. Summarization compresses information, tool responses truncate it, and intermediate reasoning can drop earlier constraints. Each handoff can still look as though it worked.

This differs from a bad document entering at retrieval. The information can be right and complete at the start, while the graph slowly strays from the original intent. By step 10, the agent may retain only a fraction of the constraints established at step 1. A larger context window cannot bring back information that an earlier transformation threw away.

Sherlocks’ incident data found that memory and long-chain drift had the longest mean time to detect of any failure category and were the hardest to reproduce. Whether the failure happens depends on the order of the context transformations, so a later run may take a different path. Persistence makes diagnosis harder still. Errors written into memory, vector stores, or knowledge bases can influence future reasoning after the original source has been corrected, because the corrupted memory is not automatically invalidated. A trace therefore needs to expose both the narrowing within a run and the information written for subsequent use.

How goal drift accumulates when no single step looks wrong

The agent may retain the relevant information yet pursue a locally reinforced objective that diverges from the intended outcome. A task completion flag, for example, is a proxy for success rather than proof that the task was completed correctly. A step that looks like progress can hide a failure to follow the broader policy.

Klarna’s autonomous customer service agent illustrates the product-level consequences of that gap. It hallucinated refund and fee policies and gave generic responses to nuanced financial disputes. Customer satisfaction scores fell, and the company rehired human agents as service quality degraded. The case does not establish that the agent deliberately optimized satisfaction scores or issued refunds beyond policy limits. It shows that completing customer-service exchanges was insufficient evidence that the service objective had been met.

The distinction changes what monitoring must evaluate. A step-level metric cannot prove goal fidelity just by showing that each node met its own local objective. In multi-agent graphs, agents that each meet their own local objectives can together produce a result that neither was meant to produce. Detecting that divergence requires comparing the output with the original policy or intent specification. Node traces provide the evidence, but an outcome-level audit supplies the criterion for judging it.

Why cascading errors in multi-node graphs are so hard to trace back

Tool-call corruption, context narrowing, and goal drift can build on each other within the same execution. A minor validation slip at step 2 can feed a corrupted parameter into step 3, distort step 4’s context, and cause step 5 to call the right tool with wrong arguments. By step 15, the output may be entirely wrong. The originating step can still look plausible when examined alone.

Later success may simply mean that downstream nodes processed corrupted state consistently, preserving the error while making its origin less recognizable. If that state also changes the objective the agent effectively pursues, the final answer can conceal both an input failure and a goal failure. Reconstructing the causal path requires the full execution trace.

Sherlocks’ incident data found that observability failures, meaning incidents with no detection mechanism, had a mean time to resolve of 4.2 hours, the longest of any category. Those incidents surfaced through downstream business signals such as support tickets and billing discrepancies. Those signals show the damage but may not show where it came from. Full decision traces give engineers a path backward from the wrong answer through the transformations that produced it, rather than leaving them to infer execution from its consequences.

What node-level tracing must capture to make silent failures visible

Engineers need four linked instrumentation layers, starting with one that captures the full context at every reasoning step. This means distinguishing the complete context actually passed to the agent from the final answer and the documents retrieval was expected to return. That distinction exposes stale evidence and lost constraints. Comparing each input with the next also shows where context narrowed across an edge.

The second layer records tool arguments before execution, preserving them for comparison with the raw tool response. Sherlocks’ 2026 analysis found that tool-call failures and retrieval errors together made up 57% of production agent failures. The status after execution alone cannot show whether the agent built the wrong arguments. The response must also remain distinguishable from the agent’s report of it.

The third layer compares an exposed plan or stated intent with the action actually taken. Where the framework provides such a plan, systematic divergence between it and the tool call is an early signal of context corruption. A reasoning-action mismatch alert makes that discrepancy actionable before further propagation. It complements argument validation.

The fourth layer sets cost and token budgets at the step level. A retry loop that doubles consumption at one step can indicate an upstream problem that a session-level budget obscures. These budgets detect abnormal execution patterns. Together, the four layers preserve inputs, actions, intent-action alignment, and resource use, giving evaluation distinct evidence for different failure mechanisms.

Diagram: Where Production Agent Failures Come From. Visualizes: Show the breakdown of production agent failure categories from Sherlocks' incident analysis.

How online evaluation turns production traces into a detection mechanism

Instrumentation preserves evidence, but it does not judge correctness. Offline evaluations against static datasets establish performance on those examples at the time of the test, leaving subsequent production quality unassessed. Online evaluation closes that gap by scoring live outputs against a machine-checkable definition of wrong for the task. The reference is the agent’s declared instructions and applicable policy.

The evaluation must match the failure mechanism. Detecting goal drift means checking the completed outcome against policy intent, because steps that succeed on their own do not prove that the agent met the overall objective. Context loss requires step-level evaluation of what survived each transformation. Tool-call corruption requires comparing the raw tool response with what the agent reported, so that a plausible interpretation does not substitute for evidence.

In practice, the detection pattern is to sample production traces, score them with an evaluator from a different model family than the generating model, and alert on recurring failures within the same category. Repetition distinguishes a diagnosable pattern from an isolated score drop. A detected production failure then becomes an evaluation case for the next prompt change. This links live monitoring to regression testing without taking for granted that an older offline dataset covers the conditions in which the agent failed.

Closing the loop from detected failure to verified fix

Detection becomes operationally useful when it leads to a targeted repair and a test of whether that repair worked. Reviewing traces individually leaves the team with examples but no clear unit of work. Grouping recurring failures by root cause creates that unit. A single misrouted ticket is ambiguous, while fifty billing requests routed to technical support over six hours identify a pattern that can be investigated in the prompt or routing logic.

The repair workflow should change only the prompt or tool logic responsible, then rerun the unchanged evaluation suite against its baseline. The change is retained only if it fixes the failure without introducing a regression. Verification must include the same production traces that exposed the defect. A new offline test set would otherwise judge the repair against a different distribution from the one in which the failure occurred.

Connecting this workflow to the coding environment reduces the gap between diagnosis and repair. Through MCP, a coding agent can receive the failure context, the clustered issue, and the relevant trace together. That evidence helps keep the proposed change scoped to the defect. The loop closes when the recorded failure becomes a reproducible evaluation case and the targeted change passes it without degrading the baseline.

More in Agent Hallucination