Guides · ← All guides
What Is Shadow Testing for a Model Migration?
Published: November 14, 2026 · Reviewed: November 14, 2026 · 7 min read
By the Ingenious AI team
The short answer
Shadow testing means the candidate model receives copies of real production requests and its outputs are recorded and compared — but users still get the incumbent's answers. It closes the gap an offline eval set cannot: your eval set is a sample, frozen in time, while shadow traffic is the live distribution, including this week's weird inputs your sample never contained. It costs the candidate's inference bill on duplicated traffic and buys the highest-fidelity migration evidence available. ModelMinder's comparison method — same prompts, both models, four separate sections — is the offline half of this discipline; shadowing is that comparison run against the present tense.
What shadowing catches that an eval set misses
Distribution surprises. Your eval set was sampled from last quarter's traffic; production has since acquired new user segments, new input shapes, a partner integration with eccentric payloads. Shadowing exercises the candidate against all of it, at real volumes and real peak shapes — including the latency behaviour under your actual load profile, which no benchmark window reproduces. It also catches integration truths an offline run cannot: how the candidate's outputs interact with your post-processing, your caching, your content filters, at production scale. The eval set answers 'is the candidate good on what we know?'; the shadow answers 'does anything we did not know about break it?'
How is a shadow run designed?
Duplicate at the request layer, compare at the output layer, and decide the sampling honestly. Full duplication is cleanest for high-stakes paths; sampled shadowing (say 10 to 20 percent) suits high-volume, lower-stakes ones and caps the duplicated spend. Record for every shadowed request: both outputs, both latencies, the candidate's token usage, and any contract-check results on its output. Run it long enough to cover a full business cycle — a week that includes your weekend shape and your Monday spike — because a three-day shadow over a quiet period is a fair-weather test wearing a lab coat.
What are the safety rules?
Three, non-negotiable. Privacy: shadow traffic is production data, so the candidate — especially if it lives at a new provider — must be covered by the same data terms as the incumbent; when it is not, shadow only the workloads whose data classification allows it. Isolation: shadow failures must never affect the user path — separate timeouts, separate error handling, a kill switch that stops duplication without touching production. Cost governance: duplicated inference is real money, so the shadow has a budget and an end date set in advance, reported like any other spend. A shadow programme without these rules is a data incident and a billing surprise auditioning at once.
How do shadow results feed the decision?
Into the same four-section comparison discipline: semantic differences between shadow outputs and incumbent outputs (sampled for human review where divergence is highest), latency distributions under real load, true cost per task at your real input mix, and hard failures — refusals, malformed outputs, timeouts — counted exactly. The shadow's distinctive contribution is the hard-failure census on live data: if the candidate refuses a class of real requests your eval set never contained, you have learned the single most valuable fact a migration can learn, at the price of inference rather than incidents. That evidence goes to the same owner-approval gate; shadowing upgrades the evidence, not the governance.
When is shadowing overkill?
For low-stakes internal tools, small traffic, and migrations where the eval set is demonstrably representative and the fallback route is strong — the offline comparison plus a canary is proportionate. Shadowing earns its duplicated spend where the cost of a bad cutover is high, the traffic is large or spiky, or the workload's inputs drift fast enough that a frozen sample ages in weeks. Match the instrument to the stakes; the sin is not skipping the shadow, it is skipping it by default on the workloads whose failure you could least afford, because nobody priced the evidence.
Five actions to shadow-test a candidate safely
- Duplicate requests at the request layer; serve only the incumbent's outputs, and record both sides for comparison.
- Confirm the candidate's data terms cover production data before any live input is shadowed to it.
- Isolate the shadow path completely — separate timeouts and error handling, plus a kill switch that cannot touch production.
- Run at least one full business cycle, with a spend budget and end date fixed in advance.
- Feed results into the standard four-section comparison and the same owner-approval gate as any migration.
Worked example: Driftline Media's shadow finds the refusal class
Driftline Media, a fictional sports-news network, shadow-tested a candidate for its match-report generator across two full weekends — its peak shape. The offline eval had shown a clean candidate. The shadow found what the sample lacked: live reports containing supporter chants with profanity triggered refusals in 3.1 percent of shadowed requests, a class the curated eval set had politely excluded.
The fix was a preprocessing step and a policy-tuned prompt variant, re-shadowed the following weekend at a 0.2 percent refusal rate. Driftline then migrated 8 endpoints: cost per report $0.024 versus $0.027 before, p95 generation latency 6.2s versus 7.0s. The shadow's duplicated inference cost about $340 — against a launch weekend that would otherwise have opened with one report in thirty missing.
Sources
- ModelMinder documentation (ModelMinder, 2026) — this platform’s own first-party method for the radar, the dependency graph, and the Sunset Risk Score.
- OpenAI deprecations documentation (OpenAI, 2026) — the provider’s own deprecation list: shutdown dates, recommended replacements, and published minimum notice periods.
Frequently asked questions
How is shadow testing different from a canary rollout?
A canary serves the candidate's outputs to a small slice of real users, so it tests user outcomes with real risk attached. A shadow serves nobody — the candidate's outputs are recorded and discarded — so it tests behaviour at production fidelity with zero user exposure. Shadow first for evidence, canary next for exposure, in high-stakes migrations.
How long should a shadow run?
Long enough to cover your full business cycle — typically one to two weeks for products with weekly rhythms — and long enough to accumulate meaningful volume on your least-frequent important request classes, which are usually the ones hiding the surprises.
Does shadowing double our model bill?
On the shadowed slice, yes — that is the honest price, and it should be budgeted and time-boxed. Sampling (shadowing a percentage of traffic) caps the cost for high-volume workloads while preserving the distributional evidence for common classes; keep full duplication for rare-but-critical classes if you can.
Can we shadow to a different provider?
Yes, and it is the strongest way to evaluate a provider switch — but the data-terms check becomes paramount. Production data flowing to a provider you have no production agreement with is a compliance event, not a test. Clear the terms first, or restrict shadowing to data classifications the terms cover.
What shadow result should block a migration outright?
A hard-failure class on core traffic that cannot be engineered around — refusals of legitimate core requests are the canonical case — or contract failures in outputs your pipelines consume. Semantic divergence alone rarely blocks; it routes to recalibration and a second shadow.