Skip to content
TiMiNa
All playbooks
Playbook · Recall and traceability

The recall and traceability agent: from quality signal to targeted product withdrawal

By Misagh Akhondzad/33 min read
RecallFMCGTraceabilityAgentic workflows

At 08:17 on a Tuesday, a consumer-care representative logs a complaint. A shopper reports an allergic reaction after eating a chocolate oat bar. The package does not declare peanuts. The consumer still has the wrapper, and the lot code is visible. By 08:42 the quality manager is asking whether this is an isolated misunderstanding, cross-contact within the declared allergen policy, a labelling error, incorrect packaging, an ingredient substitution, deliberate tampering, or a broader production failure.

The complaint system holds one record. Manufacturing holds several production orders. The packaging system shows two types of film used on that line that week. Warehousing shows finished goods across three locations. ERP shows shipments to four retailers, two distributors, one e-commerce fulfilment centre, and three countries. One retailer has already moved cases from its DC to stores; another has not yet received the product. The contract manufacturer keeps its production records in a separate system. The peanut-containing variant ran on the same line the previous day. The allergen-cleaning record is complete. The packaging-line clearance record contains a handwritten correction.

The company knows the consumer-unit lot code. It does not yet know whether the wrong film affected one pallet, one production hour, or the entire run; whether additional lots are involved; whether a peanut-containing formula entered a nominally peanut-free product; or whether the incident is limited to a single unit. The first executive instinct is recall everything immediately. The second is wait until we know more. Both carry risk. Waiting exposes more consumers. Recalling too broadly removes safe product, creates avoidable shortages, overwhelms retailers, confuses consumers, destroys usable inventory, obscures the actual root cause, and weakens confidence in future notices.

The correct response is not to choose between speed and precision. Contain broadly enough to protect consumers, investigate rapidly enough to refine scope, then act at the narrowest defensible level that still protects health and safety.

A quality signal is rarely born as a complete incident. It arrives as a consumer complaint, a laboratory result, a supplier notification, a retailer alert, an environmental positive, a packaging discrepancy, a foreign-material finding, an adverse-event report, a failed test, a regulator inquiry, a social-media post, an epidemiological signal, an audit finding, or a whistleblower report. The organization must convert that incomplete signal into a sequence of governed decisions — and in the traditional process, a small number of experienced people assemble that picture manually, under extreme pressure, searching complaint systems, laboratory records, batch documents, ERP transactions, warehouse records, production orders, supplier certificates, retailer shipments, co-manufacturer files, spreadsheets, and emails. The first hours are spent reconstructing a product history that should already exist.

The objective is not to make recalls smaller. It is not to make them larger. It is to identify and control all potentially affected product, protect consumers without delay, and continuously replace uncertainty with defensible evidence.

Part I · Definitions

Traceability, withdrawal, recall, containment

Traceability is the capability to identify what went into a product, what happened to it, what it became, where it moved, who received it, and where affected quantities may now exist. EU General Food Law defines it as the ability to trace and follow food, feed, food-producing animals, and substances intended for incorporation through all stages of production, processing, and distribution; GS1 frames the capability as identify, capture, share. Two directions matter and a recall needs both: tracking follows product forward — where did this lot go? — while tracing follows it backward — which ingredients, packaging, equipment, and production events created it?

The vocabulary here is legally consequential, and jurisdictions differ. A working distinction: withdrawal removes product from business channels, while a consumer recall reaches product already supplied to consumers or end users. Under FDA terminology a market withdrawal generally concerns a minor violation not normally subject to legal action, which is not the same as the EU sense of the word — never assume “withdrawal” means the same thing in the US and EU. A correction addresses product without removing it (relabelling, repair, revised instructions, controlled rework). Containment is the immediate restriction of potentially affected material while investigation continues — a production stop, warehouse block, shipment stop, order block, line quarantine, raw-material hold, retailer stop-sale — and crucially containment does not assert that product is affected; it preserves safety while uncertainty is reduced. Quarantine is the controlled segregation pending disposition, defined by quantity, location, status, owner, access restriction, and release authority.

The traceable objects span ingredient lots, packaging lots, bulk material, production batches, finished-goods lots, serialized units, cases, pallets, logistic units, shipments, returns, rework batches, and waste streams. A lot is a quantity grouped under a common identifier because it shares defined production, sourcing, processing, or packaging conditions — and the lot boundary must be operationally meaningful, since it becomes the unit of recall. Serial-level traceability enables more precise recovery but is rarely economically justified in FMCG; lot-level traceability supports targeted action only when lot genealogy is complete.

Parts II–IV · Signals and triage

From quality signal to managed incident

Recall management begins long before a recall. The system should continuously ingest consumer complaints (illness, allergic reaction, foreign object, odour, damaged packaging, incorrect label, injury), laboratory results (pathogen positive, contaminant above limit, allergen residue, environmental positive, stability or potency failure), internal quality controls (CCP deviation, metal-detector failure, temperature excursion, seal-integrity failure, line-clearance failure, wrong label, failed release test), supplier and retailer signals, regulatory signals (inspection findings, sample results, RASFF notifications, Safety Gate alerts, import rejections), digital and social signals, epidemiological signals, and whistleblower reports. Digital signals are early evidence, not verified facts — but severity and credibility are independent axes, and a low-confidence report of a potentially fatal hazard may still justify immediate containment.

Two mechanics matter before triage. Signal clustering: one complaint may be isolated, but several sharing product, lot, symptom, geography, and time indicate an emerging incident. And duplicate detection: the same event reported through the retailer, the consumer, social media, and a regulator must not be counted as four independent cases. The organization then needs a defined incident threshold — serious injury or illness, undeclared priority allergen, pathogen positive, repeated complaint pattern, regulatory notification, safety-control failure, product outside direct control, or an uncertain but potentially severe hazard.

