1.1 KiB
1.1 KiB
paths
| paths | ||
|---|---|---|
|
Schemas
- The data contracts live in Rust since R2 (
crates/core/src/domain/{sheet,report,archive}, Zod semantics reproduced: strict where Zod was strict, optional absent, nullable required, Zod schema field order);packages/domainwas deleted at R5.7; its byte-identical Zod copy underpackages/core-wasm/tests/n-1is the permanent N-1 reader. Never change a contract without bumping the version on a breaking change (additive optional fields keep it); a change touches the Rust struct, the regenerated ts-rs types and the N-1 test - Every report entering the store comes from the core (new report, draft restore, import, reducer outputs); form values are plain assignments (D-R7)
- Report version 3: zones by
(annotationId, viewId), findings by(findingZoneId, path), severitiesmild|moderate|severe,sheetreference; v2 is migrated throughreport-migration-map.json(migrateReportV2ToV3, never throws on content,unresolved: truemarks what the sheet no longer holds); v1 and unknown versions are refused with a typed error