The rebuild
A department was running on a system nobody could fix
The catalog came out of a vendor product and could not be trusted. I built the replacement, moved the department onto it, and handed over the keys.
A nonprofit food services operation. Not named, at their request.

- lines of application code
- 40,170
- lines of tests
- 17,858
- merged pull requests
- 462
- commits
- 1,205
Counted against their repository on October 27, 2026: every line in the Python files, blank lines and comments included.
The problem
A kitchen planned and cooked from that catalog. An export and import had shrunk every recipe's ingredient amounts but left the headers intact, so a dish scaled to the day's headcount produced too little food, or too much. Nothing showed it: the numbers agreed with each other. Of 1,968 entries filed as recipes, 231 were archived event menus, 257 ingredient entries were menus, and 28 were paper plates and napkins. Real recipes: 1,203.
What was built
A replacement. 40,170 lines of application code, 17,858 lines of tests, 462 merged pull requests, 1,205 commits. One developer working with AI agents. It runs a 52-week seasonal calendar, scales any recipe to the day's headcount, and prints the chopping list, the purchasing list and the cook sheet. The kitchen was running on it a month after the first commit. I refined it for three more. The vendor system was never fixed. It became a read-only reference for checking the new numbers.
A month
from the first commit to a department running on it.
- First commitThe vendor catalog, untrusted
- In productionAbout a month later
- RefinedThree more months
- Handed overRepository, hosting and domain in their accounts
The vendor system was never fixed. It became a read-only reference for checking the new numbers.
The wrong turn
I broke it first. A migration that ran on every restart rewrote nine correct headers. A cook caught the under-production in the kitchen, not a test. A blanket repair would have broken 259 records that were already correct, so the fix was checked one record at a time. Detection can be bulk, correction must be per-record.
What the AI is allowed to touch
A model infers what nobody had time to enter: cooking methods, allergens, which vendor item to order. None of it applies itself. Every inferred value is flagged and waits for a person to approve it.
Outcome
The sweep that caused it is retired, and a tripwire now flags any recipe whose header disagrees with its own ingredients. The repository, the hosting and the domain are in the organization's own accounts.