In the first hour the objective is protection, not completeness. What happened; which product and lot; what hazard may exist; is affected product still under our control; has it shipped; could consumers have it; what must stop now; who must be assembled. Immediate containment can include stopping the line, blocking production orders and ingredient lots, holding finished goods, stopping shipments, informing warehouses, asking customers to hold, and preserving samples, logs, and equipment state. And the governing rule is explicit: do not wait for perfect scope. EU food operators with reason to believe food is unsafe must immediately begin withdrawal once it has left direct control and inform competent authorities; in the Netherlands the NVWA instructs businesses to report within four hours of having reason to believe a safety problem may exist — explicitly including when information is still incomplete, and without waiting for NVWA feedback before acting.

Potential undeclared peanut allergen
in oat bar Lot OB240712B.

Possible cause:  wrong packaging film during line change.
Current scope:   Lot OB240712B and adjacent production,
                 pending packaging genealogy review.
Status:          HYPOTHESIS — not a conclusion.
A provisional hypothesis must be labelled as one
Part V · Risk

Hazard is not risk, and neither is a job for the agent

A hazard is the source of possible harm — Salmonella, undeclared peanut, a glass fragment, excessive chemical concentration, fire risk. Risk is the likelihood and severity of harm under actual exposure conditions. The agent may assemble evidence, dose information, product use, affected population, distribution, and complaint data. Qualified experts determine the health or safety conclusion. The core dimensions are hazard severity, probability of exposure, level or dose, product use, consumer population, detectability before use, distribution and availability, and uncertainty — with vulnerable populations (infants, older adults, pregnant people, immunocompromised consumers, people with allergies) capable of changing the conclusion entirely, and intended and foreseeable use determining whether a kill step, instruction, or child access modifies the risk.

Different hazard families ask different questions. Allergen events: which allergen, undeclared or misdeclared, quantity, distribution, packaging scope, cross-contact controls, other labels affected. Microbiological: organism, ready-to-eat status, growth potential, kill step, shelf life, environmental and genomic evidence. Foreign material: material, size, hardness, sharpness, product type, detection controls, source. Chemical: substance, concentration, legal limit, toxicology, serving size, cumulative exposure. And labelling defects become safety-critical whenever they involve allergens, instructions, warnings, concentration, use restrictions, or identity.

Parts VI–VII · Genealogy

The backbone of targeted action

BACKWARD TRACEFORWARD TRACEIngredient lotsPackaging lotsRework totesEquipment and lineShift and clearanceProduction batchLot OB240712B12 Jul 14:05–21:40Finished lotsCases and palletsWarehouse stockCustomer DCsStores and consumerstransformations consume inputs to create outputs; aggregation groups them without changing identity
Genealogy is a bow-tie: trace backward to the cause, forward to the exposure

Backward genealogy starts from affected finished product and identifies ingredients, packaging, suppliers, equipment, production conditions, rework, operators, and upstream lots. Forward genealogy starts from an affected input or event and identifies finished products, lots, cases, pallets, warehouses, shipments, customers, and markets. Between them sit the two event types that most systems model badly. Transformation consumes inputs to create new outputs — flour lot, chocolate lot, packaging film, and rework batch becoming a production batch and then a finished lot — which GS1 EPCIS represents by linking consumed inputs to created outputs. Aggregation groups items without changing their identities: units into cases, cases onto pallets, pallets into shipments — and aggregation must be reversible in the records.

Seven complications determine whether targeted action is possible at all. Commingling — silos, bulk tanks, flour bins, liquid blending — means output inherits risk from every contributing lot. Continuous production forces explicit definitions of cut-off time, residence time, flushing, line transitions, material carryover, and cleaning validation. Rework creates hidden genealogy when rejected or surplus product from earlier lots re-enters later batches — and if rework is not lot controlled, recall scope can expand dramatically. Work in progress exists as bulk intermediate, unlabelled product, semi-finished goods, and packed but unreleased stock, all of which belong in scope. Co-manufacturingputs batch records, line clearance, packaging logs, retained samples, inventory, and shipment data in someone else’s system, which contracts must guarantee rapid access to. Repacking, relabelling, and private label mean one finished lot may appear under several brands, languages, customers, and case configurations, requiring coordinated notices. And packaging genealogy is essential whenever a packaging defect can create safety risk — a wrong allergen statement, missing instructions, migration, seal failure, incorrect barcode.

Underneath sits the data architecture. Every event must answer what, when, where, why, who — product, lot, serial, quantity, logistic unit; event time, recording time, time zone; plant, line, tank, warehouse, customer, store; received, produced, packed, shipped, returned, destroyed, transformed; supplier, operator, manufacturer, carrier, customer, owner. GS1 identifiers reduce translation friction between partners: GTIN for trade items, GLN for locations and parties, SSCC for logistic units, with lot and serial attributes. EPCIS standardizes visibility events across object, aggregation, transformation, and transaction patterns. Critical Tracking Eventsmark points where product is received, transformed, packed, shipped, or otherwise materially handled, with Key Data Elements describing them — FDA’s Food Traceability Rule requires covered businesses to retain KDEs associated with CTEs, and can require covered information in an electronic sortable spreadsheet within 24 hours of request, which is a useful readiness benchmark even outside its direct scope. Three details quietly decide whether any of it works: synchronized, time-zone-aware, tamper-evident event times (a wrong timestamp connects an input to the wrong production run); consistent quantities and units with defined conversions and tolerances; and data lineage that records which system produced a record, when it was extracted, whether it was manually edited, and whether it is authoritative.

Parts VIII–IX · Scope and quantity

Defining what is affected, then proving it

Scope is a safety conclusion, based on hazard, process, genealogy, time, controls, and uncertainty. Start from the known signal, expand backward (production batch, packaging lot, ingredient lots, line, time, rework, adjacent runs) and forward (outputs, cases, pallets, shipments, customers, markets, remaining stock), then test the specific pathways: shared input (every output consuming an affected ingredient lot), shared equipment (lots produced after the last validated clean, before verified correction, within the carryover window), packaging window (when the wrong film entered the line, previous and next correct-film verification, units produced in the uncertain interval), and adjacent lots — included when line clearance is uncertain, code transitions unreliable, rework crosses boundaries, samples insufficient, or time records conflict.

V1 · 08:36Provisional containment3 lots, all line inventoryV2 · 10:15Packaging windowpallets P104–P118narrowed — exclusion evidenceV3 · 13:40Rework discoveredpallets P103–P126expanded — new hazard pathwayV4 · 16:20Public recall scopefull lot OB240712Bwidened — consumer identifiabilitythe one prohibited move: narrowing scope without evidence, or to reduce cost
Scope is versioned, and it moves in both directions — on evidence

Scope carries confidence levels — confirmed affected, probable affected, potentially affected, demonstrably unaffected — and exclusions must be supported by authoritative records: produced before the implicated input arrived, after validated cleaning, on an isolated line, using a different packaging roll, never receiving affected rework. Which leads to the single most important epistemic rule in the discipline: do not use absence of evidence as evidence of absence. Missing genealogy expands uncertainty; it must never narrow scope. And because scope evolves, every version needs its rationale, approvers, and effective time recorded — partners acting on different scope versions is its own failure mode.

Traceability answers where product may have gone; mass balance tests whether the records are quantitatively plausible. Quantity produced = inventory + shipped + destroyed + samples + known losses + unexplained variance. Ingredient received = consumed + remaining + waste + variance. And for the incident itself, affected quantity = company-controlled stock + customer stock + consumer-sold + in transit + returned + destroyed + unresolved — with unresolved quantity kept visible rather than quietly absorbed. Yield and loss (process loss, sampling, start-up waste, damaged cases, rework, overfill) are normal; tolerances should be predefined, product-specific, and justified; and double counting must be avoided when retailer DC stock, store stock, and in-transit stock are snapshots from different systems. Two rates close the loop: recovery rate (recovered or verified-disposed ÷ recoverable distributed) and the broader accounted-for rate (quantity with a known final status ÷ total affected), where a known status may be company hold, customer hold, destroyed, returned, consumed, expired, or corrected.

Parts X–XI · Action and notification

Choosing the response and telling the authorities

The action set runs from internal hold and shipment stop through customer hold, market withdrawal, consumer recall, stop-use notice, relabelling, rework, and destruction, with regulatory seizure or mandated action at the far end. The choice depends on health or safety risk, product location, consumer possession, ability to identify affected units, correction feasibility, legal obligation, communication effectiveness, and urgency. Recall depth — wholesale, distribution, retail, consumer — follows where product travelled and what action protects users. Geographic scope may be one customer or global, and shipment destination must not be assumed to equal final sale destination. Rework deserves particular care: it must not create a new uncontrolled risk, and it is only appropriate when qualified experts determine it reliably eliminates the hazard and authorities and policy permit.

Regulatory obligation is jurisdiction-specific and must be retrieved rather than assumed, based on product category, country, company role, hazard, distribution, and consumer exposure. In the EU, food operators must initiate withdrawal where unsafe food has left direct control, inform competent authorities, cooperate on traceability, effectively inform consumers where necessary, and recall consumer-held product when other measures are insufficient. RASFF enables rapid exchange among European food-safety authorities — businesses normally notify their national competent authority, which manages RASFF submission and international coordination. In the US, FDA-registered facilities subject to preventive controls may need a written recall plan covering direct consignee notification, public notification where appropriate, effectiveness checks, and disposition. For non-food products, the EU General Product Safety Regulation requires corrective action, notification through the Safety Business Gateway, direct contact with identifiable affected consumers without undue delay, compliant recall notices, and appropriate remedies. A single incident may require parallel filings, and one filing must never be assumed to satisfy all markets. Above all: do not delay notification pending a completed investigation — submit what is known and update it.

Parts XII–XIII · Governance

The incident team and the decision room

The recall team spans incident commander, quality and food safety, regulatory affairs, medical or toxicology expertise, manufacturing, supply chain, procurement, customer service, sales and key accounts, legal, communications, finance, IT and data, and an executive sponsor. Two boundaries are load-bearing. Sales and key accounts coordinate retailer contact but must not independently narrow safety scope. Finance owns provisions, cost, insurance, and disclosure — and does not determine safety scope. Underpinning both is the principle of safety independence: quality and safety functions must be able to escalate without commercial veto.

DecisionPrimary owner
Stop productionQuality and operations authority
Place inventory on holdQuality / supply authority
Notify regulatorRegulatory / quality authority
Define technical scopeQualified safety team
Initiate recallAuthorized recall committee or executive
Publish consumer warningAuthorized quality, legal, communications
Release held stockQualified quality authority
Destroy productQuality and supply authority
Close incidentRecall committee with regulatory input
Who owns which decision

The decision room is not a status meeting — it maintains a live incident operating picture across known facts, unknowns, hazard assessment, current scope version, product locations, regulatory actions, customer notifications, consumer communication, recovery status, effectiveness, and root-cause actions. Its decision backlog holds real questions (“should adjacent lot L240713 be included?”, “can held pallets be demonstrably excluded?”, “should production restart?”), each with safety consequence, evidence, uncertainty, options, recommendation, deadline, owner, and approvers. The platform must distinguish authoritative records from working hypotheses, drafts, approved decisions, and superseded decisions — and timestamp everything: signal time, awareness time, containment time, notification time, customer action time, public warning time. Recall chronology is examined months later, often by people who were not there.

Parts XIV–XVI · Communication and recovery

Notices that work, product that stays controlled

Direct consignees include distributors, wholesalers, retailers, foodservice operators, e-commerce fulfilment centres, co-packers, and export partners. A customer notice must carry recall or withdrawal status, reason, product name, brand, GTIN, pack size, lot and date codes, images or code location, shipment references, required action, stop-sale instructions, stock and distribution reporting, return or disposal instructions, response deadline, and contacts. The difference between a vague and a precise notice is the difference between removing safe product and leaving unsafe product on shelf.

Weak:   Please remove affected chocolate bars.

Strong: Immediately stop sale and distribution of:
        Brand X Oat Bar Chocolate 45 g
        GTIN 08712345678901
        Lot OB240712B
        Best before 12 January 2027

        Do NOT remove Lots OB240711A or OB240713C.
Precision reduces both exposure and unnecessary removal

