Conventional Observability Gives You a Receipt Not a Reasoning Trail When an Agent Goes Wrong
Agent failures hide behind green dashboards, so teams need reasoning traces.

Traditional error monitoring fails for AI agents because it assesses infrastructure success. A tool can return successfully while the model builds a wrong answer from its result. Closing that gap requires a different instrument type, combining a reasoning trail with evaluation and a verified path from detection to fix.
Why an HTTP trace cannot tell you where an agent went wrong
The HTTP error rate stays flat while an agent gives customers wrong information for hours. The team learns about the failure through a user complaint. Nothing on the infrastructure dashboard contradicts what happened. Request rate, latency, error rate, and span counts describe the service’s operation, but none gives a verdict on the answer. The dashboard and the customer are reporting on different things.
A tool returning an empty array can register as 200 OK. The model’s decision to reason forward without supporting data is invisible to that response code. An agent that retries the same tool call a dozen times before answering may also raise latency. The delay is visible, but its cause is not. An HTTP trace can locate the requests without explaining why the agent kept making them.
Conventional observability was designed around deterministic code paths, so a successful agent run and a semantically failed one can look identical through its metrics. Braintrust’s 2026 guide identifies the gap between confirming that an agent service is up and confirming that it chose the right tool, arguments, memory entry, or plan. Infrastructure telemetry provides a receipt for completed operations.
What makes agent failures structurally different from service failures
The locus of an agent failure is often a decision sequence. The same input can produce different tool-call chains and reasoning paths on consecutive runs, making fixed pass/fail assertions on outputs brittle. Mastra’s production guide names this non-determinism as a challenge of its own for agent systems. The operation may have worked exactly as requested while the request itself was wrong.
As context builds up, the effects of an early mistake can take time to show. A subtle error early in a multi-turn conversation can become the premise for later decisions, compounding across turns. Composed execution makes attribution harder still because one run chains LLM calls, vector retrieval, and external APIs. Each component can do its own work successfully. Yet an unsuitable result from one step can misdirect all the steps that depend on it.
A tool returns an error string, the model treats that string as valid data, and subsequent decisions produce a confident wrong answer. Nothing throws, and the run ends without any component reporting a failure. The decisive evidence lies in what the model received and what it did next. More detailed measurements of successful requests cannot supply that missing relationship, because the failure belongs to the interpretation of the successfully transported result.
What a reasoning trail actually records that a receipt does not
Agent-native observability records each step as a span with a type, so engineers can inspect the decision and what followed from it. Braintrust defines four span types that reconstruct this trail. Tool-call spans record the tool name, arguments, raw output, duration, retry count, and error state. Hallucinated arguments and silent retries stand out from ordinary request traffic even when the call completes.
Reasoning spans record the model’s plan, chosen action, observation, and next decision. Their purpose is to expose plan drift and wrong-branch selection that a single LLM span cannot explain. State transition spans cover a different boundary. They record working memory before and after each step, context edits, and handoff payloads, making context loss and summarization drift visible across longer runs. Together, these records connect a changed decision to the information available when it was made.
Memory operation spans record reads and writes to long-term stores, including the query, returned entries, relevance scores, and freshness. They expose stale reads, wrong-entity retrieval, and memory leakage between users. Parent-child links and timestamps then join the spans into one execution graph for a user request. Sequence gives the records their diagnostic value. Read in order, the trace shows which tool was chosen, what came back, and how the next step changed in response, rather than leaving engineers to infer those relationships from arbitrary developer-defined log events.
Three failure modes that only the reasoning trail can find
Runaway tool-call loops happen when a planner never converges and keeps calling the same tool without finishing the task. Aggregate metrics may show a cost spike even though the agent completes no more tasks. They cannot explain where the loop began. A reasoning trail exposes the repeated calls and the decision sequence that sustained them. To detect this pattern, teams should count tool-call repetitions per trace and alert on threshold breaches, rather than treating a generic step-count or error-rate alert as a diagnosis.
Silent tool failure propagates when an empty or malformed result becomes a premise for downstream decisions. Every HTTP hop can still report success. In the supply chain routing example, an upstream API changed its schema while the agent’s tool schema remained unchanged. Routing decisions degraded without producing errors. The useful evidence is therefore not an exception but the relationship between the changed tool output and the agent’s subsequent choices, which the execution record makes available for inspection.
A system-prompt change alters template selection, and the agent begins sending customers the wrong category of communication even though every output is structurally valid. Clean HTTP responses provide no warning of that mismatch. A trace must record the specific prompt the model received, while an evaluation layer scores the output against the agent’s instructions. The two forms of evidence distinguish a behavioral regression from normal variation and make it possible to assess what the agent decided and whether that decision was correct.
Why per-execution traces alone are not enough for a fleet of agents
A single execution record can answer what went wrong in one run, but a fleet operating over days and weeks produces more records than engineers can inspect individually. Manual review selects for the symptom someone happened to notice. It does not reliably reveal which upstream cause keeps recurring. The instrument therefore needs cross-run aggregation as well as per-run debugging.
AgentPProf, developed by researchers at UC Santa Cruz, HKUST, Alibaba, and collaborators, describes why ordinary aggregation is difficult for agents. The responsible entities are task intents such as “diagnose authentication” or “compare branches. Much the same work may follow different execution paths from one run to the next. AgentPProf proposes a semantic operation stack model in which uniform operations represent activities and operation stacks replace the runtime call stack. This allows hierarchical attribution at different granularities.
AgentPProf reports that its profile raises MAP by up to 56% on three problem-localization benchmarks. The result supports the value of locating failure concentrations across runs, rather than depending only on individual trace inspection. Tracing every run is financially impractical above modest scale, while tracing only errors excludes the silent failures that motivate agent observability in the first place. Stratified sampling and automatic failure grouping address both limits by turning the chosen execution records into issues that recur and that engineers can look into.
What the evaluation layer adds that the trace layer cannot supply on its own
A trace records execution, but correctness requires a separate judgment. An agent can follow a structurally valid path, call the right tools in the right order, and still give a wrong answer. The path alone supplies no verdict on that answer. Evaluation adds quality scores to individual outputs for dimensions such as factual accuracy and task completion. In production, those judgments must keep running against live traffic as well as a curated test set.
A low score identifies an output that failed a quality criterion, while its trace provides the decision sequence available for investigation. Braintrust specifies a loop in which production traces are scored and failures feed back into the evaluation suite. Rolling averages can then trigger alerts when quality drops, before users report the problem.
That judgment is not free of uncertainty or cost. Evaluation needs ground truth, judge models have bias and drift, and an evaluation suite needs upkeep. Grouped production failures give teams cases to add to the harness, so they rely less on hand-written assertions and keep coverage tied to problems they have seen. These cases supply an operational starting point. Once a fix ships, the evaluation derived from the original failure also provides a regression check, replacing an assumed improvement with a test of whether that failure recurs.
Closing the loop from detection to fix without leaving the engineering workflow
The reasoning trail reaches its full value when evidence moves through detection, grouping, diagnosis, proposed repair, and verification. Each stage resolves a limitation of the previous one. Detection identifies a suspect run, grouping establishes recurrence, and diagnosis connects the outcome to an upstream decision. A proposed fix then gives the engineer something concrete to review. Without verification, however, the workflow still ends with an untested claim that the change solved the problem.
The alert layer brings that evidence into the channels where engineering teams already operate. A Slack alert containing a grouped issue and trace context is a different artifact from an infrastructure alert containing an error count. It links the signal to inspectable behavior. Signals to watch include tool-call counts that rise per session, an agent step count that goes above a configured maximum, and an evaluation score that drops over a rolling window. Agent-level records and evaluations give those counts and scores their meaning.
Once a failure is grouped and diagnosed, an MCP bridge can pass the same context to a coding agent. The coding agent reads underperforming tool calls, context retrieval, and system prompts, then proposes a fix as a diff. The developer approves it before anything lands. This places the repair in the coding environment rather than requiring the engineer to translate a dashboard finding into a separate investigation.
After the fix ships, the evaluation generated from the original failure runs again. If the failure recurs, the same alert fires. If it does not, the regression check confirms the fix against that failure case without manual regression testing. This is the boundary conventional error monitoring cannot cross on its own. A receipt establishes that operations completed, while the combined trace, evaluation, alert, and verification workflow establishes where behavior went wrong and whether the repair addressed it.


