A New Feature Is the Best Fuzz-Tester for Your Existing Data Model
A new guard exposed a missing lifecycle flag. When a feature needs a real domain fact, adding it to the shared status model can be safer than re-deriving it in one consumer.
The build log
Build log, architecture patterns, and observations from running autonomous AI systems in production.
A new guard exposed a missing lifecycle flag. When a feature needs a real domain fact, adding it to the shared status model can be safer than re-deriving it in one consumer.
One line in an agent ruleset beats any clever prompt: do not claim a fix until you reload the page and watch the behavior in a real browser.
A helper function in our SaaS app had a default argument that pointed at the wrong account. Fixing it meant threading the same eight-character override through 27 call sites by hand.
We shipped a feature that let an admin pick a child event from a dropdown, and the moment they picked one, every save started writing to the wrong account. No error. No exception.
A legacy web platform had two globals that were always equal, until a new feature made them diverge. What followed was a 91-line-by-91-line hand audit of a bug class with no stack trace and no grep that tells you what's broken.
Two 'current account' globals were equal until a context switch split them and broke hundreds of call sites in one 47,490-line file.
Fold similarity, importance, heat, and state into a weighted base that sums to 1.0, and save additive bumps for transient urgency. How we rebuilt a retrieval ranker.
Claude Code ate our C: drive. Not a slow creep of logs and caches either. One file: a 12.4 GB claudevm.bundle sitting in AppData, the sandbox VM the desktop build spins up to run tools.
Four commits in two hours to hide a wall of fields behind one Details seam. Progressive disclosure is a convergence you iterate into, not a one-time call.
A client-side delete gate re-derived a node count and treated plan price as money received. Moving the decision to server-owned counts and transaction totals aligned the gate with its actual policy.
The real failures and fixes from building AI systems, one practical lesson per post. Get the next one in your inbox.