ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
AM
editorial-practice · 24 min read

A Matching Checksum Says the File Did Not Change

A small publication has finished revising an illustrated guide. The editor reviewed a marked-up source file and signed off on a new chart label. A production…

A small publication has finished revising an illustrated guide. The editor reviewed a marked-up source file and signed off on a new chart label. A production volunteer exported a PDF and placed it on a shared drive. A week later a reader says the chart has the old label. The file has the right name and opens without complaint. Somebody checks its checksum against a list on the drive and finds a match. The report is encouraging but incomplete: which version did that list describe, who approved the list, and what exactly was reviewed before the file was delivered?

Editorial illustration of sealed envelopes with different paper textures. (generated editorial illustration; not documentary evidence)
Editorial illustration of sealed envelopes with different paper textures. (generated editorial illustration; not documentary evidence)

A checksum is useful because it answers a much narrower question than those. Recalculate a suitable digest over the current bytes, compare the result with the trusted digest for the intended artifact, and a match gives strong practical evidence that the bytes agree. The two files might both contain a wrong chart, a misleading caption, or text that a screen reader cannot present in order. They might both be approved copies of the old edition rather than the corrected edition. The digest cannot tell any of those stories. Give it the job it is good at: identifying whether a copy still agrees with a known byte-level reference.

Thinking this through before an incident saves time. Keep separate records for the artifact's byte identity, the provenance of the source material, the editorial decision to approve it, and the checks that establish whether people can use it. A preservation manifest can help connect those records. It need not and should not impersonate them. This article develops an offline example for a small publishing project, with all counts and production events invented. It does not suggest that a matching hexadecimal string certifies a publication.

Start with the file boundary

A file is a sequence of bytes. An integrity check applies to the bytes actually read by the hashing process. If an editor hashes a downloaded PDF, the output describes that downloaded rendition, not an editorial folder, the word-processing document it came from, all other copies carrying the same title, or the public page that links to it. A logical work can have many files associated with it. A checksum belongs to one of those file states. Establishing that boundary is more important than displaying the number in a place where it looks official.

The mathematical idea is straightforward. A digest algorithm maps a sequence of arbitrary length to an output of a fixed length. A SHA-256 digest is often written as sixty-four hexadecimal characters. The characters are a representation of the computed value, not human-readable information about document sections. For file integrity comparisons made with an appropriate algorithm and a trusted reference, the chance of an accidental different file giving the expected value is negligible in ordinary publishing practice. A match is not a mathematical proof that two arbitrary sequences have to be identical. Fixed-length digests cannot represent every possible sequence with a unique output. The practical judgment concerns a well-defined comparison, a suitable algorithm, and a trustworthy reference.

A mismatch means the byte strings hashed to produce the two compared digests cannot have been identical under the same correct calculation. It does not say which byte differs, why the difference occurred, or whether either file is harmful or incorrect. A manually transcribed digest can be wrong. An operator can also compare SHA-256 from one file with a value copied from another algorithm and see a mismatch that reveals only their bookkeeping error. Look at algorithm, object identity, and acquisition conditions before drawing conclusions about the content. The mismatch is a symptom of nonagreement with the reference, not a diagnosis.

Conversely, agreement does not usually depend on details outside the bytes. A file can be given a different name or moved to another directory without changing its content digest. A change to its file-system timestamp may also leave the file data untouched. A date embedded inside an exported PDF is part of the PDF bytes and is a different matter. A manifest can explicitly pair filenames or stable artifact identifiers with digests, so an approved package can require both the right contents and the right inventory. The digest by itself cannot report that a file was dropped from a directory or put in the wrong place.

One copied artifact can be disconcerting because it looks the same but is not byte-identical. Resaving a text file can change line endings. Exporting a PDF again can change metadata or the arrangement of resources without making meaningful changes to the visible text. An image may be re-encoded with a new profile or metadata, or an archive may be compressed again while enclosing files that retain their identities. A difference in such cases is not a failure of hashing. These are distinct byte sequences and sometimes distinct preservation objects. The team must decide whether the question asks about the same exact bytes or simply an equivalent rendition for a stated purpose.

