mail@mabbaz.com Abu Dhabi, UAE

Traceability · Manufacturing · Recall

Forward and Backward Traceability in Manufacturing

Backward tracing answers what went into this. Forward tracing answers where did it go. They run over the same data, they are not equally difficult, and the one you will need under pressure is the one most systems are worst at. This is the difference, the queries, and how to test both before an incident does it for you.

Muhammad Abbas November 26, 2026 ~15 min read

Traceability has a direction, and which direction you are travelling changes the question, the query, the cost and the answer you can defend. Most organisations are reasonably good at one of them and have never seriously tested the other. The asymmetry is predictable: backward tracing is the direction you practise, because quality investigations run backward and they happen routinely. Forward tracing is the direction you need in a recall, it is harder, it is slower, and in most businesses the first real forward trace is attempted during the incident it was supposed to be ready for.

The message up front: backward tracing is a narrowing search and forward tracing is a widening one, and that single structural difference explains everything else. Going backward, each step reduces the candidate set towards a specific set of inputs. Going forward, each step multiplies, because one input lot feeds many output lots which ship to many customers. Forward traces are therefore slower, more expensive and more prone to implicating far more product than is actually affected. If you only ever rehearse one direction, rehearse forward.

1. The two directions, precisely

Backward traceability, also called tracing or upstream tracing, starts from an output and identifies its inputs. The question is: this finished lot has a problem, what went into it, from which suppliers, and what else do we know about those inputs? It is the diagnostic direction. You use it to find a cause.

Forward traceability, also called tracking or downstream tracking, starts from an input and identifies everything it became and everywhere it went. The question is: this raw material is suspect, which finished lots contain it, where are they now, and which customers received them? It is the containment direction. You use it to limit harm.

In practice an incident uses both, in sequence, and the sequence matters. A customer complaint triggers a backward trace to find the implicated input. The input then triggers a forward trace to find everything else that input touched. The backward step is diagnosis; the forward step is the recall scope. Getting the backward step right and the forward step wrong means you have correctly identified the cause and incorrectly identified what to recall, which is the worse of the two failures.

Both directions run over the genealogy structure built transaction by transaction through receipt, issue, consumption and output. If that structure is incomplete, neither direction works, and the chain that produces it is covered in lot traceability from raw materials to finished goods. This article assumes that chain exists and is about interrogating it.

2. Backward tracing: the narrowing search

A scenario. A customer reports an off taste in sauce from finished lot FG-2026-1144. The investigation needs every input to that lot.

What happens physically: retained samples for FG-2026-1144 are pulled from the sample library and tasted or tested. Production records for the order that made it are retrieved. If an input is suspected, retained samples of that input are pulled too.

What the system has to do: walk up the genealogy from the output lot, one transformation level at a time, collecting input lots and the quantity of each.

FG-2026-1144 (900 units sauce)
  ↑ made by order PO-8831
  ↑ consumed:
    118 kg tomato paste  lot TP-2026-0871  (supplier A)
      12 kg salt           lot SA-2026-0310  (supplier B)
       9 kg herb premix  lot HP-2026-0455  (supplier C)
              ↑ HP-2026-0455 was itself blended
              ↑ from oregano lot OR-2026-0021
                 and basil lot BA-2026-0017

Note that the herb premix is a second transformation level. Backward tracing is recursive, not a single join, and the number of levels is a property of your process rather than something you choose. A business that buys finished ingredients has one level. A business that makes its own intermediates has as many as its production structure.

The reason backward tracing is the easier direction is that the fan-out is bounded by the bill of materials. A sauce has perhaps eight ingredients, so the first level yields eight lots, the second perhaps twenty. The result set stays small enough to read, and it converges on a specific, nameable set of suppliers and deliveries.

3. Forward tracing: the widening search

Now reverse it. Supplier A notifies a problem with tomato paste batch TP-2026-0871. The question is what that batch became and where it went.

