Expiry Decision Benchmark: 60 Synthetic Cases | Foreshelf
Reproducible method
60 synthetic cases for expiry-aware decisions.
This functional benchmark checks whether a fixed engine contract produces the expected action for replenishment, waiting, expiry risk, multiple lots, lead time/incoming stock, and insufficient-data boundaries.
Not a precision study across merchants, causal savings estimate, or independent validation. The cases are synthetic and do not represent any store.
Method
Seed: 20260901 ; reference date: 2026-09-01 ; timezone: UTC; engine version: expiry-aware-reorder-v1 .
Six fixed families contain ten cases each. Inputs include stock, quantity-only sales history, lead time, safety stock, incoming quantity, expiry flag and batch dates.
An independent reference function establishes the expected action and integer outputs before the tested forecasting function is called. It does not copy engine output.
Verdict requires exact action, suggested quantity, projected spoilage units and one-decimal runway. All 60 cases and both sides of the comparison are in the complete results JSON .
Fixed coverage
| Family | Cases | What it tests |
|---|---|---|
| Replenishment | 10 | Runway near lead time, normal suggested quantity, incoming units |
| Waiting | 10 | At least half of observable stock projected to expire before sell-through |
| Expiry risk | 10 | Material but below WAIT threshold, producing monitoring |
| Multiple lots | 10 | Several dates and quantities on one SKU |
| Lead time/incoming | 10 | Supplier timing and already-ordered units |
| Insufficient and boundaries | 10 | No history, zero demand, zero stock, exact expiry and threshold edges |
Readable examples
Waiting: 80 units, 1 unit/day, two lots with 50%+ projected spoilage. Expected and observed action: WAIT ; no reorder quantity is proposed.
Expiry risk: a long runway with a material but smaller projected expiry exposure. Expected and observed action: MONITOR_EXPIRY ; the result calls for review rather than a causal savings claim.
Insufficient history: no sales records. Expected and observed action: INSUFFICIENT_DATA ; the benchmark does not treat a 999-day sentinel as evidence of healthy demand.
The complete JSON is the source of truth for all 60 inputs, independent justifications, observed values, and failed/unresolved cases. A future engine change must rerun the same cases; cases must not be edited simply to preserve a perfect score.
Use the method, then check your own data.
Synthetic tests show contract behavior. They do not replace complete lot data, sales history, merchant review, or a production observation window.
Install on Shopify
Read the expiry-aware explanation