Debugging a Failed Customer Task
Start from a case. Establish what an acceptable result would have been and why the difference mattered to the customer.
Locate the visible mismatch
Follow the actual workflow. Inspect only the boundaries relevant to this case:
The earliest visible mismatch is a place to investigate. It may itself have an upstream cause. If a necessary artifact is missing, record that uncertainty and capture it in the next relevant run.
Compare explanations
For the leading explanation, ask what evidence would make it less likely. Include a plausible alternative.
For an outdated answer:
- Was an obsolete source selected?
- Was the current source selected but omitted from the actual model input?
- Was the current source present but inapplicable to this question?
- Did another source, cached output, or earlier state supply the old answer?
- Does the error recur when the question is supplied with only the verified applicable excerpt?
Use a focused check to narrow the possibilities. A changed output after an intervention is evidence about that intervention under those conditions. It does not automatically identify the model’s internal cause.
Use precise descriptions
Unsupported and false are different judgments. A true statement may lack required support; a cited statement may faithfully repeat an incorrect source. Check source fidelity and truth separately when both matter.
Choose the next action
If the requirement is unclear, resolve it with the person responsible for the outcome. If the evidence is missing, capture or inspect it. If the defect is in ordinary application code or source data, fix that boundary and verify it directly.
For a behavioral change, choose the smallest plausible intervention and compare it with the current product. Consider the intervention reference only after identifying the problem.
Prioritize by customer consequence, recurrence, and the cost of learning enough to act. One serious failure can justify immediate containment without establishing its population frequency.
Finish with a decision: fix, narrow supported scope, keep investigating, accept a documented limitation, or stop the approach. Preserve the case for regression checks and revisit customer outcomes after release.
Library sources
- Huang et al. 2023, A Survey on Hallucination in Large Language Models (arXiv:2311.05232)
- Lin et al. 2025, LLM-based Agents Suffer from Hallucinations (arXiv:2509.18970)
- Ma et al. 2025, Diagnosing Failure Root Causes in Platform-Orchestrated Agentic Systems (arXiv:2509.23735)
- Zhu et al. 2025, Where LLM Agents Fail and How They Can Learn From Failures (arXiv:2509.25370)
- Card 2017, The problem with “5 whys” (doi:10.1136/bmjqs-2016-005849)
- Leveson 2011, Applying Systems Thinking to Analyze and Learn from Events (doi:10.1016/j.ssci.2009.12.021)