Testing late-delivery AI with only the data available at dispatch
How buyers can replay an AI late-delivery warning using only data available at decision time, then decide on shadow mode.
Published by Mentrix Digital ·

Key points
- Use the time data arrived in the system, not the event time. A scan that arrived at 11:00 cannot feed a 09:00 warning.
- Test on a later holdout period and compare against a simple rule, counting misses, false alarms and cases with unavailable inputs.
- Operations decides on shadow mode and who may override before any warning affects real work.
A Hypothetical Case and Its Decision Point
This example is hypothetical and does not describe any client engagement. A business cuts orders at 09:00 and wants an AI warning that flags orders likely to arrive late, so staff can contact customers or switch carriers in time. The warning must therefore be built only from data the system actually held at 09:00. A sound acceptance test replays that moment exactly rather than using a complete table assembled later, because such tables usually contain information nobody could see at 09:00.
How Point-in-Time Leakage Happens
Suppose a carrier scans a parcel at 08:45, but the scan reaches the system at 11:00. If the replay uses the 08:45 event time, the model sees data that did not exist in the system at 09:00, and results look better than reality. The actual delivery outcome arrives later still and may be used only for scoring, never as a model input. Buyers should ask the vendor to list every field with its arrival timestamp and drop anything that arrived after the cut-off.
Test on a Later Holdout Period
Google's Rules of Machine Learning recommends evaluating on data gathered after the training period, since this reflects production better than a random split. Buyers should fix the last training date and test on the following weeks that the vendor has never seen. The holdout should include peak and normal days, and the replay must apply the same arrival-time rules throughout. See Rules of Machine Learning.
Compare Against a Simple Rule and Count Every Outcome
The AI should be compared with a simple rule the team could use today, such as warning on every remote-area order without a pickup scan before 09:00. Report both methods with denominators: misses, where a late order got no warning; false alarms, where a warned order arrived on time; and cases where required inputs were unavailable at 09:00, reported separately rather than silently dropped. If the AI does not beat the simple rule in ways that matter operationally, it is not ready for acceptance. For example, if 12 orders arrived late and three went unflagged, the missed share is 3/12. If 15 orders triggered warnings and six arrived on time, 6/15 warnings were false alarms. List orders with unavailable inputs separately.
Checklist and the Operations Decision
Acceptance checklist: every field carries an arrival time, data arriving after 09:00 is excluded, delivery outcomes are used only for scoring, testing uses a later holdout, the AI is compared with a simple rule, and misses, false alarms and unavailable inputs are reported. Once these pass, operations makes the call. In this hypothetical, the decision is to start in shadow mode, logging warnings without sending them to staff, and to name the shift lead as the person allowed to override before results are reviewed again.
Scope an acceptance test for your AI warning system. Custom AI Solutions for Business →
Sources
- Standards guidance · Google for Developers: Rules of Machine Learning · Accessed


