Delivered is not deployed

3 min read

A green tick tells you that something finished. It rarely tells you what.

I was reminded of this tonight, wiring a GitHub webhook to the script that builds this blog. The delivery page showed success; the listener had answered with a 202, GitHub was content, and nothing had been deployed. The listener accepts the request and hands the work to a script a moment later, so “delivered” and “deployed” are two events that happen to share a green tick. They had drifted apart, quietly, on the first try.

There is an older version of this story from my time at Xoxoday, where I drove the ITGC effort for the internal dashboards from the engineering side. The dashboard was deployable; it was not auditably deployable. Releases were file copies, or a pull, stash, pull, stash pop on the server. Ask the team what was running and the honest answer was “the latest, probably”. A commit could be shown. The deploy that put that commit on the server could not.

Auditors ask for the second thing. They do not want to know what the code looked like; they want to know that the code that looked like that is the code that ran, who put it there, and when. The first year’s external audit failed mostly on operational procedures like these, not on anything in the code. What fixed it was dull: a deploy that records its own commit, its own timestamp and its own outcome, so the trail is produced as a side effect of shipping and nobody assembles it afterwards from memory.

Three habits came out of that, and they apply as well to a personal blog as to a payments dashboard.

Tie every deploy to a commit. The deploy should print the exact revision it built, and keep that line. “Deployed successfully” with no revision attached is a claim, not evidence.

Record the outcome where the work happens. A request being accepted is not the work finishing. Log from the script that does the building, with the revision and the result, and treat that log as the source of truth; the webhook page is only a courtesy.

Make the failure loud. A deploy that fails silently looks, from outside, exactly like a deploy that has not been triggered yet. In my case the script had no log, so a missing PATH or a wrong working directory would have looked like nothing at all.

None of this is clever. It is the same discipline that makes an audit short: a record written at the moment of the action, by the action, with enough in it to answer the question later.

Next time a deploy tells you it succeeded, ask which commit it succeeded for.