Technology

Verification

Model checking, code audits and checks in the running app

2026.11

In use

What we check when a model replay fails

When a replay fails, we check whether that sequence can really happen before changing the engine. If it can’t, we fix the model and the replay.

In use

Six problems in an app that had passed every check

Types, lint, generated files and replay checks all passed. Then we tapped through the app by hand and found six problems a person could run into.

Partly 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.

Completed

Grouping 160 audit findings by cause

We found 107 in the app and 53 in shared code. Rather than fixing them one at a time, we first looked at why problems like these can keep happening.

In use

Replaying model sequences on the real engine and SQL

A model can be right while the real code behaves differently. We check the app's rules on the real engine, and the server's rules on real SQL.

In use

Replacing handwritten tests with model-based verification

Handwritten tests cover only the sequences people think of. To find the ones we missed, we replay sequences made by a model on the real code.

2026.10

Partly changed

Replacing check scripts with types and lint rules

In August we removed checks that looked at the shape of the code, but similar scripts came back. We move the rules in those scripts to where they belong.

Completed

A full code audit and a recheck of its fixes

Reading the whole app turned up 1,424 findings. Many came from the same problems, and some marked as fixed had not been fixed.

2026.08

Partly changed

Removing tests that only checked the shape of the code

An app that had passed every check froze on its first screen. The checks looked at the shape of the code, not at how the app behaved.

Figures come from the documents, change history and measurements of the time. Each article counts in its own way, so line counts cannot be compared with one another. Security, customer and business details are left out.