Autonomous Agents Fail Across Turns Not Within Them and APM Only Looks Inside the Span
Agent errors compound between turns, where span-level monitoring can't see them.

Traditional error monitoring fails for AI agents because it measures call completion in workflows whose correctness depends on outputs and how those outputs shape later decisions. A subtly wrong result can become trusted input across turns while every span reports success. Monitoring agents in production needs session-level tracing and checks on how steps relate to each other, along with checks on the health of each call.
Why the span is the wrong unit for multi-turn agent failures
An on-call engineer can watch a healthy-looking APM dashboard while an agent workflow silently compounds an error. Calls complete, latency stays within expectations, and no exception appears. Yet the agent has accepted a wrong premise and is acting on it.
Traditional APM treats the span as the atomic unit of observation because it was designed for deterministic systems. Latency, error codes, and throughput reveal operational problems, but none establishes whether a reasoning step produced a correct output. An agent that returns HTTP 200 after a broken reasoning path can still look healthy to infrastructure monitoring. The missing evidence is in the semantic content. For multi-turn agents, correctness also depends on how that content relates to earlier instructions and later actions, making the trajectory the relevant unit of analysis.
How errors compound across turns: the cross-turn propagation mechanism
A wrong output at step N becomes dangerous when step N+1 takes it as ground truth. Without semantic validation between steps, subsequent reasoning inherits the mistake. Each downstream decision can then reinforce the wrong premise. StepFinder (KDD '26), drawing on Zhang et al. (2025), describes multi-agent systems as “highly sensitive to minor agent-level deviations, which can be amplified through inter-agent interactions and propagate into cascading system-level failures or severe task drift.”
Cascading tool errors make this mechanism concrete. A tool returns malformed data, but the agent continues and improvises around the broken response. The next reasoning step consumes corrupted context without an exception marking the boundary between reliable and unreliable input. The tool call completed, but its result was not a sound basis for the next decision.
State corruption and context window decay can lead to failure in similar ways. In a long interaction, an agent can forget, contradict, or confuse earlier information as recent context crowds out prior constraints. As token budgets fill, recency bias can also displace early instructions and commitments. The loss of information that previously kept the workflow on course can leave later steps locally plausible but inconsistent with the original task.
These mechanisms make longer workflows structurally fragile. Even when individual steps succeed at a high rate, cumulative success drops as the chain grows. In an isolated call, an incorrect result may end with that response, but in an autonomous workflow it can become the foundation for further action.
Three production failure patterns that span-level alerts never surface
Prompt and schema drift show how a change can separate the origin of a defect from its visible consequences. A developer updates a system prompt in staging, while a downstream parser expects a different JSON format. Production behavior then deteriorates inconsistently days later, even though the agent still appears to work. The causal link crosses the monitoring boundary. The prompt change and degraded downstream behavior belong to the same failure chain, but no individual span explains their relationship.
Stale context produces a different version of the same problem. A support agent correctly identifies a billing issue in turn one, but a cached CRM read returns an outdated subscription tier. By turn three, the agent uses that wrong state to route the request or give an answer. The retrieval itself looks like a successful call. Detecting the failure requires seeing both what the read returned and how the agent used it, rather than treating successful retrieval as proof of current information.
Planning failures expose the gap through repetition or abandonment. An agent encounters an ambiguous error and retries the same step repeatedly, pushing tool call counts well above their normal range. Infrastructure monitoring can show a workflow that is slow but still running while missing the failed plan. Goal abandonment can be quieter still. StepFinder cites prior work on task drift as a consequence of cascading failures, in which the trajectory diverges from the intended goal without a step-level signal identifying where that divergence began.
Why does an agent look fine in logs but still give bad outputs?
The signals teams watch can be structurally incapable of revealing semantic degradation. A correct run and an incorrect run can have the same latency profile, HTTP 200 responses, and token counts. Those signals establish only that calls occurred and completed.
Single-turn LLM observability narrows that gap without necessarily closing it. Prompt-response pairs and refusal tracking show the content of one model call, but they need multi-turn state to check whether it stays consistent with the rest of the conversation. A response can look reasonable when read alone. The flaw may become visible only when the response is read alongside an earlier commitment or a tool result several turns away, so reading it alone can give the wrong impression of the workflow.
Capturing everything is not a practical escape at production scale because retaining every token of every trace is prohibitively expensive. Collecting only errors also fails, because silent failures have no error code to trigger collection. Teams can then learn that things have gone wrong through user complaints or churn. By then, the pattern has already affected many interactions.
Final-text evaluation misses execution failures that the answer alone cannot show. Sudjianto's failure taxonomy distinguishes trace-level inspection of what an agent did from output-level verification of what it claimed. Standard APM provides neither form of semantic assessment. A workflow may therefore pass through infrastructure monitoring and output review without its actions being reconciled with its answer. The specific missing mechanism connects what the agent did in turn N to what it claimed in a later turn.
What cross-turn tracing actually requires, and where current tooling falls short
The monitoring requirement follows directly from that gap. At a minimum, a cross-turn trace must record the agent's instructions, what each tool returned, what the agent concluded, and how those conclusions shaped the next step's input. Session-level evaluation must check whether later claims and actions agree with earlier commitments, including whether a statement in turn three contradicts a constraint from turn one.
The OpenTelemetry GenAI semantic conventions provide a shared wire format so an agent instrumented once can export to different backends. They remain at Development status as of 2026 and have not yet stabilized. A common representation of calls does not itself judge whether a retrieved fact was stale or whether an agent abandoned its goal, so cross-turn evaluation remains a separate requirement.
LangSmith, Arize Phoenix, and Sentry's native agent integrations instrument nodes and spans and add multi-turn conversation replay. Those capabilities provide meaningful visibility beyond infrastructure telemetry alone. Their alerts, though, still depend mostly on individual spans. The gap described here is out-of-the-box support for automatically grouping recurring cross-turn failures into issues, evaluating live production traffic against the agent's own instructions, and connecting detection to fix verification. Replay makes a trajectory available for inspection, but does not by itself provide that operational loop.
Teams can trace all errors and a sample of successful runs, then use online LLM-as-judge evaluation on the sampled traffic. The sample must include successful runs because silent failures are among them. The evaluation must also be scoped to the session. A judge that reviews spans one at a time would miss the same failures, even with more content to read and a different evaluator. For stale-context failures, the corresponding application fix is to read live state at the moment of action, while the trace establishes how the earlier retrieval influenced that action.
Closing the loop from detection to fix to verified non-recurrence
At production volume, the same cross-turn pattern can appear across hundreds of sessions before a reviewer recognizes its recurrence. People cannot keep up with that many traces by checking them by hand. Grouping by failure pattern makes triage tractable by bringing related trajectories together, so remediation can address the shared defect rather than treating each affected session as a separate incident.
The 2026 pattern of routing production traces to a coding agent through MCP connects that diagnosis to the place where fixes happen. A coding agent can read the failing trace before proposing a repair, avoiding the round-trip in which a human interprets the trace and manually drafts a prompt change. Prompt regressions detected through online evaluation can similarly reach a repair agent through an MCP toolchain. The trace supplies context for the proposed change. It does not establish that the change is correct. Remediation must remain connected to evaluation after the patch ships.
Verification must cover the full trajectory. A prompt change that corrects routing in turn three may introduce another defect in turn five. Local repair can simply relocate the failure. Real production failures need to become new evals automatically, without waiting for hand-written assertions, so regression coverage grows with what the agent actually does. The closed loop is complete only when post-fix evaluation checks for recurrence and for failures introduced elsewhere in the workflow.
The reliability ceiling that better instrumentation doesn't eliminate
Better tracing cannot remove the architectural fragility of long-horizon agents. StepFinder attributes high failure rates across representative multi-agent benchmarks largely to “limitations in system design, task decomposition, and inter-agent coordination.” Those are not monitoring defects. Observability can expose their consequences and locate the decisions associated with failure, but it cannot substitute for changes to the system that produced them. Treating tracing as a reliability fix in itself would confuse diagnosis with treatment.
The architectural response is to design agents for graceful degradation. The measures include narrow scope, step-level validation checkpoints, human-in-the-loop gates for high-stakes actions, and max-step budgets that prevent runaway loops. These decisions constrain how far an error can travel. Observability data should inform them by showing which constraints fail in production and where a workflow continues after its state has become unreliable.
For production teams, the practical implication is to invest in session-level observability from day one and treat production behavior as the source of truth for agent quality. Visibility gives teams evidence for deciding what to change and whether that change helped. The diagnostic test is whether a failed outcome can be traced back through the turns that made it possible, rather than merely to a collection of successful calls.
Sources
- StepFinder: A Temporal Semantic Framework for Failure Attribution in Multi-Agent Systems
- TRAJDEBUG: Tracing Error Lifecycle to Identify Critical Failures in Long-Horizon Agent Trajectories
- Build 2026: From observability to ROI for AI agents on any framework
- Adaptive Influence Graphs for Failure Attribution in Multi-Agent Systems
- AgentEval: DAG-Structured Step-Level Evaluation for Agentic Workflows with Error Propagation Tracking
- From Failure Modes to Reliability Awareness in Generative and Agentic AI System
- Locating Hidden Failures Makes Long-Horizon Agents More Reliable
- Detecting Silent Failures in Multi-Agentic AI Trajectories


