Dashboardinstitutional-transition-labvalidate_adjudication_fragment contract

validate_adjudication_fragment contract

Category: gotcha
Confidence: 1.00
ID: 01a084ba-ea4c-7388-8a9d-2daa5719b7b5
Project ID: 1fa3712f-997f-4884-b7ec-8abb79f9e342
Cross-project: No
Recalled in other projects: 0
Source session: 0HDu8Ox6cjNYCraNi
Created: 2026-09-08 22:35:38
Updated: 2026-09-09 05:53:57

Content

Trap: validating a one-record fragment against the canonical adjudication envelope looks right because its reviewer and record are schema-valid, but the canonical schema requires envelope-wide fields such as adjudication_id and the frozen 40-record set. Fix: require exactly schema_version, design_status, reviewers, and nonempty records, then validate each reviewer and record against $defs.reviewer and $defs.record; never inspect existing fragments merely to infer this contract.

Move to: