NEWAI chat: ask your fleet anything, in plain language. Chat with your fleet Read more →

Phased rollouts and automatic rollback for robot fleets

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.

Illustration for "Phased rollouts and rollback": a robot dog, a robot arm, with the label "5% → 25% → 100%"

At Upswift, the best teams we worked with all had one habit in common. They never updated everyone at once. Push to a small group, watch, expand, keep a rollback ready. The teams that skipped it learned why the hard way.

That habit worked because the devices were predictable. A bad build crashed on ten devices the same way it would have crashed on ten thousand. The canary told you the truth.

Robots running models are different. They don't follow a fixed program. They make decisions many times a second from what they see, and what they see depends on the site, the light, the parts on the table that day. The model changes. The world around it changes. And the robot is in production, far from the people who built it.

So a release can install perfectly on every robot and still make the fleet worse.

The update succeeded. The robot is online. Its process is running. It's also dropping one part in twenty more than it did yesterday, and nothing in the update log will tell you that.

This post is about how I think rollouts should work when "installed" is not the same as "working".

The short answer: Send the release to a few robots that cover each hardware type and kind of site, let them run for a full shift, and compare them with the robots that haven't updated yet on latency, rates, errors and task success. Halt automatically if the updated robots are worse, or if there's no data to judge. Keep a tested rollback release ready, because a release that installed fine can still make robots worse.

Three questions, not one

A traditional rollout asks one question per device: did it install?

With models, you need three:

  1. Did it install? The workflow finished, nothing rolled back.
  2. Is it running the way it should? The containers are healthy, the ROS nodes are up, topics are at their normal rates, the model loaded on the GPU and not the CPU.
  3. Is it doing the job as well as before? Inference latency, control-loop rate, errors, cycle yield, cycle time, task success.

The first question takes seconds to answer. The second takes minutes. The third can take hours, because you need enough real work to see a difference.

That's why a rollout for robots is slower than a rollout for a web service. It's not caution for its own sake. It's how long the third question takes.

Choosing the first phase

The first phase is not "a few random robots". It's the robots that will tell you the most, at the lowest cost if something goes wrong.

  • Start with robots you can watch. An internal test cell, or a site where your own people are on the floor. If the first phase misbehaves, someone sees it in person.
  • Cover the variety, not the count. Five robots that are all the same model, at the same site, on the same compute, tell you about one configuration. Five robots that cover each compute type, each camera setup and each kind of site tell you about five. A model that's fine on a newer Jetson can be too slow on an older one, and in robotics too slow is a behavior change.
  • Be honest about bias. Your first-phase robots are usually your best-maintained ones. Fresh calibration, good lighting, attentive staff. A release that looks fine on them can still hurt the robot with the slightly worn gripper at the far site. Later phases exist to catch that.

Choosing the rest of the phases

There's no magic split. Here's the reasoning I'd use:

  • Each phase must be big enough to measure. If you compare one updated robot against the rest, one bad shift on that robot looks like a regression. A handful of robots per phase is the minimum for numbers to mean much.
  • Grow geometrically. Something like a few robots, then about 10%, then about a third, then everyone. Each phase risks more than the one before, so each should come after more evidence.
  • Small fleets need fewer, longer phases. With 12 robots, three phases of 2, 4 and 6, each soaking longer, is better than six phases of 2 that each tell you nothing.
  • Soak long enough to see a full cycle of work. A shift, not ten minutes. Robots have rhythms: the morning light through the warehouse windows, the busy hour when the conveyor runs fast, the night shift with different parts. A release that only breaks under afternoon sun needs to see an afternoon.
  • Think in cycles, not minutes. If a robot completes 40 picks an hour, a 30-minute soak is 20 picks. That's not enough to see a 3% change in yield. Decide how much work you need to see, then set the soak time from that.

What to measure between phases

Pick the metrics before the rollout, not after you see the graphs. Otherwise you'll find whatever story you're looking for.

I'd watch these, roughly in the order they show up:

  • Install failures. If more than a set share of robots fail to install, stop. This one is fast and should halt on its own.
  • Inference latency. Total, and split into model time and network time if the policy runs on a remote server. A model that's 40% slower may still produce good actions, and still break the timing of the control loop.
  • Rates. Control-loop rate, policy rate, ROS topic rates. A camera that drops from 30 Hz to 18 Hz after an update is a regression even if nothing errors.
  • Errors. Errors per robot per hour, and new health issues: NaN actions, saturated actions, a frozen camera, the robot stopping while the model computes.
  • The job itself. Cycle yield, cycle time, task success, or episode return for RL policies. This is the one that matters most and the one that takes longest to see.

The first four tell you a release is broken. Only the last tells you a release is worse.

Compare against the robots that haven't updated yet

Here's the mistake I see most often. You update a phase, look at its numbers before and after, and decide.

Before and after on the same robots is fooled by time. Monday is not Sunday. A new batch of parts arrived. The sun moved. The site switched to a harder product mix. Any of these changes the numbers, release or no release.

The robots that haven't updated yet are your control group. They lived through the same Monday, the same parts, the same weather. So compare the change on updated robots with the change on robots that weren't updated over the same window. Statisticians call it difference-in-differences. In plain words:

  • Yield fell 3 points on the updated robots, and also 3 points on the ones not updated. That's not the release. Something happened to everyone.
  • Yield stayed flat on the updated robots, and rose 4 points on the others. That looks like nothing happened, but the release cost you 4 points.

The second case is the dangerous one. A before/after view says "no change, continue". A comparison with the robots not yet updated says "stop".

