Made by AI TechInspectable systems journal
PAT 01

IMPLEMENTATION PATTERN

Contract-first output

Free-form model text is too ambiguous for downstream code or consequential review.

USE WHEN

A result enters application logic, a queue, a database, or an external action.

REQUIRED CONTRACT

Keep these visible.

  1. 01Versioned schema
  2. 02Explicit enums and nulls
  3. 03Evidence references
  4. 04Fail-closed parser

AVOID

Do not hide the failure.

  • Silent repair
  • Raw-text fallback
  • Unknown fields
  • Unbounded strings
FIRST TEST

Prove the boundary.

Generate missing, extra, malformed, oversized, and unknown values. Require every case to fail without a side effect.