What Is Not Evidence: Seven Times My Agent Loop Was Confidently Wrong

For 264 ticks my production monitor wrote an empty health map and no warning. My agent loop now keeps a written list of things that are not evidence of done, and every entry on it is an incident where a check returned a plausible answer, usually a zero or a green, instead of an error.

From 2026-09-15 to 2026-09-19 the production monitor in my agent loop checked nothing. It ran 264 times. Each time it wrote health: {} to its log and raised no warning. One of the two products it was supposed to watch had launched in that window and was never checked once.

Both sites answered 200 the first time the fixed monitor ran. For the four days before that I have no record either way, and that is the problem.

The loop is a set of headless Claude Code sessions that build and run a few small products on a schedule (I have written about how it decides when to run and how it reviews its own code). Nobody watches it while it works, so its run logs are the only record I read. In late October, prompted by Thorsten Ball's "How I work with Agents", I turned a habit into a written rule. Every "done", "shipped", "live" or "fixed" in a log must carry its proof inline: the command and its quoted output, a live read with a timestamp, or before and after numbers from the same instrument. A claim without proof is written "unverified".

The rule also carries a list of things that are not evidence. I did not make the list up. Each entry is an incident from the loop's own history, and almost all of them have the same shape: something returned a plausible answer when it should have returned an error. Here are seven.

1. An empty result is not "all healthy"

The 264-tick monitor. The heartbeat read the product table in a markdown file and kept only rows whose Stage cell said exactly launched. On 09-15 a commit added a note to that cell ("launched, Stripe live since ..."). The regex matched zero rows from then on. Zero launched products meant zero health checks, and an empty map looked the same as a clean one.

There were two parsers for that table in the same file. An earlier fix had moved one half of the file onto a header-based parser and left the health half on its own regex. So the fix was to delete the second parser, not repair it. The more important change was a third state. When the table cannot be read, the health map now gets an unreadable entry, and that is escalated like a site being down. An honestly empty table (nothing launched yet) stays quiet.

The check that closed it was a negative control. The fixing session renamed the section, then renamed the URL column, ran the heartbeat against a redirected queue so the real one was untouched, and confirmed that both produced the marker and a priority-1 job.

2. "Not on the login page" is not "logged in"

The loop posts to a few sites through a persistent browser profile. Its session check asked one question: is the current URL free of /login? Anything else counted as logged in.

Four sites reported logged in. All four were logged out. One redirected to /magic_links/new. One redirected to /signin, which the pattern missed. One served a logged-out page at /dashboard. One was behind a bot wall. For 36 hours the loop listed these as working channels and told me only two other sites needed a login.

There was a second problem. The posting scripts checked the session result for truthiness, so a logged-out session would not have stopped a post. The fix classifies a page by what is on it (password fields, login buttons, a wider set of auth URLs, bot walls), reports blocked as its own state, and makes the posting scripts compare against the exact string logged-in.

3. A shipped form is not a working form

My personal site has a contact form. It went live with two email transports. The primary was never configured: the project had no environment variables. The fallback was a free form relay that no longer resolved at all (NXDOMAIN). For about 20 hours every submission returned 502, while the page rendered and the button worked.

The fix was to provision a real provider and remove the dead fallback. A status code from my own endpoint only tells me what my code thinks happened, so a 200 would not have been enough either. The session that fixed it sent a real submission to the production endpoint and read the email provider's own API, which reported the message delivered. That is now the rule for any form or API whose job is to cause something somewhere else: check the record or the email it should have produced, not the response.

4. A 404 right after a publish is not a failed publish

This one goes the other way: a false red.

The loop published a small CLI to npm and ran npm view to check. It returned E404. The publish had worked. npm had cached the negative result of the lookup made before publishing. The registry URL, fetched directly, showed the version, its file count and its checksum.

Within the first day, the downloads API returned package ... not found. That string is identical to the one for a name that does not exist. It only meant that no stats day had closed yet. Both errors look like "you published under the wrong name", and acting on either would have meant a second publish of something that was fine.

Package checks prove the files, the bin entry and a clean npx install. They do not run the program. Two defects in that same package were only found by running the built artifact: a bundle with two shebang lines, which exited 1 with no output, and a process.exit() after writing to stdout, which cut a 158 kB piped report off at 64 kB. My rule since then is to install the published tarball into an empty directory and exercise the documented contract, every exit code included, before calling a release done.

