Study FAQ
What should I validate after a Claude response passes JSON Schema?
Also asked as 2
- How do I check that schema-valid Claude output is grounded and safe to accept?
- What semantic checks belong after structured Claude output validation?
Answer
After a complete Claude response passes schema validation, check its meaning against the original evidence, the application’s current policy, and the proposed action. A valid value such as "priority": "high" has the expected shape. Accept it only if the cited facts meet the criteria for high priority.
For a support classifier, resolve the evidence IDs and confirm that the cited passages support the decision, that the category is valid for the current queue, and that the record is current, internally consistent, and unique. Use an application-defined uncertainty threshold and route unresolved cases for review. Before an accepted proposal becomes an action, apply the executor’s own authorization and ownership checks.
Keep distinct audit fields for input version, raw output, shape checks, semantic checks, and downstream outcome. Redact sensitive values and use the application’s retention policy. That record lets you tell whether an incident began at parsing, evidence review, or action execution.
Claude API structured outputs · Anthropic’s guidance on measurable success criteria and code-based grading
Full explanation
Structured Outputs, Validation, Retry, and Batch Patterns
Study guide · CCAR-F
Read the full explanation