TP-2026-0871 (received 40 drums, 4,000 kg)
  ↓ consumed by 14 production orders over 9 days
  ↓ producing 14 finished lots across 3 recipes
    ↓ 2 of those FG lots were reworked into 2 further lots
    ↓ 16 finished lots total
  ↓ despatched on 61 delivery notes
  ↓ to 38 customers, 4 distributors and 1 export consignment
  ↓ of which: still in our warehouse, in transit,
      at the customer, on shelf, or already sold through

Each step multiplies. One received lot becomes fourteen orders becomes sixteen finished lots becomes sixty-one deliveries becomes forty-three trading partners. That expansion is not a flaw in the data; it is what actually happened to the material. But it has three consequences that make forward tracing structurally harder:

  • The result set is large and heterogeneous. You are not reading a list of eight ingredients, you are assembling a despatch picture across weeks, and it has to be accurate enough to act on commercially.
  • It crosses the company boundary. Backward tracing ends at your goods receipt. Forward tracing only becomes useful once it passes your despatch bay, and beyond that you depend on records held by other businesses.
  • Rework and repack create new branches. A finished lot that was reopened, blended or relabelled becomes a new node whose parentage must be recorded, or the branch is invisible. This is the most common reason a forward trace is incomplete.
The direction that decides the cost of an incident

A backward trace that takes a day costs you a day of investigation. A forward trace that takes a day costs you a day during which affected product is still moving, and it very often ends in a precautionary recall of far more stock than was ever affected, because the only defensible way to compensate for an incomplete forward trace is to widen the scope. The business case for traceability investment lives almost entirely in this direction.

4. One up and one down is not the same as full traceability

There is a persistent and expensive confusion here between what regulation requires and what a forward trace needs.

Under EU general food law, the traceability duty in Article 18 of Regulation (EC) No 178/2002 is the one step back, one step forward model. The European Commission's guidance on implementing that article describes the obligation as identifying your immediate suppliers and the businesses you supplied, with systems to make that available to authorities on request. Final consumers do not have to be identified.

Two things in that guidance deserve to be much better known than they are:

  • Internal traceability is not expressly required. The guidance states the Regulation does not expressly compel operators to link incoming product to outgoing product. In other words the join that makes a multi-level forward trace possible, the thing this whole article is about, is not itself an EU legal minimum.
  • Anything beyond one up and one down is contractual. When a retailer demands full genealogy within four hours, that obligation comes from your supply agreement, not from food law.

So an operation can be fully compliant with the EU general traceability duty and still be unable to answer the question a recall actually asks. Compliance gets you the ability to name who you bought from and who you sold to. It does not get you the ability to say which finished lots contain a given input. Those are different capabilities, and conflating them is how businesses discover during an incident that the compliance tick box they relied on does not cover the situation they are in.

The US approach is shaped differently. The FDA Food Traceability Rule, at 21 CFR part 1 subpart S, specifies Key Data Elements against defined Critical Tracking Events, including shipping, receiving and transformation, for foods on the Food Traceability List. Because transformation is itself a tracking event with required data, that model sits closer to the internal genealogy structure. Note that the rule's compliance date is unsettled: the original date was 20 January 2026, FDA has proposed a 30-month extension to 20 July 2028 and says Congress directed it not to enforce before then, and FDA presents the extension as a proposal rather than a final rule. Verify the current position on FDA's rule page rather than relying on any article, including this one.

Jurisdiction matters throughout. Neither regime has force outside its territory, and nothing here is regulatory advice for your operation.

5. The two directions side by side

Dimension Backward (tracing) Forward (tracking)
Question answered What went into this? Where did this end up?
Purpose Diagnosis, root cause, supplier attribution Containment, recall scope, customer notification
Result set behaviour Narrows at each level Multiplies at each level
Bounded by The bill of materials Nothing internal; by despatch volume
Stops at Your goods receipt Your despatch, then partner records
Time pressure Hours to days, usually tolerable Minutes to hours, product still moving
Query cost Low, small recursion High, wide recursion over despatch history
How it fails Consumption derived from the recipe, so inputs are assumed rather than recorded Rework and repack unmodelled, so whole branches are missing and the trace looks complete
Cost of failing Wrong cause identified, problem recurs Recall scoped too narrowly (unsafe) or too widely (expensive)

