The OTA update checklist for robot fleets
Every way an OTA update fails on robots in the field and what handles it, including ROS 2 workspace updates and Docker Compose stacks.
By Eitan Chudnovsky →How to run a candidate robot policy on live inputs without letting it move anything: what to compare, how many samples you need, and the traps.

Every team I talk to has the same gap. The new checkpoint looks better in the eval suite. It looks better in sim. It looks better on the bench robot in the lab. Then it goes to a cell on a factory floor, and nobody really knows how it will behave there until it is already moving parts.
That gap exists because these machines are not running programs anymore. A program does the same thing with the same input. A robot policy makes a decision many times a second from what its cameras see right now: the light at 6 a.m., the scratch on the fixture, the slightly different bin the customer bought last month. The model changes, the world around it changes, and the robot is far from the people who trained it. The only inputs that tell you how a model behaves in production are production inputs.
Shadow mode is how you get those inputs without letting a model you don't trust yet touch the motors. I think every team shipping learned policies should have it, and I think most teams who have it measure the wrong things. This post is about doing it properly.
The short answer: Run the new policy next to the current one on the same live inputs, in a background thread, and send its outputs to a log instead of the motors. Compare agreement, action distance and latency against a noise floor you measured by running the current model against itself. If it passes over enough real cycles, switch to it atomically and roll it out in phases.
The idea is simple. The current model (the primary) keeps driving the robot exactly as before. The new model (the candidate) gets a copy of the same live inputs, computes its own output, and that output goes into a log instead of to the actuators. Then you compare.
Three rules make it shadow mode and not something more dangerous:
The shape that works:
The bounded queue with drop-on-full is the most important design choice here. A candidate that is slower than the primary will fall behind. If the queue grows without limit, you leak memory. If the wrapper waits, you have just added the candidate's latency to the control loop. Dropping samples costs you some data. Waiting costs you the robot's behavior.
Sample, don't mirror every call. At 30 Hz, consecutive observations are nearly identical. Running the candidate on every fifth or tenth call loses almost no information and frees a lot of compute.
Keep the candidate's files out of the path the app loads from. We put candidates in their own versioned folder with a separate shadow link, and never touch the current link that the primary loads, until the decision is made. More on that in how to update a VLA model on robots remotely.
This is where most shadow setups go wrong. Teams log "agreement" as one number and stop there.
For a vision classifier (good part / bad part, which bin, grasp or skip), agreement is clean: did both models pick the same top class? Track it as a rate.
But also keep the disagreements themselves. A confusion table of "primary said X, candidate said Y" tells you much more than 96%. If all the disagreements are "primary said good, candidate said defect", you have a candidate that is stricter. That might be exactly what you wanted, or it might stop the line.
Save the frames where they disagree. Those images are the most useful thing a shadow test produces. Someone should look at fifty of them before anyone promotes anything.
For a policy that outputs joint targets, end-effector deltas or action chunks, there is no "same class". You need a distance.
Measure the candidate's inference time next to the primary's, on the same device, at the same time. Report it as a ratio. A candidate that is 1.4x slower might be fine on a robot with headroom and a disaster on a robot whose loop already runs at the edge. In robotics, slower is a behavior change. If you don't know how much headroom your loop has, read why your robot is slow first.
Here is the step almost everyone skips.
Many modern policies are not deterministic. Diffusion policies sample noise. Some VLAs sample tokens. GPU kernels are not always bit-exact run to run. So run the primary against itself in shadow before you test any candidate. Same model in both slots, same inputs.
If the current model agrees with itself 93% of the time at your tolerance, a candidate at 91% is close to identical, and a candidate at 99% is suspicious (did you load the same weights twice?). Without this baseline, the agreement number has no meaning.
Do this once per model family and per robot type. Keep the number. Set your pass threshold relative to it.
Shadow tests produce huge sample counts that mean very little. A robot at 30 Hz, sampled every fifth call, produces thousands of comparisons in an hour. Most of them are the same moment seen twice.
Think in independent decisions, not samples:
Set a minimum sample count in the test itself, and make "not enough samples" its own result, separate from pass and fail. A test that ran during a stopped line should not pass by default.
I want to be clear about the limit, because it matters for safety.
Shadow mode compares the candidate's decisions on states the primary created. It never sees what happens after the candidate's action, because the candidate's action never runs. For a classifier, that is fine: the decision is the whole story. For closed-loop control it is not. A policy that is 2% off at every step can drift into states it was never trained on within a few seconds. Shadow mode can't see that, because the primary keeps pulling the robot back to familiar states.
And agreement is not correctness. A new model that is supposed to be better has to disagree with the old one somewhere. If it agrees 100%, you trained the same model. What you want is high agreement on the routine moments and disagreement concentrated where the old model was weak. That is why you read the disagreement frames.
So treat shadow mode as a gate that catches obvious problems cheaply and safely: broken preprocessing, a wrong camera order, a checkpoint exported with the wrong normalization stats, a model that is twice as slow on this hardware. It does not replace a phased rollout. It earns the candidate the right to enter one.
Every team should tune these, but here is where I would start:
Write those down in the release itself, not in someone's head. If the test fails, the candidate files and the shadow configuration should be removed automatically, and the robot should be exactly as it was.
Passing shadow on one robot or a small first group means one thing: the candidate is ready to act on a few robots. The promotion should be boring:
current link at the tested version in one atomic step. No copying weights into place.That last part is a topic of its own: phased rollouts and automatic rollback for robot fleets. Shadow mode tells you the candidate is sane. A phased rollout tells you it is better. And once it acts, you need to monitor the policy in production like any other.
In PhysicalFleet, shadow mode is a release step. model.shadow puts the candidate in its own versioned slot next to the current model, runs it for the duration you set, and passes or fails it on agreement, latency ratio and a minimum sample count. On the robot, one line (pf.shadow(model, ...)) wraps the primary so the candidate runs on sampled live inputs in a background thread with a bounded queue, and never acts. If it passes, model.promote switches current atomically and you roll it out in phases behind the health gate. More on the OTA updates page.
If you're testing new policies on real robots, I'd love to hear how you decide a model is ready to act.
Shadow mode runs a new model next to the current one on the same live inputs, while only the current model controls the robot. The new model's outputs go to a log and a comparison, never to the motors. It shows you how a candidate behaves on real production inputs before you trust it to act.
Normalize each action dimension by its range, compute a distance, and count it as agreement when it's under a tolerance you picked from data. Compare only the part of an action chunk that would actually execute. Track the p95 and the max distance as well as the mean, because the rare large disagreements are where a robot hits something.
It can, if it's built wrong. Two models on one GPU compete for memory and time, and a wrapper that waits for the candidate adds its latency to the control loop. Run the candidate in a background thread on sampled inputs, with a bounded queue that drops samples when it's full, and watch the current model's latency during the test.
Many policies aren't deterministic. Diffusion policies sample noise, some VLAs sample tokens, and GPU kernels aren't always bit-exact from run to run. Run the current model against itself first to measure this noise floor, then set the candidate's pass threshold relative to it.
No. Shadow mode only sees states the current model created, never what happens after the candidate's own actions, so it can't catch a closed-loop policy drifting into states it never trained on. It's a cheap and safe gate for obvious problems, like broken preprocessing or a model that's too slow on this hardware. After it passes, the candidate still needs a phased rollout.

Every way an OTA update fails on robots in the field and what handles it, including ROS 2 workspace updates and Docker Compose stacks.
By Eitan Chudnovsky →
How to roll out software and models to robots in phases, pick canaries, measure the right things, compare against robots not yet updated, halt and roll back.
By Amit Ezer →Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go