Study FAQ
How do I isolate the cause of a Claude workflow failure in production?
Also asked as 2
- What should I log to tell whether a Claude failure came from the prompt, retrieval, tools, or validation?
- How do I diagnose malformed output, wrong tools, weak grounding, and lost context in Claude?
Answer
Start by identifying the failed contract, such as incorrect task outcome, malformed output, weak grounding, wrong tool behavior, an authorization problem, excess latency or cost, or a confusing user experience. Capture a redacted trace with the input and source versions, prompt and configuration versions, model ID, tools available, calls and results, output, and acceptance decision. Include the relevant request IDs.
Use the symptom to choose the first boundary to inspect.
- For malformed output, check the parser, response completion state, output schema, and feature support for the configured model.
- For a wrong tool call, inspect its definition, tool-selection instructions, context that was available, result or error, and the executor’s permission decision.
- For weak grounding, compare the response to the actual retrieved records and policy version.
- For lost context, inspect the token budget, compaction block or summary, and state handoff.
Change one plausible cause at a time and rerun the affected cases under controlled conditions. Preserve before-and-after evidence. Track failures by class, fallback and review outcomes, and the relevant component versions. That lets a confirmed incident inform a targeted regression case.
Claude tool troubleshooting · Claude API errors and request IDs · Anthropic’s evaluation guidance
Full explanation
Evaluating and Troubleshooting Reliable Claude Systems
Study guide · CCAR-F
Read the full explanation