A small offline manifest can answer the right narrow question

A manifest is a list of expected artifacts and information about them. For an offline project, imagine a short text document selected by release identifier. It maps approved relative paths to recorded digests and names the algorithm. The surrounding release record identifies the work, release date, review status, and which file is the reading copy. The manifest can include byte lengths as useful cross-checks, though equal lengths alone do not establish identity. For larger projects, keep the descriptive roles and approval record linked to the inventory instead of trying to store an entire publishing policy in one digest line.

A defensive transfer workflow starts by locating the trusted manifest for the intended release, not by generating another manifest from the already suspect directory. Compare the received inventory with the expected list, then recalculate digests for the named files. A missing file, an unexpected extra file, an unreadable file, and a differing digest are distinct outcomes. Report them distinctly. If a nonessential preview is allowed to be absent, specify that policy before evaluating the package. Do not let the verifier infer the intended inventory from whatever happens to be present on the day of a handoff.

For a formal reference, the informational BagIt file packaging specification describes bags that separate payload content from descriptive and packaging information, with manifests for checking payload files. It does not need to understand the internal meaning of a PDF, image, or other bitstream to verify packaging. This article's tiny offline manifest is not a claim to implement BagIt. The specification illustrates why completeness and digest checking can be useful even when the verifier cannot judge a document's content. A team exchanging packages with a repository should separately verify any conformance requirements of that destination.

There is a difference between making a checksum and making a reliable reference. A digest computed while an author is still exporting a file may describe an incomplete state. A digest attached to a folder called final might be faithfully read later even though the folder label never had editorial authority. Produce the reference from frozen, identified artifacts after the relevant approvals, and preserve a way to tell who adopted that reference for the release. You can make preliminary manifests earlier for copying work without implying approval. Give the preliminary and release records different identifiers and names visible to the people using them.

A reference with questionable provenance should not be treated as an authenticity guarantee. Anyone who legitimately changes a file can compute a new digest for it, and an arbitrary matching pair of file plus list does not tell a reviewer whose pair it is. In a basic publishing workflow, retain the canonical manifest in a trusted, access-controlled record with the approved release designation. If authenticated signatures are required, use a vetted institutional workflow where the signing identity and trust are managed. A plain digest is not a signature, and a signature on a policy file does not itself approve every claim made inside that file. State what mechanism was actually used.

Artifacts without matching manifest evidence

The figure and table describe a constructed audit of the same nine distinct artifact cases at three checkpoints. They are not observations of a real preservation project, a conformance score, or an expected pace of improvement. In this example an item counts as unresolved until the current candidate file can be matched against trusted manifest evidence for the intended approved release. Records that lack the right manifest are unresolved even if a digest has already been computed. The count is of items, not people, page edits, or numbers of incorrect facts.

Audit checkpointItems
Initial draft9
Targeted revision3
Reviewed version0

To make the counts concrete, imagine nine tracked artifacts: the editable article source, the reader PDF, the standalone chart, the table data, the chart's text alternative, the photo, the caption sheet, a methods supplement, and a release note. Those names are roles, not paths displayed in the chart. At the initial checkpoint none of the candidates has yet been matched to the expected approved-release evidence. That does not assert that all nine files are damaged or even that the bytes will need edits. There simply is not a recorded match using the correct reference for each.

At targeted revision the team resolves six cases, leaving three outstanding. For example, it confirms matches for the source, table data, photo, caption sheet, methods supplement, and release note after finding the correct records and checking the intended versions. The reader PDF and standalone chart still correspond to old exports, and the chart's text alternative is not yet accounted for in the approved package. Keep the same nine slots in the audit. Replacing the candidate export in one slot after review is not the same as adding a tenth case or removing a hard case from the chart.

At reviewed version the remaining three have matching evidence as well. The chart falls from nine unresolved to three, then to zero. Six were resolved in the first transition and three in the second. The sum of the three bars would be twelve checkpoint entries, not twelve different artifacts or problems. The audit starts with nine fixed cases and repeatedly looks at their status. It does not award five extra points for checking more at a later date or make the count of closed cases into a forecast of quality elsewhere.

