Skip to content

What rollback really means in a business system

Everyone knows what rollback means in a text editor. You press a key and the last thing you did goes away. In a business system it's a much harder question. Other people work in the same records, systems run their own automations, deleted things come back with new ids, and some things have already left the building. This is what rollback has to mean there, case by case.

IdeasBacka··9 min read
LinkedIn X Email Markdown
ctrl Zone personone listDealworkflowtrashjust this field

The short answer

Rollback in a shared business system means: roll back what the agent changed, only what the agent changed, and only if nobody has changed it since. When that isn't possible, say so plainly instead of pretending. Everything else follows from that sentence, but the details are where it gets interesting.

Why the text editor is the wrong picture

A text editor's rollback works because three things are true. You are the only person editing. Nothing happens in the document unless you do it. And every step is kept in memory, in order, so going back is just walking the list backwards.

None of these hold in a CRM, a ticket system or a shared drive. Forty people might work in the same records. Workflows fire on their own when a field changes. The system has its own ideas about what can be deleted and what comes back. And the agent that made the change has usually forgotten everything by the time you want it rolled back.

So rollback can't be a list walked backwards. It has to be a careful look at what is there now, compared with what the agent wrote and what was there before, followed by a decision. Here are the cases that decide the rules.

Case 1: Someone else got there first

The agent sets a deal's amount to 0 on Monday. On Tuesday, Anna corrects it to 52,000. On Wednesday you notice Monday's change and press Roll back. The old value from before Monday was 48,000. What should happen?

A naive rollback writes 48,000 back. Anna's correction is gone, and nobody knows. That is the worst outcome a rollback can have, because it creates a new mistake while appearing to fix an old one. It is also what you get from most "restore" features that just replay old values.

The rule we chose: before writing anything, read the record again. If it still looks the way the agent left it, roll it back. If it doesn't, stop, change nothing, and show what is different: what the agent wrote, and what is there now. A person decides from there. They can keep the newer value, sort it out by hand, or roll back anyway if they are sure.

One detail matters a lot here. Only the agent's own fields count. If Anna changed the phone number and the agent changed the stage, rollback can still put the stage back. Refusing the whole rollback because of an unrelated field would make it useless in any busy system. We go into more detail in how Backa handles rollback conflicts.

stageamountphoneownerwon0070 41..Samwas: demowas: 48,000agent's tagsAnna, Tueonly the agent's fields go back

Case 2: The system reacted

When the agent moves a deal to closed won, the CRM may run a workflow. It creates a task for the account manager, updates a forecast, perhaps sends the customer a thank-you email. None of that was the agent's doing directly. All of it happened because of the agent's change.

What should rollback do with those? There is a tempting answer, which is to chase every consequence and reverse it too. In practice that is a trap. Workflows are configured by your team, they change over time, and the rollback tool has no reliable way to know which task was created because of which change. Guessing here means deleting things that should stay.

The rule we chose: rollback rolls back what the agent itself wrote, and is honest about what it doesn't reach. The deal goes back to its old stage. If that triggers a workflow in turn, it does, because that is how your team set the system up. The task created on the way stays, and the audit log says so. The email to the customer has been sent and can't be unsent by anyone.

This is less magical than "roll everything back that followed". It is also something you can rely on, and that matters more.

Case 3: Deleted, and the system's own idea of gone

Deleting is where systems differ most. Some keep deleted things in a trash for a while. HubSpot keeps deleted records restorable for 90 days. Notion keeps pages in the trash for 30 days. Salesforce has a recycle bin. In those systems rolling back a delete is clean: the record comes back from the trash with its id, its history and its links.

Other systems have no trash at all. A deleted GitHub label is just gone. Here the only way back is to recreate it, and then to roll it back on every issue it was on, which is why Backa writes down that list before the label is deleted. Recreating works, but it has a cost: the thing that comes back is new. It may get a new id. Links that pointed at the old id may not find it.

Notion shows a subtle version of this. Backa can restore a page's content after an agent rewrote it, but the restored blocks get new ids inside Notion. To a person the page looks exactly as before. To another integration that remembered a block's id, it's a different block.

