feat(domain): R5.6 prepared, fingerprint convention and registry inert, switch patch

canonical_json (RFC 8785), sheet_fingerprint behind feature fingerprint,
TRUSTED_ALIASES (one equine pair), equivalence and check_declared; tests against
the RFC vectors, the V8 numbers, an independent Node reference and the archives.
No consumer wired: the switch is a rehearsed patch under .claude/tasks/plans.
This commit is contained in:
bchanot committed 2026-10-24 14:36:01 +02:00
1 parent 1f8873dbce
commit 3b9a395d43
12 files changed
+1004 -1

No files matched your search

@@ -83,3 +83,23 @@ rules, the migration behaviour for a real content change. No view, zone, region,
The migration-map cascade debt (§11.12) stays open: no rename in this switch. Step 13 (`anatomical_sheet_versions` storing a
fingerprint) is later. No merge, no release, no deploy.
## E. Owner arbitration 2026-10-24 and preparation state
Decided: convention confirmed; compiled registry the only authority, bound to sheet + content; five consumers
(adds `pdf/compare/lines.rs`); Rust the only generator, `pnpm import:equine` → Rust, TypeScript kept as
`import:equine:legacy` until R5.7; no visible change, no migration message. Prepared (RUST.md §11.19):
module + tests committed inert; the switch as `.claude/tasks/plans/r5-6-switch.patch`, rehearsed green.
Still to decide at the switch signal:
1. `loaded.rs` + `facade.rs` (sheet load refuses a contradicting block): outside the five approved files,
not in CLAUDE.md's gated list (bundled sheet, not user data). Needed for "a contradiction is refused".
2. The two `curation_draft` cases move to a declared rule for `sheet-ref.json` and `report-migration-map.json`
(fingerprint field and block only), the R5.1 oracles untouched.
Switch procedure (on the signal): apply the patch; move the fingerprint after the drawings bound; declared
rule in `curation_draft`; `pnpm import:equine` → `scripts/import-equine.sh`, TS as `import:equine:legacy`;
`import-equine --out` into an empty folder, diff reviewed (only the two files of §11.19), copied over `draft/`;
`--check` 0 differences; `pnpm rust:check`, `pnpm check:all`, security, fresh verifier; owner device check
(an old PDF opens with no message). Rollback: `git revert` of the switch commits (seed back to `27c7…`, nothing
outside git to undo); an archive exported meanwhile with `12d7…` would then rebase (DEV only).