Then verify rather than assume. Track whether each customer received the notice, understood the scope, stopped sale, blocked stock, notified downstream customers, reported quantities, and completed action — because a distributor may have supplied sub-customers the manufacturer cannot see, and agreements should require those downstream records. E-commerce needs listing stops, fulfilment stops, buyer identification, direct notification, homepage warnings, and refunds; marketplaces require platform-specific workflows; exports need importer, local authority, distributor, and local-language coordination.

Consumer communication is a safety control, not a public-relations exercise. Affected consumers must be able to identify the product, understand the risk, know what to do, and get support — which means recall title, product image, brand and name, pack size, GTIN, lot and date code, where to find the code on pack, markets and retailers, hazard, affected population, a do-not-consume instruction, return or disposal instructions, remedy, approved medical guidance, and contacts. Use plain language; avoid laboratory jargon, vague risk wording, defensive language, marketing claims, and unnecessary legal text. Consumers must be able to distinguish affected from unaffected from merely similar products, so photographs, lot-code diagrams, and date ranges do real work. Where buyer data lawfully exists, direct contact outperforms general publicity — and for EU non-food recalls, identifiable affected consumers should be notified directly without undue delay. Every channel must carry one approved scope, updates must show what changed and alert prior recipients, and if the investigation is ongoing, say so accurately rather than minimizing uncertainty.

Recovery keeps product controlled after it starts moving backward. Returned product can create accidental resale, cross-contamination, evidence loss, and quantity discrepancies, so returns need authorization, clear marking, physical separation, system blocking, and chain of custody covering who handled it, when, where, quantity, condition, and transfer. Disposition — destroy, rework, relabel, repair, divert to safe non-food use, return to supplier, retain as evidence — requires qualified approval, and destruction requires verification: quantity, lot, method, date, provider, certificate, and witness where required. Disposal must comply with environmental and hazardous-waste rules, with safety remaining primary.

Parts XVII–XX · Proof

Effectiveness, reconciliation, root cause, rehearsal

Sending a notice does not prove the recall worked.Effectiveness checks verify that recipients received notification, understood it, acted correctly, stopped further distribution, and handled the affected product — across notification reach, acknowledgement, stop-sale execution, product recovery, downstream notification, consumer reach, and quantity reconciliation. Methods include automated acknowledgement, telephone, email confirmation, field visits, inventory-system evidence, signed responses, and photographs, with higher-risk events requiring a greater proportion of consignees checked. Non-response escalates through reminder, phone contact, field visit, senior account escalation, and regulator notification. Consumer effectiveness is harder — direct-message delivery, notice views, call-centre contacts, returns, loyalty-card reach, complaint trend — and a high email-delivery rate does not prove consumers stopped using the product.

The incident ledger drives every affected unit toward a known status: company quarantined, customer quarantined, in transit, returned, destroyed, corrected, sold to consumer, consumed, expired, unresolved. Customer reporting collects received, on-hand, distributed, returned, destroyed, and sold quantities — carefully, since a distributor and a retailer may report the same product. Completion criteria may include all known consignees notified, effectiveness target met, product accounted for to tolerance, disposition complete, authority agreement, and corrective actions assigned. Regulatory closure and internal closure may occur at different times, and residual consumer-held product must be documented with estimated quantity, communication reach, risk, and further action rather than rounded away.

All of which is why the best recall is rehearsed. A written plan defines team, contacts, decision rights, regulator and customer contacts, traceability process, communication templates, effectiveness checks, disposition, and records. Mock recalls then test the operational capability: trace-back from a finished lot to all inputs, trace-forward from an ingredient or packaging lot to all outputs and destinations, full simulation including risk assessment and authority notification drafts, surprise exercises, and facilitated tabletops — FDA’s traceability-readiness tabletop exercises tested precisely whether participants could identify records and provide electronic sortable data within 24 hours. Measure time to acknowledge, time to contain, time to identify inputs and customers, trace completeness, quantity reconciliation, contact success, decision quality, and record quality. Include co-manufacturers, test night and weekend readiness, vary the scenario so the exercise is not overfitted — and remember that a mock recall without CAPA is theatre.

Parts XXI–XXII · Architecture

The agentic recall architecture

Quality and safety signals
  -> incident intake and triage
  -> Recall and Traceability Agent
  -> quality, laboratory, ERP, MES, WMS, supplier,
     logistics, customer, retailer, regulatory,
     and communications tools
  -> deterministic genealogy, risk, quantity,
     and policy services
  -> qualified human safety decision
  -> containment, notification, withdrawal, or recall
  -> effectiveness and reconciliation
  -> CAPA and organizational learning
The target architecture: a governed hybrid, fail-safe by design

The agent consolidates signals, retrieves records, resolves identities, builds genealogy queries, identifies evidence gaps, forms provisional scope, coordinates customer lists, prepares communication drafts, routes regulatory tasks, tracks acknowledgements, reconciles quantities, maintains decision chronology, and identifies recurring traceability weaknesses. Deterministic services own lot genealogy, quantity calculations, mass balance, risk rules, authority deadlines, customer selection, inventory blocks, shipment stops, transaction execution, and audit logging. Humans must own health and safety assessment, recall-scope approval, regulator communication, consumer-warning approval, product release, disposition, root-cause conclusions, and incident closure.

