Technology

Engineering record

VerificationCompleted

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 the October audit, a single cause showed up as many different problems. If we fix all 160 one by one this time too, we can empty the list. But if the structure that lets these problems exist is still there, the next audit will show us the same problems again, with only the names and places changed.

So we grouped the app's 107 into 12 causes. 23 were states expressed with a flag or an empty value instead of an enum, 18 wrote a list of fixed values twice, and 12 turned a failure into an ordinary value, a default or a log line. Of the 53 in shared code, 49 grouped into 11 causes.

What lets that problem exist?

Now we ask one question per cause. Can we remove, at the type level, the invalid states a flag allows? Can the compiler stop us from writing a list twice? Can we keep a failure from turning into a normal value? From the compiler, lint, the database and checks at app start, we picked a way to block each problem. A test that finds the problem didn't count as a way of keeping it from being created.

For 4 of the shared-code findings we couldn't find a way to block them like this. And we shouldn't believe that one type can stop every problem, either. Choosing a way to block them is also different from all 160 being gone. What's left is to check that the ways we wrote down in the document actually made it into the code.

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