Technology

Engineering record

VerificationPartly changed

Sorting verification results into three levels

Passing a replay is not proof that a problem can’t happen. We sort verification results into three levels by their evidence.

There's code in many places that guards against an invalid state when one arises. When we asked whether such a state can really occur, we'd been answering that replay passed. But passing replay means we found no problem in the orders we ran. It isn't evidence that the problem can't happen in the orders we didn't run.

Splitting the same “check” into three levels

A is when the compiler or the database blocks the invalid state. B is when it's proved over every run of the model and also matched to the real code. C is when we tested it with replay or by injecting errors. C is important evidence too, but we don't call it evidence that something can't happen.

We also want to look more closely at the gaps in C. With cargo llvm-cov, we find code that replay never passes through. With cargo-mutants, we change the code on purpose and see whether replay notices. We also put cases into replay such as the app being killed, responses arriving late or overlapping, data arriving only in part, and the clock changing. For now we decided to run these checks on every change.

We looked at stronger proof tools too. Verus, Dafny and Lean would need a lot of proof code added to our current engine, so we won't use them this time. We'll look again only for small, pure calculations.

We have to check the cost of checking too

We split two code-mutation jobs into 10 and 6 pieces and ran them at the same time. The Mac's load average climbed to 505, and swap used 9.1 GB of 10.2 GB. We stopped the jobs and got no results. The process meant to check more strongly hit the computer's limit before it produced anything. We have to decide not only which checks to build, but how often we can afford to run them.

Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.