Est.

Green Logs Are a Verdict Not a Defense

Clean logs prove an agent ran, not that it got the job right.

· 9 min read
Cover illustration for “Green Logs Are a Verdict Not a Defense”
AI Agent Observability · November 12, 2026 · 9 min read · 2,064 words

Traditional error monitoring fails for AI agents because it uses execution completion as its measure of success. A clean execution log cannot distinguish a correct action from a wrong action that ran successfully. Closing that gap takes outcome verification inside the agent loop and continuous evaluation that links failures in production to diagnosis, fixes, and regression checks.

Why an agent looks fine in logs but gives users bad outputs

A support-triage agent ran cleanly for nine days in May 2026 before a human in the refunds queue noticed a mismatch. Its p95 latency was 1.9 s, its error rate was immeasurably low, and uptime was green across the board. Yet it was wrong about one ticket in fourteen. The dashboard had recorded HTTP 200, no exception, and latency within bounds. Those measurements were right, but none showed whether the agent had handled the ticket correctly.

The human noticed what the monitoring could not distinguish. The system had a semantic failure: it did not do what it was meant to do even though execution succeeded. Treating log cleanliness as behavioral correctness left that failure outside the measurement system. The gap between HTTP success and workflow success is therefore not an obscure edge case. It is where an agent can continue making wrong decisions without producing an infrastructure error, a condition that reflects the broader problem of evaluation blindness.

What evaluation blindness means structurally, and why it is not a monitoring gap you can patch

Priyanka Bajaj’s Evaluation Blindness: How Silent Measurement Failures Corrupt AI Systems from Training to Deployment defines evaluation blindness as a property of a measurement function. The function returns a value indistinguishable from a healthy state while the system is failing, and no auxiliary signal flags the discrepancy. The paper validates this definition against documented production incidents. An alert threshold cannot tell states apart when the measurement it uses treats them as the same.

The Mata v. Avianca brief in 2023 shows how this problem can arise outside an agent loop. Fabricated case citations passed an attorney’s review process without a distinguishing signal between real and invented names. The review existed, but its test failed. The UK Post Office Horizon system had the same kind of flaw. Accounting discrepancies were logged, audited, and acted upon, but the audit function treated system output as ground truth, allowing failures to propagate for years and contributing to the wrongful prosecution of hundreds of sub-postmasters.

These cases and the support-triage incident share a measurement defect. In each, the process meant to establish correctness accepted a failing state as consistent with success. More displays of the same signals would preserve that defect. Operational failures that are silent by structural definition produce no error signal for error-rate monitoring to detect. Closing the gap requires a separate test of the intended outcome rather than a more sensitive reading of execution health.

The five failure modes that produce green logs and wrong outcomes

Tool misuse is the first recognizable mode. An agent can choose the wrong tool or supply wrong arguments to the right tool, while the call itself completes successfully. Shape is not meaning. A schema-valid refund can still go to the wrong customer. A log containing only tool names cannot establish argument correctness or reliably separate these causes, although they require different fixes.

Silent partial success happens when the agent says it has finished even though a failed step kept it from doing what it was meant to do. Nothing needs to crash. If the agent’s self-report is the only success signal, the record repeats the same mistaken judgment it should test. Context exhaustion creates a different pattern, with quality degrading partway through a long task as the agent loses constraints supplied at the start. Without token counts and the position of the failure, a clean execution record cannot show that link.

Stale or wrong inputs can produce plausible answers from an integration that has stopped updating. Successful access does not establish data freshness. The log can show that the agent got data without showing whether those inputs were still fit for the task. Unbounded loops likewise consist of activity that may execute normally while the run never terminates. IBM Research’s Detecting Silent Failures in Multi-Agentic AI Trajectories lists cycles that lead to redundant loops as a class of silent failure.

Multi-agent architectures have a sixth mode called drift that is specific to that architecture. An agent diverges from the intended path by selecting tools or downstream agents irrelevant to the input. Each handoff can still run without an error. The IBM Research paper also groups its dataset into categories that include missing output details, context propagation failures, and silent tool failures. Across these modes, the defect can lie in the loop, tools, context, verification layer, or data surrounding the model.

Why these failures compound silently over multi-step runs and across model updates

A semantic failure can become the next step’s input. A tool that starts returning malformed JSON two days after deployment may leave the agent continuing with bad data. Similarly, a prompt that worked on one model can behave differently on another while the workflow still executes. Quality can then collapse gradually. Even accuracy can stay the same while output diversity collapses, so a production regression goes unseen unless diversity is measured on its own.

An upstream retrieval failure passes through every downstream agent that consumes its output, multiplying the error. Shared memory can carry the damage into other sessions. Microsoft’s AI Red Team found that memory poisoning could propagate across sessions after a single successful prompt injection. The resulting scope is larger than any individual trace suggests because the contaminated state outlives the run that introduced it.

These mechanisms change what counts as an adequate investigation. A trace may show one wrong result without revealing the shared input, prompt version, or memory state behind other failures. Conversely, a normal-looking aggregate can conceal deterioration in a dimension it does not measure. Detection must connect behavior across runs and changes. Reviewing traces one by one is the wrong unit of analysis for failures whose defining property is propagation.

What the execution trace must record for semantic failures to become visible

