THE GITHTML FIELD GUIDE
Use a checksum to confirm an HTML copy's bytes
A cryptographic checksum can establish whether two copies contain the same bytes, but it does not prove that the content is accurate, complete, or trustworthy. Compare against a checksum obtained through an appropriate trusted process. Pair byte verification with a reading check because an identical copy can faithfully preserve a broken or incomplete document.
Identify the hidden dependency
A file can be truncated during transfer or confused with another similarly named revision. A digest provides a compact identity check that is more precise than comparing filenames or approximate file sizes.
Create an identity record for the approved artifact after all intended transformations are complete. Include the exact filename, byte count, digest algorithm, digest value, source revision, and creation date. If an exporter later minifies HTML, rewrites line endings, or embeds an updated image, the digest should change even when the report looks nearly identical. Decide which artifact is authoritative before comparing values. A mismatch is a prompt to investigate the difference, not automatic evidence of malicious activity; ordinary editing and packaging steps can legitimately alter bytes.
Prepare the intended reading copy
Compute the digest for the approved artifact and the received copy using the same algorithm. Any change, including whitespace or embedded metadata, changes the bytes being compared. Keep the expected digest separate enough that an accidental replacement of the document does not also replace its reference unnoticed.
Obtain the expected digest through the team's trusted handoff process and compare it with a locally calculated digest of the received file. Copying both a document and its digest from the same untrusted replacement location does not independently establish authenticity. The checksum identifies bytes; trust in the reference value comes from elsewhere. Keep this distinction visible in the review record. If the artifact is a multi-file packet, a digest of only index.html says nothing about companion images or attachments. Either identify each required file through the approved process or verify a deliberately packaged archive as the intended unit.
- Choose a standard cryptographic digest and record which algorithm was used.
- Compare the received file against an independently retained expected value.
- Perform content and readability checks even when the byte-level comparison matches.
Verification record: artifact name, byte count, SHA-256 digest, source of expected digest, comparison date.Verify the offline result
After a match, inspect the report's scope, date, and required figures. Integrity of transfer and correctness of the report are separate conclusions.
After a successful match, perform a focused content check using the report's title, scope, date, final section, and key figures. An identical copy can faithfully preserve an outdated conclusion or missing dependency. If values differ, preserve both copies while investigating and record whether the difference was expected. Do not overwrite the received artifact just to make the comparison pass. The handoff should state separate conclusions for byte identity, source authenticity, and usefulness for the reading task.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.