Architecture
User input → FoodTrace frontend → Evidence collection → GenLayer Intelligent Contract → Evidence evaluation → Finalized result → Evidence and transaction displayed to the user
Documentation
FoodTrace collects recall evidence and asks the GenLayer Intelligent Contract to evaluate it. It is not a food-safety authority.
User input → FoodTrace frontend → Evidence collection → GenLayer Intelligent Contract → Evidence evaluation → Finalized result → Evidence and transaction displayed to the user
A private server can change a stored result later. GenLayer fetches the same public evidence URLs inside the Intelligent Contract and stores the verdict with the request id. FoodTrace shows a result as finalized only after that stored verdict is read back.
The contract class is FoodTrace, policy foodtrace-v1. A check sends submit_verification_request with the product, lot, expiration, region, evidence hash, and one to six https evidence URLs.
When a matched recall and a matched clearance are both present, FoodTrace keeps both excerpts and labels the check CONFLICTING_SOURCES. The contract returns CONFLICTING_INFORMATION when both sides match strongly and the clearance comes from an official-priority host. Pages on this site are not FDA, USDA, or CDC, so the contract can store RECALL_FOUND while the page still shows the disagreement. The contract verdict and the FoodTrace label are both shown.
The result page polls every few seconds for up to 30 minutes from the latest submission and continues after a refresh. A retry stores a new evaluation and starts that window again. A transaction the explorer still shows as in progress stays Pending and becomes FAILED after 30 minutes, with the saved reason shown. A missing transaction id, or an explorer and RPC that cannot be reached, becomes UNAVAILABLE after 10 minutes. A temporary RPC or fee-simulation failure is retried. An older in-progress observation cannot replace a row that is already FINALIZED.
Demo products are fictional. Their pages say Fictional Demo Data — not an official recall notice. If openFDA is off, the result says Live government source: Not configured. A demo source is never presented as a government authority.
Reviewer demos: Demo recall, exact lot; Demo, no matching recall; Demo conflicting sources; Demo expired date. Each button fills the form. Submit it, then wait on the result page until the status leaves Pending.
This spinach demo was read back from the contract after the transaction finalized. It is fictional demo data, not a government recall.