5. A traffic total is not visitors

The loop reads Vercel's analytics to decide whether anyone found a product. One experiment had a pass threshold of "at least one human page request with a search-engine referrer".

The loop then split the "human" traffic by network. Over seven days, 140 of one product's 178 human page requests came from hosting providers: Scaleway, Amazon, Level 3, Google, OVH and others. The first rows ever with a www.google.com referrer on the other product came from a Russian cloud provider, landing on a page Google had not indexed. That one row would have passed the experiment.

The split proves less than it seems to. Real people do arrive from datacenter networks through VPNs and relay services, so "datacenter" does not mean "scanner". It only means a total with a large datacenter share is not a number to report on its own. The loop now quotes the split next to the total.

A month later the same instrument broke a different way. Vercel changed how it encodes a request that is not a prefetch: the field that used to read "false" now read an empty string. My server-side filter, is_prefetch_request eq 'false', matched nothing, so every product's human traffic read 0. The instrument did flag it: its status said suspect. But it was not an error, and two runs reported "0 human page requests in 7 days" anyway, before a third grouped the raw rows by that field and found 2,645 of them with the empty value. The filter is now ne 'true', and a missing value still fails the parse. A warning that does not change what the reader concludes is not much better than no warning.

6. One failed check is not an outage

The heartbeat runs on my laptop. On 09-20 it reported a product unreachable, which starts a priority-1 run. The product had been fine. The laptop was asleep. The power log showed that tick ran 28 seconds before the machine woke its network, and one thrown fetch counted as unreachable. The other product, checked a moment later, answered 200.

The fix was one retry, five seconds later, only on a thrown fetch and never on a bad status. A real outage still fails twice and escalates. On 11-17 a variant came back (a single product failing during a wake race) and the heartbeat now re-checks a lone failure after the pass. The same rule applies after a deploy: one failed check right after a push is not "not live". Re-check against a deadline first.

7. A filtered zero is not absence

My shell runs through a token-saving proxy that rewrites command output. It is useful, and it lies in a specific way. A filtered cat returned 73 of a file's 81 lines with no notice. The missing lines included try { return await fn(); } finally { rmdirSync(LOCK) }, which made a correct locking function look like it never ran its callback or released its lock. A filtered rg on a single file printed 0 matches for a pattern on line 5.

Search engines do the same. Checking whether a page is indexed with a site: query, a real empty result page has no result links. A broken extractor also finds no result links. Both read as a confident 0. One engine, reached through a different front end, returned "no results" for path-prefix queries on pages its plain host query listed by name.

The fix is controls and an engine-specific query shape. A shape control: a query that must return results, run before and after the real one, so a throttled session cannot pass as an answer. A negative control: a query that cannot match anything, to confirm that the "no results" wording is the engine's generic empty response. The engine's own words decide, not a count of links; if neither result nor "no results" wording appears, the answer is unreadable, not zero. And for the engine whose path-prefix queries lie, the loop asks the plain host query and filters the result list by path. If the list is cut off before a match appears, the result is recorded as partial, never as zero. Controls only catch a broken instrument; they cannot fix a query form the engine answers wrongly.

The pattern

Not every fix was the same. Delivery checks, running the artifact, a retry and a network split are different tools. But four of the seven (the monitor, the login check, the traffic filter and the filtered zero) share one bug: the instrument had two possible outputs, a value or nothing, and nothing got read as zero, empty, healthy or logged in. For those the fix was a third state for "could not measure", kept apart from "measured zero" where the data is parsed, and made to change the decision rather than sit in a status field. The rate-limit guard in my scheduler had the same bug, where a null window parsed as 0% used.

The other half is what counts as proof. A model's own "done" or "tests pass" is a claim, which is why the loop requires an independent review before a change ships. A green build or a READY deployment means it compiled. A preview URL means it runs somewhere else. The proof is the production flow doing the thing, read from the place where the effect lands: the email provider, the registry, the database row, the raw log.

What the rule costs

It makes run logs longer. A shipped fix now comes with a quoted command, a timestamp and usually a control. It also makes the loop slower to say "done". I have not measured the overhead. What I can count is what the cases above cost without it: four days of an unwatched production site, 36 hours of advertising channels that did not exist, and 20 hours of a contact form that could not deliver a message.

If I were starting again, I would build the third state into every instrument on day one, and I would write the not-evidence list before the first incident instead of after the seventh.