Engineering teams should record tool names and full tool arguments so investigators can distinguish tool selection from argument errors. They should also make business-outcome verification an explicit step in the loop, independent of the agent’s completion report. Self-report is not an independent success signal. Node transitions and decision forks should accompany tool calls so the trace distinguishes a wrong choice from a choice made with bad inputs. Together, these records connect the selected action to its context and verified result.

Token count per step and the position of quality degradation make context exhaustion diagnosable after the run. Each consumed data source needs its timestamp and schema version recorded, with integrations treated as monitored dependencies subject to freshness and schema checks. These checks establish what the agent actually consumed. For unbounded loops, hard step and cost limits must be enforced within the loop rather than left to an alert that arrives after excess execution.

The OpenAI Agents SDK provides default tracing of LLM generations, tool calls, handoffs, and guardrails, viewable in its Traces dashboard. Tracing can be disabled, and processors can fan traces out to other backends. These events provide the underlying execution record. For LangGraph in production, persist agent state through a checkpoint saver backed by PostgreSQL or Redis, then attach the saved checkpoint to the OpenTelemetry trace as a span attribute. That connection makes the saved decision state accessible from the execution record.

Turning recorded traces into a signal that catches recurring failures before users do

Recorded traces become signals teams can act on when evaluation checks behavior against the agent’s instructions and groups failures that recur into issues. Offline datasets answer a different question. They establish performance on a fixed set, while continuous evaluation supplies a view of behavioral drift by assessing whether yesterday’s production traffic exposed a new regression. Without it, a detailed trace store remains a record of activity that someone must already know to investigate.

The minimum viable practice is sampled online evaluation with automated alerts. One production heuristic samples a portion of traces, scores them with an evaluator from a different model family, and alerts on consecutive failures within the same category. This leads to fewer false positives than reacting to score drops one at a time. Grouping missing escalations into an issue, for example, gives engineers a pattern they can fix.

Prompt changes must also be versioned, traceable, and testable as deployable infrastructure. One team found that a prompt change improved its golden-set score but performed worse on shadow traffic. Offline improvement did not predict production improvement. When a regression is visible in production evaluations weeks later, investigators need the live prompt version, the version before it, and the evaluation delta. Those records connect a behavioral change to the deployment history rather than forcing engineers to reconstruct it from memory.

Operational alerts should add to these evaluations by flagging runs that behave in unusual ways. Cost per run above the historical P99 can be a sign of runaway loops, prompt injection, or context blowouts, while a rolling quality-score drop can be a sign of regression or data drift. Latency P95 above baseline can point to model slowdown or retrieval trouble. Tool-call sequences absent from the training distribution and anomalous output lengths also warrant attention. These signals trigger investigations into semantic correctness.

What to do when an alert fires and how to trace it to its root cause

Triage should begin by distinguishing a model regression, data issue, tool failure, prompt change, or upstream service change. Pull traces from the alerting window and sample failed or anomalous runs. Compare them against the last known-good prompt version, then check whether the pattern aligns with a retrieval change, tool schema change, or model update. The recorded arguments, checkpoints, and dependency versions supply the evidence. The workflow narrows the cause through comparison rather than treating the final incorrect output as an explanation.

In multi-agent systems, read from the top of the call chain through the step that visibly failed. In 61% of multi-layer agent failures, the upstream cause was retrieval. The failing step may therefore be downstream of the defect. Its tool choice can look wrong because an earlier agent did not give it enough information. Following the input lineage keeps an investigation from fixing a symptom while preserving the source.

LLM-assisted root cause analysis can follow the same bounded workflow. An investigator agent can use read-only tools to retrieve the necessary metrics, logs, and traces, locate the matching runbook, and propose a diagnosis with supporting evidence and a fix. A second reviewer agent then attempts to falsify that diagnosis. This separates proposing an explanation from challenging it. The resulting handoff should contain the root cause, supporting trace IDs, the prompt version live at the time, and the proposed fix, packaged for a coding agent.

Handing the diagnosed failure to a coding agent and verifying the fix does not regress

A structured diagnosis gives a coding agent a defined failure and evidence to work from. MCP closes the connection between the observability layer and that agent. Sentry’s Seer uses a comparable handoff pattern. It can be configured to stop after establishing a root cause, forming a plan, or drafting a PR. When a coding agent is connected, Seer packages the root cause and solution plan as a structured prompt and triggers the agent.

A drafted fix still needs behavioral verification. Existing offline evals do not eliminate that requirement because golden sets do not cover production distribution shifts. The gap between passing an offline test and failing silently in production is precisely where errors can compound. Online evaluations built from real failures close that window by testing the behavior that brought the defect to light. Verification must therefore return to the outcome criteria and recurring failure pattern that triggered the investigation even when the revised code executes cleanly.

Semantic observability is infrastructure for closing detection, diagnosis, correction, and verification into one engineering loop. Its role extends beyond displaying a failure to preserving the evidence needed to resolve it and test the resolution against production behavior. A green log is not a verdict on success but evidence that the agent ran, while what it did remains a separate question answered through outcome verification and production evaluation.

Sources

  1. Evaluation Blindness: How Silent Measurement Failures Corrupt AI Systems from Training to Deployment
  2. Detecting Silent Failures in Multi-Agentic AI Trajectories

More in AI Agent Observability