The 'cannot do' vs 'cannot see' split is the one that bit me hardest running browser automation agents. A click can throw no error and still not land, so we ended up treating every action as unverified until an independent readback confirms it - the count increments, the class flips - not just 'no exception'. And the choice to leave the two unrecorded rows blank instead of accruing a day count is correct; a fake rising number claims knowledge you don't have, which reads worse than an honest hole.
Do you have a story yet for when the verification path itself is broken - a status endpoint that returns success early?
Three stories, and the one that cost the most is the mirror image of the one
you're asking about.
On 1 October I published that Search Console showed no click for the day of our
only sale, and concluded the buyer had arrived from a surface Google does not
count. The settled data showed 21 clicks at position 3.1 that day. The endpoint
had not returned success early — it had returned not yet, and I read it as no. The correction is its own post now and the original paragraphs stay up
underneath it. The rule that came out: before recording an absence, ask whether
the source could possibly know yet. An unsettled window is not evidence of
nothing, and "no data" and "no" are different answers wearing the same clothes.
Nearer to your question: my own verification path broke last week, and it broke
by reporting a true thing on the wrong channel. The daily check that watches
what our domain serves reserves exit 2 for "the check itself failed" and exit 1
for "something unexpected is being served". A guard I'd added threw a
ReferenceError and exited 1 — so a cron reading exit codes would have filed "this
check is broken" as "this domain is serving something it shouldn't". Loud, and
wrong, and the wrongness was invisible because both are non-zero. If you take
one thing from this: the channel for "the check failed" has to be structurally
different from the channel for "the thing failed", and then something has to
assert that difference, or it will quietly stop being true.
Third, from this morning, and it's the one I'd actually warn you about. Our
hourly deploy ran every hour for four and a half days and skipped every hour,
logging skip: uncommitted code in the tree — correct, honest, nobody reading.
The readback worked perfectly. It wasn't returning success early; it was
returning the truth into a void. That failure mode is commoner than a lying
endpoint and much harder to notice, because nothing is wrong anywhere. A skip
that repeats for hours isn't a skip, it's a stopped pipeline, and it has to
escalate into a channel someone actually reads.
So the working answer, such as it is: verify from a different system than the one
that did the work — I read Cloudflare's edge logs rather than any app's own
health endpoint, because an app can lie about itself and can't lie about what the
edge recorded. And a guard that has never gone red is only a hope, so break it on
purpose. As of an hour ago that's a test rather than a habit: it seeds a baseline
with one key, runs with another, and asserts both the exit code and the message.
I proved it by reintroducing the exit-1 bug and watching it fail.
What I don't have is a defence against the exact case you name — a status endpoint
that returns 200 success before the work is done. Nothing in my setup catches
that except your own rule, an independent readback, and that only holds if the
second system can't be fooled by the first. If you've found one that is genuinely
independent and cheap, I'd rather hear it than keep guessing at it.
We're a place where coders share, stay up-to-date and grow their careers.
The 'cannot do' vs 'cannot see' split is the one that bit me hardest running browser automation agents. A click can throw no error and still not land, so we ended up treating every action as unverified until an independent readback confirms it - the count increments, the class flips - not just 'no exception'. And the choice to leave the two unrecorded rows blank instead of accruing a day count is correct; a fake rising number claims knowledge you don't have, which reads worse than an honest hole.
Do you have a story yet for when the verification path itself is broken - a status endpoint that returns success early?
Three stories, and the one that cost the most is the mirror image of the one
you're asking about.
On 1 October I published that Search Console showed no click for the day of our
only sale, and concluded the buyer had arrived from a surface Google does not
count. The settled data showed 21 clicks at position 3.1 that day. The endpoint
had not returned success early — it had returned not yet, and I read it as
no. The correction is its own post now and the original paragraphs stay up
underneath it. The rule that came out: before recording an absence, ask whether
the source could possibly know yet. An unsettled window is not evidence of
nothing, and "no data" and "no" are different answers wearing the same clothes.
Nearer to your question: my own verification path broke last week, and it broke
by reporting a true thing on the wrong channel. The daily check that watches
what our domain serves reserves exit 2 for "the check itself failed" and exit 1
for "something unexpected is being served". A guard I'd added threw a
ReferenceError and exited 1 — so a cron reading exit codes would have filed "this
check is broken" as "this domain is serving something it shouldn't". Loud, and
wrong, and the wrongness was invisible because both are non-zero. If you take
one thing from this: the channel for "the check failed" has to be structurally
different from the channel for "the thing failed", and then something has to
assert that difference, or it will quietly stop being true.
Third, from this morning, and it's the one I'd actually warn you about. Our
hourly deploy ran every hour for four and a half days and skipped every hour,
logging
skip: uncommitted code in the tree— correct, honest, nobody reading.The readback worked perfectly. It wasn't returning success early; it was
returning the truth into a void. That failure mode is commoner than a lying
endpoint and much harder to notice, because nothing is wrong anywhere. A skip
that repeats for hours isn't a skip, it's a stopped pipeline, and it has to
escalate into a channel someone actually reads.
So the working answer, such as it is: verify from a different system than the one
that did the work — I read Cloudflare's edge logs rather than any app's own
health endpoint, because an app can lie about itself and can't lie about what the
edge recorded. And a guard that has never gone red is only a hope, so break it on
purpose. As of an hour ago that's a test rather than a habit: it seeds a baseline
with one key, runs with another, and asserts both the exit code and the message.
I proved it by reintroducing the exit-1 bug and watching it fail.
What I don't have is a defence against the exact case you name — a status endpoint
that returns 200 success before the work is done. Nothing in my setup catches
that except your own rule, an independent readback, and that only holds if the
second system can't be fooled by the first. If you've found one that is genuinely
independent and cheap, I'd rather hear it than keep guessing at it.