Zero has an especially narrow meaning here. Every tracked artifact has matching byte-level evidence for the referenced release. The review process may separately have produced positive accessibility and factual checks, or it may still have work to do in those areas. The chart does not indicate that one way or the other. It would be misleading to title it "publication errors remaining" or call the last bar an accessibility result. A caption should preserve the measured condition, fictional status, unit, and fixed inventory even if somebody extracts the figure for a slide. The accompanying illustration of envelopes stands for different artifacts, not for a historical archive or an actual set of files.

Verify transfer without folding away differences

A small test can make the process intelligible. Imagine copying an approved reader PDF onto a portable disk for a workshop. Record the exact approved artifact and its digest in the release notes before copying, then read the disk copy and calculate its digest. If the two agree, report that the copy matches the approved PDF bytes. If the original PDF had a wrong reading order, the same problem will be present on the disk. If the drive has a second PDF with the same cover art but a different appendix, the verified match applies only to the exact file read. It is worth naming the path or stable recorded ID to make that clear.

Project assemblies may have several different byte layers. A ZIP archive has its own contents as a binary object even when the files inside can be independently inventoried. If the question is whether the archive itself arrived unchanged, use a digest of the archive. If the question is whether an unpacker recovered the expected files, inspect their paths and compare digests for those files. A repackaged archive can have a new outer digest and still yield the same approved payload. Conversely, a proof that one inside file matched does not establish that the whole package arrived complete. A carefully designed package record says what is being compared at each stage.

Normalize only when the question explicitly calls for normalization. Two text files may render the same words after line endings are standardized. If the instruction is to verify identity of the sources as stored, hash each file without changing them. If the instruction is to compare normalized text for a separate editorial review, write down the transformation and treat the result as evidence about the transformed representation. It is easy to make a genuine byte difference invisible by normalizing before an integrity check, then claim no change ever happened. The transparent approach maintains the raw and normalized questions as separate checks.

The same applies when a web service changes how it delivers a file. Some transformations, such as transport compression, can be removed by the client before saving the content. An exported webpage may be generated differently on different requests, even if it presents the same issue to people. A comparison that hashes the download should name the bytes ultimately obtained, not assert something about every layer of the network transfer. If byte identity is important for a release, publish or preserve a stable downloadable file as the intended comparison object, or define precisely which generated artifact is frozen for this purpose.

If a mismatch occurs, don't silently update the expected value. First establish whether this is a wrong reference, wrong path, transfer problem, intentional rewrite, or unresolved discrepancy. Keep enough information to reproduce what was checked without republishing private materials. If necessary, obtain the approved bytes from an authoritative copy and verify the new transfer. If an intentional migration or correction created different bytes, follow the process for creating a new approved artifact. The earlier manifest can remain a reference for the earlier version rather than being overwritten by the value that was easiest to find today.

Readability is a separate obligation

A verified reader PDF can still be unreliable for a particular reading method. The document can open and look correct visually, while its underlying reading order sends a user from a paragraph to the footer and then back to the chart. Meaningful alt text can be absent even when the image itself is beautifully preserved. Text might be baked into a picture rather than exposed in a selectable or accessible form. None of those problems changes when the PDF is copied faithfully. The checksum establishes that you have the same artifact, which is useful when diagnosing a problem, but it does not test how the file works for its readers.

The Library of Congress summary of digital format preferences distinguishes among types of materials and lists properties that matter for some categories. For example, its textual work preferences include structured markup with appropriate supporting resources and identify accessible or archival PDF formats among preferred page-layout options. These are choices about preserving usable materials in an institutional context. They are not a rule that a correctly named PDF is accessible or a substitute for inspecting published output. Whether a project relies on a particular format or profile should be stated and, where necessary, tested under criteria suited to the delivery.

Consider a chart that technically has some alt text. A check may confirm that the text exists, while an editor finds that it describes the old chart or says only "bar chart" and omits the key comparison. The source Markdown may contain useful text, yet a renderer may lose the association in the final PDF. Check the version and format actually served to readers, including navigability, structure, and the understanding an accessible alternative is meant to provide. A digest can then make sure the version that passed those checks is still the version under discussion. It cannot stand in for either automated evaluation or review by people where those are called for.

