Insights
Field notes from the work — operator-level writing on the systems, decisions, and engineering trade-offs behind our ventures.
-
The NULL Trap in Postgres Idempotency Locks
A Postgres
UNIQUEconstraint with a nullable key column silently lets duplicate idempotency rows through, becauseNULLis never equal toNULL. The fix is an empty-string sentinel. -
Your Serverless Quota Check Has a Race Condition. Postgres Already Has the Fix.
Two concurrent requests, one quota, and the bug that lets a paying user end up at 101 of 100. The fix is one line of Postgres — no Redis, no distributed locks, no retry storms.
-
From Chaotic Kittens to a Coordinated Squad: How We Cut Our AI Agent Squad in Half
Six specialist agents became three, output quality went up, and compute costs went down. The lessons on context bloat, role overlap, and when to stop adding voices to the manager's head.