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.
A check that sweeps source code with regular expressions is easy to start. Write down what the code should look like, and fail if it differs. But from that moment, the rule lives in two places: in the actual code, and in the check.
When the code changes, the check has to change too. If it doesn't, it goes stale, and adding exceptions to avoid failures makes the exception list grow. The partner message check was like that. There were about twelve messages, but the check looked at only three. A pass didn't mean the whole list was right.
We hit the same limit in August. What we removed then were check files, but we hadn't removed the habit of writing a rule again outside the code. This time, rather than make the checks more accurate, we move the rules to where they belonged.
What the code must uphold, the compiler and the shared lint stop. What the data must uphold, database constraints stop. Scripts stay only for comparing generated files with their source. The shared lint also blocks the app from calling the server directly instead of going through the engine.
Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.
