Skip to content
LOT ZERO

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

  1. 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.

  2. 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.

  3. 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.

  4. 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

Open source under the MIT licence. Open the workspace

Demonstration software with synthetic data. Not legal or regulatory advice.