Made by AI TechInspectable systems journal
ARCH 003REFERENCEJUL 2026

SYSTEM ARCHITECTURE

The structured-output boundary

Turn uncertain generation into a typed proposal the application can reject safely.

DIRECT ANSWER

A structured-output boundary defines the allowed fields, sizes, enums, null behavior, evidence links, and error state. The server validates every response and never repairs a dangerous field silently.

SYSTEM FLOW

Make every boundary visible.

  1. 01prompt
  2. 02generate
  3. 03decode
  4. 04validate
  5. 05reject
  6. 06record
  7. 07consume

DESIGN DECISIONS

Three decisions carry the architecture.

01

Version the schema

Record which prompt, model configuration, and schema produced every accepted result.

02

Fail closed

Do not coerce unknown enums, truncate security fields, or invent missing evidence to keep the flow moving.

03

Constrain the consumer

Downstream code reads the validated object only and cannot fall back to raw model text.

FAILURE MODES

What breaks the boundary.

  • The parser accepts extra fields with hidden instructions
  • A retry changes an accepted decision without a new record
  • The UI renders raw output when validation fails

VERIFICATION

Evidence before release.

  • Fuzzed-output test
  • Unknown-enum test
  • Oversized-field test
  • Raw-output isolation test