All Lessons

Claude returns JSON that fails schema validation. What is the most reliable recovery in an automated pipeline?

1 / 3
advanced 25 min

Validation Pipelines

Loading lesson content...

A validation-retry loop appends the validation error to the prompt and retries. It reliably fixes malformed JSON and locale-formatted numbers within 2-3 attempts, but loops uselessly when asked to extract a full author list the source only gives as "et al." pointing to an external document. What principle does this illustrate?

1 / 1