← The Signal

When an AI Workflow Gets It Wrong: Plan the Recovery Before the Write

An incorrect booking or record update needs a deliberate repair. Define what recovery means before allowing the workflow to change a live system.

By · AI-assisted editorial · Method & corrections

Kooya’s mascot replaces one lime tile on a booking board while leaving the surrounding records intact.FIELD NOTE / AI workflow rollback compensating actions Philippines
EXECUTIVE SIGNALS
  • A completed action can be technically successful and still be wrong for the customer.
  • A repair should preserve legitimate work performed after the original mistake.
  • Cancellation, replacement and financial correction have different completion conditions.
  • Recovery needs a named owner and evidence that the affected business process is usable again.
01

Start with the customer outcome that needs repair

Consider a hypothetical Philippine maintenance company. An AI workflow books a technician for the wrong branch, updates the service ticket and sends confirmation. All three tools report success. The customer then points out the mistake. Repeating the original request would reproduce the problem; changing the ticket alone would leave the technician and customer following different instructions.

Kooya recommends writing the recovery objective in ordinary language: the customer has the correct appointment, the technician receives the correct location, and the obsolete booking no longer consumes capacity. That gives the operations team something concrete to verify. A green workflow status is insufficient if the wrong visit remains on the schedule.

Before launch, have the business owner identify the actions that can be corrected automatically and those requiring a decision. Keep the initial scope narrow: repairing a draft task is different from changing an appointment that another team has already started fulfilling.

If the outcome is unknown after a timeout, first follow our guide to safe workflow retries; this recovery plan starts after an incorrect action is confirmed.

02

Understand why undo is not always a rewind

Microsoft’s compensating-transaction pattern describes recovery through business-specific actions after earlier steps have completed. It warns that restoring old data can overwrite concurrent changes and that compensation itself may fail. The destination may end in a valid corrected state rather than its exact original state.[1]

Stripe provides a concrete service example: a payment can be cancelled before completion, while a successful payment requires a refund. Its documentation also distinguishes pending and failed refund outcomes. Creating a refund request therefore should not be treated as proof that every financial consequence has been resolved. This illustrates service-specific recovery rules, not a recommendation or availability claim for Philippine merchants.[2]

Kooya’s recommendation is to describe each permitted correction in the workflow contract. Give it a business purpose and a destination-specific success condition. Avoid a generic undo button that conceals which downstream effects remain outstanding.

03

Contain the mistake and reconstruct the affected work

For the maintenance example, pause additional automated changes to the affected ticket while an owner investigates. A targeted pause can keep unrelated service requests moving. Establish the mistaken branch, appointment reference, confirmation recipient and any work already assigned. Record unknowns explicitly instead of filling them with the model’s best guess.

Build a compact incident view for the person handling recovery: original request, approved interpretation, actual destination records and current operational status. Limit access to the information needed for that repair. The customer-service owner should be able to see whether dispatch has begun without searching unrelated customer histories.

Give the incident one coordinator. The booking team and support team should not independently create replacement appointments. Agree who may change the schedule, who communicates with the customer and who confirms that the two accounts of the incident match.

04

Choose the repair with the people doing the work

Suppose a dispatcher has already added access instructions to the service ticket. Replacing the whole ticket with an old snapshot would discard useful work. Kooya recommends proposing a specific field correction and checking the latest record immediately before applying it. If the record changes again, reassess the proposal rather than force the earlier version through.

The right repair also depends on capacity. If the correct branch has an available slot, an authorised operator may arrange a replacement and release the wrong slot. If no suitable slot exists, the customer needs a choice, not an invented promise. The assistant can assemble options; the business owner determines which commitment is appropriate.

Treat customer communication as part of the repair. Explain the corrected appointment clearly and identify which previous confirmation is superseded. Do not assume editing the internal record has updated a message already received or changed a technician’s understanding.

05

Close only when the business evidence agrees

Kooya recommends a closure checklist specific to the workflow. For this example, inspect the current appointment, dispatch assignment and customer-facing confirmation. Record the evidence and any remaining exception. If the correction is still pending at a destination, keep the incident open with an owner and a next check.

A useful rehearsal deliberately includes complications: a dispatcher edits the ticket during repair, the replacement slot disappears, or customer contact fails. Ask the team to demonstrate what remains blocked, who receives the exception and how the customer’s request is kept visible. Use test records and simulated communication.

Before accepting the implementation, ask the supplier to hand over a short recovery runbook that an operations colleague can follow. Include the destination screens or records to inspect, the authorised correction route, the point where escalation is required and the closure evidence. Have someone who did not build the workflow rehearse it. Confusion during that rehearsal is a design finding to resolve before broader access is granted, especially when several teams share responsibility for the same customer request.

Track time to a usable corrected outcome, unresolved cases and repair-related complaints. These are proposed operating measures, not reported Kooya results. Review recurring mistakes to reduce the chance of another incident; a recovery process should support better workflow design, not become an excuse for unreliable automated changes.

FREQUENT SIGNALS

QUESTIONS PEOPLE ACTUALLY ASK.

How is recovery different from retrying a request?

A retry attempts the same intended operation after a failure or uncertain response. Recovery here addresses an operation that happened but produced the wrong business effect. It requires a separate decision about what should change next.

Can we just restore yesterday’s database backup?

That can remove legitimate later work and may not affect external bookings, messages or payments. Assess the affected records and destinations before choosing a repair. A broad restoration requires its own recovery plan.

Should the AI agent approve its own correction?

Kooya recommends predefined authority for narrow, low-impact corrections and a named human owner for consequential exceptions. The original permission to perform an action does not automatically settle the scope of a repair.

What should a buyer ask a supplier to demonstrate?

Ask for a realistic incorrect-action scenario, the proposed repair, protection for later valid changes, destination verification and the unresolved-case handoff. A successful normal run does not demonstrate recovery.

SOURCE DESK

PRIMARY SOURCES, NOT VIBES.

  1. Compensating Transaction patternMicrosoft Azure Architecture Center · Primary engineering guidance reviewed 6 November 2026
  2. Refund and cancel paymentsStripe · Documentation reviewed 6 November 2026
FROM READING TO BUILDING

MAKE THE WORK MOVE.

KEEP FOLLOWING THE SIGNAL