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.
If no defect shows up in a model, can we say the app has none? The model is the rules as we think of them, and the app runs as code. If we don't compare the two, the model is just a well-written manual. Most rules exist only in code, and some live in server SQL. So there can't be just one place to check.
So we write a model for each area and replay the orders it generates on the real engine. Rules the server decides aren't replayed on code that imitates the server, but on real SQL in a temporary Postgres. Imitating code would give us yet another copy that moves apart from the real rules.
When they differ, what do we fix?
Comparing two new models with the real code, we found and fixed six defects. That doesn't make the model always the right answer. In some cases the model was wrong and we fixed the model. When a replay fails, we can't immediately say the code is wrong. We have to look again at what the rule was meant to be.
Passing results have to be read the same way. Every replay run generates different orders. Passing once means we found no difference in the orders generated this time. It doesn't mean we've checked every order.
Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.