A few cautions:

  • Compare like with like. If the first phase is all at one site, the control should be robots at that site, or at least of the same type, where you can.
  • Use windows, not points. Compare averages over the soak window, not two snapshots.
  • Have a minimum. With fewer than a few robots in a phase, there isn't enough to judge. Either judge on everything updated so far, or let it pass and rely on later phases. Decide which in advance.

Halt automatically

A person watching graphs between phases works for the first rollout. By the tenth, they're watching less closely. Or it's Friday evening.

So the halt has to be automatic. After each phase, wait the soak time, run the comparison, and halt the rollout if any of these is clearly true:

  • A guarded metric got worse by more than a set margin. Latency up, or a rate down, by something like 20%.
  • Errors rose by more than a set number per robot per hour.
  • More than a set share of updated robots have a new health issue.
  • Yield dropped or cycle time grew.

And one rule people forget: if there's no verdict, halt. If the gate can't get data in time, because the robots went offline or the metrics never arrived, that's not a pass. Silence should stop a rollout, not continue it.

When it halts, it should say why in one sentence a person can act on. "Policy inference latency up 34% on updated robots versus robots not yet updated." Not a red dot.

Two kinds of rollback

People say "rollback" for two different things, and you need both.

The device undoes a failed install. A step failed on this robot, so the robot undoes every completed step in reverse and ends up on the old version. This happens on the robot, right away, without anyone deciding. Eitan covers how that works in the OTA checklist for robot fleets.

You roll back a release that installed fine. Every robot in the phase installed it. They're healthy. They're just worse. There's nothing for the device to undo, because nothing failed. What you need is a rollback release: a release that puts the previous version back, rolled out to the robots that got the bad one.

Some practical rules for the second kind:

  • Prepare the rollback release before the rollout starts. Attach it to the rollout, so when the gate halts, it can start rolling back the robots that updated. Writing it under pressure is how you ship a second mistake.
  • Test it. Run the rollback on one robot before you need it. A rollback that has never run is a plan, not a rollback.
  • Make it cheap. For a model, rolling back should be switching a symlink to the previous version that's still on disk, plus a restart. For containers, starting the exact previous images that are still on the robot. If rolling back means downloading gigabytes, it'll be slow exactly when you need it fast. How to update a VLA model on robots remotely shows how to set this up.
  • Know what can't go back. A database migration, a firmware flash, a changed calibration. Some changes are one way. Name them in the release, and plan to fix forward if they go wrong.

After the rollout, ask again

The rollout finished. Every robot is on the new version. Was it better?

You still have an answer to find, and the same method works. Compare the robots that got the release with the ones that didn't over the same period. There are always some that didn't: offline for a week, at a site excluded on purpose, on a hardware type the release skipped. At any moment, the fleet is really several fleets on several versions.

Release impact, measured this way, does two things. It tells you whether the release did what you hoped. Yield improved, latency dropped, or nothing changed and the new model wasn't worth the risk. And it builds a record you can use for the next decision. After a few releases, you know which kinds of changes tend to help and which tend to hurt, on which robots.

You can do the same for agent versions and OS updates. Anything that changes on some robots and not others can be measured this way.

A rollout plan you can start from

  1. Write down the metrics you'll judge on and the margins, before you start.
  2. Prepare and test the rollback release.
  3. Dry-run the release on one real robot.
  4. Phase 1: a few robots you can watch, covering each compute type and setup. Soak for a full shift.
  5. Compare updated against not-yet-updated robots. Halt on regression, error increase, new issues, or no verdict.
  6. Phase 2: about 10%. Soak. Compare.
  7. Phase 3: about a third. Soak. Compare.
  8. Everyone else.
  9. A week later, measure release impact against robots that didn't get it.

For model changes, add a shadow test before phase 1, so the new policy runs on real inputs before it ever moves a motor. That's its own post: shadow mode for robot policies.

How we do it at PhysicalFleet

PhysicalFleet runs rollouts in phases with an automatic halt on install failures, and an optional health gate that, after each phase, compares updated robots against robots not yet updated on inference latency, rates, errors and yield. It halts with a one-sentence reason, and can start a rollback release on the robots that updated. Release impact shows what a release changed afterwards. See OTA updates.

I'd love to hear how you decide when a rollout is safe to continue. It's one of the questions I find hardest to answer well.

Common questions

What is a canary rollout for robots?

It's sending a release to a small first group of robots before the rest of the fleet. For robots, I'd pick that group for variety rather than count: each compute type, each camera setup and each kind of site, ideally robots your own people can watch. Let them work a full shift, compare them with the robots not yet updated, and only then continue.

How long should each phase of a robot rollout run?

Long enough to see a full cycle of work, usually a shift, not ten minutes. Work out how many cycles you need to see the change you care about, then set the soak time from that. A robot doing 40 picks an hour gives you 20 picks in 30 minutes, far too few to see a 3% change in yield.

How do I know if a release made my robots better or worse?

Compare the change on robots that got the release with the change on robots that didn't, over the same window. Before and after on the same robots is fooled by everything else that changed, like a new batch of parts or different light. This is called difference-in-differences, and it can show that a release cost you yield even when the updated robots look flat.

What is the difference between automatic rollback and a rollback release?

Automatic rollback happens on one robot when an install step fails: the robot undoes the completed steps in reverse and ends up on the old version. A rollback release is for a release that installed fine everywhere but made the robots worse, so there's nothing for the device to undo. You need both, and the rollback release should be prepared and tested before the rollout starts.

#phased rollout#canary#rollback#robot fleet#release impact#health gate#model deployment
Amit EzerCo-founder, PhysicalFleet

From the lab bench. To the entire fleet.

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