# The FDA calls. You have 24 hours. How Kiro helped us trace one bad lot of lettuce

> Source: <https://dev.to/vaibhav-jangid/the-fda-calls-you-have-24-hours-how-kiro-helped-us-trace-one-bad-lot-of-lettuce-2n8m>
> Published: 2026-12-01 04:39:00+00:00

**Recommendation:** Scope auditor agents to read-only code access plus your own MCP server, and turn each finding into a bugfix spec whose first task is a test that fails on the old code.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

*This post was written as part of the Kiroween 2026 hackathon.*

When a lot of food goes bad, the FDA can ask a covered firm for an electronic sortable spreadsheet of where it came from and where it went, due within 24 hours. In FDA's own review of three romaine lettuce E. coli outbreaks, that answer took under a day where lot codes were on the product, but from points of sale without lot codes, "identification of the entire supply chain took between 5 to 25 days" (Irvin et al., *Journal of Food Protection*, 2021). The records exist; they are just stuck in EDI files from the 1970s, faxes, spreadsheets and photos of batch cards in a chat group.

So for Kiroween we built **LOT ZERO**: find Patient Zero, trace it to every store, and hand FDA its spreadsheet. I build software inside a food plant, and this is the tool I wanted on the day that call comes. We built most of it with Kiro.

**The honest part:** the first version of LOT ZERO was written with Claude Code, another AI coding tool, from specs and steering files we had drafted for Kiro. Kiro did everything above after that. Every commit made from Kiro's work carries a `Built-with: Kiro CLI` (or `Kiro Web`) trailer, so a script counts Kiro's share from git and from the raw session transcripts, which are all in the repo.

Kiroween's Frankenstein category asks for a chimera of technologies stitched into one app. Food traceability is already one, so we stitched it on purpose:

Everything lands in one GS1 EPCIS 2.0 graph, and a deterministic trace engine walks it backward to the field and forward to every shelf.

On the seeded demo chain, Patient Zero is romaine lot `TLC-ROM-0412`. One click traces it, and one sentence answers first: 30 locations and 25 of 40 stores, through 2 distribution centres, 7 affected lots. The map below stitches the affected links tier by tier, and every link shows the record it came from. One more click produces six files: the FDA sortable spreadsheet (82 rows, every transformation input included) as CSV and XLSX, the same data in FDA's own template, an EPCIS file, and per-store hold lists that tell every distribution centre and store what to pull.

Because it traces lots instead of product names, the lot-level recall covers 2,544 lb at 25 stores instead of 76,704 lb at 40 stores for a SKU and date-range recall: 96.7% less food recalled.

The demo data is synthetic; the Recall Radar's openFDA reports are real. The public demo runs without a model key, so its sample fax uses a bundled, hand-labelled extraction and the agents' narrative comes from templates. The screen says so in both places.

**The read-only auditor.** Our `fda-auditor` custom agent can read code and call our own MCP server, and nothing else. In its first session it ran real traces and found that our FDA sheet silently dropped transform inputs outside the trace: at least 1,040 lb of input lots. No unit test of ours covered it. Every audit after that became a bugfix spec whose first task was a test that fails on the old code; in the core audit, 22 of the 24 such tests failed before the fix, and the other two guard behaviour that must not change.

**Hooks you can trust because you attacked them.** For a long time our golden-file guard never had to block anything, so it proved nothing. We asked Kiro to attack it, and the hook blocked both the write tool and a shell copy. Reading our own transcripts showed the limit too: hooks only see the tools they are attached to. When Kiro wrote files through shell heredocs, the write hooks never fired, so the golden guard now watches the shell as well. One hook was an experiment that failed: Kiro's after-task hook receives no task, so our task ledger is rebuilt from the specs' task lists instead.

**A redesign from a spec.** Late on, reviewers said some screens read like a tool for insiders and the Halloween words needed plain subtitles. We picked a new look, "Stitched Lab", in a style study, and Kiro turned that brief into a spec with 20 requirements: a night-lab palette, a highly legible typeface, plain names first with the Halloween word as a quiet subtitle, one answer sentence above the map, affected links drawn as sutures, and Patient Zero's toe-tag on the landing page. Our `costume-designer` agent, which may only write the UI layer, restyled every page and fixed three review rounds. A separate Kiro session added 75 browser checks, and one of them caught a real defect: a button that moved when the theme changed.

**Kiro Web and Kiro Crew.** We ran four cloud sessions, three of them in parallel; three ended in merged pull requests, including a live end-to-end check of the deployed app in the sandbox's headless browser. The cloud sandbox had limits: its default network blocked the npm registry until the account owner widened it, and our repo's agents could not be called as sub-agents there. In Kiro Crew, our Recall Warden app runs a weekly mock-recall drill. Running it on a live gateway found three real bugs. Then, with the owner approving exports in the dashboard, the full drill ran end to end: a 47-row FDA sheet, 42 EPCIS events, two supplier workers in parallel, and a summary saved to memory.

**What did not work.** Kiro's spec-task runner ran 20 tasks and failed to start 22 times ("child is not ready"). When that happened, Kiro did the tasks in its main session, so we have a per-task trail for only two sessions.

LOT ZERO is demonstration software with synthetic data, not legal or regulatory advice. Recall data comes from the U.S. Food and Drug Administration's openFDA; LOT ZERO is not affiliated with or endorsed by FDA.
