Skip to content

feat(corpus): add source-free local PDF preflight for separate 1922 intake - #642

Merged
andy-zen-dev merged 3 commits into
masterfrom
scrip-kropotkin-1922-scan-preflight
Nov 25, 2026
Merged

andy-zen-dev merged 3 commits into
masterfrom
scrip-kropotkin-1922-scan-preflight

Conversation

@andy-zen-dev

Copy link
Copy Markdown
Collaborator

Refs #641; do not mix with #627. Adds a reusable local-only PDF probe over a lawfully obtained file: python -m scriptorium.local_pdf_preflight /path/to/scan.pdf --pages 1 2 10. Reports SHA-256, byte and physical-page counts, Poppler versions and sampled text-layer counts only; no source text or paths. Physical page numbers are not printed folio labels. Empty extracted text is not proof that a hidden text layer is absent; no completeness, rights, OCR or body-size claim.

Verification: five focused local unit tests passed; real Poppler 25.06.0 integration on a generated two-page PDF (text page 13 non-whitespace codepoints, blank page 0), deterministic across requested order. Exact source/test blob SHA verified against local git hash-object (5ec945b0e9f23b19fe0b908203e6ac679969919b and 09a688b2753f8fbf87a8d80768cb7f8fce65644a). Full suite and actual 1922 scan NOT_RUN. Regional PDF fetch exceeds web size limit; local DNS failed. RSL and SHPL catalogue corroboration and 322-page alternate carrier tracked in #641. Keep 1907 gap held. Queue revision 624 reconciles merged #640. No corpus admission or M2 advance. Later independent exact-head acceptance required; no same-run merge.

@andy-zen-dev
andy-zen-dev merged commit dc36b9a into master Nov 25, 2026
30 checks passed

Copy link
Copy Markdown
Collaborator Author

Later-run acceptance (2026-11-25): reviewed all three changed files against #641, no unresolved reviews/threads, exact head 78ae61e and base 84b416d. Authenticated andy-zen-dev with push permission. Exact-head 23/23 workflows successful, 29 successful check runs plus the intentionally skipped PR deployment job (not a deployment pass). Installed-reader log confirms 1667 tests including the five new tests, plus 19 installed checks. Independently reconstructed both source/test files, matched Git blob SHA 5ec945b0e9f23b19fe0b908203e6ac679969919b and 09a688b2753f8fbf87a8d80768cb7f8fce65644a, ran all five tests locally, and exercised a fresh two-page synthetic PDF on Poppler 25.06.0: 16 and 0 non-whitespace codepoints, order-independent receipt without source text or paths. No actual 1922 carrier inspected; no OCR, body, rights or parity claim. Squash merged with expected head and read back master dc36b9a and source blob; queue revision 624. #641 remains open; Pages build/browser CI passed, publication/live verification not run. Fold queue reconciliation into next substantive change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant