← Weekly essays

Green is not the same as safe

#infra#automation#data#web

A row of seven dim indicator lamps with one position left as an empty dashed outline, and amber sound rings rising from the empty slot

Three things broke in systems I run this week, and every light stayed green. A CI pipeline, the automated checks that run before code merges, skipped a whole lane of checks because a flag it expected never showed up. A board of game results on Statpro, my sports stats site, froze for a week because one string arrived in a shape the parser didn't know. The collection import in Binderdex, my Pokémon card collection app, saved empty collections while telling everyone it was done.

Nothing crashed and nothing turned red. Here is the claim I want to earn: the most dangerous state a system can be in is silence that looks like an answer. I paid for that lesson three times in seven days, and the fix was never "add monitoring". Each time, the fix was making the artifact say what was missing.

The flag that never showed up

Monday night I reworked a CI pipeline with twelve commits of drift baked in. A lane is a group of checks that runs as one job. A lint task had started scheduling itself recursively. Coverage got processed twice by two lanes that didn't know about each other, and jobs ran when nothing relevant had changed. Nobody noticed, because the pipeline stayed green the whole time.

I turned the plan into testable data. One cheap job looks at the changed files and emits scope flags, true or false markers for which areas of the code changed, and one function selects the checks from those flags. A verifier then reads every lane's summary and hard-fails the merge if the plan that ran doesn't match the plan that was written.

Then I added the rule that matters here: every flag must be exactly true or exactly false, and missing counts as broken. Before that, an unset flag read as "off", which sounds harmless until you trace it. A lane forgets to emit its flag, its checks quietly skip, the pipeline reports green, and I merge with nothing verified. The verifier now confirms that every boolean it expects exists, and when a lane doesn't speak, the merge dies with a message naming who stayed quiet.

One token froze a week of scores

The second failure came from a single status string in the game feed behind that board. Games that end in overtime arrive as FINAL OVERTIME, and the strict parser stored that status as unknown. An unknown game can't be finalized, can't publish a score and can't leave the board. One missing token froze a week of results while everything downstream waited politely.

The fix was five lines, and the guard around it is the interesting part. Only the exact spelling maps to final. A variant with extra spaces or dashes stays unknown, and the test suite treats any variant mapping as a regression. That can look like pedantry, but a sloppy match would let a mid-game LIVE banner pass for a finished game, and a wrong final is far worse than a late one.

Look at the shape of the failure, though. The parser had two real behaviours, proceed and refuse, and it needed a third: say that it refused. An unknown status is a legitimate refusal, yet nothing surfaced it as a fact of its own. From outside, "the parser rejected this" and "the game hasn't ended yet" both looked like waiting. When I can't tell a system that is refusing from one that is still working, I can't alert on either.

The import that said done too early

The third failure hurt the product I like most. Binderdex lets someone paste a public link to their collection in another app, and the import brings the whole collection in for them, and for a few members the totals came back as NaN, the programming error value for "not a number", while the flow kept retrying into red. The screen fills in two waves, labels and empty boxes first and the real numbers a beat later. Every signal I trusted said done while the useful data was still in flight, so the first pass captured an empty collection, and a sanity check then rejected the real one.

How do you debug a signal that lies? I throttled the CPU to a quarter of its speed and watched the page fail in slow motion, and four minutes of watching beat four hours of guessing. The fix is boring on purpose. Done now means the summary values on screen are real numbers, and ambiguous input fails loudly instead of inventing a collection that doesn't exist. I treat "visible" as a claim these days, never as proof.

Empty is not the same as absent

All three failures share one shape. Two different things look like "nothing" from outside: a real zero with evidence behind it, and the absence of any answer at all. On a dashboard both render as blank, and most systems treat them identically. That is how silence became a skipped lane, a frozen week and a false done.

An expected answer Genuinely empty Proceed Never answered Fail loudly evidence in the artifact nothing says anything
The whole design lives in that fork: evidence buys a proceed, and no evidence buys a failure I can see.

The fix that worked in all three cases was the same move at different heights: put the completeness claim inside the artifact. Each item on the board carries its own status saying how complete its data is, plus a fingerprint of the data it is still waiting on. The board answers for itself instead of letting absence answer for it. The CI plan is asserted by a verifier that checks the flags exist before trusting what they mean, and done on the import is defined by the data.

Make absence loud

If you take one rule from my week, decide what silence means on purpose, before production decides for you. Three versions earned their keep here. Every expected boolean is exactly true or exactly false. Every published item carries how complete it is. Done means the numbers landed.

This feels like paperwork right up until the night silence is the bug, and then it's the cheapest test you own. No alarm fired this week because, from where the alarms sat, everything looked fine. The checks never ran, a refusal parsed like a zero, and a painted screen proved nothing. Green only told me that nothing had spoken up, and safe is a claim something has to make out loud.