Engineering

Why the worst production agent bugs return HTTP 200 OK

Why the worst production agent bugs return HTTP 200 OK

Every model call, tool call, and HTTP request returns 200 OK while the agent still breaks business policy. Here is why standard tracing misses it and how full-stack HTTP correlation fixes it.

Bill Zuo

Softprobe

Founder

Softprobe AI agent Session and trajectory review diagram

If a normal backend service breaks, you usually hear about it quickly. Something times out, throws a 500, or fails schema validation, and an alert wakes someone up.

Production AI agents have a much quieter habit. Every call in the chain returns 200 OK, no exception fires, latency looks flat, and the agent still does the wrong thing for the customer.

Consider a routine travel support workflow. A customer asks an AI assistant to cancel tomorrow's Flight 418 to Boston and refund their Visa. The agent looks up the booking, checks the payment record, cancels the ticket, and submits a $320 refund. Nothing throws an exception, and the assistant closes the chat with a polite confirmation.

The actual bug sits inside the JSON body of the very first backend response: "refundable": false. The agent read past it (or never saw it at all) and triggered a refund the business never authorized. You only find out days later when finance reconciles payouts or a customer complains.

That is a silent failure in a production AI agent: every model call, tool call, and HTTP request completes cleanly, yet the run breaks a business policy, misreads backend state, or commits an unauthorized action while uptime monitors and crash alerts stay quiet.

Why HTTP status codes and default traces stay green

HTTP 200 OK only tells you the server answered. It says nothing about whether the payload inside represents a business approval or a restriction. Many GraphQL APIs return 200 OK even when execution errors sit inside the response body, and internal REST, billing, ERP, and travel APIs do much the same thing with fields like "status": "pending_approval", "refundable": false, or "approved_by": null.

Default tracing behaves the same way. OpenTelemetry HTTP tracing treats any 2xx response as healthy unless the network connection itself breaks, and response body capture is off by default because of payload size limits.

For normal microservices, that default makes sense. Storing full HTTP bodies on every healthy service call burns storage for little debugging value. For multi-step agents making business decisions off those payloads, it hides the only line that explains what went wrong:

Standard trace shows GET /bookings and POST /refunds returning 200 OK while traceparent links correlated HTTP payloads revealing refundable false and a 320.00 refund

Recent studies show how common this is on real APIs, even with 2026 frontier models. In SilentProbe (August 2026), researchers tested 219 edge-case inputs against live commercial endpoints from 27 vendors. When API rules were written only in documentation rather than enforced in schemas, 44 of 61 calls failed silently with HTTP 200, and across 12 models agents caught the failure only 12% of the time (fixing 0%).

A November 2026 study from Virginia Tech and Genentech found silent HTTP 200 failures in 11 of 15 public research APIs. Model-level safeguards like checklists, reviewer models, and LLM judges still left over 70% of answers wrong.

Why LLM observability tools miss what happens below the tool call

LLM observability tools do real work. They make prompt regressions, token spikes, retry loops, and malformed tool arguments obvious.

Where they run thin is the handoff between the tool function and your backend services. Standard tool-call traces only capture whatever your tool function hands back to the model. In real codebases, tool wrappers almost never pass raw API responses straight into context. Engineers trim 40 JSON fields down to three to save tokens:

{
  "flight": "418",
  "departure": "08:30",
  "amount": 320.00
}
{
  "flight": "418",
  "departure": "08:30",
  "amount": 320.00
}
{
  "flight": "418",
  "departure": "08:30",
  "amount": 320.00
}

When you open a standard agent trace to debug the unauthorized refund, the prompt looks reasonable, the tool call looks clean, and the model's reasoning fits the summary it received. From that trace alone, you cannot tell whether the model ignored "refundable": false, whether the find_booking wrapper dropped the field before the LLM ever saw it, or whether the booking API returned stale state. That boundary is where most silent bugs actually originate: an October 2026 audit of 15 API-backed agent tools manually validated 91 silent failures across the call chain and traced 52 to the API layer and 25 to the wrapper layer. Without visibility into both, you end up in a second tool grepping backend logs by timestamp to stitch one conversation back together.

Layer

What it catches

What it misses on a 200 OK bug

APM / distributed tracing

Status codes, latency, 4xx/5xx spikes

Treats 2xx as healthy and drops bodies by default

LLM observability tools

Prompts, completions, token cost, retries

Cannot see downstream microservice calls or payloads

Tool-call spans

Tool inputs and summarized return values

Drops fields trimmed by wrappers and downstream hops

Full-stack agent + HTTP tracing

Agent steps linked to raw HTTP bodies via standard trace headers

Still needs clear business rules or human review to judge policy


Connecting the agent trace to backend HTTP reality

You do not need a custom protocol to fix this. HTTP already has a standard way to link requests across services: standard trace headers (traceparent), which pass a shared trace ID from the agent to every downstream API call it makes.

When your agent passes that trace header on outbound HTTP requests and stores both the agent steps and the corresponding backend HTTP request and response bodies in one session, the ambiguity disappears. Looking at Flight 418 in one correlated timeline immediately tells you whether the fix belongs in the find_booking wrapper, the system prompt, or server-side validation on POST /refunds.

Full payload capture does carry real operational tradeoffs: you have to keep raw payment tokens, auth headers, and regulated PII out of third-party logs, and multi-turn JSON payloads blow up per-GB observability bills quickly if you store them naively.

Where Softprobe fits

Most LLM observability tools stop at prompts and tool-call spans, then charge per gigabyte or expire payloads after 14 to 30 days once multi-turn runs get heavy. Softprobe is built as full-stack tracing infrastructure first: it links your agent trace directly to downstream HTTP request and response bodies using standard trace headers, with configurable redaction before data leaves your network, and stores full payloads for 365 days at $0 forever on our open-source Apache-2.0 engine (thelake, written in Rust on DuckLake and Zstd Parquet).

Capturing HTTP bodies in-house is easy to prototype in a weekend. Maintaining reliable trace correlation, field redaction, fast search across long multi-turn runs, and coding-agent access as your services and frameworks evolve is a permanent infrastructure tax that pulls engineers off the agent itself. Softprobe takes that entire capture, storage, and inspection layer off your plate in minutes for OpenCode, LangChain (Python and TypeScript), and Vercel AI SDK.

Just as important, Softprobe is open tracing infrastructure, not a walled garden. Because your agent steps and downstream HTTP payloads live in open Parquet tables, you can feed complete, reliable data directly into your own in-house evals, custom review loops, or self-improvement pipelines, query the data with standard SQL, or connect Claude Code, Cursor, and Codex over our read-only OAuth MCP server (explorer.softprobe.ai/mcp) to debug failing runs from your editor. If you would rather not maintain a review loop yourself, you can turn on plain-English policy checks with Slack alerts in Teams Early Access ($499/month). Softprobe stays read-only on your code and complements, rather than replaces, unit tests and server-side API validation.

You can start free at explorer.softprobe.ai/signup or inspect the open-source storage engine at github.com/softprobe/thelake.

Softprobe

Capture, inspect, and fix production AI agents.

© 2026 Softprobe, Inc. All rights reserved.

Softprobe

Capture, inspect, and fix production AI agents.

© 2026 Softprobe, Inc. All rights reserved.

Softprobe

Capture, inspect, and fix production AI agents.

© 2026 Softprobe, Inc. All rights reserved.