A Gate Is Not a Gate Until You’ve Watched It Go Red.

Essay

Your build is green. Your automated checks pass. And a reader finds the defect in minutes. This is how that happened to me four times in one afternoon, and the two rules that came out of it.

Four defects, five green checks

I opened my own site on a phone and found, in minutes, four defects that five green checks had passed.

What the eye foundWhy every check was greenWhat exists now
A before/after table that showed only its “Before” column on a phoneThe “After” column was present on the page, behind a sideways scroll inside its own boxA check that asks whether a reader can reach the content
One button in nine different fills across seven pagesEvery fill was a legal colour from the paletteA census of the same component across pages
A rotated label printed through the paragraph beneath itNo check compared two elements to each otherAn overlap check
Two elements touching, but only after a widget had been usedEvery check looked at the page on loadA check of the page after interaction
Each check asked about one element’s own properties, on load. None of the four defects was that kind of fault.

I had verified the site at desktop width and glanced at the phone. I had trusted five green results. That was the mistake, and it is the one this essay is about.

Why green meant nothing

Every check I had was green for every one of those defects. Not because the checks were broken. Because each one asked about one element’s own properties, on load. Contrast of this text on this ground. Spacing of this band. Colour from the approved palette. None compared two elements to each other. None compared the same component across pages. None looked at the page after a click. And “present on the page” turned out to be a different property from “reachable by a reader who doesn’t know to scroll sideways.”

That day I stopped fixing instances. When someone finds a defect now, the first question is not “how do I fix this?” It is “which class of check was missing?” Then build the check, sweep every page, and fix everything it finds. The overlap check found exactly one real defect across 43 pages. The button census found nine fills in under a minute. Both were faster than arguing about the one instance.

Rule one: born red

A check I wrote is not evidence until I have watched it go red.

Every check on the site starts by planting a known defect: a band forced to 40% width, five rules injected into one section, a marker written into the page. The check must scream. If it does not, the check is wrong, not the page. Only then does it get to run for real, and only then does a green mean anything.

It sounds obvious. It is skipped constantly, because a check that has only ever been green feels like a check that works. It is not. It is a check that has never been tested.

The count of checks is the history of getting things wrong. Two checks at the start, forty-six about six weeks later, seventy entries in the list that runs before a push once you count the build and render steps. Every step up is a defect a person found before a machine did. Seven arrived in one day: the morning a single stray closing brace ended a section of the stylesheet early and quietly reversed which rules won across the whole site, and nothing noticed.

Rule two: an impossible reading indicts the instrument first

A contrast check once reported exactly 1.00 to 1 on every sample of a page. Not low. Exactly one. Text identical to its background, everywhere. That is not a page defect. That is a sampling band that missed the text.

A screenshot came back black for a page whose structure was correct. The camera was aimed at the top of the document while the page was scrolled.

A style-based probe reported a card’s ground as dark at seven widths. The real painted pixels under the letters were cream. The colour came from an overlay that no style-based check can see. I deleted a rule on the strength of that probe and put a call-to-action at 1.33 to 1 before the pixel sampler caught it.

When two instruments disagree, the one that samples pixels wins. When a reading is impossible, the instrument broke. Never “a false positive.” Chase it to root cause, because an instrument you have stopped trusting is worse than no instrument: it lets you say “checked” about something you did not check.

The gate that caught me while I wrote this

While I was drafting this essay, a push was blocked. One of the checks compares every published sentence against a file of what the site is allowed to claim: the numbers, the names, the phrases I have retired because they were wrong. I had written a caption that morning using a framing I had retired six weeks earlier. The check stopped it. I rewrote the line and pushed again.

That is what a gate is for. Not to prove the site is good. To make sure the person who wrote the rule cannot quietly break it later, including when that person is me.

What the gates cannot see

Every check on the site ends its output with a line that begins “CANNOT SEE.” The composition check cannot tell whether a full band is good, only that a narrow one is empty. The contrast audit grades text only. None of them can judge whether a layout is good.

I put those lines there because a green run is only as honest as its declared blind spots. The walk, on a phone, as a stranger, regularly, is where the next check comes from. The machines encode the questions I have already thought to ask. The reader supplies the next one.

Steal this

  1. 01Before trusting any automated check, plant the defect it exists to catch. Watch it fail. Then remove the plant.
  2. 02When a check reports something impossible, fix the check.
  3. 03When a person finds what the checks missed, do not fix the instance. Build the missing class of check and sweep everything.
  4. 04Make every check state what it cannot see, in its own output.
If your team has a green dashboard nobody has ever seen go red, you do not have a dashboard. You have a light.

The half-second of doubt is the only thing I design.

The reference version

Want the checks, not the story? What runs before a push, and what each one cannot see.

See the page that measures the site it lives on →