The rule we chose: use the system's own trash whenever there is one, because that is the only true restore. Where there is no trash, rebuild as faithfully as the system allows, write down that it was rebuilt, and name what may differ. "Put back" and "rebuilt" are different promises, and the audit log should say which one you got.

Case 4: Rolling back something the agent created

Rolling back a create means deleting. That sounds simple: the agent created a page, so remove it. But in the meantime, a colleague may have written three paragraphs in it. Or linked to it from the team wiki. Or a customer may have replied to the ticket the agent opened.

The same rule as case 1 applies, turned around. If the thing is still as the agent left it, rollback removes it, using the trash where there is one. If someone has added to it, rollback stops and asks. Deleting other people's work in the name of reversing an agent's is not rollback.

Case 5: It already left

Some changes don't stay inside the system. An email is in a customer's inbox. A Slack message has been seen by twenty people. A comment that mentioned someone has sent them a notification. You can delete the Slack message afterwards, and Backa can do that, but the people who read it still read it.

The honest rule here is that rollback doesn't exist after the fact. What exists is a moment before: holding the message for a short time after the agent sends it, so a person can look and stop it. That is why Backa puts messages, email and notifying comments in an outbound queue. You can set how long they wait. Once they leave, the audit log still shows exactly what was sent and to whom, but nothing can call it back.

inside your systemsout in the worldrollback reaches herewaits a momentalready read

Case 6: How long ago is too long

A rollback after five minutes and a rollback after five weeks are not the same act. After five minutes, the record is almost certainly as the agent left it. After five weeks, dozens of things may have happened on top: the deal was renegotiated, the page restructured, the ticket closed and reopened.

The conflict detection handles the safety part: if things changed, rollback stops. But time also matters for usefulness. A rollback window that is too short means you discover a mistake after the door has closed. One that is too long means most rollbacks turn into conflicts anyway.

The rule we chose: changes can be rolled back for 30 days by default, and the system's own limits apply on top. A record that has been emptied from HubSpot's trash after 90 days can't be brought back by anyone. When the window is about to close for something, it's better to know.

Case 7: Many changes at once

Agents rarely make one change. "Clean up the March pipeline" might touch sixty deals, create four tasks and archive a board. Rolling back that means rolling back a run: a group of changes that belong together.

Order matters here. If the agent created a contact and then linked it to a deal, the link has to go before the contact. So a run is rolled back newest first, step by step. If one step meets a conflict, rollback stops there. The steps it already rolled back stay rolled back, and you decide about the one in the way before going on. Stopping halfway sounds worse than all or nothing, but it is the only version where you always know exactly what state you are in.

A related question is rolling back everything an agent did since a point in time, across systems. That is a point-in-time rollback rather than a single rollback, and it needs a preview: what will be rolled back, what will be stopped, before anything is written.

Case 8: Things nobody can roll back

Finally, some changes can't be reversed at all, not by Backa, not by the system, not by its vendor. Dropping a column in a database. Truncating a table. A payment that has settled. Some of these can be written down but not rolled back.

The worst thing a rollback tool can do here is to pretend. If a change can't be rolled back, the agent should know that before it makes it, and so should you. These are the changes where asking first really earns its place, because it is the last moment a person can say no.

The rules, together

Put the cases side by side and a small set of rules comes out:

  • Write down the before, before the change. You can't roll back what you didn't keep, and you can't rely on the agent to remember.
  • Rollback only what the agent wrote. Not the fields around it, not the consequences the system created on its own.
  • Look again before writing. If anyone changed it since, stop and show the difference. A person decides.
  • Prefer the system's own restore. Use the trash where there is one. Where there isn't, rebuild and say that it was rebuilt.
  • Hold what leaves the system. There is no rollback after an email lands, so the only real safety is a moment before.
  • Be plain about the limits. Every change should say whether it can be rolled back, and how, before it happens.

None of these rules makes rollback magical. Together they make it something a team can lean on, which is the point. A rollback you can't trust is worse than none, because people stop being careful the moment they think they have one.

How Backa does it

These are the rules Backa follows for every system it connects. Before each change it records the before and the after. Conflict detection checks the record first and stops a rollback on conflicts, field by field. Deletes go through each system's own trash where there is one. Messages wait in the outbound queue. And every change in the audit log says plainly whether it can be rolled back, and if not, why.