feat(domain): R5.6 fingerprint switch to sha256-rfc8785-validated-v1

The Rust pipeline is the official seed writer (pnpm import:equine); sheet-ref.json
and report-migration-map.json carry 12d78872...74e2 and the v1 block, the only two
seed files changed. 27c7383c...2660 stays a registered alias, honoured only through
LoadedSheet::recognises_historical_stamp (verified v1, recomputed document). M1: the
snapshot of an old report keeps its stamp; export, archive reader strict. Historical
oracles run in their pre-switch context; equivalence is crate-private.
This commit is contained in:
bchanot committed 2026-10-25 02:02:42 +01:00
1 parent 59521dc195
commit 9e87016399
31 files changed
+2331 -154

No files matched your search

+22 -3
View File
@@ -43,15 +43,34 @@ function buildV2Unresolved(sheet: SheetIndex) {
).read
}
/**
* The goldens were frozen before R5.6, when a v2 migration stamped the historical fingerprint
* (the pre-switch migration map). Since R5.6 the map stamps the canonical `v1` value and
* nothing else of the migrated report changes (Rust `pdf_import`
* `o7_after_r5_6_migrated_v2_reports_carry_the_canonical_stamp_and_nothing_else_moves`): the
* golden v2 reports are taken in that original context, as reports migrated before the switch
* and exported now. Their export keeps the stamp in the snapshot (M1), so the frozen bytes hold.
*/
export const HISTORICAL_FINGERPRINT =
'27c7383c445c73dc2001ebf4794a3ea63d416910bbbaa0d7848dd720de7c2660'
export function migratedBeforeR56(report: Report): Report {
return {
...report,
sheet: { ...report.sheet, documentSha256: HISTORICAL_FINGERPRINT },
}
}
export function buildGoldenReports(sheet: SheetIndex): GoldenReports {
const v2unresolved = buildV2Unresolved(sheet)
return {
reports: {
v2full: importAttachment(readJson('report-v2.full.json'), sheet).read
.report,
v2full: migratedBeforeR56(
importAttachment(readJson('report-v2.full.json'), sheet).read.report,
),
demo: importAttachment(readJson('report-v3.demo.json'), sheet).read
.report,
v2unresolved: v2unresolved.report,
v2unresolved: migratedBeforeR56(v2unresolved.report),
},
unresolvedOfV2Unresolved: v2unresolved.unresolvedFindings,
}