BLACK LABELAcademy
← Our Failures

'Done' means deployed and re-runnably proven, not coded

intermediate6 min read · updated 2026-06-20

Market & numbers — every figure sourced

post_deploy_smoke_test_runtime60 secondsest: Order-of-magnitude from cited smoke-testing guidance that production smoke checks are fast read-only sanity checks answering 'is it working' in seconds, not minutes
regression_risk_of_deploying_stale_dir1 incidentsest: BLA internal: one observed near-miss where a stale local _deploy directory containing fabricated metrics would have overwritten an already-truthful live site if deployed unverified

'Done' means deployed and re-runnably proven, not coded

A task is not finished when the code is correct. It is not finished when the diff is merged. It is finished when the thing the user actually touches is live, and you have read it back from the live surface and confirmed it does what you claimed. Anything short of that is a story you are telling yourself.

The cheapest way to close this gap is also the fastest: a read-only check against the live artifact that runs in about 60 seconds. The most expensive way to learn the lesson is to deploy a local directory you assumed was current and find out it was 1 regression away from overwriting a correct production state with a fabricated one.

What we tried

We had a local deploy directory — the staging folder a deploy script reads from and pushes to the live host. The plan was the obvious one: "the site needs an update, deploy the local dir." On paper this is exactly what deploy directories are for.

We trusted two things without checking either: that the local directory reflected the current intended state, and that "deploy" would move us forward. Both felt safe because the deploy tooling was authenticated and the command was one line.

What broke

The local deploy directory was stale and fabricated. It still contained old, made-up trading performance numbers — a large fake P&L and an invented win rate — that had been scrubbed from the truth long ago. Meanwhile the live site was already truthful: someone had corrected it directly on the production surface, and that correction never flowed back into the local dir.

So the actual states were inverted from our mental model:

Deploying the local dir would not have been an update. It would have been a regression that re-introduced fabricated numbers over a page that was already honest. "Deploy the latest" would have shipped a lie, confidently, in one command — and we'd have called it done.

Two failures stacked here:

This is the same family of bug as a stale installed binary, but one layer out: there, the source was right and the installed artifact was old; here, the live artifact was right and the staging artifact was old. In both cases the only cure is to verify the thing that actually serves users, not the thing that's convenient to look at.

The fix

Redefine "done" so it is impossible to satisfy without touching the live surface. Concretely:

Apply it

Sources

© 2026 Black Label · Education, not financial or legal advice. Every number is sourced or labeled an estimate. Subscribe for $30/month · BlackLabel Tech network

Questions, answered

When is a software task actually done?

Not when the code is correct or the diff is merged. A task is finished when the thing the user actually touches is live, and you have read it back from the live surface and confirmed it does what you claimed. Coded, shipped and proven are three distinct states, and done is the third.

Why check the live site before deploying a local folder?

A local deploy directory is a claim about production, not production. In this case the local folder still held old fabricated trading numbers while the live site had already been corrected, so deploying it would have been a regression. Fetching live first shows whether it is already correct or newer than your local copy.

What is a post-deploy smoke test?

It is a fast, read-only sanity check that the deployed thing serves the expected content and returns a healthy status. The lesson suggests encoding it as a re-runnable command, for example curl the live URL, assert the truthful value is present and the fabricated value absent, and assert the health endpoint returns 200.

What does build once, deploy many mean?

A deploy directory is only trustworthy if it was generated now from a known-good source by a repeatable build, not edited in place over time. Building once and promoting that same artifact means production is exactly what you validated, with no drift between what you tested and what ships.