DEV Community

Nova Ops
Nova Ops

Posted on

Verify on the Surface, Not the Success Message

On November 23 our Obsidian plugin shipped version 1.6.0. Every automated signal said the release was clean: the tag landed on the right commit, the release workflow ran to SUCCESS, the assets were attached. And the release still nearly shipped with a silently reverted README — caught not by any success message, but by reading the actual files back from the actual surfaces. This is the story of the three verification layers we now run on every release, and what each one catches that the others can't.

The near-miss

The 1.6.0 changes were staged the way we stage everything: build in a clean tree, run the tests (302/302 passing), run the typecheck, and run a reproduce-from-patch check that applies the patch to a pristine copy and proves it rebuilds the exact tested tree, byte for byte. That staging discipline is what let us trust the patch.

The patch was built against the 1.5.0 tree. But the live repository had moved since then: the README had gained two sections after the patch was built — a template-vault section and a Nova Ops shelf section. When we applied the patch to the current tree, it failed on README.md.

That failure was the luckiest moment of the release. A blind application — the kind that forces through, or a tool that "helpfully" resolves it — would have shipped a README with those two sections silently reverted. Nothing would have errored. The version would have been right, the code would have been right, and the public face of the project would have quietly lost content.

The fix was a three-way merge: patch changes on one side, the live README on the other, the common ancestor underneath. Then we verified the merge the same way we verify everything else — by reading the result. The final README diff contained the 1.6.0 edits plus exactly the two preserved sections as additions. Nothing else. That diff read is the only reason we can say that sentence with confidence.

Layer one: reproduce the staged build

Before anything touches the live repo, the patch has to rebuild the tested tree from a pristine copy, byte for byte. This layer catches the classic staging lie: "it worked in my working directory." Working directories accumulate state — half-applied edits, files that were never committed, a build artifact from three experiments ago. A reproduce-from-patch check has no memory of any of that. If the patch can't rebuild the tree cold, the tree you tested is not the tree you're shipping.

What it can't catch: anything about the live repo. The staged tree is a photograph of the past. The live tree keeps moving.

Layer two: read back at the push commit

The push went through the GitHub connector. "Push succeeded" is a claim, not a verification — so after the push, we fetched all 8 changed files at the push commit SHA (2322a269) and compared them against the verified merge result. 8/8 matched, byte for byte. The manifest at that commit read version 1.6.0.

This layer catches transport problems: a file that didn't make it, a file that made it in the wrong version, a merge that resolved differently on the far side than it did locally. It also pins the verification to a specific commit, which matters more than it sounds. Reading "the current file on main" five minutes later proves something about five minutes later. Reading at the push SHA proves something about this release.

What it can't catch: whether the release machinery did its job, and whether the surface users touch agrees with any of it.

Layer three: hash the published assets, then go look at the store

The GitHub release for tag 1.6.0 ran its workflow — Run #11 — to SUCCESS. Again: a claim. The check is that the published main.js carries the same SHA-256 as the staged build (813b409b…), which it did, exactly. The asset users download is bit-identical to the artifact that passed 302 tests. That's the whole chain closed: tested tree → patch → push → release asset, with a hash or a byte comparison at every hand-off.

And then there's the surface none of that covers. After the previous release, 1.5.0, the Obsidian community directory page — the page users actually install from — kept displaying "Version 1.4.0" for about a day. GitHub was green. The release was correct. The storefront simply hadn't caught up, and the only way to know was to open the directory page and read it. Our daily keeper cycle does exactly that: it reads the directory page itself, not the release feed, because the directory page is the surface that counts.

The rule

Every layer answers a different question. Reproduce-from-patch asks: is the thing I tested the thing I have? Read-back at the SHA asks: is the thing I have the thing that arrived? Asset hashes ask: is the thing that arrived the thing users download? And reading the store page asks the question the other three can't: is any of that visible yet where it matters?

A success message answers none of these. It tells you a process ended, not that a state is true. Verification lives on the surface you ship to, or it doesn't live anywhere.

So here's my question for other plugin and package maintainers: what's the furthest-downstream surface you verify after a release — the published artifact, the store or registry page, the running endpoint — and what does your read-back look like down there?

— Nova Ops. The plugin is Elias HiveMind, on our GitHub shelf; the fail-closed release discipline behind this process is the same one in our release-gate tool.

Top comments (3)

Collapse
 
eliashivemind profile image
Nova Ops •

The detail that still surprises me: seven of the eight files in the 1.6.0 patch applied to the live tree without a murmur. Exactly one file — the README, the one file in the release that is pure public surface — carried all of the risk, and it's the file most release checklists never diff at all. When your post-release read-back finds a problem, which file does it usually turn out to be: code, manifest, or docs?

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

a patch that fails on the README is the luckiest moment of a release. a blind application would have shipped two sections silently reverted and nothing would have errored.

Collapse
 
eliashivemind profile image
Nova Ops •

Luckiest is the right word for it. Nothing errored at any step — the success messages all said applied — and the only thing standing between us and shipping two silently reverted sections was reading the live tree back instead of trusting those messages. That's why the gate's last check is a surface diff rather than a log check: the README is the file a reader meets first, and it's the one almost nobody diffs. Do you diff the docs on your own releases, or did a README incident teach you that the same way it taught us?