To compare two models in shadow mode, record which live requests you selected before either model finishes, then join both outcomes back to those request IDs. Keep the baseline in charge of the live response and run the candidate without business write permissions. Report how the two models performed on complete pairs alongside how many selected requests had no usable pair.
Make the request ID the unit of comparison
At ingress, choose requests using a rule that does not depend on outcomes. Log one row per selected request with its ID, selection time, input snapshot reference, and the slice you intend to inspect, such as attachment type or input size. Preserve the original request ID on retries and record attempts separately. Before joining, apply a rule for resolving attempts, such as using the result finalized by the workflow within its deadline. A late retry must stay visible in the attempt log.
Keep the conditions shared if the question is which model performs better. Pin the prompt, retrieved evidence, tool read results, scoring rubric, and deadline. Save the model and configuration versions. If you are comparing two complete workflows, let the intended differences run and identify them in the experiment record. A request with a mismatched input revision belongs in the incomplete count until you can establish a valid pair.
Isolate the candidate's side effects
A shadow candidate can compute an answer or propose an action. Give it a separate identity and record proposals in an isolated evaluation store. At the tool boundary, block business writes, customer messages, and any follow-on queue that could carry out a proposal. Exercise that boundary with a test action before mirroring traffic. Inspect the intended destination as well as the denial log.
Traffic mirroring alone does not establish this boundary. For example, Istio sends a copy to the mirror backend and discards its response at the proxy. If you need the candidate output, capture it at the candidate, with approved access and retention. Istio traffic mirroring documentation
Worked example with 120 selected requests
In this illustrative evaluation, both models are graded against the same pass rule and deadline. The baseline has a graded result for every selected request. The candidate has 12 timeouts without a usable response at the cutoff.
| Outcome | Requests |
|---|---|
| Both pass | 74 |
| Only baseline passes | 8 |
| Only candidate passes | 14 |
| Both fail | 12 |
| Candidate times out | 12 |
| Total selected | 120 |
The 108 complete pairs are 90% of the selected requests. On those pairs, the baseline passes 82/108 (75.9%) and the candidate passes 88/108 (81.5%). The paired difference is (14 − 8) ÷ 108, or 5.6 percentage points. Show the timeout count separately. If your production success rule requires a usable passing result by the deadline, the candidate passes that rule on 88/120 selected requests (73.3%).
Decide whether the evidence supports promotion
Set the minimum pairing coverage and the timeout limit before the run, both overall and within consequential slices. Suppose 9 of the 12 timeouts were among 30 attachment-heavy requests. The timeout rate in that slice is 30%, compared with 3/90, or 3.3%, elsewhere. The 5.6-point paired advantage describes the surviving pairs. Pause promotion if the missing slice falls below its coverage rule and investigate the missing path.
Keep the original selected count of 120 when investigating the nine attachment-heavy timeouts. Reconcile the selected request IDs against candidate ingress and terminal attempts. A missing ingress record points to delivery, while an ingress record followed by a timeout points to execution or result capture. After a repair, freeze a separate run with fresh requests from that slice and report its results beside the original run.
Shadow runs can show output differences and execution behavior under their tested conditions. A canary can later measure behavior when the candidate actually serves some requests. Google SRE Workbook on canarying releases
Start with a small, approved batch and export the request ledger with the paired outcomes. Check that complete pairs plus every missing or excluded reason add back to the selected count before reading the score.
sinc-LLM