Lot Genealogy: End-to-End Lot Traceability Explained
Follow material lots from receipt through transformation and dispatch using connected identities, recorded quantities and supporting records.

On this page · 11 sections
- 1What lot genealogy means—and where it stops
- 2Regulatory mapping: US drug records, US food records and EU GMP
- 3Build genealogy as material moves through the operation
- 4Design the data model around lots, events and supporting records
- 5Three worked cases: a split, a merge and a rework addition
- 6Use genealogy to support recall scoping—not to make the decision
- 7Connect operational systems and recover failed handoffs
- 8Measure coverage, quantity accounting and trace usability
- 9Failure modes that make a complete-looking trace unreliable
- 10Adapt the model to the material flow—not just the industry label
- 11Implementation checklist: prove the trace before relying on it
How does Lot Genealogy apply to your shop floor?
Pick your industry and scale — Ask V5 rewrites the definition in your context, gives a worked example, and shows what V5 does on day one.
01What lot genealogy means—and where it stops
Lot Genealogy is the recorded network of parent–child lot relationships that links material inputs to outputs and enables backward and forward traceability through manufacturing and distribution.
A backward genealogy trace starts with an output lot and follows its contributing inputs. Forward traversal starts with an input lot and follows its downstream outputs. These directions answer different questions using the same relationships: “What went into this lot?” and “Where did this material go?” Distribution extends the trace through shipment records; it does not create a new material lot at every movement.
Batch genealogy is an operational alias, particularly where production is organised around batches. The neighbouring terms below describe different information or activities; these are operational distinctions, not statutory definitions.
| Term | Main question answered | Relationship to genealogy |
|---|---|---|
| Lot genealogy | Which lots contributed to which outputs? | The parent–child relationship structure. |
| Lot traceability | Can this lot’s history or destination be retrieved? | The retrieval activity that uses those relationships and associated records. |
| Inventory tracking | How much stock is held, and where? | Tracks balances and locations, not necessarily material ancestry. |
| Batch production record | What happened during this batch’s production? | A supporting record; a batch record is not itself the entire relationship network. |
| Serial-number traceability | What happened to this individual unit? | Tracks individual-unit identity, which can connect to lot-level ancestry. |
End-to-end lot traceability describes the connected boundary of the records, not assumed visibility into every supplier tier. A trace may connect a supplier’s declared lot through internal processing to a customer shipment while revealing nothing about that supplier’s own inputs. Define those endpoints in the traceability data model, so readers can distinguish a connected recorded history from an unrecorded upstream history.
02Regulatory mapping: US drug records, US food records and EU GMP
Map each genealogy record to the rules applicable to the product and activity. Keep the legal record obligation separate from the implementation choice: a parent/child lot model is a practical way to connect records, not a prescribed database schema. Do not extend the rows below to supplements, devices or chemicals merely because their operations also use lots.
| Jurisdiction and product context | Regulatory or guidance reference | Record connection or scope checkpoint |
|---|---|---|
| United States — drug products | Binding regulation: 21 CFR Part 211 | Map inventory and component use to associated drug batches. See the 21 CFR 211 overview for broader context. |
| United States — food | Binding regulation: 21 CFR Part 117 | Preserve the product-identity and lot-code qualifiers discussed below. Keep the Part 117 food-record context separate from drug records. |
| European Union — medicinal products | GMP guidance: European Commission EudraLex Volume 4 | Check the current relevant chapter and annex for product, activity and record scope. |
US drug records: connect inventory to the drug batch
21 CFR 211.184(c) requires an individual inventory record for each component, drug product container and closure, and reconciliation of the use of each component lot. The inventory information must allow determination of any drug-product batch or lot associated with the use of each component, container and closure. These are distinct connections: component-use accounting and identification of the associated drug batches.
For batch-production and distribution-record obligations, check the current text of 21 CFR 211.188 and 21 CFR 211.196 for applicable record content.
Under 21 CFR 211.180(a), required production, control or distribution records specifically associated with a drug-product batch must be retained for at least one year after that batch’s expiration date. For certain OTC drug products lacking expiration dating because they meet the exemption criteria under § 211.137, the period is three years after distribution of the batch.
Annual drug-product evaluation: use the US review elements
21 CFR 211.180(e) requires written records to be maintained so their data can support evaluation, at least annually, of each drug product’s quality standards to determine the need for changes in specifications or manufacturing or control procedures. Its listed review elements are:
- “A review of a representative number of batches, whether approved or rejected, and, where applicable, records associated with the batch.” — 211.180(e)(1)
- “A review of complaints, recalls, returned or salvaged drug products, and investigations conducted under § 211.192 for each drug product.” — 211.180(e)(2)
Keep these attributed US elements distinct when organising an annual product review or product quality review; do not treat them as an EU review checklist.
US food records: retain both qualifiers
21 CFR 117.305(f)(4) states: “Where appropriate, the identity of the product and the lot code, if any.” Preserve both “Where appropriate” and “if any” when mapping this provision to food-record fields.
03Build genealogy as material moves through the operation
Treat genealogy capture as a sequence of operational handoffs. The workflow below is recommended manufacturing practice, not a universal regulatory field list. Each activity should pass identifiable material and its supporting record to the next activity.
Receipt → Identification → Storage → Dispensing → Transformation → Output identification → Packaging → Dispatch
- Receipt and identification: connect the supplier’s lot code to the internal material and lot identities, received quantity and receipt transaction. Keep the supplier code available rather than replacing it with an internal label that obscures the connection.
- Storage: record put-away and subsequent location changes against the existing lot. A location ID scan can serve as a capture step, but the recorded transaction should identify both the material and its destination.
- Dispensing: identify the source lot, quantity issued and receiving container or production activity. Distinguish material staged for a job from material actually consumed; discrete consumption links should reflect execution, not merely the planned recipe.
- Transformation: connect actual consumed lots to the operation and its outputs. Record substitutions and additional charges against the production record so later tracing follows what entered the process.
- Output identification: assign or confirm output lot identities before material moves onward. Where an operation preserves the lot identity but changes its recorded state, retain that event without inventing a new parent–child lot relationship.
- Packaging: connect the bulk or intermediate lot to the identified packed outputs and packaging lots actually used. Preserve those links when one operation produces several packed lots.
- Dispatch: connect each shipment line to the lot, quantity and destination actually shipped, rather than relying only on the sales order or allocation.
For every material event, record actual input and output identities, quantities, units, event time, location and the supporting transaction or production record. A process event log should distinguish movements of existing lots from lot-creation or state-change events.
Include unused material returned from staging, samples, scrap and other physical outputs in the event account. Separate these quantities from consumption; do not leave them hidden inside an unexplained difference.
- Register ReceiptBind supplier identity to a unique internal lot.
- Record consumptionCapture actual input lots, quantities and units.
- Create outputsLink output lots through the transformation event.
- Account for MaterialRecord splits, merges, returns and losses explicitly.
- Document dispositionAttach the authorised person's recorded decision.
- Link DispatchAssociate shipped lots with destination and shipment.
- Test the traceTraverse both directions and reconcile affected quantities.
04Design the data model around lots, events and supporting records
An implementable traceability data model connects lot states through transformation events, rather than storing a single parent_lot_id. Multiple input and output lines represent merges, splits and co-products without forcing a one-parent tree. The following is a recommended design, not a prescribed regulatory database schema.
Keep lot_id as the business lot identity and lot_state_id as the identifier for a recorded state. When processing continues under the same displayed lot number, create successive states connected by events; do not overwrite the earlier state. Store supplier_lot_code as an external reference alongside supplier identity, not as the sole database key.
| Entity | Role and relationships |
|---|---|
| LotState | Identifies a recorded state of one lot_id; connects to transformation events through LotEventLine. |
| TransformationEvent | Identifies a processing occurrence with its sequence and timestamps; groups all participating input and output lines. |
| LotEventLine | Joins one event to one lot state; stores explicit input/output direction, quantity, uom and source_record_id. |
| ShipmentLine | Links a shipped lot state to a shipment, recipient, quantity, uom and supporting dispatch record. |
| DispositionRecord | Links an authorised person's disposition decision to its specified lot or state, with effective time and supporting record. |
| SourceRecord | Identifies the named operational record, originating system and controlled revision supporting an event, line, shipment or decision. |
In this design, require every lineage edge to resolve through stable source_record_id links to a named operational record, such as a batch consumption entry. Retain its record identifier, line reference where applicable and revision—not merely a link to a changing screen. Use controlled revisions that preserve prior values, change reasons and authorisation rather than silently replacing history.
For the process event log, distinguish occurrence time from recording time. Define time-zone handling, for example UTC storage with the originating offset retained, and preserve explicit predecessor relationships so timestamp ties do not determine processing order.
Event quantities document what entered and left an event. They do not establish exact parent-to-child allocations across multiple outputs. Where input allocation is unknown, label it explicitly and retain the event-level relationship; do not manufacture exact contributions by proportionally distributing totals without a documented allocation basis.
LotState
Identifies a lot at a recorded processing state.
- lot_state_id
- lot_id
- material_id
- supplier_lot_code
- site_id
TransformationEvent
Represents an operation connecting inputs and outputs.
- event_id
- event_type
- occurred_at
- source_record_id
LotEventLine
Connects each material state to its event.
- line_id
- event_id
- lot_state_id
- direction
- quantity
- uom
ShipmentLine
Connects dispatched quantities to a destination.
- shipment_id
- line_id
- lot_state_id
- quantity
- uom
- destination_id
DispositionRecord
Stores an attributable material-status decision.
- disposition_id
- lot_state_id
- status
- decided_by
- decided_at
SourceRecord
Locates the supporting operational record.
- source_record_id
- system_id
- record_key
- revision
05Three worked cases: a split, a merge and a rework addition
These hypothetical cases show how quantities and lot relationships answer different questions: how much material moved, and which lots are connected. All quantities are kilograms (kg). Each example uses a closed mass-accounting boundary, with no unrecorded moisture change or additional material assumed. Losses are documented; balancing the arithmetic does not establish that those losses are acceptable. The figures are illustrations, not validated yields or operating instructions.
Read each row as a single material event. The parent–child lot relationship follows the actual transfer, while the quantity balance includes both usable output and documented loss.
| Case | Inputs | Outputs and accounted losses | Relationship result |
|---|---|---|---|
| 1 — Split | Parent P10 contains 1,000 kg; the full quantity enters the split. | Child C11 receives 400 kg; child C12 receives 580 kg; documented loss is 20 kg. Balance: 400 + 580 + 20 = 1,000 kg. | A backward trace from C11 reaches P10. A forward trace from P10 reaches both C11 and C12. The loss closes the mass balance but is not material assigned to either child. |
| 2 — Merge | M1 contributes 300 kg and M2 contributes 200 kg. Assume full commingling and no loss. | Output M3 contains 500 kg. Balance: 300 + 200 = 500 kg. | Both M1 and M2 are ancestors of the entire output M3. M1's 300 kg contribution does not identify a separable 300 kg portion of the blend. Contribution quantities describe the inputs, not independently traceable portions within M3. |
| 3 — Rework addition | Assume the operation is authorised under the site's process. Prior lot R0 contains 50 kg; consume 20 kg from R0 with 180 kg of fresh input F0. | R1 contains 196 kg, with 4 kg documented loss. Event balance: 20 + 180 = 196 + 4 = 200 kg. R0 balance: 50 − 20 = 30 kg remaining. | R1 has both R0 and F0 as ancestors. Only the consumed 20 kg of R0 enters this event; its remaining 30 kg stays with R0. Preserve the prior-lot identity through the rework routing rather than recording the addition as unidentified material. |
Use these cases as paired checks: one for relationship traversal and one for in-process reconciliation. A correct total alone cannot demonstrate correct ancestry, and a correct relationship diagram alone cannot demonstrate complete quantity accounting. Review both results against the same event boundary before accepting the example as a successful trace test.
06Use genealogy to support recall scoping—not to make the decision
Start with a documented investigation seed: a supplier lot, finished lot or other identified material, together with the reason for investigating it. Use a backward genealogy trace to identify relevant inputs and a forward genealogy trace to find potentially affected outputs. Join those outputs to current inventory and historical shipment records; an inventory-only view misses material already distributed.
As an investigation practice, create a versioned scope report containing:
- Matched lots and links to supporting records.
- Quantities and units by disposition category, with categories defined to prevent double counting.
- Distribution destinations linked to shipment records.
- Unresolved relationships and assumptions used to include or exclude material.
- An as-of timestamp and report version so reviewers can distinguish successive assessments.
A material relationship establishes a connection, not a conclusion that a product is defective. The merge case above illustrates why commingling matters to scope; its ancestry alone does not establish product risk. Genealogy supports assessment but cannot determine the correct recall boundary.
Keep uncertain links visible as investigation items rather than silently dropping them and shrinking the report. Record what remains unresolved, assign an owner and explain changes between report versions.
Keep hold, release and recall decisions with authorised people under applicable procedures. For US drug manufacturing, 21 CFR 211.22(a) assigns the quality control unit responsibility and authority to approve or reject components, drug product containers, closures, in-process materials, packaging material, labeling and drug products. A scope report informs those decisions; it does not execute them.
07Connect operational systems and recover failed handoffs
Assign a record owner to each handoff. A recommended allocation is purchasing for material identifiers and supplier-reference mappings; warehouse operations for receipt events and received-lot identity; manufacturing for actual consumption and output creation; and distribution for shipment lines linked to dispatched lots. These are integration roles, not assumptions about particular software. Define who resolves disagreements between records, especially when material consumption postings arrive after output records.
Carry source-system event identifiers and define duplicate-detection keys, such as source, event ID and line ID. Reconcile accepted events against independent operational transaction counts and quantity totals for the same period and units. Successful message transfer proves delivery, not complete lot relationships: a delivered event may omit an input lot or reference an unknown output.
Use a controlled recovery sequence: detect the exception; contain the uncertain transaction so it is not treated as confirmed; reconcile against the operational record; correct through a controlled revision; replay where appropriate; and confirm downstream relationships. Preserve original identifiers and correction history as data integrity controls.
For US drug records required under Part 211, design retrieval around 21 CFR 211.180(c): records or copies must be readily available for authorized inspection throughout retention at the establishment where the activities occurred. Immediate electronic retrieval from another location meets that paragraph’s requirements.
For food records, 21 CFR 117.330(a) permits reuse without duplication only when existing records contain all required information and satisfy the subpart’s requirements. Reuse is conditional, not a blanket exemption.
08Measure coverage, quantity accounting and trace usability
Use these proposed internal metrics to assess genealogy quality. Set targets and tolerances with process-specific justification, rather than treating them as regulatory benchmarks.
- Event-link coverage (%) = eligible material events with all expected input and output lot links ÷ eligible material events reviewed × 100. Define eligibility and expected links before review. Establish the denominator from independent operational transactions, not only the existing genealogy graph; otherwise, missing events disappear from the measure.
- Operation mass-balance residual (kg) = total input mass − total output mass − documented losses. State the operation, time window and accounting boundary; count each mass once. Use the residual as an investigation signal, not an automatic acceptability judgment. Align this measure with in-process reconciliation.
- Unresolved exceptions: at a fixed reporting cutoff, report counts by significance and age since detection, with a named owner for each exception. Define significance categories consistently so an old missing relationship is not hidden among minor documentation issues.
- Usable-trace elapsed time: measure from a defined trace request to a reviewable report, including record retrieval and quantity reconciliation. Report retrieval speed separately from completeness against the requested scope. Use this distinction in recall-readiness exercises.
09Failure modes that make a complete-looking trace unreliable
A connected genealogy diagram can conceal unsupported quantities or missing destinations. Treat these as data integrity risks: test what each relationship represents, not just whether a line exists. The controls below are design recommendations, not universal legal requirements.
| Failure mode | What becomes unreliable | Preventive or detective control. |
|---|---|---|
| Planned recipe quantities substituted for actual consumption | Material usage appears exact despite substitutions, unused issues or returns. | Reconcile consumption to actual issue, addition and return records; investigate differences. |
| Inconsistent units or unexplained conversions | Quantities reconcile numerically but represent different amounts. | Define unit masters and record conversion bases; flag missing or incompatible bases. |
| Held or rejected lots excluded from exports | Connected material disappears because of its disposition. | Include all material states in relationship reports; display disposition separately. |
| Split quantities allocated by assumption | Child-lot quantities appear observed when they are inferred. | Retain the actual event account and mark allocation uncertainty rather than presenting estimates as measurements. |
| Shipment histories reduced to a net balance after returns | Prior destinations disappear when quantities cancel out. | Retain separate dispatch and return events so destination history remains reconstructable. |
Use contemporaneous recording to reduce reconstruction from memory. During review, sample relationships against their underlying records and challenge suspiciously tidy totals: a balanced report should not conceal an unsupported allocation or an omitted event.
10Adapt the model to the material flow—not just the industry label
These operational examples illustrate model choices, not processing permissions or sector-wide record mandates. Product category alone does not determine how many inputs, outputs or intermediate states an event needs.
- Supplements: link multiple ingredient lots to a blend, retaining the blend’s identity through subsequent filling.
- Food: represent commingling separately from packaging changes, preserving bulk-to-pack traceability.
- Devices: link component lots to the finished units assembled from them.
- Chemicals: distinguish co-product outputs and link recovered material to its origin and subsequent use.
For food, 21 CFR 117.3 defines rework as “clean, unadulterated food that has been removed from processing for reasons other than insanitary conditions or that has been successfully reconditioned by reprocessing and that is suitable for use as food.”
11Implementation checklist: prove the trace before relying on it
Use these practical acceptance checks within a defined pilot boundary. They are recommended implementation practices, not a regulatory review list. Name an accountable person for each check.
- Select representative complexity. Include the flows actually used at the site: a split, merge, external packing handoff or authorised rework step. Document excluded flows so pilot acceptance is not mistaken for site-wide readiness.
- Assign ownership. Name accountable owners for identifiers, unit definitions, event capture, interface exceptions and investigation reports. Identify who approves acceptance and who resolves disagreements between operational records and trace results.
- Test three entry points. Start separately from a received material lot, a finished lot and a shipment line. Compare returned relationships with original operational records, including the batch execution history, and independently reconciled quantities. Investigate both missing and unexpected relationships.
- Challenge failure and recovery. Test missing messages, duplicate events, corrected identifiers, a partial return and retrieval from archived records. Write the expected relationships, quantities and exception behaviour before each test; retain the actual results for comparison.
- Close the acceptance review. Record unresolved assumptions, corrective actions, owners and acceptance decisions. State any limits on operational reliance and have the designated approver decide whether the pilot supports the intended recall-readiness use.
- Maintain the demonstrated scope. Re-test affected paths when a material flow, interface or identification convention changes. Keep test records linked to the configuration and operating procedures they evaluated.
Frequently asked questions
Q.How should genealogy handle the same supplier lot number appearing on different materials or at different sites?+
Apply the identifier rule from the design section: the supplier code is an external reference on an internal lot ID. The practical work is telling collisions apart. Check material identity and receiving site first; two receipts with the same printed code but different materials are unrelated lots, while the same material and supplier at two sites may be one origin split by a transfer, which your [traceability data model](/glossary/traceability-data-model) should record as a link rather than a fictitious second origin. For drug manufacturing subject to [21 CFR 211.184(a)](https://www.ecfr.gov/api/renderer/v1/content/enhanced/current/title-21?part=211), records include the supplier’s lot numbers if known. A [batch barcode](/glossary/batch-id-barcode) should resolve to the unambiguous internal identity.
Q.What can a backward trace establish when a supplier does not provide its own upstream lot relationships?+
Up to the documented boundary described at the start of this article, and no further. A [backward genealogy trace](/glossary/backward-genealogy-trace) connects your product to recorded incoming lots and their supplier, receipt and document records. When you need more, send the request against the specific incoming lot and ask what the supplier can confirm about its own inputs; file each response with the investigation, labelled as a supplier statement rather than a confirmed connection, and extend the trace only where the response identifies specific upstream lots.
Q.How do you avoid counting the same finished lot twice when two ingredient paths converge on it?+
Preserve both paths, but count affected finished lots using distinct internal lot IDs. In a [forward genealogy trace](/glossary/forward-genealogy-trace), reaching one finished lot through two ingredients establishes two connections, not two finished lots. For quantities, aggregate unique output or shipment transactions rather than adding quantities at every graph edge. Test the query with a deliberately converging example: two intermediate lots feed one finished lot. [Recall readiness](/glossary/recall-readiness) reports should show that finished lot once while retaining both paths for investigation.
Q.Does shared equipment create a parent–child lot relationship when no material transfers between batches?+
No—not in a material-flow genealogy model. Shared equipment is a contextual association, whereas a parent–child edge represents material contribution. Record equipment identity, processing intervals and relevant cleaning events alongside the lots so investigators can search for potentially related batches without asserting that one became part of another. A [process event log](/glossary/process-event-log) supports this separate view. If carryover is suspected, record the investigation and its uncertainty; do not silently convert equipment sharing into a confirmed material-transfer relationship.
Q.How should a manufacturer connect genealogy to a contract packer's lot codes and shipment records?+
Agree a cross-reference that connects the manufacturer’s bulk lot, each packer-assigned output code and the relevant packaging run. Capture actual quantities received, packed, returned or discarded, with units, and associate shipment transactions with the packed identities. [Bulk-to-pack traceability](/glossary/bulk-to-pack-traceability) should support one bulk lot feeding several packaging runs without losing their separate destinations. Test the handoff in both directions: a customer shipment back to bulk, and bulk forward to shipments. Where used, [pallet identifiers](/glossary/sscc-pallet-label) should retain their recorded contents.
Q.How can continuous production or campaign manufacturing be represented without implying false lot boundaries?+
Model recorded input and output intervals, equipment context and the basis used to assign material relationships. A campaign can group activity without implying that all its outputs have identical ancestry. For continuous flow, distinguish measured connections from allocations based on a documented process model; time overlap alone does not establish exact material contribution. Use [production context tagging](/glossary/production-context-tagging) to retain operating periods and transitions. When boundary uncertainty exists, preserve it explicitly rather than presenting a convenient reporting interval as a proven physical separation.
Q.What should happen to genealogy when a product is relabelled or repacked without changing its formulation?+
Retain the original manufacturing ancestry and add a packaging or relabelling event, rather than replacing the old identity. Link any new output code to the input lot and record packaging or label versions, quantities, units and disposition of remaining stock. If the lot code stays unchanged, distinguish successive packaging states through event or version identifiers. Keep these links separate from formulation transformations in the [material genealogy](/glossary/material-genealogy), so an investigation can distinguish product ancestry from the packaging presentation shipped.
Q.Can a small operation use spreadsheets for lot genealogy, and what should it test before relying on them?+
A spreadsheet can represent a small genealogy network, but suitability depends on intended use and applicable record controls—not business size alone. Test duplicate codes, splits, merges, rework, reversed transactions, missing links and converging paths. Confirm that backward and forward queries agree, quantities retain their units, and corrections remain understandable. Test access restrictions, concurrent editing, backup restoration and export completeness. Use a [data integrity risk assessment](/glossary/data-integrity-risk-assessment) to evaluate weaknesses, and compare trial results against independently checked [batch records](/glossary/batch-record).
Primary sources
Want to see how Lot Genealogy could fit into your own records and workflows? Explore the related V5 pages or talk to our team about what applies to your operation.