The twenty-five stages

  1. 01Receive the signal. Product, complaint or finding, hazard, lot, source, time, severity indicators.
  2. 02Verify minimum credibility. Source authenticity, duplicates, product identity, available evidence — without delaying containment where severity is high.
  3. 03Activate the incident team. Routed to on-call roles by product, market, severity, and time.
  4. 04Initiate provisional containment. Block related inventory, production, shipment, customer orders, and implicated inputs.
  5. 05Preserve evidence. Consumer sample, retained samples, packaging, laboratory isolates, records, equipment state.
  6. 06Resolve identities. Product, GTIN, lot, plant, line, ingredient, packaging, customer, shipment.
  7. 07Build backward genealogy. All inputs and process conditions.
  8. 08Build forward genealogy. All outputs and distribution.
  9. 09Run mass balance. Test quantity completeness.
  10. 10Assess hazard and exposure. By qualified experts — severity, likelihood, population, distribution, uncertainty.
  11. 11Define provisional affected scope. Included lots, excluded lots, rationale, uncertainty, evidence still required.
  12. 12Determine reporting obligations. Market-specific requirements and deadlines.
  13. 13Notify competent authorities. Submit what is known; maintain updates.
  14. 14Choose the corrective-action strategy. Hold, withdrawal, consumer recall, correction, rework, destruction.
  15. 15Notify direct consignees. Product-specific, actionable notices.
  16. 16Initiate consumer communication. Approved warning, where required.
  17. 17Execute inventory blocks and stop sale. Across ERP, warehouses, distributors, retailers, e-commerce.
  18. 18Recover and segregate product. Tracking returns and disposition.
  19. 19Perform effectiveness checks. Verify consignee and consumer action.
  20. 20Update scope as evidence changes. Every change requires approval and communication.
  21. 21Reconcile all affected quantities. Maintain the incident ledger.
  22. 22Investigate root cause. In parallel with execution, not after it.
  23. 23Approve restart or release. Qualified authorities only.
  24. 24Complete CAPA. Verify control effectiveness.
  25. 25Close and learn. Post-incident review, regulatory closeout, financial close, policy and mock-recall update.
Part XXIII · Toolset

The agent’s thirty-six tools

  • Incident and identity: create_incident_case, get_product_identity (SKU, GTIN, brand, pack, market, allergen profile, status), get_lot_master (product, plant, line, production time, expiry, release status, quantity), get_complaint_cluster, get_supplier_incident_status.
  • Containment — high-risk write tools: block_inventory and stop_shipments, both requiring authorized scope, both fail-safe in the direction of remaining blocked.
  • Evidence: get_retained_samples, get_quality_records (deviations, CCP records, line clearance, sanitation, release, inspections), get_laboratory_results (test, method, sample, result, accreditation).
  • Genealogy: build_backward_genealogy, build_forward_genealogy, get_transformation_events, get_aggregation_events, get_rework_genealogy — the four together are what make targeted scope defensible.
  • Quantity: calculate_mass_balance (expected, accounted, variance, tolerance, missing records), calculate_affected_quantity, reconcile_incident_quantities.
  • Distribution: get_customer_distribution (consignee, shipment, lot, quantity, date, downstream status), get_retail_sell_through where permitted (store stock, sold quantity, buyer-identification availability, stop-sale status).
  • Regulatory and scope: retrieve_regulatory_requirements (authority, deadline, required fields, channel), create_regulatory_notification_draft — a draft only — create_scope_version (included, excluded, rationale, approvers, effective time).
  • Communication: create_consignee_notice and create_consumer_warning produce drafts; send_approved_consignee_notice requires authorization; publish_approved_consumer_warning requires multiple approvals and verified scope.
  • Recovery and closure: create_return_authorization, record_customer_response, run_effectiveness_check, create_disposition_order (qualified approval required), verify_destruction, create_capa_record, authorize_product_release — restricted to qualified quality authority — run_mock_recall, propose_recall_learning.
Weak:   "Several products may be affected.
         Consider notifying retailers."

Strong: incident_id: INC-2026-041
        hazard: potential undeclared peanut allergen
        affected_product: Brand X Chocolate Oat Bar 45 g
        confirmed_lot: OB240712B
        provisional_adjacent_scope: OB240712A, OB240713A
                     pending packaging-roll reconciliation
        quantity_produced:        184,320 units
        company_controlled:        62,400 units
        customer_distributed:     121,920 units
        consumer_sell_through_est:  47,800 units
        countries: NL, BE, DE
        current_action: shipment stop, customer hold,
                        regulatory notification draft
        hard_unknown: time wrong packaging film entered line
        next_decision_deadline: 10:30 CET
        required_decision: approve provisional recall scope
        decision_owner: Global Quality Director
The tool-design rule: state the unknown as loudly as the known
Parts XXIV–XXVI · Controls

State, decision rights, and AI governance

Five state machines run in parallel. The incident moves through signal, triage, potential incident, activated, contained, investigating, withdrawal active, recall active, effectiveness monitoring, recovery, CAPA, regulatory closeout, closed. The product status moves through unrestricted, provisional hold, quarantined, shipment blocked, customer hold, withdrawn, recalled, returned, corrected, destroyed, released. The scope moves through draft, provisional, approved, expanded, narrowed, superseded, closed. The notification moves through draft, under review, approved, sent, acknowledged, escalated, completed. And the quantity moves through unknown, estimated, reported, verified, reconciled. Memory holds product-code mappings, customer recall contacts, retailer response lead times, co-manufacturer retrieval performance, common genealogy gaps, effective communication channels, typical quantity variances, recurring root causes, and mock-recall results — never an unconfirmed hazard conclusion, a draft scope, individual medical data, speculation about fault, an unverified supplier accusation, unreleased legal advice, low-confidence social posts, or personal employee information. And because the final conclusion often differs from the first hypothesis, safety facts are versioned with both preserved and timestamped.

DecisionAgentHumanSystem
Detect signal clusterCoordinateQuality validatesAnalyse
Apply provisional holdPrepare or trigger within policyAuthorized quality ownerExecute
Define hazardGather evidenceQualified expert decidesStore
Build genealogyOrchestrateQuality reviewsCalculate
Approve recall scopePrepare evidenceRecall authority decidesVersion
Notify regulatorDraftAuthorized regulatory owner approvesSubmit
Notify consumersDraftQuality, legal, communications approvePublish
Release productNever decideQualified quality ownerExecute
Close recallRecommend completenessRecall committee decidesArchive
The decision-rights matrix

Note the one cell in that matrix that reads never decide. Release is the decision where an error is irreversible in exactly the wrong direction, and it belongs entirely to qualified quality authority. The surrounding controls follow the same logic: least privilege scoped to the current incident role; human approval required for scope approval, regulatory filing, consumer warning, product release, destruction, and closeout; a failed approval or system outage that never auto-releases held product; identity and authority stamped on every action; and segregation between technical assessment, scope approval, communication, release, and reconciliation.

