PLANOMADModel checking, code audits and checks in the running app
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.
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.
Passing a replay is not proof that a problem can’t happen. We sort verification results into three levels by their evidence.
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.
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.
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.
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.
Reading the whole app turned up 1,424 findings. Many came from the same problems, and some marked as fixed had not been fixed.
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.