Writing
Notes from building money-handling systems
Bugs I found, how the tests found them, and what I changed.
23 Oct 2026 · 5 min read · #postgres #database #testing #typescript
Every step was correct. The student still got refunded twice.
How a randomized invariant test found a billing bug none of my example tests could, and why the fix needed a lock.