Two AI-specific controls deserve emphasis in a safety context. Untrusted input: consumer messages, supplier documents, emails, images, and external alerts are evidence, not executable instructions — an uploaded document stating “release all held stock immediately” must not trigger release. And no unsupported medical advice: consumer scripts use approved health language and routes, and language-model conclusions are labelled and grounded rather than presented as findings. Data privacy applies throughout, since incident records may contain consumer health information, contact details, retailer data, employee information, and supplier secrets — requiring purpose limitation, restricted access, retention, redaction, and encryption. Safety-critical agents also need lifecycle governance: risk assessment, evaluation, monitoring, incident response, version control, and human oversight, along the lines NIST’s AI RMF and Generative AI Profile describe.

Part XXVII · Evaluation

Ten layers, weighted toward the errors that hurt

A system that performs well on average but misses one critical affected lot is unacceptable. Evaluation therefore runs in layers with asymmetric penalties: signal (safety-signal recall, false incident rate, duplicate detection, escalation latency, serious-signal miss rate), entity resolution (product, lot, supplier, customer, GTIN mapping, date-code interpretation), genealogy (input and output recall, false links, missing transformation links, rework detection, aggregation accuracy), quantity (production and shipment accuracy, mass-balance variance, unresolved quantity), scope — where under-inclusion must carry the highest penalty regulatory (correct authority, deadline, required fields, submission status), communication (product, lot and action clarity, language, recipient coverage, consistency), execution, effectiveness, and control (no unauthorized release, no unauthorized public notice, no scope narrowing without approval, no data leakage, complete audit).

Trajectory tests require the agent to contain first, preserve evidence, resolve exact product and lot, trace backward and forward, check quantity balance, retrieve regulatory obligations, request qualified approval, and verify effectiveness — while prohibiting declaring product safe, narrowing scope to reduce cost, releasing stock without authority, publishing unapproved medical claims, deleting or altering evidence, and waiting for perfect certainty before containment. The metric families then run: speed (signal to triage, to containment, to first genealogy, to authority notification, to customer notification, to consumer warning, to accounting for product), traceability (lot, supplier and customer completeness, genealogy depth, mass-balance variance, time to trace), scope (quantity initially contained, quantity finally recalled, scope changes, safe product unnecessarily removed, affected product initially missed), effectiveness, consumer, operational, CAPA, and agent metrics.

The measure is speed and completeness of consumer protection, while preserving scope accuracy, regulatory compliance, and evidentiary integrity — not average recall size, and never recall cost.

Part XXVIII · Worked example

The oat bar, from 08:17 to root cause

Back to the complaint. At 08:36 — nineteen minutes after the signal reaches quality — containment is authorized: hold all Brand X oat-bar inventory from the implicated line, stop shipments, pause the line, preserve packaging rolls, secure retained samples, notify the co-manufacturer’s incident team. The provisional hold covers three lots — OB240712A, OB240712B, OB240713A — deliberately broader than the consumer-reported lot. Identity resolution maps the code to co-manufacturer CM-04, Bar Line 2, production order PO-778214, 12 July 14:05–21:40. The line ran peanut chocolate bars on 11 July, cleaned and changed over on the morning of the 12th, ran chocolate oat bars that afternoon, and vanilla oat bars on the 13th.

The first hypothesis is packaging. The oat bar should use FILM-OAT-CHOC; the peanut product uses FILM-PN-CHOC; the two rolls have similar artwork, and a handwritten line-clearance correction records one unidentified partial roll removed at 15:20. The packaging scanner was active at start-up but bypassed for 17 minutes between 14:48 and 15:05 following a printer fault. At roughly 360 units per minute, the bypass alone represents about 6,120 units — but since the unidentified roll was not removed until 15:20, the uncertain window is wider, giving a provisional packaging scope of 14:48–15:20 plus transition tolerance, pallets P104–P118.

Then the evidence turns. Formula genealogy shows the correct oat-bar formula, no peanut ingredient issued, completed allergen-cleaning validation, and no peanut rework consumed — while the consumer wrapper is identified as the standard oat-bar wrapper, not the peanut film. At 09:46 a second complaint arrives through retailer customer service: product appears to contain peanuts, but the package is Chocolate Oat Bar, same lot. That reverses the hypothesis — peanut-containing barsmay have entered oat-bar packaging, rather than the wrong film entering the line. The production record shows a rework tote added at 14:55 labelled “chocolate start-up rework,” its genealogy record incomplete; physical investigation finds the tote came from the previous day’s peanut-bar run. Scope expands to all production from 14:50 to 15:35 — pallets P103–P126, roughly 16,800 units — with residence time, mixing distribution, hopper carryover, and rework quantity all contributing uncertainty.

LocationUnitsRecovery route
Company warehouse4,200Direct hold — fully controlled
Retailer A DC3,600Consignee notice and stop-sale
Retailer B DC2,400Consignee notice and stop-sale
Distributor C1,800Notice plus downstream notification duty
Stores~2,500Shelf clearance and checkout block
Sold to consumers~2,300Consumer recall — partly unrecoverable
Where the 16,800 potentially affected units sat (illustrative)

Adjacent lots are then resolved in both directions on evidence: OB240712A was produced before the rework addition, and records plus retained samples support exclusion; OB240713A followed a full clean, a new production order, no shared rework, and documented line clearance, so it is released from provisional hold by authorized quality decision. The Netherlands team reports to the NVWA within the applicable timeframe with product, hazard, lots, distribution, actions, and provisional scope, and international coordination follows through competent authorities for Belgium and Germany.

Within 48 hours: 4,200 units of company stock secured, 5,850 at retailer DCs, 1,920 in stores, 310 consumer returns, and an estimated 4,520 consumed or sitting in households. Effectiveness checks confirm all direct consignees acknowledged, retailer stop-sale active, online listings removed, and stores sampled for shelf clearance — while one distributor fails to confirm sub-customer action and is escalated immediately. Final mass balance against the public lot: 184,320 produced, 132,900 recovered from company and customer stock, 50,700 previously sold, 520 in samples and waste, and 200 units of unresolved variance left visible rather than absorbed.

