Harleypig

The quality bar

The same gate runs on every change

Quality should not depend on who was at the keyboard, how tired they were, or whether a deadline was close. The way to make it consistent is to make it a gate: a fixed set of checks every change has to pass before it ships, with no exceptions and no “we'll get to it later.”

What every change is checked for

Tested, for success and failure

Anything with real logic ships with tests that cover the path where things go right and the path where they go wrong. A bug fix lands with a test that fails before the fix and passes after it, so the bug stays gone.

Checked by machine first

Every change goes through automated checks for formatting, common mistakes and, where the language supports it, type correctness. That catches a whole class of problems mechanically, the same way every time, before a person ever has to look.

Scanned for security

Security is part of the gate, not a yearly audit. The code, the parts it depends on and its configuration are scanned for known vulnerabilities and leaked secrets, and a finding is dealt with rather than waved through.

Documented as it's built

The documentation is updated in the same change as the behaviour it describes. That is what stops the docs drifting into fiction: a change that alters how something works but not its documentation is not finished.

Reviewed before merge

Nothing merges on autopilot. Each change gets a deliberate review against the standard before it is allowed into the working software, and a change that fails review goes back to be fixed, not argued in.

Built and verified as a whole

The software is confirmed to build and run as a whole, not only in isolated pieces, so a change that passes every other check but breaks the assembled product is caught here rather than by you.

Fail fast, fix at the source. The cheap, fast checks run first, so a small problem is caught early rather than after a lot of wasted effort. When something breaks, the fix goes to the underlying cause, not the symptom, and it lands with a test that keeps it fixed.

One change, followed through

The checks above are not theoretical. Here is one real case, from the moment we noticed a problem to the moment the fix was live, exactly as it happened.

  • What we found. One of our own automated checks exists to keep certain details out of anything sent to a customer. A routine review of that check turned up a narrow gap: one ordinary way of sending a message could slip past it unnoticed.
  • What we did. The gap was reproduced, a fix was written to close it, and a new test was added — one that failed against the old code and passed against the fixed code. The whole test suite, hundreds of checks, ran clean before anything shipped.
  • What it took. Found, fixed, proven and shipped: twenty-seven minutes, with nothing skipped from the checks above because the fix was small — not because the bar moved.

This is the same gate referenced in the path every change travels, and it is applied by the roles whose job is to check the work, not by the ones who built it.