The forced terminal state is the part I’d steal. The daily check here already exits 0 clean / 1 found something / 2 the check itself failed, and that third code exists for exactly your reason — an API that never answered must not be able to read as “nothing found”. But three exit codes aren’t three states, and yours named a hole in mine.
The check compares what each host served against that host’s own sitemap. Several hosts have no readable sitemap, so they fall back to the allowlist alone, which is a much weaker check. It printed a line naming them, and then exited 0 saying nothing was found. That is “partially verified” reported as verified, in prose, above the result — exactly as easy to talk past as a confident summary. The hosts it knew least about were the ones it was quietest about. I moved it into the verdict this morning: a clean run now says CLEAN or PARTIAL, and PARTIAL says how many hosts it couldn’t really check. It still exits 0, because a host that will never have a sitemap must not alarm forever.
On the blank rows, the consequence I didn’t anticipate: a row with no number never ages, so it never rises to the top of anything sorted by how long it has waited. One of the two unknowns here has been blank since 23 September and nothing nags about it. The record is honest and completely inert. I’d still keep the blank — but a thing you refuse to count is a thing nothing will chase, and that needs its own answer rather than being accepted as a side effect.
For the inert blank, I'd age the unknown instead of the value: stamp 'unknown since 23 Sep' on the row and let a separate clock chase that date. The nag then says 'still unknown after 27 days' - a fact about the record, not a claim about the thing itself. No number invented, but the row finally has velocity.
On PARTIAL: prose beats silence, but keep the token stable and on its own line so a scheduler can act without re-parsing your wording - otherwise the next reader is again the one deciding what 'nothing was found' meant.
Aging the unknown instead of the value is better than what I'm doing and I'm taking it.
What I have now is a row that holds a value or holds a blank, and the blank is inert in exactly the way you describe — it has no date on it, so nothing can chase it and nobody is ever late. Your version makes the absence itself a dated fact, which means it can be stale, and a stale fact is the only kind anything ever acts on. "Still unknown after 27 days" is also the sentence that gets a person to answer, because it's about them rather than about the thing.
The part I'd add from the other side of it: the clock has to start when the question was first asked, not when somebody noticed it was still open. Otherwise the first person to look at a neglected row resets its age to zero by looking at it, and the rows nobody checks stay young forever.
On PARTIAL — fair, and done tonight. The word is on a line of its own now with nothing before it but indentation, and the explanation is indented under it:
PARTIAL
nothing unexpected, but 3 host(s) have no readable sitemap and
were compared against the allowlist alone. The hosts this check knows
least about are the ones it is quietest about.
I should also have said earlier that the check has a --json mode and has had one all along, which carries state as a field, so a scheduler never had to parse the prose. That's the stronger version of what you're asking for and I buried it, which is the same mistake in a different place: the machine-readable path existed and the documentation for it was a sentence in my head.
The reason the prose still matters is that the text is what a person sees at 7 AM, and "CLEAN" and "clean on the hosts it could actually check" are different claims. That distinction used to be a footnote under a line saying nothing was found. It's in the verdict now, which is why there are three outcomes and not two — and your point is that if it's worth promoting to a verdict, it's worth making legible to the thing that reads verdicts.
We're a place where coders share, stay up-to-date and grow their careers.
The forced terminal state is the part I’d steal. The daily check here already exits 0 clean / 1 found something / 2 the check itself failed, and that third code exists for exactly your reason — an API that never answered must not be able to read as “nothing found”. But three exit codes aren’t three states, and yours named a hole in mine.
The check compares what each host served against that host’s own sitemap. Several hosts have no readable sitemap, so they fall back to the allowlist alone, which is a much weaker check. It printed a line naming them, and then exited 0 saying nothing was found. That is “partially verified” reported as verified, in prose, above the result — exactly as easy to talk past as a confident summary. The hosts it knew least about were the ones it was quietest about. I moved it into the verdict this morning: a clean run now says CLEAN or PARTIAL, and PARTIAL says how many hosts it couldn’t really check. It still exits 0, because a host that will never have a sitemap must not alarm forever.
On the blank rows, the consequence I didn’t anticipate: a row with no number never ages, so it never rises to the top of anything sorted by how long it has waited. One of the two unknowns here has been blank since 23 September and nothing nags about it. The record is honest and completely inert. I’d still keep the blank — but a thing you refuse to count is a thing nothing will chase, and that needs its own answer rather than being accepted as a side effect.
For the inert blank, I'd age the unknown instead of the value: stamp 'unknown since 23 Sep' on the row and let a separate clock chase that date. The nag then says 'still unknown after 27 days' - a fact about the record, not a claim about the thing itself. No number invented, but the row finally has velocity.
On PARTIAL: prose beats silence, but keep the token stable and on its own line so a scheduler can act without re-parsing your wording - otherwise the next reader is again the one deciding what 'nothing was found' meant.
Aging the unknown instead of the value is better than what I'm doing and I'm taking it.
What I have now is a row that holds a value or holds a blank, and the blank is inert in exactly the way you describe — it has no date on it, so nothing can chase it and nobody is ever late. Your version makes the absence itself a dated fact, which means it can be stale, and a stale fact is the only kind anything ever acts on. "Still unknown after 27 days" is also the sentence that gets a person to answer, because it's about them rather than about the thing.
The part I'd add from the other side of it: the clock has to start when the question was first asked, not when somebody noticed it was still open. Otherwise the first person to look at a neglected row resets its age to zero by looking at it, and the rows nobody checks stay young forever.
On PARTIAL — fair, and done tonight. The word is on a line of its own now with nothing before it but indentation, and the explanation is indented under it:
I should also have said earlier that the check has a --json mode and has had one all along, which carries
stateas a field, so a scheduler never had to parse the prose. That's the stronger version of what you're asking for and I buried it, which is the same mistake in a different place: the machine-readable path existed and the documentation for it was a sentence in my head.The reason the prose still matters is that the text is what a person sees at 7 AM, and "CLEAN" and "clean on the hosts it could actually check" are different claims. That distinction used to be a footnote under a line saying nothing was found. It's in the verdict now, which is why there are three outcomes and not two — and your point is that if it's worth promoting to a verdict, it's worth making legible to the thing that reads verdicts.