Migrating a Supply Chain Twin Off the Nightly Batch, and Paying for Failures That Stay Local

The old planning stack fails in one way: when the nightly ERP extract breaks, every downstream plan runs on yesterday's inventory and nobody is told. An event-driven supply chain twin swaps that one silent failure for many small, visible ones. Most of the migration budget is the price of keeping each of those failures local. That is the case to defend, because the cost lines only make sense next to the failure behaviour they buy.

What the monolith actually guarantees

The legacy setup is an APS reading a planning cube that an ETL job rebuilds overnight. It has one virtue that migrations tend to forget: its state is consistent even when it is wrong. Every node in the network is equally stale, so a planner can reason about it. Once you move to streamed material flow telemetry, with dock scans, carrier milestones and warehouse movements arriving as events, each node of the twin carries its own age, and consistency becomes something you have to engineer instead of something you inherit. The first budget line is a state model in which every entity holds a freshness timestamp and a provenance tag. Its measurable return is the share of replanning decisions made on data inside its declared freshness bound, a figure the old stack could not even report. Encoding events against traceability data standards such as GS1 EPCIS costs mapping effort per partner, and it pays back in the number of partners you can onboard without writing a bespoke adapter.

Isolation is where the money goes

Resilience in a twin comes from bulkheads, not from uptime. Each source domain, meaning supplier portals, transport visibility, plant execution and warehouse, gets its own ingestion path, buffer and replay log, so a dead carrier API degrades the transport layer of the twin while inventory and production keep updating. The decision rule is simple: if a node's latest trusted observation is older than 30 minutes, the twin marks it as estimated, propagates its uncertainty downstream, and blocks any automated replan whose recommendation depends on that node, leaving the call to a planner. Most of the engineering goes into that one rule. Propagating uncertainty through a multi-echelon network means the simulation layer has to carry ranges instead of point values, and range-aware solvers run slower. Our estimate is that this roughly doubles solve time for a full network replan, so you get slower plans and in return the system never executes automatically on a blind spot.

The part that hurts

The failure mode that hurts in practice is dual running. For months the batch cube and the twin both produce numbers and they disagree, and usually the twin is right about something the old stack averaged away, like a pallet sitting in a yard or a partial shipment booked as complete. Planners are still measured against the old numbers, so they trust them, and every discrepancy turns into a reconciliation ticket that someone closes by hand. Budget the reconciliation team explicitly and measure it by discrepancy closure time and by the share of discrepancies resolved in favour of the twin. When that share stays high for a full planning cycle, you have the evidence to switch the cube off. By our estimate the parallel period takes about a third of total migration effort, and cutting it short is the most common way these programmes lose planner trust and never win it back.

What stays unresolved

The decision left is whether to keep the batch cube alive as a cold fallback after cutover, which buys a known-consistent if stale state for the day the event backbone itself goes down, at the cost of maintaining two data contracts indefinitely, and the honest answer depends on whether your backbone has survived a regional outage in a real test rather than only on paper.

Can we shorten dual running if the twin already passes historical backtests?

Not safely. A backtest checks the model against clean historical data, but dual running checks the live feeds, the partner mappings and the planners' willingness to act on the output. Those are the things that break at cutover. A passing backtest is a reason to start the parallel period with confidence, not a reason to skip it.

Back to SupplyTwins · Domains

← Back to SupplyTwins
Engineering & Architecture Brief

Migrating a Supply Chain Twin Off the Nightly Batch, and Paying for Failures That Stay Local

The old planning stack fails in one way: when the nightly ERP extract breaks, every downstream plan runs on yesterday's inventory and nobody is told. An event-driven supply chain twin swaps that one silent failure for many small, visible ones. Most of the migration budget is the price of keeping each of those failures local. That is the case to defend, because the cost lines only make sense next to the failure behaviour they buy.

What the monolith actually guarantees

The legacy setup is an APS reading a planning cube that an ETL job rebuilds overnight. It has one virtue that migrations tend to forget: its state is consistent even when it is wrong. Every node in the network is equally stale, so a planner can reason about it. Once you move to streamed material flow telemetry, with dock scans, carrier milestones and warehouse movements arriving as events, each node of the twin carries its own age, and consistency becomes something you have to engineer instead of something you inherit. The first budget line is a state model in which every entity holds a freshness timestamp and a provenance tag. Its measurable return is the share of replanning decisions made on data inside its declared freshness bound, a figure the old stack could not even report. Encoding events against traceability data standards such as GS1 EPCIS costs mapping effort per partner, and it pays back in the number of partners you can onboard without writing a bespoke adapter.

Isolation is where the money goes

Resilience in a twin comes from bulkheads, not from uptime. Each source domain, meaning supplier portals, transport visibility, plant execution and warehouse, gets its own ingestion path, buffer and replay log, so a dead carrier API degrades the transport layer of the twin while inventory and production keep updating. The decision rule is simple: if a node's latest trusted observation is older than 30 minutes, the twin marks it as estimated, propagates its uncertainty downstream, and blocks any automated replan whose recommendation depends on that node, leaving the call to a planner. Most of the engineering goes into that one rule. Propagating uncertainty through a multi-echelon network means the simulation layer has to carry ranges instead of point values, and range-aware solvers run slower. Our estimate is that this roughly doubles solve time for a full network replan, so you get slower plans and in return the system never executes automatically on a blind spot.

The part that hurts

The failure mode that hurts in practice is dual running. For months the batch cube and the twin both produce numbers and they disagree, and usually the twin is right about something the old stack averaged away, like a pallet sitting in a yard or a partial shipment booked as complete. Planners are still measured against the old numbers, so they trust them, and every discrepancy turns into a reconciliation ticket that someone closes by hand. Budget the reconciliation team explicitly and measure it by discrepancy closure time and by the share of discrepancies resolved in favour of the twin. When that share stays high for a full planning cycle, you have the evidence to switch the cube off. By our estimate the parallel period takes about a third of total migration effort, and cutting it short is the most common way these programmes lose planner trust and never win it back.

What stays unresolved

The decision left is whether to keep the batch cube alive as a cold fallback after cutover, which buys a known-consistent if stale state for the day the event backbone itself goes down, at the cost of maintaining two data contracts indefinitely, and the honest answer depends on whether your backbone has survived a regional outage in a real test rather than only on paper.

Technical FAQ: Can we shorten dual running if the twin already passes historical backtests?

Not safely. A backtest checks the model against clean historical data, but dual running checks the live feeds, the partner mappings and the planners' willingness to act on the output. Those are the things that break at cutover. A passing backtest is a reason to start the parallel period with confidence, not a reason to skip it.

Related Architecture Specifications (DIGITALTWINS): multibodysim.com · planttwins.com · drivingtwins.com

More Technical Articles on supplytwins.com

Real-Time Port Congestion Prediction using AIS Satellite Telemetry and Digital Twins →Closed-Loop Material Flow Simulation for Automotive Battery Recycling Ecosystems →Leaving the Nightly MRP Run: How a Federated Supply Chain Twin Keeps Planning When a Feed Goes Dark →Migrating Legacy Supply Chain Twins to Fault-Tolerant Co-Simulation Architectures →