The immediate cause was peanut-bar rework entering peanut-free oat-bar production. The root causes were an ambiguous rework tote label, allergen status not electronically controlled, staging zones not physically separated, a scanner-bypass procedure that did not require quality presence, and a line-clearance checklist that omitted rework totes. CAPA prohibits cross-allergen rework, introduces barcode-controlled rework release, colour-separates allergen rework totes, requires quality authorization for scanner bypass, updates line clearance, audits all contract manufacturers, and schedules a new mock recall within 60 days. The honest conclusion of the review: finished-goods traceability was strong; rework genealogy was weak — and the weak link determined both the size of the recall and the hours lost finding it. The figures are illustrative; real safety decisions require qualified scientific, quality, regulatory, medical, and legal judgment.

Parts XXIX–XXX · Roadmap and data

Implementation and readiness

  1. 01Phase 0 — map legal and safety obligations. For every product and market: regulator, reporting trigger, deadline, recall terminology, consumer remedy, record requirements, recall owner.
  2. 02Phases 1–2 — define traceable objects, then fix critical genealogy gaps. Standardize product, lot, ingredient, packaging, rework, case, pallet, shipment, customer — then prioritize transformations, rework, commingling, co-manufacturers, repacking, and customer shipments.
  3. 03Phase 3 — build the incident ledger. Signal, chronology, scope, notifications, quantities, actions, decisions.
  4. 04Phase 4 — implement automated holds. Lot block, shipment block, production hold, customer hold — starting in shadow mode.
  5. 05Phase 5 — deploy the traceability copilot. The agent retrieves evidence, runs genealogy tools, prepares quantity views, identifies gaps, drafts communications. Humans own all safety decisions.
  6. 06Phases 6–7 — integrate regulator and customer workflows, then effectiveness. Authority templates, customer notices, response tracking, consumer-warning templates; then track every consignee, quantity, action, and disposition.
  7. 07Phases 8–9 — suppliers and signal monitoring. Require rapid co-manufacturer data exchange; connect complaints, laboratories, quality deviations, supplier alerts, and retailer signals.
  8. 08Phases 10–11 — mock-recall automation, then policy-bounded automation. Automate opening incident records, provisional alerts, draft notifications, data requests, and scheduled checks — never final recall, consumer warning, release, or destruction.

A strong pilot takes one factory, one product family, one distribution network, well-defined lots, direct customer records, and an engaged quality leader — starting with an ingredient-lot trace-forward, a packaging-lot trace-forward, a finished-lot customer trace, a mock allergen recall, or a co-manufacturer trace exercise. Avoid beginning with every global product, no agreed lot definitions, an incomplete product master, autonomous public communication, unresolved quality authority, or untested inventory blocks. Success criteria are concrete: trace affected inputs and outputs within 30 minutes, identify all direct consignees within one hour, reconcile quantities within approved tolerance, achieve 100% critical-customer contact, detect rework and repacking links, and achieve zero unauthorized releases.

The minimum viable data is product and lot master, supplier lots, production orders, ingredient and packaging consumption, finished output, inventory, shipments, customers, and quality records; it strengthens with EPCIS events, pallet and case aggregation, retailer inventory, consumer buyer identification, laboratory and environmental systems, maintenance, cleaning, rework, transport temperature, and supplier genealogy. Three readiness details are easy to underrate. Product-code readability: the consumer must be able to find and interpret the code used in the notice — a scope you cannot communicate is a scope you cannot execute. Data retention must reflect shelf life, legal requirements, complaint latency, product type, and customer contracts. And offline resilience matters more here than anywhere else: recall records must remain accessible during an ERP outage, a cyberattack, a cloud outage, or a power failure, because the incident will not wait for the systems to come back.

Part XXXI · Reality checks

Twenty-four failure modes

  1. 01Waiting for laboratory certainty before containment. Potentially unsafe product keeps moving.
  2. 02Recalling only the complaint lot. Shared ingredients, equipment, and rework are ignored.
  3. 03Recalling everything ever made. Traceability weakness disguised as caution.
  4. 04Narrowing scope to reduce financial loss. Safety evidence subordinated to commercial pressure.
  5. 05One-step-back and one-step-forward only. Internal transformations and rework stay invisible.
  6. 06Finished-goods traceability without packaging traceability. Labelling incidents cannot be scoped.
  7. 07Rework without genealogy. Small incidents become portfolio-wide recalls.
  8. 08Co-manufacturer records arriving too slowly. The critical first hours are lost.
  9. 09Spreadsheet genealogy. Manual joins create error and version confusion.
  10. 10Inventory status not system blocked. Held product is accidentally shipped.
  11. 11Vague customer notices. Safe product is removed and unsafe product remains.
  12. 12Consumer notices using technical codes only. Shoppers cannot identify the product.
  13. 13Treating a sent email as an effective recall. No acknowledgement or action is verified.
  14. 14Treating returned product as destroyed product. Disposition is never proven.
  15. 15Quantity recovery not reconciled. Unknown product stays hidden.
  16. 16Scope changes not versioned. Partners act on different instructions.
  17. 17Commercial teams contacting retailers independently. Messages conflict.
  18. 18The agent performing medical risk assessment. Professional authority is bypassed.
  19. 19AI releasing unaffected product automatically. A safety-critical decision is improperly delegated.
  20. 20Mock recalls testing only easy scenarios. Real weaknesses stay undiscovered.
  21. 21CAPA closing when tasks complete. Control effectiveness is never tested.
  22. 22Consumer data used beyond the safety purpose. Privacy and trust are damaged.
  23. 23System outage destroying recall capability. No offline process exists.
  24. 24Financial cost as the primary recall KPI. Consumer protection is deprioritized.
Parts XXXII–XXXIII · Framework