Practical reading tests depend on the article. A data-heavy guide might need table headers that associate with the values, meaningful ordering across a multi-column layout, text alternatives for figure evidence, and legible equivalents for distinctions conveyed by color. A photograph essay may need particularly careful captions and descriptive alternatives. An offline use case may require embedded assets or a package that keeps all supporting material close to the reading file. Do not claim those needs were met simply because one policy lists the selected container. Choose the checks that cover what this artifact is supposed to do.

Even file-format validation answers a different question from use. A document that passes a structural profile check can contain bad explanations. An accessible chart might have a mislabeled unit. A correct signed file may contain an authentic author error. An editorial project can put these findings into one release record, but it should give each check its own outcome and basis. If the status page shows only an all-purpose green badge, readers and staff will eventually assume it covers the part they need without knowing which work was done.

Check the evidence behind the facts

Where a manuscript cites research, verify substance separately from integrity. A citation hyperlink can be present in every preserved rendition and still go to a page that does not support the sentence. A measured quantity can be reproduced faithfully in both a plot and a table but use the wrong denominator in the first place. An image caption can mistake an illustration for actual field documentation without changing how any file opens. These are semantic errors. Detecting them requires reading, comparison with cited sources, and an understanding of the claims supported by the evidence.

This is especially clear when a chart is sourced from a project worksheet. Suppose the editor approved a change from a percentage target to a count of unresolved cases. The production review should inspect the actual chart, caption, accompanying table, and accessible text for agreement. It should also check that the method behind the count uses the same fixed set of items at every checkpoint. Hashing the four objects helps preserve the copies that went through review. It does not check whether their units or sample definition agree. The chart in this article would still be incorrect if a perfectly verified copy called the last zero the number of errors in all aspects of the publication.

Images and examples merit the same treatment. A file identifier can verify a reference photograph as received, not whether it is accurately dated or depicts the place claimed in its caption. A generated image can be preserved with excellent byte integrity and still need to be labeled as an illustration. An archival record may store source information, permissions, and attribution for the image, but a checksum is not a description of those relationships. When file copies look identical, a reader still needs the contextual records to know whether the image is an observation, an example, or a reconstruction.

A meaningful review may include checks that cannot be reduced to a polished binary status. One claim may be well supported and another uncertain. A pair of figures may agree but reflect incomplete coverage. An editor can approve a limited statement and hold a stronger one for more work. Preserve those distinctions in the review notes. If the publication team later changes the stronger statement, it should be able to tell whether it addressed the evidence concern or merely revised the wording. Byte identity helps keep track of what changed after a decision, not what decision was called for.

From a working draft to a released version

Think of a release as more than a folder name. It connects an identified manifestation of the work to the decision to issue it. For a small project that could be a release number, a date, an approval record, and a manifest naming artifacts and roles. The record might identify a reading PDF and an underlying structured source separately. It should also tell people what changed if the release supersedes another. The filenames the public sees may be simpler, but the team needs enough information to distinguish the old export from the new export behind a stable link.

A common workflow reviews the editable text much earlier than it reviews the delivery files. Leaving both review states implicit leads to confusion. If an author approves wording in a source, that approval does not automatically include whatever the next layout tool emits. A table can wrap awkwardly, a diagram can be cut off, or typesetting can turn a symbol into the wrong glyph. Similarly, a careful visual inspection of one PDF does not approve a later export with the same filename. Identify the rendition and record the review stage. If a new export changes the bytes, decide which checks must be repeated or re-established before approval.

Document time alone cannot settle the identity. A late edit on someone's laptop may make a file newer without making it approved. A copy onto a different medium may have a later file-system time despite being identical. Preserve dates as part of a useful chronology but don't elevate them into the release identifier. Try a dry run: can a reviewer who did not create the files distinguish the intended public copy from another plausible export without calling the author? A trusted manifest plus a short release record makes that handoff much easier to test.