The last row is the one to dwell on. A backward trace that fails wastes investigation effort. A forward trace that fails has no safe failure mode: too narrow leaves affected product in the market, too wide destroys good stock and customer confidence. There is no cautious option, only an accurate one.

6. The recursion problem, and why it bites when you are busy

Both directions are recursive walks over the same genealogy table. In a relational database that is a recursive common table expression, and the two directions differ only in which column you join on.

-- BACKWARD: from an output lot to all ancestors
WITH RECURSIVE up AS (
  SELECT input_lot_id, output_lot_id, qty_consumed, 1 AS lvl
  FROM lot_genealogy WHERE output_lot_id = :start
  UNION ALL
  SELECT g.input_lot_id, g.output_lot_id, g.qty_consumed, up.lvl + 1
  FROM lot_genealogy g JOIN up ON g.output_lot_id = up.input_lot_id
  WHERE up.lvl < 20
) SELECT * FROM up;

-- FORWARD: from an input lot to all descendants
-- identical, but join g.input_lot_id = down.output_lot_id

Three engineering points that are easy to miss until the query is needed in anger:

  • Put a recursion depth limit in. Rework can create a cycle, where a lot is an ancestor of something that becomes its own input. Without a depth guard the query does not return, and it will not be the moment you want to be debugging SQL.
  • Index both directions. An index that serves the backward walk does not serve the forward one. Two indexes, on output_lot_id and on input_lot_id.
  • Test at real volume. A forward trace over nine days of production in a plant running fourteen orders a day is a different query from the same trace in a demo dataset. I would rehearse it against production-scale data and record how long it takes, because that number is the real answer to "how fast can we scope a recall".

7. Scope: the trade-off nobody gets to avoid

A forward trace produces a candidate list, and turning that list into a recall decision involves a judgement that the data cannot make for you.

Return to the 4,000 kg of tomato paste. Suppose only part of that delivery was actually contaminated, say the material from one drum. Your genealogy records consumption at lot level, so all fourteen orders that consumed from TP-2026-0871 are candidates, and all sixteen finished lots are implicated. The true affected set might be two of them. You cannot tell which two, because the drum was never separately identified.

That is the cost of the lot boundary, and it is a direct consequence of a decision made long before the incident. Narrower lots mean more records and more handling but tighter recall scope. Wider lots are cheaper to run and implicate more product when something goes wrong. The right boundary is a commercial trade between daily operating cost and contingent recall cost, and it should be set deliberately rather than inherited from whatever the system defaulted to. Where the boundary itself is drawn is discussed in batch vs lot vs serial number.

What traceability cannot do

Traceability tells you where material went. It does not tell you whether the product is actually unsafe, it does not establish causation, and it cannot resolve below the lot boundary you chose. A perfect forward trace on coarse lots still implicates product that was never affected. Organisations sometimes buy traceability expecting it to make recalls small; it makes them accurate, and accuracy is only as fine as your lot granularity. Expecting more than that from the system leads to disappointment at the worst possible moment.

8. The mock trace: the only test that means anything

A mock trace is a rehearsal: pick a lot, run the trace cold, time it, and compare the result against physical reality. It is the single most useful traceability exercise available and it is routinely skipped because it is uncomfortable, which is precisely why it finds things.

