chore(docs): split 11 CLAUDE.md sections into .claude/rules/

This commit is contained in:
bchanot committed 2026-10-27 16:04:30 +01:00
1 parent 78aacc09e1
commit 7a75974dc3
13 files changed
+175 -139

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
---
paths: ["crates/core/src/domain/**", "packages/core-wasm/tests/n-1/**"]
---
# 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/domain` was deleted at R5.7; its byte-identical Zod copy under `packages/core-wasm/tests/n-1` is 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)`, severities
`mild|moderate|severe`, `sheet` reference; v2 is migrated through `report-migration-map.json`
(`migrateReportV2ToV3`, never throws on content, `unresolved: true` marks what the sheet no longer holds);
v1 and unknown versions are refused with a typed error