docs(docs): R5.6 active, RUST.md 11.22, CHANGELOG, BDR-070, LRN-077, audits, contract clarification

This commit is contained in:
bchanot committed 2026-10-25 02:24:35 +01:00
1 parent 9e87016399
commit b4f54ba000
9 files changed
+250 -1

No files matched your search

+47
View File
@@ -3635,3 +3635,50 @@ only caller is the proof predicate; make it crate-private at activation); stale
hand the export a self-consistent report and snapshot (no equivalence results, every reader decides again);
the rebase's exact-equality branch has no sheet-id check (since R2); `r5_6_switch` writes its re-export under
`<repo>/target/tmp` regardless of `CARGO_TARGET_DIR`.
### 11.22 R5.6 active: the fingerprint convention `sha256-rfc8785-validated-v1` (2026-10-25)
Owner brief « Autorisation officielle de la bascule R5.6 ». Switch commit **9e87016** on
`feature/rust-r5-pipeline-core` (the verified final patch, plus the owner's adjustments: `equivalence`
crate-private, its test moved inside `fingerprint.rs`; stale comments fixed; the trust boundary documented in
`fingerprint.rs`; two lines of ANATOMICAL_SHEET_MODEL.md; the new-report rollback file written by `r5_6_switch`).
Decision BDR-070.
**Fingerprints.** The equine draft sheet `503dc301-a8b1-50d4-9e44-0919b2fc2916`: canonical `v1` value
`12d788727c1e532641bd5b3a7ecf39dbdd25e70350f8a76be5ca917b262874e2`; historical value (SHA-256 of the
Prettier `document.json` bytes, convention `sha256-prettier-file-bytes-v0`)
`27c7383c445c73dc2001ebf4794a3ea63d416910bbbaa0d7848dd720de7c2660`, the one entry of `TRUSTED_ALIASES`,
honoured only through `LoadedSheet::recognises_historical_stamp`. Report v3 `sheet.documentSha256` keeps 64 hex.
**Seed.** Regenerated once by the Rust tool into a fresh temporary folder, compared file by file, the two
authorised files copied: `draft/sheet-ref.json` `2c0716f1…b285` → `03e7f6ab7ffba62007afa2bd39506c72b7034b07b54367d35adf7f7cc670623b`
(value + `fingerprint` block) and `draft/report-migration-map.json` `4139c51d…fce9` →
`0e991bc2b1e54668797706aa8b21670ff420926fad133b2077bfbae61ba6e2db`. `document.json` (`27c7…`), `assets/horse.svg`
(`0ea5202f…`), `equine_draft.sql` (`c5a24312…`) and every other file byte-identical; the fresh output's
`review/app-main.svg` differs from the committed one only under the R3 trigger-name rule declared since R5.4
(not copied). `pnpm r5:import-equine --check`: 0 differences. `pnpm import:equine` is the Rust pipeline;
`pnpm import:equine:legacy` the TypeScript one until R5.7. The SQL seed's own header still names
`packages/anatomy` (frozen bytes, kept).
**Trust boundary.** Equal fingerprints keep their historical meaning (the same reference string), which is no
proof of content: an API taking caller-built data (an export input, a hand-made bundle, a mutated pub
`reference`) is trusted for what it declares, as before R5.6. An alias, never: it needs the loader-verified
`v1` value and the document recomputed at the decision.
**N-1 and rollback (measured).** An old report (`27c7`) on the active sheet: opens with no rebase, re-exports
with one stamp, read with the snapshot kept by the current reader, the frozen N-1 readers and the pre-switch
build (59521dc: `report-compare` "matches the bundled sheet", import `rebased=false`). A NEW report (`12d7`)
read by the pre-switch build: the archive is kept, `report-compare` says "written on another sheet document",
and the import rebases (0 unresolved zones and findings, the stamp set back to `27c7`): nothing is lost, but
the application shows its rebase notice for what is the same content. **The rollback is not transparent for
reports written after the switch**: accepted while R5 stays on the branch; to be settled before any release to
users (keep the switch with the release, or ship the registry to the build that could be rolled back to).
**Gates on 9e87016.** `pnpm rust:check` green, `pnpm check:all` green 02:10:52, `--check` 0 differences;
`r5_6_switch` 14, `sheet_fingerprint` 11 + the lib unit test, `pdf_import` 4, `pdf_compare` 16, `curation_draft`
20, `curation_review` 12, `archive_rules` 38; vitest N-1 2, app switch 2, goldens 13 + envelopes 3, R2 oracles 7,
anatomy 15. Security PASS, LOW only (`.claude/audits/2026-10-25-rust-r5-6-active-security.md`); fresh verifier:
8 contract clauses and 5 activation criteria met, ECARTS(1) = S7 (isolation) written before the activation was
authorised, settled by the contract Clarification of 2026-10-25
(`.claude/audits/2026-10-25-rust-r5-6-active-verify.md`). Wasm 531,715 B gzip (518,018 before the switch,
+13.7 KB), under the earlier 600 KB reference mark; no budget added.