Verification · Intent and spec conformance · Output guardrails
Schema validation
Reject malformed structured output and retry.
How to build it
- Define the expected output as a schema with typed fields.
- Validate every response against the schema before it is used.
- Retry with the validation error when a response fails, and log the final failure.
Signals in a repository
- Pydantic classes passed to a structured output client.
- Guardrails RAIL or spec files that define the expected output schema.
In practice
No scanned repository runs a tool for this check. The steps above are the only guidance.