Diagnosing Production AI Failures: Errors, Evidence and Side Effects
In this article
A production incident can arise from unavailable capacity, missing evidence, an incorrect answer or a wrong action. Start by identifying which event occurred. A plausible final response does not tell you whether the preceding retrieval and tool work was correct.
Correction, 22 October 2026: The earlier article claimed architecture rather than model quality causes production AI failures. It misquoted Datadog's error data as a silent-failure statistic, treated a proposed watchdog threshold as a general solution and described a RAG reference workflow as a proven elimination of hallucination. Those conclusions are withdrawn.
Count the errors the report actually measured
Datadog's report says 5% of observed LLM call spans reported an error in February 2026, with rate limits responsible for 60% of those errors. Its March figures are different: 2% of spans reported errors, with rate limits accounting for almost one-third.
The complement of the rate-limit share is not a measurement of semantically wrong HTTP 200 responses. Nor does call-span telemetry alone establish the error rate of an entire user task. Datadog also identifies its customer population as an imperfect sample of the global market.
Use an operational error metric for operational questions. To measure wrong-but-successful answers, define an outcome evaluator and a labeled sample that includes requests returning normally. Do not manufacture that rate by subtracting unrelated categories.
Inspect the evidence before diagnosing the model
AWS's utility-bill reference workflow describes preprocessing before ingestion into a Bedrock knowledge base. It is a useful implementation example, not a controlled test showing that model changes are ineffective.
There is also an important format distinction. Textract's operation limits list JPEG, PNG, PDF and TIFF. Do not infer direct DOCX or XLSX API support from a workflow's list of source formats. Confirm the parser or conversion stage and test its output.
For each failing question, inspect the original document, extracted representation, retrieved passages and answer. A missing table row and an answer that ignores a correctly retrieved row are different defects. They can require different changes.
Retain an unchanged test set while comparing a parser, retriever, prompt or model modification. Changing several stages together may improve the system, but it does not isolate which stage caused the improvement.
Check the action's effect
In her QCon presentation, Zhou Yu distinguishes an agent saying a product was returned from checking whether the return happened in the backing environment. Her observation that many agents remain demos is not a measured census proving a universal 95% failure rate or a single cause.
A proposed test for a support agent should therefore check the requested record, operation and final state. For example, a well-formed empty account-history result needs to be distinguished from a verified account with no history. Validate identity and provenance before using it to make a customer-facing decision.
Simulate scenarios without treating simulation as certification
ArkSim provides synthetic multi-turn user conversations and evaluations. It can help exercise follow-ups and tool paths that a single-turn answer test does not cover. Its usefulness depends on the scenarios and evaluator you configure.
Use isolated fixtures for mutations. Include cases with ambiguous identifiers, unavailable services, changed permissions and an operation that times out after taking effect. Check whether the next attempt duplicates the action.
| Failure category | Evidence to collect | Acceptance question |
|---|---|---|
| Service error | Status, timeout and retry trace | Was recovery bounded and correctly reported? |
| Evidence gap | Original, extraction and retrieved passages | Was the required fact available at the answering stage? |
| Wrong answer | Answer and checked reference | Did the response represent the evidence accurately? |
| Wrong action | Requested operation, identity and final state | Did the authorized effect occur exactly as intended? |
This table is our proposed diagnostic procedure. AI Mastery has not run a comparative production study establishing which intervention wins. Our editor-evaluation method covers how to retain the raw evidence needed for a reproducible comparison.
Frequently asked questions
Does Datadog's report establish that 40 percent of AI failures are silent HTTP 200 responses?
No. Its February data says 60 percent of reported errors were rate-limit errors. The remaining share is not identified as silent semantic failures. The earlier article misinterpreted that denominator.
Does a preprocessing example prove a larger model cannot help?
No. It illustrates a pipeline intervention. A causal comparison would need to evaluate alternatives under controlled conditions and retain their error results.
Can Textract accept DOCX and XLSX files directly?
The Textract quota documentation lists JPEG, PNG, PDF and TIFF as accepted formats. Other source formats need an appropriate parsing or conversion path before using an operation that does not accept them.
Is an agent's claim that it completed a task sufficient evidence?
No. Check the resulting environment state or operation receipt against the requested effect. Keep that check separate from judging the response's wording.
Related Reading
Cloudflare AI Search Bundles Full RAG Pipeline in One CLI Command
Cloudflare AI Search wraps crawling, embedding, vector storage, and ranking into one managed service with a single wrangler command and free beta access.

AI Pipeline Changes: Compare Savings, Quality and Waiting Costs
Four pipeline reports measure different outcomes. Compression adds latency, support metrics are internal, and an async example is a synthetic demo.
FBG Reports Support Improvements From a Multi-Agent System
FBG reports internal containment and resolution improvements. Its AWS case study describes specialist tools, escalation and jurisdiction-specific retrieval.