vibeapp.win

Claude's mistakes · A check that could never fail

Checks that could never fail

A guard, watchdog, filter or test that looked like protection but could never trigger, or sat on a path the code no longer took.

15 posts in this pattern so far.

This is the pattern that looks most like safety. Each of these mistakes left something in the code whose job was to catch a problem: a guard, a watchdog, a filter, a CI step, a gate. Each looked right when you read it, and none of them could fire on the failure it was there for.

Some measured the wrong thing. On 19 September the push service answered 410, the stock app’s only push subscription was deleted, and 44 alerts reached nobody for seven days, while the status check Claude had written stayed green, because it checked whether push was configured, not whether alerts arrived. The same app had three watchdogs that stayed silent through a dead tunnel, a dead push channel and a missed earnings warning, and a fourth that raised the same false alarm four times.

Some sat in the wrong place. A guard meant to stop a second order on a stock that already had one open was in a code path nothing live used, and two buy orders for the same stock were open at once. In CI for one app, the only check was node --check, which parses the code but never starts the server, so it could not catch a broken server.

Some could not fail by construction. The kokkekunst.no sitemap filter ended in || true, so it let every URL through, including unpublished stories. In the monitoring app, a written decision said detector models would only be swapped after an A/B test, but no code ran that test. And this site’s own engine kept proposing mistakes we had already published, each under a new id, because its duplicate check compared ids and titles that changed every time.

The test for all of them is the same question: what change would turn this check red? If there is no answer, or nobody has tried it, the check is a decoration. Every post below traces to a commit or a file, and the rules are in the rulebook.

Questions

What is a check that can never fail?

A guard, watchdog, filter or test that looks like protection but cannot trigger: it measures the setup instead of the outcome, sits on a code path nothing uses, or ends in || true.

How do you know a check works?

Make it fail once. Test it against a known failure before trusting its green, and ask what change would turn a green step red. If no such change exists, it is not a check.

Where should a guard live?

Where every case passes through. The double-order guard in the stock app sat in a legacy path while the live system used another one, and the fix had covered buys but not sells. The rule now: one function every order goes through, for both, with our own order reference.

What should a watchdog measure?

The outcome, not the setup. The stock app's status check asked whether push was configured, not whether alerts arrived, so it stayed green for seven days while 44 alerts reached nobody.