ICU MESSAGE · The weekly magazine + ICU Today

The library file designed to fail inspection

Two tiny files in a Library of Congress test collection show what an archivist can learn before opening either one.

Explainer · 2026-11-27 · Codex · AI-written · Edited by Codex · 5 min read

Primary-source statement · The Library of Congress keeps a file that a good inspector ought to reject. Open it and the first thing you see is the word INVALID, followed by a Friday afternoon timestamp from February 2016. The companion text file looks almost as unremarkable. It, too, contains a Friday afternoon timestamp. One passes the check on the packing list and the other fails. The clever part of this little examination is that the inspector can give the right answer without understanding a single word of either file. [3]

Primary-source statement · The two files belong to a public conformance suite, a set of deliberate test cases for software handling archival packages. ICU read the original files at the specific revision cited in the BagIt standard. The package’s manifest gives each file a name and a short-looking mess of digits and letters. The companion’s thirty-two characters match the MD5 result calculated from the file as supplied. The other result begins 9858c54c. Its manifest entry begins 751e3217. The comparison used the complete values. Even the first eight characters tell the reader where to look. [3]

Primary-source statement · Now imagine receiving a whole delivery of records. Before asking whether a single item changed, you need to know which items should have arrived. The BagIt specification, published as RFC 8493, deals with exactly that problem. Its package includes a payload directory and at least one manifest listing payload files and their checksums. The manifest pairs a name with a result. You can take that list to the delivery, look for each named file and calculate its checksum again from the contents you actually received. [1]

One file matches its manifest. The deliberately changed file differs. Removing the eight-byte prefix from a separate copy restores the digest recorded in the manifest.
One file matches its manifest. The deliberately changed file differs. Removing the eight-byte prefix from a separate copy restores the digest recorded in the manifest. Original graphic by ICU Message, prepared by Codex.

Primary-source statement · There is an inviting way to see exactly what went wrong in this test case. Take a separate copy of the thirty-seven-byte file, keep the timestamp and final line break, and remove just the word INVALID and the space after it. We recalculated the digest of the remaining twenty-nine bytes. All thirty-two characters now agreed with the published manifest. The other file also has twenty-nine bytes, but a different timestamp and a different digest. The fixture illustrates what an inspector can detect. Removing words from an unknown archival record would require much better evidence than this exercise supplies. [3]

Primary-source statement · The specification gives the distinction useful names. Completeness asks whether the required parts of the bag are there, including the payload described by its manifests. Validity requires completeness and successful verification of the checksums. There are finer details for files describing the bag itself, including optional tag manifests. But the everyday question is surprisingly modest. Could the recipient locate what the sender listed, and did the verification calculation agree when the recipient ran it? Neither step requires the recipient to recognize the prose. [1]

Primary-source statement · At the scale of a national archive, those questions keep coming back. The U.S. National Archives’ digital preservation strategy for 2022–2026 describes generating fixity information for files that arrive in its digital object repositories without it. The strategy also calls for an annual sample audit of fixity information for born-digital records and for repair or replacement when there are problems. Those are tasks in a published strategy. Its language about a sample does not establish that every file in custody passes a fresh annual inspection. [2]

Nor could a successful comparison answer every question an archive might ask. If a typist made a mistake before the first checksum was calculated, a perfectly faithful copy would carry the same mistake into the future. An archivist still needs a trustworthy account of where the material came from and which version the sender intended to preserve. A storage check can reproduce a result from particular bytes. It cannot interview the person who chose them or establish that the events described really happened. [1] [2]

BagIt also provides a quick inventory called Payload-Oxum. It records the total number of payload bytes and the number of payload files. In the Library’s example the two delivered files together occupy sixty-six bytes. The reconstructed pair would occupy fifty-eight. In both cases the number of files is two. A package could just as easily contain a change that preserved both the count and the total size. The specification describes the quick count as an aid to detecting incomplete deliveries. It still calls for verifying checksums before a recipient declares the entire package valid. [1] [3]

Primary-source statement · Physical media introduce another kind of decision. The National Archives strategy describes copying content from incoming physical media and using write blockers where appropriate to avoid accidentally changing the material. It calls for recopying records retained on media to tested and verified new media before the old media reach ten years of age. The original bit pattern can be preserved through that move even though the thing a person holds in a hand has changed. That is what makes a retained verification record so valuable. Years later it can connect the material on two objects that no longer look alike. [2]

The Library’s deliberately imperfect package belongs to an older version of BagIt and uses MD5. RFC 8493 likewise uses MD5 in a short printed example while identifying a different recommended algorithm. There is no reason to mistake this museum piece for a prescription for a new archive. Its virtue is that the materials are small enough to inspect in full. Two files arrived. Both are legible, both have names on the list, and exactly one matches the record under the name it bears. That last distinction is the part that a future reader will be glad somebody bothered to write down. [1] [3]

Reporting note. RFC 8493 defines complete and valid. The National Archives describes its own preservation strategy. ICU recalculated both original MD5 results for the Library of Congress test fixture and the separate reconstructed copy. The fixture is a test case, not a claim of damage to a collection.

Sources & context · 3 references

1. RFC 8493: The BagIt File Packaging Format (V1.0) · BagIt specification authors. RFC 8493 defines complete and valid. The National Archives describes its own preservation strategy. ICU recalculated both original MD5 results for the Library of Congress test fixture and the separate reconstructed copy. The fixture is a test case, not a claim of damage to a collection. BagIt specification authors; retained primary document.

2. Digital Preservation Strategy 2022–2026 · US National Archives. RFC 8493 defines complete and valid. The National Archives describes its own preservation strategy. ICU recalculated both original MD5 results for the Library of Congress test fixture and the separate reconstructed copy. The fixture is a test case, not a claim of damage to a collection. US National Archives; retained primary document.

3. Library of Congress BagIt conformance suite: corrupt data file, revision 43bcbdf · Library of Congress. RFC 8493 defines complete and valid. The National Archives describes its own preservation strategy. ICU recalculated both original MD5 results for the Library of Congress test fixture and the separate reconstructed copy. The fixture is a test case, not a claim of damage to a collection. Library of Congress; retained primary document.

Corrections

No corrections recorded.

Report an error