Version a PDF test dataset
3 November 2026
When a PDF test file is updated while retaining its existing file name, you must increment the top-level corpus version string, re-calculate the file’s cryptographic SHA-256 hash, update the expected-output ground-truth revision, stop reusing earlier results for the changed fixture and recompute any affected aggregates, and archive historical execution logs tagged under the previous corpus version. Verifying a file checksum confirms local binary identity, but does not verify ground-truth factual correctness, document authorisation, or operational representativeness.
Why Filename-Only Updates Disrupt Benchmark Integrity
When evaluating PDF software, modifying a test document without altering its relative path creates silent test drift. If a benchmark runner executes against an updated file using stale expected outcomes, pass and fail scores become unreliable.
To maintain evaluation integrity when a document changes in place, you must manage a versioning triad:
- Corpus Revision: A top-level semantic version string assigned to the entire test collection, such as
1.0.0-synthetic-demonstration. - File Hash: An explicit cryptographic digest (SHA-256) unique to the exact binary payload of each document fixture.
- Expected-Output Revision: A versioned ground-truth reference specification tied directly to the file hash. Corpus manifest
Cryptographic hashes isolate binary alterations. However, verifying that a file matches its recorded SHA-256 hash confirms only that the document content matches the stored baseline. A passing checksum check does not establish whether the ground-truth annotations are factually correct, who owns the document, what access permissions apply, or whether the sample represents real-world business records. Corpus manifest · Integrity results
Worked Versioning Ledger and Decision Record
To demonstrate how to log and execute a dataset versioning update when a test document changes while keeping its file name, consider a hypothetical exercise scenario involving a synthetic control corpus. The baseline control environment is defined by an initial corpus manifest and verified through an automated local integrity check. Corpus manifest · Integrity results
In this baseline dataset, the corpus contains four test fixtures across eight total pages:
- CF01 (
synthetic-tables.pdf): 3 pages, SHA-256beee40fa0bfd1f3c5819f6fb919a0c3791100856cc1626d3db0f510d60f58905, expecting eight rows, 32 cell values, and column totals of 77 and 96. - CF02 (
synthetic-invoice-corpus.pdf): 3 pages, SHA-256d0e3eaf6a280c9ea13f4ad1a3d5b8c6b13880f23bf3bdc6a057df43c0094a148, expecting 21 header values and 20 line-item cells. - CF03 (
synthetic-stroke-sample.pdf): 1 page, SHA-25663955c2d4deb15d688aabdbcb7868196ada8fcdb52b606abaa09b5b84cb7b4da, expecting nine labelled authored fields. - CF04 (
source-form-and-attachment.pdf): 1 page, SHA-256dba981a00a64dc770ae8af9ce5c088e0ca0eff53f773590151581549b6e60165, expecting two logical field values and one embedded file hash. Corpus manifest
The total page count across all four fixtures equals exactly eight pages (3 + 3 + 1 + 1 = 8). All four fixtures hold an unreviewed reference status (reference_status: AUTHOR_DECLARED; HUMAN_REVIEW_PENDING). Integrity results · Corpus manifest
Suppose the table file retains its filename but is replaced with a revised layout. Freeze the previous manifest and record the proposed change before running the new comparison. No revised PDF, replacement hash or revised run is supplied in the example. Keep those entries pending until the actual files are available. Corpus manifest
Which entries change?
| Register entry | When the filename stays the same |
|---|---|
| Corpus release | Assign a new version. Preserve the previous release and its file manifest so its results remain reproducible. |
| PDF identity | Hash the new bytes and keep the old digest in the prior revision. A filename or matching page count cannot establish that the inputs are unchanged. |
| Expected-output identity | Review whether the correct rows, values or reading order changed. Version and hash a revised reference. If the old expectation still applies, document that finding and link the same reference digest to the new input revision. |
| Run identity | Record the corpus version, input and reference hashes, product build, settings and scoring method. Do not label an earlier run as evidence for the changed input. |
| Scope of revalidation | Re-run the changed fixture and any dependent aggregate. Reuse results for unchanged fixtures only if input, reference, processing and scoring bindings are unchanged and that reuse is explicit. |
Preserve the historical comparison
Mark affected cached results as ineligible for the new version. Retain the original logs, expected output and scores with the old manifest. This lets the reviewer distinguish a change in the PDF, a correction to the expected answer and a change in the software under evaluation. Even when input bytes stay unchanged, a revised expected value can require rescoring. If the rendered pages look the same while internal fields change, include the affected structural check in the rerun. Corpus manifest · Integrity results
The local integrity result confirms only the identities and page counts of the four original fixtures. It contains no revised fixture, candidate benchmark, domain review or proof of production representativeness. For the next evaluation, have the owner approve the revised input/reference pair, preserve the exact scores that remain historical and record which scores were newly calculated. Corpus manifest · Integrity results
Part of the Freeze a PDF test corpus with checksums and reference files guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
