Certainty is the failure signal
This post is part of a series on Sailor Moon S - FrenchName edition. It digs deeper on a topic from It’s 1994 and Sailor Uranus is broken.
On the morning of August 10, before the next piece of work began, I wrote this down for the agent. It was not a reaction to a particular mistake. The same morning it became the first section of the project’s CLAUDE.md (b4597ea):
Any data should come from measurements, NEVER guesses. When you don’t know you measure, when you think you know you measure to check against the measurement, and when you’re sure you don’t have to measure is precisely when you absolutely must measure. We do not compromise: the source of truth is the original code.
The first two clauses are ordinary engineering. The third is the one that matters, and the agent named it better than I did, in the commit that promoted the rule:
The third clause is the one that bites: unmeasured certainty is the failure signal, not the safety signal, because confidence is exactly when the check gets skipped.
Confidence is not evidence
Here is the problem in one sentence: a coding agent writes a confident wrong sentence exactly as fast, and exactly as fluently, as a confident right one. Humans… project differently. Doubt breeds fear so we have a tendency to leak hints: we hedge, we take longer, we say “I think” to shield ourselves. An agent’s prose has the same texture whether it ran the experiment or not. Rafal Strzalinski blogging about his reverse-engineering an Atari game with Claude put it well when he reminded that [“confidence and accuracy are orthogonal properties”] (https://quesma.com/blog/ghidra-mcp-unlimited-lives/)).
Feynman pointed to the same core issue when he famously told Caltech graduates in 1974: “The first principle is that you must not fool yourself—and you are the easiest person to fool” (Cargo Cult Science). An agent fools itself the way we do, by carrying a plausible number forward without re-checking it. It just does it faster and in better prose.
So the rule has to work without anyone being able to tell which statements are shaky. Treat every statement as shaky until a run in this session produced it.
The retraction gallery
The repository keeps its mistakes, and the commit messages that take something back are some of the best reading in it. Four of them follow.
Sidebar: Saturn and her shells. Sailor Saturn is not in this game. She was backported from the 1996 sequel. You summon her by holding L+R while picking Uranus, Neptune or Pluto, and she borrows that character’s slot in the game, which the project calls her shell. Using a shell to inject her character data into has the major benefit of basically keeping th original code intact. Here the important detail is that I she can have 3 different shells… and many of the bugs below exist on one shell and not another (and yes having 3 possible shells was invinting chaos but back then I had no idea how much!)
“~36px for every character.” On 19 July a commit titled “System-wide wiki cross-check” recorded, in passing, that the neutral backdash is “~36px for every character measured” (8e8745d). It went into the special-moves reference and stayed there for weeks. When the agent finally censused all nine characters on the clean ROM, it was 47 to 60 pixels: Uranus 47, Neptune 60, everyone else in between (f3aecad). The correction is generous to its predecessor and exact about what failed:
The instinct behind the old line — distance roughly uniform, duration not — was right; the number was wrong.
Then it does the important thing. A ratio elsewhere on the page (“the GC backdash travels ~2-2.5x the neutral”) had used 36 as its denominator. The commit did not quietly recompute it. It “is withdrawn, not revised”, because the other half had not been re-measured either, “so the honest state is ‘unmeasured’, not a new multiplier.”
The diff that measured the wrong thing. One of Saturn’s projectiles was wrongly drawn as two disconnected pieces, and the agent ran a build-by-build bisection that pointed at version 0.14.8 as the moment it broke. It published that as a finding. Then it ran a control: plain Neptune, no Saturn at all. The control “reproduces the same tile indices, the same palette and the same blank count as the Saturn run”. The metric had been watching the character standing next to the projectile instead of the projectile(a4bb542):
The maintainer had already reproduced the bug on v0.14.6 while the measurement called 0.14.5 and 0.14.6 identical — that contradiction was the first sign the metric was invalid, and it should have stopped the claim before it was written.
That is the human in the loop. I was going through builds trying to understand what went wrong and saw the bug where the numbers said it could not be. The rule that came out of it is in the ROM-hacking skill as RH-18: “A replacement metric must separate a known-good build from a known-bad one before it is believed.”
Five facts corrected in one documentation pass. When the agent started writing automatic checks for the game documentation, each documented table had to be re-derived from the cartridge to write its assertion. Five “facts” died on contact (0d4bbfd): a record that is 7 bytes, not 8; an instruction address that was two bytes late “in four places across three documents”; a jmp that is a jsr; a screen engine with eight screens, not nine; a velocity written as its raw word. The commit’s summary of the second one could be the summary of all five: “A carried-forward claim nobody re-derived.”
Confident about the obstacles, too. Certainty fails in the pessimistic direction as well. Saturn’s nameplate was expected to be expensive, because the notes said the font was loaded per matchup and would be missing letters. Measurements actually found all 26 letters present in every shell’s matchup. The old note had inferred it from “G is in no character’s name”, which the commit calls “a true fact with a false conclusion” (9c16b1e).
Similarly, a “blocker” on Saturn’s voice pitch turned out to be a misread program counter: the two addresses believed to be a shared pitch routine turned out to be computing nothing (92e0cae). Finding that out took having the agents write a disassembler for the sound CPU and validate against a hand-decode first.
A four-session bug
The worst one cost four sessions. When Saturn threw someone, the victim turned into screen-wide fragments of seemingly random sprites. Version 0.14.7 patched the two places that read the thrown-pose table, “on the documented basis that the ROM has exactly two of them” (31c0751).
That was true of the clean ROM. It was false of the ROM we shipped. To give Saturn her own code, the build copies an entire bank of the engine into new space, and the copy was taken before the hook was applied. Scanning the built image found four reads, two hooked and two vanilla. When Saturn was the thrower, her code ran from the copy. Every test had used a vanilla character throwing Saturn, so “the 47-check gate passed on every build carrying the throw corruption” (5b37343).
Two details matter. The bug was pinned “on the maintainer’s repro (Saturn vs Saturn, 6P)”…And it was finally found “by rendering the sprite against a frame-matched vanilla control”, not by any of the numeric instruments that had passed for four sessions. The builder now asserts that no unhooked read is left anywhere in the assembled image.
The ship is sinking as intended
Saturn’s two ground throws were on each other’s buttons, and one of them went the wrong way (which is a known bug in the sequel). I wished to fix it with an input swap: forward and 4 back inputs read the other way around for that throw. Version 0.16.0 instead flipped the direction the victim flies. The victim landed on the correct side, every check passed, and it was wrong in play, because Saturn no longer turned around. I immediately caught it when testing. The fix commit says it plainly: “The gate was ALL PASS on that build, which is the point” (69a8ca1).
A measurement can only check what it measures. The request was about a mechanism, and the checks were about an outcome.
The control needs a control
Note: negative controls. A negative control is a run where the answer must be “no”: the wrong address, the unpatched build, a planted fault. If the check still says “yes”, it was never checking. The project’s doc checker re-runs every table check at the documented address ±1 and ±2, and each one must object (Trap 20). This is basically the project’s implementation of mutation testing.
Negative controls are code, so they can be wrong too. On 10 August, three of them “looked right and tested nothing”. One seeded a CPU flag in code whose very first instruction resets that flag. One planted its fault in an opcode the workload never executes. One was anchored on an address with “zero call sites”. Each would have produced a reassuring result forever. The trap’s conclusion is the next turn of the screw: a control is wrong until it has failed on purpose.
False certainty in the test layer
The same failure shows up in tests, in a quieter form. One one the issues being that Claude is quite amazing at interpreting text and wirting code but I found it had ramarkable difficulties not writing tests that did not lean on its internal wording and names. That might seems harmless… except that it makes human checks virtually impossible without a translation… by a model that might not have all the context. That issue is compounded by the fact end to end tests rely not just on code but on exchanges between subagents and any false certainty from one will cascade as truth.
Two examples. Issue #2, from the cross-model review: the regression suite, “the documented shipping gate”, counted failures, printed them, “then calls emu.stop(0) unconditionally”. The verdict lived in the text; the exit status always said “pass”. And d20ae9a, where the health check grepped for the words “ALL PASS (…)”, but the checker colours its output, so an ANSI escape code sat inside the phrase and the match never fired. The commit message is a confession:
Worth recording that I committed and pushed the previous change with health failing, because I read the commit as done once the push succeeded rather than re-running the gate after wiring it in.
git commitdoes not run health.sh — nothing does but me.
“Done because the push succeeded” is certainty standing in for a measurement. Forty minutes later the gate stopped reading prose and keyed on the checker’s exit code (0763335).
Making “measured” checkable
A rule like this is useless if it is only a mood. What made it work was turning it into properties you can check.
- Every number needs a run from this session. “No number reaches a document, a commit message, a patch or a plan without a run that produced it in that session. Inherited numbers are re-derived, not carried forward.”
- Reports are filed counts. “A subagent’s reported number is a filed count, not a measurement.” That covers issues, wikis and the repo’s own older notes too. Trap 17 shows why: asserts were filed as being 66 were actually 77; dead hash constants filed as being 13 were actually 16. And a report that called a document wrong was fully overturned by reading the ROM. Turns out the document was right.
- Contaminated numbers are discarded, never adjusted. If the tool was broken, the number is gone. Measuring is cheap enough that it’s not worth trying to salvage unreliable data.
- Docs cite their own evidence, explicitly. The backdash correction quotes, for each character, the address and instruction that sets the impulse, so the checker can re-derive the row at will. It is also negative-controlled: “pointing Uranus’s row at Pluto’s handler while keeping her quote turns it red.”
One honest footnote. My own first brief had a section headed “Known anchors (do not re-derive)”. I wrote unmesasured certainty into the project on day one, and the rule I added a month later says the opposite!