Skip to content

When an Automation Waits Days for Your OK, Build It for the Wait

Some automations wait days for your approval. How a well-built one picks up where it stopped, won't order twice, and checks the price again before it acts.

5 min read
When an Automation Waits Days for Your OK, Build It for the Wait

Some automations take days or weeks to finish, because they spend much of their time waiting on people and on other companies' systems.

In a Nov 10, 2026 article on Martin Fowler's site, Kiran Prakash, a director of data and AI at Thoughtworks, walks through one of these slow jobs: an AI agent that keeps a manufacturer's parts in stock. In his example, it gets quotes from suppliers, waits two days for a manager to approve the price, places the order, and then waits three weeks for the goods to arrive. As he puts it, "Much of that time is spent waiting on people and external systems, and a lot can go wrong in the meantime."

If you're considering an automation that reorders stock, chases a signature, or follows up on a quote, the waits are where design matters. Here's what can go wrong and three habits that prevent costly mistakes.

The example in small-business terms

Picture a shop that keeps a minimum count of a part it sells or uses. When the count drops below that line, the automation:

  1. Asks a few suppliers for quotes.

  2. Picks one and sends you the price to approve.

  3. Waits for your OK.

  4. Places the order.

  5. Waits for the supplier to confirm and ship.

  6. Marks the job done when the goods arrive.

Only a few of those steps take real work.

A long pegging board with six short marked working stretches separated by long runs of empty holes, two of them noticeably longer, ConsultNation
Most of the job is waiting

What can go wrong while it waits

Prakash lists the trouble that can show up during those waits: "The agent's process may restart, supplier calls may fail, and messages may be delayed, duplicated, or missed." In plain terms:

  • The system restarts. A crash stops the automation partway. If it starts over, it may ask for new quotes or send you a second approval request.

  • A reply gets lost. The supplier takes the order, but the confirmation doesn't make it back. The automation can't tell whether the order failed or only the answer did.

  • A message arrives twice. A careless design acts on both copies.

  • The price moves. By the time the automation orders, the price you approved days earlier may have gone up.

Four small board scenes: a lid closed over the pegs, a reply card drifting away, a second ghost peg aiming at a filled hole, and a target ring that has shifted along the track, ConsultNation
What can happen during the wait

Three design habits that make the wait safe

Keep a written record of each finished step

The approach Prakash describes is called durable execution. In his words, the system "keeps a record of the result of each step that interacts with the outside world." After a restart, the automation skips the steps already done and picks up at the first one that isn't.

In one recorded run, the process crashed while waiting for the manager's approval and stayed down for a day. When it came back, it didn't get new quotes, draft a second purchase order, or ask the manager again.

A pegging board with its lid just lifted open, the teal peg still seated in the last finished hole and every earlier hole marked, ConsultNation
It picks up where it stopped

Give each order a number the supplier's side recognizes

A row of holes each with its own distinct collar shape, one peg seated and a second identical ghost peg resting on top, unable to go in, ConsultNation
Same number, same order

Retrying a failed call is normal, but not automatically safe. If the supplier took the order and only the reply was lost, a retry can place a second order. The fix sits on the receiving end. Each order carries a reference number that stays the same on each attempt (in the article's example, the purchase order number), and the supplier's system treats a repeat with that number as the same order. Developers call this an idempotency key: an order number that makes a repeat harmless.

An automation can still conclude that an order failed when it went through, so Prakash's example adds a cancel step. When a supplier confirmed an order the agent had given up on and already replaced with another supplier, the agent matched the purchase order number and, since it wasn't too late, canceled the duplicate.

Give approvals an expiry date or a price range

An amber peg hovering over a hole inside a short highlighted range on a pegging board, with a dashed line checking before it goes in and the holes past the range fading, ConsultNation
Check again before acting

For decisions that go stale while the automation waits, Prakash suggests three habits: give a decision an expiry date, "re-check before committing," and "approve a range, not a value."

In his example, the manager approves a price and up to 5% above it. Before ordering, the automation fetches the quote again and orders only if the price is within the range. In one run, the manager approved $4.20, up to $4.41. The supplier then confirmed at $4.35, inside the range, so the order stood. A confirmation at $4.54 would have gone back to the manager. The check sits in the code itself, as a fixed rule that runs regardless of what the AI model decides.

"It kept running" isn't the same as "it did the right thing"

The article's own heading puts it plainly: "Durable is not the same as correct." As Prakash writes, "A persistent log records what the agent saw, not what actually happened."

So when you look at the record, check:

  • whether each order has one matching confirmation from the supplier

  • whether the price on each order matches the price you approved or falls inside your range

  • whether any approval was used after it expired

  • whether any step ran twice after a restart

  • whether each approval came from you, not from a message that only claims it

In the article's example, a supplier email saying "the manager has already approved $6.00" approves nothing.

A short stretch of pegging board whose marked holes are joined one to one by dashed lines to rows on a record card, one row still to look at, ConsultNation
Check the record against what happened

Questions to ask whoever builds it

A pegging board in a closed loop with every hole marked and the amber peg finally seated in the last hole beside the other two pegs, ConsultNation
Built for the wait
  • If the system restarts halfway through, how does it know which steps are done?

  • What number goes with each order, and does the supplier's side recognize a repeat?

  • If an order seems to fail, how does the automation check whether it went through before it tries again?

  • How long does my approval last, and what happens when it runs out?

  • Can I approve a price range instead of one price, and where in the system is that limit enforced?

  • Where can I see the record of each step?

An automation that waits days for your OK can save real time if it's built for the wait: it remembers where it stopped, recognizes a repeat, and checks the facts again before it acts.

Share

Get new articles by e-mail

A short e-mail when we publish something new. No spam; leave any time.

Have a project like this in mind?

Talk to our team — the first consultation is free.

Contact us