How LOT ZERO works
When a lot of food makes people sick, the records that say where it went arrive as EDI files, faxes, spreadsheets and chat photos. LOT ZERO reads them, joins them into one traceability graph, finds every place the lot reached and writes the file the FDA asks for.
From four formats to one FDA file
Read the formats the supply chain still runs on
An X12 856 advance ship notice is parsed segment by segment. A CSV export has its headers mapped to Key Data Elements, and a person confirms the mapping. A faxed certificate is read by a vision model, or by the bundled sample extraction when no model is configured, and a person confirms every field before it counts. A chat message with a photo of a batch card is read the same way and confirmed field by field.
Stitch them into one EPCIS graph
Every record becomes a Critical Tracking Event (harvest, cool, initial pack, ship, receive, transformation) keyed by its Traceability Lot Code (TLC), with its source format and confidence kept beside it. The same graph exports as GS1 EPCIS 2.0 JSON-LD.
Trace the lot both ways
A deterministic engine walks backward to the TLC Source and forward through every transformation to each location that received the lot, and checks mass balance at each transformation. Models never decide what is affected.
Hand the FDA its spreadsheet
The trace becomes the electronic sortable spreadsheet FSMA 204 asks for, as CSV and XLSX, and the Doom Clock shows how long it took, measured in the browser.
Why 24 hours matters
- Foodborne illness in the US each year
- 48 million ill128,000 hospitalised3,000 deaths
- CDC estimates, published 2011
- FSMA 204 records deadline
- 24 hours
- 21 CFR Part 1 Subpart S: an electronic sortable spreadsheet within 24 hours of an FDA request. Compliance date moved to 20 July 2028.
- Average direct cost of a recall
- about $10 million
- 2010 study for FMI, GMA and GS1 US. Dated: treat it as an order of magnitude.
What is synthetic
Everything in the demo chain is invented: Hollow Creek Salad Co., its farms, cooler, plant, distribution centres and the forty Lantern Market stores, every lot code, every GLN (all start with the unassigned prefix 09999) and every sample file. The records are generated the same way on every visit from one fixed seed. The only real data is on the Recall Radar page, which reads public FDA enforcement reports from openFDA and labels anything cached or bundled.
Built with Kiro
- Specs: fifteen specs (eleven features and four bugfixes) with EARS requirements and a task list each; eight of them were created in Kiro, and requirement IDs appear in test names.
- Steering: seven steering files hold the product rules, the FSMA 204 glossary, the X12 grammar and the interface rules this page follows.
- Hooks: seven agent hooks, among them property tests on parser save, a guard on golden fixtures for both file writes and shell commands, and an accessibility check on components.
- Custom agents: three path-scoped agents (an EDI parser specialist, a read-only FDA auditor and a costume designer for this interface).
- MCP: the
lotzero-mcpserver gives Kiro live access to the trace engine and exports while they are built. - Property-based tests: parsers, the trace engine and the exports are checked with generated inputs; any counterexample the checks find is kept as a regression test.
Open source under the MIT licence. Open the workspace
Demonstration software with synthetic data. Not legal or regulatory advice.