Initial lab coach wire schema with server-side enforcement, client runtime guards, and validation error reporting.
- Required fields: labSummary, alignment, suggestedOpening must be non-empty strings.
- fitScore must be an integer between 0 and 100.
- Server enforces normalizeLabResult before every response regardless of debug flag.
- Client runtime guard (validateLabResult) rejects incomplete payloads with a clear bilingual error.
- Optional piAnalysis block (PI metrics, themes, methods, trajectory).
- Optional cvFit block (verdict, matchScore, matching/missing skills, actions).
- validationReasons array in server responses for production diagnostics.
- synthesizedSections array indicating which fields were auto-repaired.
- schemaVersion top-level field for forward compatibility checks.
This release establishes the API contract. Future minor versions may add optional fields without breaking existing clients. Major bumps require a page refresh.