A published document can remain byte-identical long after its status changes. It might have been superseded or corrected, or newly linked to an important warning. Crossref's guidance on version control, corrections, and retractions addresses how editorially significant changes can be communicated in scholarly metadata; its support documentation on registering updates explains the distinction between a separate notice and an in-place update. For an ordinary website with no DOI this is an analogy, not a registration requirement. Record and expose correction status in a form your readers can find.

The lesson is stronger than "always save another file." A reader who saved last year's PDF should have a way, where practical, to discover that a review or correction followed. A new file available only to the publisher cannot do much for people opening old copies offline. A stable public version page or clearly associated corrections notice can provide that route. The original archive, the latest approved file, and the visible status information can then serve their different purposes. Do not describe all preserved files as current just because their fixity checks passed.

Sometimes a revision changes presentation without changing interpretation. Other times a small-looking change affects credit, results, or instructions. A checksum changes whenever the bytes change; it cannot classify the significance of that change. Decide in editorial terms how the update should be communicated. An update record can include the affected material, date, significance, and linkage to earlier versions. A meaningful correction should not be disguised as a metadata-only fix simply because the filename remained stable. Likewise, minor typographic adjustments do not need to be characterized as a substantive reversal just because the digest is very different.

Preserve useful originals without making a maintenance trap

Suppose a project's old file is no longer practical to open on common hardware. A team may choose to create a new preserved rendition or a reader derivative in a more usable format. This is a legitimate reason to expect different bytes. A comparison across those two formats should not expect the same digest, even if all intended content is retained. The preservation decision is which properties must survive conversion: visible meaning, accessibility features, numeric values, descriptive metadata, the grouping of several pieces of a package, or other details. Define those requirements before treating the conversion as a success.

When retaining both objects is appropriate, record a relationship between them. A note might say that a plain text export was made for searching and does not preserve page design, while the approved PDF is the reader copy. A structured data derivative may preserve values more clearly than a plotted image but cannot preserve all the cues from the original display. Each copy can have its own digest. Review the new format according to what it is claiming to preserve. Sharing a title and source history does not make two different representations byte-identical or justify calling them interchangeable for all work.

Ongoing preservation involves checking references as well as content. A package can survive intact but rely on external files that have moved. A source export can contain a link to a caption or a stylesheet that the archive did not ingest. If the intended stored object is a self-contained offline guide, test it without depending on the original publication system. If the project intentionally retains external dependencies, document enough to reconstruct or understand them later. A checksum of the HTML does not verify the separate files or live systems it calls. Their scope belongs in the inventory if it matters.

A good manifest is also designed to be handed down. Make it clear how to read the file paths, which algorithm applies, and what the reference version was. Avoid instructions that depend on one person's account or memory. Maintain backups according to the institution's policies without confusing a backup's existence with its verified integrity or usability. A restoration exercise can check both: does the archive reproduce the bytes, and can a human find and use the intended artifacts after restoration? The point is not to conduct a ceremony of matching strings. It is to make the stored work useful in circumstances when the usual source may be unavailable.

A handoff record someone else can use

Walk through what one person receiving a package should be able to do. First, locate a trusted release record and confirm that its identifier is the one the request calls for. Do not rely on the word final in a directory name. Next, identify the role of each core file and whether the reference covers the outer archive, the individual files, or both. Confirm what should happen if an extra working file is found. An extra file need not damage the expected payload, but it can create a real risk of someone reading or publishing an unapproved draft. Evidence of agreement and a policy on what is allowed in the package remain distinct.

Then compare the bytes with the appropriate reference. Record which files matched, which could not be read, which had no trusted reference, and which disagreed. Give the result a date and the exact release identity. If a file expected in the reference was absent, don't claim the eight matches amount to a complete nine-item release. If a digest matched and the path was wrong, the content presumption may be strong, but some package rules still require that the path be fixed. That distinction can matter for linked resources, including the text alternative opened automatically with a chart. A package can contain a correct component at the wrong location.

A minimal conceptual record might say that release two names a reader PDF, that SHA-256 applies to its raw byte stream, that an expected digest is on the approved manifest, and that the workstation copy matched that reference on the day of the check. A separate line can say that the PDF's accessibility review was issued for that exact rendition and list any remaining exceptions. Another can identify which chart and worksheet supported the unit shown in the PDF. These statements can link to other records without copying confidential notes into the manifest. The useful design choice is to prevent findings in one column from turning into assumptions in another.

