PAT 01
IMPLEMENTATION PATTERN
Contract-first output
Free-form model text is too ambiguous for downstream code or consequential review.
A result enters application logic, a queue, a database, or an external action.
REQUIRED CONTRACT
Keep these visible.
- 01Versioned schema
- 02Explicit enums and nulls
- 03Evidence references
- 04Fail-closed parser
AVOID
Do not hide the failure.
- Silent repair
- Raw-text fallback
- Unknown fields
- Unbounded strings
Prove the boundary.
Generate missing, extra, malformed, oversized, and unknown values. Require every case to fail without a side effect.