top of page

Can You Undo a Workflow That Already Changed Several Systems?

Oct 21
3 min read
Recovery sequence identifying completed effects, selecting compensating actions and verifying the resulting state.

A project setup workflow creates a workspace, adds three internal tasks and then fails while applying a template. The operator sees “setup failed” and wants to start again. But some changes already exist, and colleagues may have begun using the workspace.


Undoing this situation is a business decision as well as a technical one. A rollback may restore a previous version within a controlled system. Compensation performs new actions intended to address effects that have already been committed across systems. Those actions do not necessarily recreate the exact past.


Identify the effects that actually happened


Start with a ledger of the original steps. For each step, record the target system, object identifier, intended effect, observed outcome and evidence.


Distinguish completed, failed before applying, and unknown outcomes. A timeout is not proof that nothing happened. Inspect the destination before attempting either a repeat or a reversal.


In the illustrative setup example, the workspace and tasks are confirmed created, while template application is unresolved. That evidence supports a different recovery decision from a case where the workspace never existed.


Understand why compensation is contextual


Microsoft's Compensating Transaction pattern explains that compensation is application-specific, can itself fail, and may not restore the original state. It also cautions against blindly restoring old data when concurrent work has occurred.


For a project workflow, deleting the new workspace might be appropriate if it is empty and unused. It may be inappropriate if a colleague has added legitimate work. The same original failure can therefore require different recovery actions.


Do not label a generic “undo everything” button safe without defining these conditions.


Create an effect-and-recovery map


Before implementation, map each consequential step to a proposed recovery option.


For the project example, the map might say:


  • Empty workspace created: eligible for removal after an ownership check.

  • Workspace with new human activity: retain and route to review.

  • Internal task created without activity: close or remove under the agreed policy.

  • Task with comments or attachments: preserve evidence and request a decision.

  • Template outcome unknown: inspect current configuration before any retry.


These are illustrative policies. The authorized business owner must choose the actual rules and the system must support them.


Include actions that cannot be meaningfully undone. A message already read by a recipient cannot be made unread merely by deleting a local log.


Protect changes made after the original step


Record enough information to recognize the objects created or changed by the workflow. Avoid searching by a common display name and assuming every match belongs to the failed run.


Before compensation, compare the current object with the expected post-action state. If it has changed, determine whether the change is relevant and authorized. Do not overwrite a colleague's update simply because an earlier snapshot is available.


Use the provider's documented concurrency mechanism where possible. Where it is unavailable, describe the remaining limitation and choose a more conservative recovery path.


Make compensation resumable


A recovery sequence can fail after completing some of its own steps. It therefore needs a progress record just like the original workflow.


For every compensating action, preserve its identifier, precondition, attempt and verified outcome. Repeated execution should not produce an additional harmful effect. If that property cannot be established, require inspection before retrying.


Do not assume compensation must always run in the exact reverse order of the original workflow. Dependencies and business priorities determine the safe order. For example, preserving access for review may matter before changing the state of a partially configured workspace.


Decide who can authorize the consequence


Separate routine technical recovery from decisions that change commitments or remove valuable work. The latter need an authorized owner with a clear description of the current state and proposed result.


A review packet should answer: what happened, what remains uncertain, what will this action change, what will remain afterward and how will we verify it? Include the affected identifiers and the recovery limits.


The existing automation runbook guide can hold the operator instructions and escalation path.


Rehearse a partially completed recovery


Use invented records and stop the original workflow after each step. Then test the recovery path. Repeat with an intervening human edit and with a failure during compensation itself.


Inspect the final business state, not just the recovery job's status. A job marked successful may still leave orphaned tasks or inaccessible evidence if the recovery definition was incomplete.


Record which cases can be handled automatically and which require a decision. That boundary is an important deliverable.


Describe the intended end state


A strong recovery plan ends with a clear acceptable state, such as “workspace retained, incomplete template removed, tasks visible for manual continuation.” It does not promise to erase history.


Use this map when preparing a concrete project brief. The FutureOS introduction explains the project's current prelaunch context; the example is not a product capability claim.


Prepared with AI assistance. Primary source and linked site context checked on October 21, 2026.


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page