An editor can approve a paragraph on Monday and see the same paragraph under a different headline on Tuesday. The words in the paragraph are unchanged, but the headline may now make a stronger claim. The same problem arises when an article moves to a different address or the byline describes the author differently. What exactly did the editor review? In our Engineering publication build, the comparison covers the article and its author profile. We tested what happens when either changes, and what happens when we move an otherwise unchanged article from draft to published.
Give review a specific subject
A fingerprint is a compact way to compare the structured content supplied for review with the content prepared for publication. In this design, the comparison includes more than the prose. A headline sets expectations before someone reads the piece. A description can appear in a listing and reach a reader who never opens the article. An address identifies the page someone will share. Publication and update dates help readers judge when the account was written or revised. Those details can change what a reader takes from the piece even if its main argument stays the same.
We exercised these cases by changing one aspect of an approved test article at a time while leaving its recorded review in place. An edit to the body, title, description, page address, or update date each produced the mismatch error. A separate case kept the article as it was and changed the role in the author profile. It produced the same error. The author case is particularly useful for thinking about the review boundary. An article can present the same words under a different description of the person speaking. A comparison limited to the body would have nothing to compare for that change.
Let the approved copy move through the workflow
We also checked two changes that preserved the fingerprint in a synthetic fixture. Reordering the top-level keys in the article object preserved it. That matters because a program that saves structured content can arrange object keys differently without changing the values the editor reads. A fingerprint of a raw file can react to a change in representation. The comparison here gives the object keys a consistent order before computing the fingerprint. Our fixture exercised that behavior at the top level.
Changing the synthetic fixture from draft to published and adding review bookkeeping also preserved the fingerprint. The test used the same article content and author profile on both sides. With the matching value and the required review entries present, the published fixture passed validation. In a separate case we removed the approval flag and validation rejected the fixture even though the fingerprint still matched. The workflow can therefore carry the same reviewed material into publication while making a separate decision about whether approval has been recorded. Draft and published views can differ. The fingerprint comparison addresses the identity of the included review inputs.
Check the build where the decision matters
A local build fixture supplied an approved article, edited a paragraph, and kept the earlier review record. The build rejected that input. The test then looked for the article at its expected output location and found no page there. That second assertion connects the mismatch to something an editor cares about. A validator returning an error matters at publication time if the build also stops before emitting the edited article. This fixture checked a temporary output location. It tells us nothing about removing a page that is already served from an earlier deployment.
The local Engineering suite passed, and the focused cases isolated which edits produced the mismatch. Those results provide a way to discuss the boundary without treating any one headline, byline, or date as special. They also leave important editorial work in human hands. A matching fingerprint cannot assess whether a claim is fair, identify the person who reviewed it, or show that a deployment serves the expected page. For the last question we would check the live output separately. For the editorial decision, the useful property is narrower: the build can check whether the included publication inputs still match the version associated with the recorded review.
← All engineering articles