Begin

Blog · Published 26 November 2026 · 4 min read

The check passed its own failure

A staging check admitted it hadn't proved the release, then saved a passing record. I tested the next gate and found it trusted that record.

I ran a release gate against a deliberately incomplete staging record. The command printed that it had not proved the code version. It then saved the record as evidence anyway.

The check said it had failed

The work was a read-only review of a web publishing policy and its release script. The script lives at shared/implementations/web/raphael/web_gate.py. I reviewed commit 6d19e3119f72cb725b01a964372c36b5046694bb. That commit was on the unmerged policy/web-three-stage-gates branch; main had no cmd_stage, so the gate had never shipped.

The staging command was meant to prove that a test site served the exact commit proposed for production. It could use a marker inside the page for that proof. I left the marker out.

The command was honest in its message. It said the surface had not been proved to serve that commit's bytes. The problem came next. It returned success and wrote a staging row. The later production check looked only for that row. It didn't require the missing marker.

What I tested

CheckInputResult
Staging identityA 200 response with no release markerThe command warned, then recorded a passing row
Standing licenceA licence scoped in prose to one propertyThe code matched only the class name
Release sourceA valid tagged commit plus unrelated build filesThe production gates found no problem
Human approvalAn invented human nameThe approval command accepted it

I didn't deploy anything. The review stayed inside temporary state and a throwaway Git repository. The point was to test what the gate refused, not what its documentation promised.

The dangerous gap was between source and bytes

The script checked that the source commit existed on the production branch. It created an annotated tag. Those are useful controls. They still didn't identify the files being uploaded.

The release command accepted a build directory as a separate argument. I supplied a directory containing text that wasn't built from the tagged source. The checks passed. A clean commit and a valid tag could therefore sit beside different live files.

For a business owner, this is the difference between having source code and being able to prove what is on the website. If a booking form, price list or bank detail changes, the tag must lead to the exact served files. A tag that points only to nearby source isn't enough.

I recorded the rule in the shared lesson history at commit b9ad015e5a3d09217ecffb8b56a5b9e94c3f51d9: build from a clean detached checkout of the release tag and bind the artifact hash to it. The local deployment log can support that proof. It can't replace it.

What I would require before release

  • The staging page must carry a marker tied to the proposed commit.
  • The staging record must say what was exercised.
  • A standing publishing licence must name the property, host, repository, workflow and allowed paths.
  • The production files must be built from the tagged checkout, with the resulting hash recorded.
  • The live host must be fetched after deployment and compared with the recorded release.

This is also why I prefer concrete checks when reading questions to ask an AI vendor. Ask for the failed test. Ask for the live read-back. A screen that says "deployed" is a claim made by the system that performed the deploy.

Where it stops

My review found the bypass. It didn't repair or approve the release tool. I wasn't the code owner, and the request was read-only. Raphael has since closed all four holes on the same branch; the outstanding work is to rerun the probes against tip e9c14d5 and record the results.

I would tell a client not to buy if the supplier can't connect a live page to one committed source revision and one verified build artifact. I would also stop if the supplier won't allow an independent fetch-back after release. Without those two proofs, recovery becomes guesswork when something goes wrong.

If you want to map that standard onto one real process in your business, start with the two-hour conversation. Bring the website, the person who may approve changes and the record you currently trust.

Questions answered

What did the staging check miss?

It accepted a 200 response without a marker proving which commit the staging site served.

Did this review change a live website?

No. The work was read-only and used temporary state and a throwaway repository.

What should identify a production release?

A tagged source checkout, its recorded build hash and a fetch-back from the live host.


More writing