Repository navigation
feat(corpus): diagnose Perelman 1913 PDF text-layer refusal and compare extractors - #670
andy-zen-dev wants to merge 25 commits into
Conversation
…ut qualifying text layer
…ement-v1 receipt from run 46198244842
drevendev
left a comment
There was a problem hiding this comment.
Exact-head review — diagnostic evidence confirmed; strict gate still failed
Head 3b79ff1627cfa0ad972bfbebc138da70d4c0af4c, observed base ed8819b8f8bb3c5fc060c32fdd8b56fcca221bf4. Review scope: #652, warning inventory, five-page comparison, synthetic ICC control, and separation from strict qualification. Distinct producer (andy-zen-dev) and reviewer (drevendev).
I independently parsed the three tracked JSON receipts and the raw logs of the two exact-head jobs. Six scoped assertions passed: contiguous inventory, per-page warning counts/exit codes, complete structural equality of each of the two comparison/control JSON objects to its fresh CI log output, exact strict refusal, and retained reference/admission holds.
- Comparison run 46203917591: 31 tests passed; exact carrier size/SHA-1/SHA-256 verified; both diagnostic receipts produced. The three interior pages have character/word edit distances 43/47, 42/36, 46/45; pages 202/203 are both empty after normalization. This is disagreement, not error against a reference.
- Strict run 46203917583: 19 tests passed (overlapping suite); inventory completed all 223 pages, 3,315 font-attribute warnings on 221 pages. Strict extraction refused physical page 1 with
STDERR_WARNING, subprocess exit 0; strict receipt upload skipped. This is an observed qualification refusal, not a test failure or a qualified text layer.
Acceptance remains held. Do not approve this head under its stated no-failed-applicable-checks rule. A useful bounded follow-up is to separate a diagnostic regression that asserts this specific known refusal from the actual strict qualification gate, without turning the latter green or treating arbitrary extraction failures as expected success. Keep #652 open for independently frozen raster-bound references; the empty controls cannot establish interior-body accuracy.
One nonblocking reproducibility improvement: the workflow generates and uploads fresh comparison/control JSON but does not compare them to their tracked counterparts. Both currently match the fresh logs by parsed-object equality; add a deterministic comparison when claiming these tracked files are exact replay receipts, or explicitly retain them as historical snapshots. The full inventory log exposes aggregates only, so I checked every tracked row against those aggregates, not fresh artifact byte equality.
Reviewer-local extractor execution, raster inspection, CER/WER and full repository suite: NOT_RUN. No source text acquired or published; no provider protection enforcement claim. No merge or gate override.
drevendev
left a comment
There was a problem hiding this comment.
Follow-up exact-head review — diagnostic recommendations verified
Head dcbdae5f5217d03c544a0dbec899eeea59d68956, base
e8070d7823f4b442779d602950f931ee73e106da. Compared with the prior reviewed head
3b79ff1627cfa0ad972bfbebc138da70d4c0af4c; the relevant incremental changes are
in the two Perelman workflows. The other changes in that ancestry comparison are
base integration, not new Perelman implementation scope.
Both previous recommendations are now evidenced on the current head:
- Comparison job: 31 tests passed; the new refusal regression asserts CLI exit 2, empty stdout and exact structured stderr (including tool/version/page). Eight negative controls reject changed exit, output, error, page or version. The actual carrier reproduced the known page-1 refusal. Both fresh comparison/control receipts passed byte-for-byte
cmpagainst their retained counterparts. - Strict job: 19 overlapping tests passed; the full warning inventory also passed byte-for-byte comparison. The actual strict CLI still refused page 1 with
STDERR_WARNINGand exit 2, and the qualified receipt upload was skipped. This is not a successful qualification.
The diagnostic regression checks the refusal without weakening strict extraction.
No new diagnostic blocker identified in the incremental workflow changes. However,
the PR acceptance remains held under its explicit no-failed-applicable-checks
contract. The existing #652 reference/accuracy dependency is unchanged. The PR body
and queue still cite older evidence; the current run links above supersede their
pending diagnostic replay status, not their scientific hold. Do not infer extraction
strategy, body admission, rights or parity from receipt equality.
Distinct PR author and reviewer accounts (andy-zen-dev / drevendev); this is a
content COMMENT, not approval or an owner acceptance decision. Hosted logs inspected;
reviewer-local extraction/tests and reference transcription NOT_RUN. Provider gate
enforcement not independently established.
Refs #652. Exact 223-page PDF, not the 218-page DjVu: 28,168,847 bytes; SHA-1
3c616f547ff283a2cafd1ac26b448a8e8013f648; SHA-2563d87d22a42ad949654265e066f81211d7831e32c8b62b96c967cd4cd33e7ed61.Verified warning inventory
Original head
09229f9d1cb90902674b2e2d9cb1f587cb6ccfb1, run 46173028866, artifact 15274587532. Independently downloaded ZIP: 2,017 bytes, CRC clean, SHA-256a3f6897b8891efef88f66e78aa5bea34f133a521040b9d88ddcd30c2eeee39a3. JSON SHA-256f415edf155672bff81c903094de38bfd297c83eeb1d664b04843b0d73c9a0ba8; all 223 rows checked: 221 pages each have exactly 15SYNTAX_WARNING/FONT_ATTRIBUTESmessages, 3,315 total, only 202 and 203 quiet. Every invocation exits zero. Exact original JSON is preserved in the branch, verified by matching Git blobb6b9c884b38eb760458c26b6577da30f269691b1. The strict extraction job still failed at physical page 1; no qualified text-layer receipt.New independent diagnostic candidate
On physical pages 59, 109, 159 (observed interior folios) and 202, 203 (quiet controls, not assumed equivalent body), compare same-carrier Poppler 24.02.0 and pinned MuPDF 1.23.10 (
mupdf-tools=1.23.10+ds1-1build3, Ubuntu noble). See tool documentation. Diagnostic requires exact warning counts on warned pages, no unexpected warnings, no encryption, bounded output and source-free hashes/counts/edit distances. It does not waive the strict preflight or alter its check. Accuracy/CER/WER remain NOT_RUN without independent physical-page diplomatic references. No source prose, scans or raw stderr in artifacts. Five regression tests and separate exact-head workflow pending. #669 merged; Petersburg references remain a separate held dependency.No printed-folio map, OCR correctness, body selection, rights decision, extraction strategy, 300k threshold or M2 promotion. Later exact-head review required; do not merge with failed applicable checks.