The TRACEBACK Method and maturity model

  1. 01Triage the signal and protect consumers. Credibility, potential hazard, immediate exposure, required containment, incident activation.
  2. 02Restrict movement and preserve evidence. Production stop, inventory hold, shipment block, sample and record preservation.
  3. 03Assemble end-to-end genealogy. Suppliers, ingredients, packaging, processes, rework, finished lots, pallets, customers, markets.
  4. 04Classify hazard, risk, and uncertainty. Qualified experts assess severity, exposure, vulnerable users, product use, unknowns, worst credible case.
  5. 05Establish the affected scope and corrective action. Included and excluded product, lot, time, geography, withdrawal and recall depth, disposition.
  6. 06Broadcast clear instructions. Authorities, customers, distributors, retailers, consumers, employees — all on one approved scope.
  7. 07Account for every affected quantity. Stock, shipments, returns, consumer sales, destruction, unresolved product.
  8. 08Confirm effectiveness and control disposition. Recipients acted, shelves cleared, product secured, destruction or correction completed.
  9. 09Keep the learning through root-cause correction. Root cause, CAPA, control verification, mock recall, traceability improvement, organizational memory.
LevelWhat it addsCharacteristics
0 · Reactive paper recallNothing systematicPhone calls, spreadsheets, manual genealogy, slow customer identification, limited reconciliation
1 · Documented recall processA planRecall plan, team, contact lists, templates, annual mock recall
2 · Integrated lot traceabilitySystem traceLot-controlled inputs and outputs, ERP and warehouse integration, customer trace-forward, quantity reconciliation
3 · End-to-end event traceabilityReal genealogyTransformation genealogy, rework, packaging, logistic units, co-manufacturers, electronic partner exchange
4 · Agentic recall managementOrchestrationContinuous signal monitoring, automated evidence retrieval, decision-case orchestration, regulatory workflow, effectiveness tracking
5 · Continuous safety-response systemResilienceReal-time genealogy, predictive incident detection, rapid targeted containment, cross-partner network, closed-loop CAPA, regularly tested resilience
Recall-readiness maturity

Part XXXIV in brief — the practitioner templates. Fifteen working documents carry the method, and in this domain they are also evidentiary records: the incident intake and initial triage cards; the genealogy card (production order, plant and line, period, ingredient and packaging lots, rework, equipment, output lots, pallets, shipments, customers, markets, and explicitly data gaps); the scope card (version, hazard pathway, inclusions, exclusions with evidence, uncertainty, approvers, effective time); the risk-assessment card (with worst credible outcome and qualified reviewers named); the regulatory-notification, consignee-notification, and consumer-warning cards; the quantity-reconciliation card (down to unresolved and variance against tolerance); the effectiveness-check and disposition cards; the CAPA card; the mock-recall scorecard; the recall decision packet; and the post-incident review, comparing initial signal to actual hazard and initial scope to final scope — the comparison that tells an organization whether its traceability is genuinely working.

Frequently asked questions

Does the agent decide whether a recall is required?

No. It prepares evidence and options. Authorized quality, regulatory, scientific, legal, and executive leaders make the decision — and only a qualified quality authority can release held product.

Should we wait for laboratory confirmation before containment?

Not when the potential hazard is serious and affected product may continue to move. Contain first, then refine using evidence. Containment is reversible; consumer exposure is not.

Is one-step-back and one-step-forward enough?

It is foundational but frequently insufficient. It does not reveal internal transformations, rework, commingling, repacking, or multi-tier distribution quickly enough to scope a real incident.

Why is rework traceability so important?

Because rework connects earlier production lots to later output lots. If it is not lot controlled, a narrow incident becomes a portfolio-wide recall — and the connection is usually discovered late, under pressure.

Should adjacent lots be included?

They may need inclusion where line clearance, carryover, rework, lot transitions, or records are uncertain. Exclusion requires authoritative records, not the absence of contrary evidence.

What is mass balance, and why does it matter?

It reconciles input, output, inventory, shipment, waste, return, and destruction quantities to test whether the traceability records are complete and plausible. A scope that does not balance is a scope with something missing.

Does a sent email prove recall effectiveness?

No. Receipt, understanding, action, stock control, and downstream notification must all be verified — and non-response escalates rather than being recorded as compliance.

Can all consumer-sold product be recovered?

No. Some will already be consumed, used, discarded, or untraceable. The organization must document residual exposure and communication efforts rather than presenting an unachievable recovery rate.

Can the agent block inventory, or publish a consumer notice?

A policy-bounded provisional block may be appropriate where delay creates safety risk, with release tightly controlled. A consumer warning may only be drafted by the agent — publication requires authorized human approval and verified scope.

What is the biggest AI mistake in recall management?

Allowing an AI system to make safety, scope, release, or public-communication decisions without qualified human authority, authoritative traceability data, and fail-safe controls.

Conclusion

A recall is often described as a logistics event: find the product, notify the customer, bring it back. The reality is more demanding. A recall is an accelerated reconstruction of the entire product system — what entered the process, what happened during production, which outputs were created, how they were packed, where they were stored, who received them, which consumers may possess them, and what action protects those consumers now. And the organization must answer all of it while evidence is incomplete, health may be at risk, regulators require information, customers require direction, consumers require clarity, and financial and reputational pressure intensifies.

Which is why readiness cannot begin at the complaint. It begins when the organization designs its lot codes, production records, packaging genealogy, rework controls, supplier contracts, customer records, recall plans, communication templates, and decision rights. The Recall and Traceability Agent connects that system: it does not decide what is safe, it makes the relevant evidence available faster. It does not replace the recall committee — it ensures the committee sees the latest scope, the unresolved uncertainty, the exact product locations, the regulatory deadlines, the response status, and the quantity variance. It does not replace regulators, quality experts, or professional accountability. It removes the manual searching and cross-system reconstruction that consume the first critical hours. And it does not make recalls smaller — it makes targeted action possible when the evidence supports it. The TRACEBACK Method walks the route: triage, restrict, assemble, classify, establish, broadcast, account, confirm, keep.

The defining question is not how quickly a recall notice can be published. It is how quickly every potentially affected product can be identified and controlled, every exposed consumer protected, every corrective action proven to have worked, and every failure understood.

From guide to production

Want help choosing the right architecture for your process?

We map where agents create leverage in FMCG operations, then build and ship the ones that pay back. One call to pressure-test your highest-leverage use case.

All playbooks