Foodline AI
Security & Safety

Security, controls and FSMA 204 record-keeping, built so the audit is the easy part

Foodline AI checks every user's access twice, in the application and again in the database, and lets WorkOS handle sign-in, MFA and SSO. FSMA 204 key data elements are captured at receiving, recall drills take minutes, and every sub-processor holding customer data is SOC 2 Type II attested; Foodline AI's own SOC 2 examination is the next milestone.

What is a recall drill?

A recall drill is a rehearsal of a product recall: trace a lot backward to its supplier and forward to every customer who received it, before a real recall happens.

What is FSMA 204?

FSMA 204 is the FDA Food Traceability Rule. It requires businesses that handle foods on the Food Traceability List to keep key data elements for critical tracking events and provide records to FDA within 24 hours. FDA won't enforce FSMA 204 before July 20, 2028.

The architecture, the controls, the certification roadmap and the food-safety record-keeping behind Foodline AI. Designed on the assumption that it would be audited, by a partner, by an insurer, and by the FDA.

2 layers

Access is enforced independently in the application and again in the database. A bug in one does not become a breach.

Nothing silent

Posted invoices, inventory movements and price changes cannot be edited. Corrections are linked reversals, on the record.

Human gates

No automation moves money or stock without a named person approving it. That is a product rule, not a setting.

1,925

Automated runs a month, none unattended on money or stock.

Defence in depth

The six layers

Most ERP breaches are not exotic. They are a permission check that lived in only one place, a credential that outlived its owner, or an edit nobody could see afterwards. Our model is built against those three failure modes specifically.

IdentityWorkOSSOC 2 Type II

Proves who the user is. Owns credentials, MFA, session lifetime, device trust, SSO federation and lockout. Foodline AI never sees or stores a password.

ApplicationFoodline AI RBACLive

Decides what that identity may do. Role, tenant and module scope are re-evaluated on every request. Financial and margin fields are filtered before they reach a response body.

AI governanceCopilot and RoutinesLive

Constrains what automation may do. The AI inherits the user's scope, never more, and is blocked from posting money or stock without a human approval. Every tool call is logged.

DataSupabase Postgres + RLSSOC 2 + ISO 27001

Enforces the same rules a second time, at the row. Tenant isolation lives here, so it survives a mistake in the layers above. Posted records are immutable by design.

InfrastructureManaged cloudLive

Encryption at rest and in transit, DDoS protection at the edge, automated backups, point-in-time recovery, continuous patching.

Food safetyTraceability and receivingLive

Lot genealogy, FEFO enforcement, catch weights, temperature checks at receiving, recall drills and FSMA 204 key data elements captured at the moment of receiving.

The one idea worth taking away: A user's permission is checked twice, by two different systems, on two different technologies. An application bug, a mistaken deploy or a compromised API key does not hand over the database, because the database is independently enforcing who may read which row.
AI governance

Nothing that moves money or stock runs unattended.

Published in-product as one of four Trust Rules, not marketing copy, a constraint in the system. Every routine declares its trigger, its output and the named role who approves it.

TriggerOutputApprover
Any financial or inventory movementDraft held in approval queueNamed role with clearance
Lot approaching expiry windowClearance plan with promo draftsBuyer
Stock needs replenishingPurchase order draftsBuyer
Orders ready for deliveryDelivery route plan draftDispatcher
Food safety

The layer generic ERPs do not have.

Lot genealogy, FEFO enforcement, catch weights, temperature checks at receiving, recall drills and FSMA 204 key data elements captured at the moment of receiving, not reconstructed afterwards.

FSMA 204 traceability

Key data elements captured at receiving for every critical tracking event. One-click trace-forward and trace-back across the full lot genealogy. FSMA 204 traceability software

Temperature at receiving

Product temperature is recorded when it is received, as part of the receiving record.

Recall drills

Rehearse a recall in minutes, not days. The system knows which lots went to which customers on which routes, with proof of delivery attached.

Catch weights

Variable-weight items tracked at the unit level. No more rounding errors between what was ordered, what was picked and what was invoiced.

Certification roadmap

Where we are, and where we are going.

Every sub-processor that holds customer data is SOC 2 Type II attested today. Foodline AI's own SOC 2 examination is the next milestone, with a Type I available sooner as an interim artifact.

Live now

  • WorkOS authentication with MFA and SSO
  • Row-level security on every table
  • Immutable posted records
  • AI approval gates on every routine
  • FSMA 204 traceability and recall drills
  • Temperature checks at receiving

In progress

  • Production Supabase Postgres migration with validated RLS
  • Secrets consolidation and rotation
  • Rate limiting on all public endpoints
  • Dependency and secret scanning in CI

Next milestone

  • SOC 2 Type I examination
  • Penetration test by independent vendor
  • SCIM directory sync for enterprise customers

Roadmap

  • SOC 2 Type II examination
  • ISO 27001 certification
  • Single-tenant deployment option
  • HIPAA BAA for healthcare foodservice
Migration

Three to four days if the data is clean.

We rehearse before committing. The legacy system stays available throughout. Cutover is gated on validation, not a calendar date.

PhaseDurationDisruption
Extract — pull data from existing ERP3-4 days (clean data)None, read-only
Convert — clean and reformat into Foodline AI schema4-5 days if neededNone, parallel process
Create users — set up accounts, pilot-ready1 dayNone
Pilot — small group runs both systems1-2 weeksMinimal, dual-run
Cutover — full switch, gated on validation1 dayPlanned window
Migration is included. Every Foodline AI subscription includes it. Distributors on other ERPs can also hire Foodline AI's data team for migration as a standalone service. If a source record needs unusually heavy cleanup, we scope the right support tier before work begins, never as a surprise invoice.

Frequently asked questions

Is Foodline AI SOC 2 certified?

Not yet. Every sub-processor that holds customer data is SOC 2 Type II attested today. Foodline AI's own SOC 2 examination is the next milestone, with a Type I available sooner as an interim artifact, followed by SOC 2 Type II.

How does Foodline AI keep each company's data separate?

Access is enforced twice, by two different systems: role, tenant and module scope are checked in the application on every request, and the database enforces the same rules again at the row. An application bug alone doesn't hand over the database, because the database checks access again for every row.

Who handles sign-in and passwords?

WorkOS handles identity, MFA, SSO and session security. Foodline AI never sees or stores a password.

How does Foodline AI support FSMA 204 traceability?

Key data elements are captured at receiving for every critical tracking event, and any lot can be traced forward and back in one click across its full genealogy. FDA won't enforce FSMA 204 before July 20, 2028.

How quickly can we run a recall drill?

In minutes, not days. Foodline AI knows which lots went to which customers on which routes, with proof of delivery attached.

Is data encrypted and backed up?

Yes. Data is encrypted at rest and in transit, with DDoS protection at the edge, automated backups, point-in-time recovery and continuous patching.