Repository navigation
feat(corpus): verify pinned PDF carrier before text-layer inspection - #643
Conversation
|
Later-run solo-maintainer acceptance for exact head Independent local replay: both source/test Git blob IDs matched ( 23 returned PR workflows completed successfully; exact-head checkout verified in Pages run 45668892615 and installed package run 45668892640 logs. 1670 standard-library tests and 19 installed-package tests passed; deterministic Pages build and Chromium acceptance passed. Deployment and live probe were skipped as expected. Full local checkout and real 1922 carrier NOT_RUN. No new corpus admission or parity claim; 11 measured editions, M2 0/5. Accept this bounded change, subject to current provider merge gates; retain #641 open. |
Refs #641. A repeat scan inspection can now require its previously recorded byte identity:
python -m scriptorium.local_pdf_preflight scan.pdf --pages 1 2 --expect-sha256 DIGEST. Malformed/mismatched SHA-256 rejects before Poppler runs; no receipt or local path is emitted. Correct pins preserve the exact v1 receipt, and unpinned first acquisition remains supported. This is a caller-provided byte-identity guard, not a source authenticity or rights decision.Eight focused local tests PASS, including three new tests and six invalid pin variants. Source/test Git blob hashes match locally tested files (9bb143b4a922ee441dea9ddac4a767e2e50eb678 / 1f81cec1eed39dbdb7e9bf20b9e34e50bb1b2a6a). Local full repo checkout failed DNS; full suite, real 1922 carrier and visual verification NOT_RUN. RSL HTML offers an interactive viewer but no static scan link; no scan bytes acquired. Reconcile merged #642 in queue revision 625. No new corpus admissions, no M2 change. Later exact-head CI and independent acceptance required; no same-run merge.