What Happens When an AI Task Fails Halfway Through?

October 21, 2026

Jonathan Gafill, Founder and Product Lead, OpsAVO

Consider an assistant carrying out an approved account adjustment. It submits the request, the receiving system records the change, and the connection drops before confirmation reaches the assistant.

From the assistant's side, the request timed out. From the customer's side, the account has already changed.

If the next step is simply to repeat the action, the business may create a second adjustment. If the assistant reports failure, a staff member may unknowingly repeat it by hand. A useful recovery process has to establish what happened before deciding what to do next.

This problem predates AI. Amazon's Builders' Library describes the uncertainty caused by a missing response and the risk of duplicate effects when a request is repeated. It discusses idempotent APIs as one way to make retries safer. Idempotency means that repeating the same intended operation does not create an additional effect. Amazon Builders' Library on safe retries

AI makes the operating design particularly important because an assistant may choose its next action dynamically. Recovery needs rules that remain in force regardless of what the model proposes.

At OpsAVO, we are building recovery behavior into our lab systems for the benefit of customers. One of the planned exercises deliberately separates a successful write from its missing confirmation. The behavior we want to establish is specific: record the uncertainty, inspect the authoritative result, and avoid duplicating the action.

Where a receiving service supports it, a stable operation identifier can help. Stripe, for example, documents idempotency keys for retrying requests. Its behavior depends on the API version and applicable rules, including retention and parameter matching. An integration needs to follow those rules; adding a locally generated label does not make an arbitrary external operation safe to repeat. Stripe idempotent requests

The surrounding workflow needs a record of progress as well. Which steps finished? What information was used? Which action was approved? Which operation is now uncertain? Saving this state allows a later process or a human reviewer to pick up the work with context. LangGraph's persistence documentation illustrates how checkpoints can retain workflow state for interruptions and recovery. LangGraph persistence

A checkpoint still has to be reconciled with the external system. If the application saved an adjustment just before the agent stopped, the agent's last saved state may not contain the confirmation. Recovery should examine that gap rather than assume both systems stopped at exactly the same moment.

This is why we want an explicit “outcome uncertain” state in the lab workflow. It gives the service a place to pause while checking the record. When the result cannot be established reliably, the handoff should identify the affected customer, the intended action, the operation reference, and what has already been checked.

The human route is part of the design. An unresolved task needs an owner and a practical way to finish it. Staff should not have to search a long conversation to discover whether sending another message or applying another change could duplicate earlier work.

Stopping also has to mean something precise. A cancel request can prevent further actions, but it cannot automatically reverse an email that has already been sent or a change another system has committed. Reversal may require a separate authorized action, and some effects cannot be fully undone.

For an operator, a useful recovery demonstration includes the awkward middle: the interruption, the uncertain state, the verification, and the eventual disposition. Watching that sequence tells you how much work will land on staff when the normal path breaks. It is one of the things worth understanding before giving an assistant responsibility for a customer-facing process.