Measured, not assumed
Three times this year, a test told us something with total confidence that wasn't true. Each time the output looked like a result. This is what those three taught us about the difference between a measurement and a reading you merely trust.
The write that never arrived
We were testing a mechanic in SWERVE, our browser game, by changing a setting and measuring the result. We multiplied gravity by eight. A half-second fall changed by 0.0000 units. Bit-identical.
The test harness had bundled its code separately for each entry point, and each bundle carried its own private copy of the configuration. The harness was writing to one copy. The game was reading another. A probe had been reporting verdicts for a flag it had never actually set.
Eight times the gravity. The fall changed by 0.0000 units.
The build that lied
Another day, two sessions were building into the same output folder at once. A dead-code check, build, remove a file, build again, compare, said the output had changed. So a 717-line file that nothing imported looked alive.
A control run, two builds with no change, came back identical, which made the bad reading look trustworthy. It was not. The other session had rebuilt in between.
Contention doesn't look like contention. It looks like a result.
Contention doesn't look like contention. It looks like a result.
The feature we switched off
Back in SWERVE, we turned on a feature meant to help the player. On the same seeded run, distance fell from 4,160 units to 919, and the player died at 31 seconds.
It stays off until it earns its way back. Every mechanic has to survive the same seeded run, before and after. "It should help" is a hypothesis. The run is the evidence.
"It should help" is a hypothesis. The run is the evidence.
What we do now
We judge a run by the same count before and after, in the same tree, with nothing failing. We never re-take a snapshot to turn a red check green. We never verify from an output folder another process can write to. And when a mechanic is switched off, the tests that cover it say SKIPPED, out loud, instead of quietly passing.
None of this is clever. It is just refusing to trust a number until we know where it came from, which is, in the end, the same rule as everything else we build.
Refuse to trust a number until you know where it came from.