How I would run one:

  • Pick the lot without warning, and pick a hard one. Something that was partially reworked, or that spanned a shift change, or whose supplier sent two batches on one delivery. A trace on a clean, simple lot proves nothing.
  • Run both directions. Backward to the suppliers, forward to the customers. Most operations find the forward leg takes several times longer.
  • Time it with a clock, against the obligation that applies. If a customer contract says four hours or FDA says 24 hours for records, the test is whether you met it, not whether you eventually got there.
  • Reconcile quantities, not just identities. Does the recorded input quantity match what the order should have used? Does the despatched quantity match what was produced? A trace that names the right lots with the wrong quantities is telling you the consumption postings are unreliable.
  • Verify against the physical world. Go and find a pallet the trace says is in the warehouse. If it is not there, the problem is not the query.
  • Record what broke and fix the transaction, not the report. Every gap a mock trace finds traces back to a posting that did not carry lot detail. The fix belongs there.

Most operations that run a genuine first mock trace find the same two things: the forward leg is far slower than anyone expected, and at least one branch is missing because of a rework, a repack or a stock adjustment posted without lot detail. Both are fixable. Neither is discoverable from a configuration review.

9. Where each direction fails

Failures sort cleanly by direction, which is useful diagnostically:

  • Backward fails when consumption was derived. If input lots came from the bill of materials rather than from a posting at the line, your backward trace returns the recipe. It will look complete and name the wrong lots whenever a substitution, an over-issue or a second lot at the line occurred.
  • Backward fails at the company boundary when the supplier reference was overwritten. You can name your own lot and not the supplier's batch, so the trace stops at your dock.
  • Forward fails on rework. Material reprocessed into a new lot without recorded parentage removes an entire branch, and nothing in the result indicates the branch is missing.
  • Forward fails on repack and relabel. Breaking a bulk lot into retail packs under a new lot code without a parent link severs the chain at the last step before the customer, which is the worst possible place.
  • Forward fails on despatch records that carry the item but not the lot. You know customer X received this product; you cannot say which lot. The trace reaches the despatch bay and stops.
  • Both fail on stock adjustments. Cycle count corrections, write-offs and inter-site transfers posted without lot detail create holes the recursion cannot cross.
  • Both fail silently. This is the property that makes traceability dangerous: an incomplete trace returns a confident, well-formatted, plausible answer. There is no error message for a missing branch. Only a mock trace against physical reality exposes it.

The idea to walk away with

Backward and forward traceability are the same data read in opposite directions, but they are not the same capability. Backward narrows and diagnoses; forward multiplies and contains. Regulatory compliance with a one up, one down duty gives you neither multi-level direction, because the internal link between incoming and outgoing product is, under EU general food law, not expressly required at all.

The practical consequence: build and rehearse the forward direction. It is the harder one, the slower one, the one with no safe failure mode, and the one you will be running while product is still moving and someone is asking how much needs to come back.

Final thoughts

If you take one action from this, make it a mock trace on a deliberately awkward lot, timed, both directions, verified against physical stock. It costs a morning. It will tell you more about your real traceability position than any system audit, and whatever it finds will be cheaper to fix now than during the incident that would otherwise have found it for you.

What happens after the trace, when the scope is set and the product has to come back, is a different discipline with its own clock: see product recall management in manufacturing. For the structural view of the genealogy data both directions depend on, see batch genealogy in manufacturing.

Disclosure

Alongside advisory work I also build a CMMS and CAFM platform, so I have a commercial interest in the enterprise systems category. Nothing above is a recommendation for it, and no vendor has paid for inclusion or had any editorial input. This article makes no capability claim about any named product. Weigh the analysis accordingly.

Never run a forward trace under pressure?

Independent advisory on traceability design, mock trace facilitation, genealogy data models and the integration between production, warehouse and quality systems. 22+ years across enterprise systems implementation.

Book a conversation

Related reading: Lot and batch tracking, Serial number tracking, Expiry date management, Inventory accuracy, Real-time inventory tracking.

Muhammad Abbas

CMMS / CAFM Manager & Independent Advisor · 22+ years across enterprise CMMS, EAM, CAFM and ERP implementations in utilities, oil and gas, manufacturing, government and facility operations.

Work with me
MAbbaz.com
© MAbbaz.com