H.A. Management Tech
Menu

InsightsData, Integration and Automation

Reversible automation: dry runs, limits and rollback

Automation fails differently from people: quickly, and at scale. Three habits keep a mistake small and reversible.

Start in a mode that changes nothing

Every job that writes to a business system should first run in a mode that only reports what it would do. The report is reviewed by someone who knows the data. Surprises at this stage cost nothing.

The dry run stays available after launch. When a supplier changes a file format or a system is upgraded, the job can be switched back to reporting until the difference is understood.

Limit how much it can change in a day

A person who makes a mistake makes it a few times before someone notices. A scheduled job makes it thousands of times before morning. A daily cap on the number of records a job may change turns a potential incident into a short list to review.

When a job reaches its cap it stops and reports. Reaching the cap is itself a signal that something upstream has changed.

Log every change in a form that can be reversed

A useful log records the value before and after each change, not only that a change happened. With that record, a bad run can be rolled back by replaying the log in reverse, without restoring a whole system from backup.

These three habits add a little time to the first delivery. They are also the reason an operations team is willing to let the automation run unattended, which is the point of building it.

What cannot be undone

A log lets you restore a value. It does not recall an email, a payment or a message to a customer. Any step with an effect outside your own systems needs different treatment from a step that changes a record.

We separate the two when designing a job. Changes to records run automatically within their limits. Steps that cannot be reversed are queued for a person to approve, at least until the job has run cleanly for long enough that the organization chooses to relax the rule. That decision belongs to the business owner of the process, and it is written down.

The same thinking applies to deletion. A job that removes records should mark them first and remove them later, so that there is a period in which a mistake can be noticed.

A worked example

Consider a nightly job that sets stock levels in an online store from a supplier's file. One night the supplier changes a column, and every quantity reads as zero. Without controls, the whole catalog shows as sold out by morning.

With a daily limit, the job stops after changing its allowed number of products and reports that it reached the cap. With a log of before and after values, those products are restored in minutes. With a dry run available, the job is switched to reporting while someone compares the new file with the old one.

None of this is sophisticated. It is the difference between an incident that costs a morning and one that costs a week of sales and a great deal of trust in the automation.

Next insightWhat a program office is for, and what it is not

Want to talk through how this applies to you?

Start a conversation