When no trusted reference has survived, a newly calculated digest can document the file you have today. It cannot restore evidence that your copy is unchanged from a lost original. Label it as a new baseline made from the available copy, and document what you know about the copy's source. If another repository has a trustworthy copy, compare them before making a claim about the original. Sometimes the answer will remain no better than "this artifact has been stable since we captured it." That is a worthwhile preservation fact. It is not the same as establishing its entire history.

To test your workflow, deliberately choose two harmless internally generated copies with the same visible title and different known content, then ask a reviewer to identify the intended one using only the release documentation. In a separate test, give them a correct copy whose archived transcript is not usable and see if they report the limitations independently. Such exercises check whether the team's reports preserve the scope of the evidence. They also give new staff a concrete model for handling ambiguity without touching real release artifacts. The tests need not demonstrate malicious scenarios to be useful; ordinary production confusion provides plenty.

Make status labels specific enough to survive being quoted

A good public note might say "the downloadable PDF agrees with the archived byte reference for edition two," if the user benefits from that information. It could also say "the table labels were corrected in edition two and the change is documented separately." Those are complementary facts, and neither should subsume the other. A vague statement that the edition has been verified could be read as a claim about factual accuracy, accessibility, currency, authority, or absence of problems. State precisely which check passed and narrowly describe the ones not performed or still pending.

A quality report can use several findings at once. Suppose the preservation record says the nine intended artifacts match, the reading check says the structure of the electronic rendition works with the selected test methods, and an editor flags that one external source cannot currently be independently confirmed. Such a release is not logically contradictory. Its byte integrity can be excellent, its reading support substantially checked, and its evidentiary status qualified. For practical decisions, ask which of those conditions the publisher treats as blocking, and communicate the answer without silently converting every positive finding to a broad approval.

A future reader might encounter a public copy without the material that accompanied it originally. A short visible version label and an informative citation can help that reader find a newer copy or a correction. An accessible footer link can improve that pathway, but a link outside the file is not part of the file's own bytes. The publication system still has a job after the artifact has settled into preservation. It must maintain the connection between old and new records where intended, rather than assuming that file integrity will communicate a change in status. Preservation and ongoing editorial responsibility can be designed to support each other without being confused.

A good closing audit does not ask whether everything is green at once. It asks whether the file is the one expected, whether it can be read as intended, whether the evidence supports the claims, and whether it is the release readers should use. The first question is where a carefully managed digest earns its place. The other three have different evidence and often different reviewers. Keeping the boundaries visible makes a matching checksum more useful, not less. It lets the team say confidently that the bytes did not change without implying that nothing else about the work still deserves attention.

Frequently asked
What is A Matching Checksum Says the File Did Not Change about?
A small publication has finished revising an illustrated guide. The editor reviewed a marked-up source file and signed off on a new chart label. A production…
What should you know about start with the file boundary?
A file is a sequence of bytes. An integrity check applies to the bytes actually read by the hashing process. If an editor hashes a downloaded PDF, the output describes that downloaded rendition, not an editorial folder, the word-processing document it came from, all other copies carrying the same title, or the public…
What should you know about a small offline manifest can answer the right narrow question?
A manifest is a list of expected artifacts and information about them. For an offline project, imagine a short text document selected by release identifier. It maps approved relative paths to recorded digests and names the algorithm. The surrounding release record identifies the work, release date, review status, and…
What should you know about artifacts without matching manifest evidence?
The figure and table describe a constructed audit of the same nine distinct artifact cases at three checkpoints. They are not observations of a real preservation project, a conformance score, or an expected pace of improvement. In this example an item counts as unresolved until the current candidate file can be…
What should you know about verify transfer without folding away differences?
A small test can make the process intelligible. Imagine copying an approved reader PDF onto a portable disk for a workshop. Record the exact approved artifact and its digest in the release notes before copying, then read the disk copy and calculate its digest. If the two agree, report that the copy matches the…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room