Verify PDF file checksums after migration
3 November 2026
To verify PDF file checksums after a migration, generate cryptographic SHA-256 digests for every transferred file at its destination and compare them against the checksums recorded in the source transfer manifest. Verifying total file counts alone is insufficient to confirm a successful transfer. A destination folder can contain the expected number of files while still holding corrupted or altered bytes. When a checksum mismatch occurs, the receiving owner must flag the affected document, withhold handover approval, and instruct the source archive owner to re-extract and re-transfer the specific source document. Test results · Transfer manifest
Why file counts fail to detect corrupted PDF transfers
Relying on file counts during a PDF handover creates a false sense of completion. Four files transmitted from a source repository may arrive at the destination as four separate PDF files, satisfying basic directory listings. However, bit-level alterations—caused by incomplete network transfers, silent storage corruption, or header re-encoding—can alter document contents without changing the number of files present. Test results
Consider a synthetic four-file transfer package designed to demonstrate per-file verification workflows. The transfer manifest defines four original synthetic PDF fixtures across distinct categories: Test results · Transfer manifest
- DOC-001 (
documents/tables.pdf): 46,022 bytes, 3 expected pages. - DOC-002 (
documents/invoices.pdf): 46,427 bytes, 3 expected pages. - DOC-003 (
documents/strokes.pdf): 47,560 bytes, 1 expected page. - DOC-004 (
documents/redacted.pdf): 2,366 bytes, 3 expected pages.
Test results · Transfer manifest
When baseline validation runs against the destination folder, all four files yield matching SHA-256 digests, confirming byte-for-byte alignment with source records. However, when evaluating the altered transfer scenario in the verification artefact results.json, four files are present, but only three match their expected hashes. A single file—tables.pdf—registers a hash mismatch while zero files are missing and zero files are unexpected. Test results
The altered case had no missing or unexpected paths. Comparing each file with a trusted manifest exposed a difference the file count missed. A matching cryptographic checksum identifies the source bytes used for comparison; it does not establish intended ownership, access permissions, or factual correctness. Test results · Transfer manifest
Worked transfer verification ledger
To conduct per-file verification, archive managers should maintain a decision ledger that contrasts source manifest attributes with observed destination results. The table below applies the demonstration transfer manifest transfer-manifest.json and execution log results.json recorded on 31 October 2026. Test results · Transfer manifest
| Document ID | Destination Path | Expected source bytes | Expected SHA-256 digest | Observed Result | Verification Status | Next Owner Action |
|---|---|---|---|---|---|---|
| DOC-001 | documents/tables.pdf | 46,022 | beee40fa0bfd1f3c5819f6fb919a0c3791100856cc1626d3db0f510d60f58905 | Hash mismatch | Digest differed | Re-extract and re-transfer file |
| DOC-002 | documents/invoices.pdf | 46,427 | d0e3eaf6a280c9ea13f4ad1a3d5b8c6b13880f23bf3bdc6a057df43c0094a148 | Match verified | Digest matched | Await package-level approval |
| DOC-003 | documents/strokes.pdf | 47,560 | 63955c2d4deb15d688aabdbcb7868196ada8fcdb52b606abaa09b5b84cb7b4da | Match verified | Digest matched | Await package-level approval |
| DOC-004 | documents/redacted.pdf | 2,366 | 7701d8cc83903c538e79d7dd66eda4aab128eff176506a8a839cb29538dd6ee7 | Match verified | Digest matched | Await package-level approval |
Test results · Transfer manifest
In this worked ledger, three documents pass per-file validation, but overall package verification fails due to the altered bytes in DOC-001. Test results
Resolving the altered file exception
When checksum validation isolates an altered file such as tables.pdf, the receiving team must follow a structured remediation workflow: Test results · Transfer manifest
- Quarantine the altered file: Isolate
documents/tables.pdfto prevent downstream ingestion of corrupted content. - Assign owner action: The source archive owner must check the original source document (
source/tables.pdf) and confirm that source files remain unchanged. Inresults.json,source_files_unchangedis recorded astrue, showing the source fixtures were unchanged. The test result does not identify a real network, storage or handling cause. - Re-transfer and re-validate: After confirming the approved source revision, ask the source owner to re-transfer
tables.pdf. Upon receipt, the receiving engineer recalculates its SHA-256 digest to verify a match againstbeee40fa0bfd1f3c5819f6fb919a0c3791100856cc1626d3db0f510d60f58905. - Preserve pending test statuses: In
results.json, operational validation steps remain unexecuted:business_retrieval_test:NOT_RUNreal_permissions_test:NOT_RUNindependent_owner_signoff:PENDINGhandover_approved:falsesource_owner_signature:nullreceiving_owner_signature:null
Test results · Transfer manifest
These unexecuted statuses must be preserved as pending items. Matching a recorded checksum confirms byte integrity, but future operational tests are required to confirm that access rules (PROPOSED_REVIEW_TEAM_ONLY) operate correctly in the target environment. If a source file legitimately changed after the manifest was signed off, investigate the version and obtain an authorised manifest revision; do not replace the expected hash merely to make the comparison pass. Test results · Transfer manifest
Checksum validation protocol
To ensure systematic verification across PDF migrations, implement this compact checklist:
- Read the trusted manifest: Parse the transfer manifest to establish baseline file paths, byte sizes, and SHA-256 digests.
- Compute destination hashes: Generate independent SHA-256 checksums for each landed file across the destination repository.
- Reconcile discrepancies: Classify each file as matching, missing, altered, or unexpected. Keep missing (
invoices.pdf) and unexpected exceptions separate rather than merging them into net file totals. - Enforce sign-off gates: Block package approval (
handover_approved = false) until all hash mismatches are resolved and required signatures (source_owner_signature,receiving_owner_signature) are executed by archive owners.
Test results · Transfer manifest
Next step for package owners
If migration validation detects a checksum mismatch, instruct the source archive owner to re-extract and re-transmit the affected file directly from the source repository. Once the re-transferred file yields a matching SHA-256 checksum, execute the outstanding business retrieval and permissions tests before obtaining formal receiving owner sign-off to complete handover approval. Test results · Transfer manifest
Part of the Catch missing, altered and extra files in a PDF handover guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
