A rollback step makes an automated update feel safe. But a rollback does what the health check tells it to. If the check tests the wrong thing, the rollback undoes good work, or puts back what was already there.
The fix is not more automation. It is two questions, asked before you trust the one you have.
Ask what the undo puts back, and what the check actually tests. If the answers are "the same thing" and "not the part people use", the safety net is a label.
What happened on three Saturdays
I run my AI assistant on an always-on computer, and a weekly maintenance job keeps it up to date. It runs at 4:30 on Saturday morning. On paper the job is careful. It updates the software and runs a health check. If the check fails, it rolls back to the version from before the update. If the check still fails after that, it sends an alert.
Three Saturdays in a row, the health check failed.
On the first two, the update was real. It moved the software to a newer version, and as far as the log shows, that version was fine. The check failed anyway, so the job rolled back to the older version. The safety net undid a good update two weeks running.
On the third, the update reported that the software was already up to date. Nothing changed. The check failed the same way. So the job rolled back, to the identical version it was already on. Then it sent an alert that read, roughly, "rollback failed, manual intervention needed".
Nobody needed to step in. The assistant itself was running the whole time, according to the same log.
Why the check kept failing
The check was not testing the assistant. It looked for one specific background process, part of the job's own setup. That process no longer runs on its own. Its work now happens inside the main service.
So the check was looking for something that was not there, while the part that mattered was running and up to date. It failed all three weeks, whether the update changed anything or not. Each time, the rollback did what the check told it to.
Every step did what it was built to do. The result was two good updates undone, one rollback that changed nothing, and an alert at 4:30 in the morning while the assistant was running.
Question one: what does the rollback actually restore?
A rollback is only as good as the thing it puts back, and the reason it runs. "Roll back" sounds like a time machine. In practice it usually means one specific action, such as switching to the previous version of the software.
That is useful when the update changed the version and the new version is broken. My job hit the two other cases:
- The update changed nothing. On the third Saturday, "the previous version" and "the current version" were the same. The rollback restored exactly what was already there.
- The update was fine. On the first two, the rollback put back an older version because a wrong check said so. It worked as designed, in the wrong direction.
Ask, in plain words:
- What exactly gets put back? The software version, the settings, the data, or all three?
- Where does the copy come from? Was a known good copy saved before the change, or does the rollback assume the old version is still sitting somewhere?
- What if nothing changed? If the update was a no-op, the rollback has nothing to undo. The job should know that and say so.
If the honest answer to the first question is "the version it was already on", the rollback is a step in a list, not a way back.
Question two: what does the health check actually test?
This is the question that mattered most for me.
A health check is a small test the job runs after a change to decide whether the change worked. The trap is that it usually tests something easier to check than the thing you care about. Mine tested whether one background process was running. What I care about is whether the assistant works.
That process no longer runs on its own, but the check still looks for it. So the check failed whatever the update did, and the job had no way to tell a wrong check from a broken update.
There are two ways a check misleads you:
- It tests the wrong part. A check aimed at something people do not use can fail while everything works, or pass while the feature people use is broken.
- It blames the wrong cause. A check run only after a change makes every failure look like the change's fault, even when it would have failed before the change too.
A rollback trusts the check completely. So the check decides whether the rollback helps or does damage.
Why it shows up at 4:30 in the morning
Maintenance jobs run when nobody is using the system. That is sensible, and it also means that when the safety net misfires, it misfires while you are asleep.
An alert that says "rollback failed, manual intervention needed" sounds urgent and explains nothing. You have to work out what the job already had in its own log: that the update changed nothing, and that the assistant was running.
The automation did the busywork of running the steps. It did not do the part that would have helped the person reading the alert, which is saying what actually changed and what was actually down.
A worked example
Here is how the two questions sort a few common setups. These are examples to show the pattern, not a log of my own system.
| Setup | What the undo restores | What the check tests | Real safety net? |
|---|---|---|---|
| Update that changed nothing, then a rollback | The same version | Anything | No. There was nothing to undo. |
| Check looks for a part that no longer runs | The previous version | Something people do not use | No. It fails every time and undoes good updates. |
| Settings change with no copy saved first | Nothing | Is the service running? | No. There is no way back. |
| New version, saved copy of old version and settings, check runs one real task | The last known good version and settings | The job the service exists to do | Yes. |
The last row is not more complicated than the others. It saves a copy before the change, and it checks the thing people actually use.
What a better version looks like
You do not need to rebuild the job. You need four small changes.
- Test what people use. Have the check do one real task, such as sending the assistant a message and getting a reply, instead of looking for a specific process.
- Run the check before the change as well as after. If it was already failing, the update is not the cause, and the rollback should not run.
- Skip the rollback when nothing changed. If the update reports nothing new, there is nothing to roll back to.
- Write the alert for the person reading it half awake. "Nothing changed in the update. The check failed before and after. The assistant is answering." That is something a person can act on, or safely leave until morning.
One more signal is worth watching. A check that fails every week, whatever the update did, is probably testing the wrong thing.
The same question applies beyond updates
Any automated "undo" deserves the same scrutiny: a restore from backup, a reverted document, an automation that "cleans up" after a failed run. Before you trust it, ask the same two questions:
- When this undo runs, what exactly do I get back?
- What decides that it runs, and does that test the part people use?
If you cannot answer both in a sentence, the undo has not been tested yet. The first real test will be the bad day you built it for.
What to take away
- Ask what the rollback actually restores, and make sure it saves a known good copy before the change, not after.
- Make the health check test the part people use, and run it before the change too. A rollback is only as right as the check that triggers it.
- Skip the rollback when nothing changed, and write alerts that say what the job already knows.
A safety step earns trust by fixing the failure you are worried about, and by staying out of the way when there is none. The AI does the busywork, you still make the calls.
