Human-in-the-Loop Automation: When Not to Let AI Finish the Job

I shipped two automation systems this year, a visa pipeline and a retail POS. Both ended up with the same design move: a deliberate stop before the step that cannot be undone.

By Wasif Rehman · · Opinion

In short

  • Automate everything reversible and gate everything irreversible.
  • Put the human at the reversibility boundary: not at the start of the pipeline, and not after the damage is done.
  • A good stop is a loaded action: the person gets full context and makes one decision, not the whole task.
  • The human checkpoint is what makes aggressive automation upstream acceptable to the business.
  • Keep a person accountable for irreversible actions, and record their decisions.

Two automation systems with the same design move

This year I shipped two automation-heavy freelance systems back to back. UmrahFlow turns WhatsApp passport photos into staged government visa submissions. The other is a multi-department retail POS with owner-approval escalations.

On paper they automate very different things. In practice they converged on the same design move, and I now think it decides whether an automation system survives contact with the real world: the deliberate stop.

What each system automates, and where it stops
SystemWhat it automatesWhere it stops
UmrahFlowAn AI agent classifies WhatsApp messages, OCR reads passports with Claude vision cross-checked against MRZ check digits, and a bridge builds complete submission plansThe final submission to the Saudi Nusuk portal: an operator logs in and runs it by hand
Multi-department POSTicketing, billing, stock and reconciliationA big discount, a voided ticket or an unusual refund becomes an EscalationRequest that waits for the owner

Where to put the human in the loop

The rule behind both decisions: automate everything reversible, gate everything irreversible.

Reversible and irreversible actions in my two systems
ActionCost of getting it wrongDecision
Classifying a WhatsApp messageTwo seconds of a reviewer's timeAutomate
Submitting to a government portalCan cost a pilgrim their pilgrimage and an agency its standingGate
Ringing up a ticketA mistake can be voidedAutomate
Granting a discountMoney already out the doorGate

So the gate goes exactly at the reversibility boundary. Not at the start of the pipeline, where it would strangle the value of the automation. Not after the end, where it would only observe the damage.

Designing an approval step that is not a bottleneck

Human-in-the-loop fails when it means "the human does the work anyway". The craft is in what the human receives.

What the person at each stop receives
SystemWho decidesWhat they get
UmrahFlowThe operatorA fully staged, validated submission job. No retyping of passport data, just one deliberate keystroke.
POSThe ownerA typed request linked to the exact ticket and amount, answerable from a phone in seconds

The automation does almost all of the work. The human supplies the small part that is pure judgment and accountability.

Why a human checkpoint lets you automate more

Here is the commercially interesting part: the human gate is what makes the aggressive automation acceptable.

  • The visa agency tolerates an AI agent answering their customers on WhatsApp precisely because nothing reaches the government without staff approval.
  • The store owner tolerates staff-run tills precisely because actions that need authority escalate to them.

Trust in the whole system is anchored by the checkpoint. Remove it and every upstream automation becomes a liability negotiation. Keep it and the automation upstream can be fearless.

AI accountability: keeping a person attached to the outcome

There is also a blunter reason. An AI cannot be accountable to the Saudi government, and a till cannot be accountable for the owner's margins.

When something goes wrong, "the model decided" is not an answer any regulator, client or family business accepts. The deliberate stop keeps a human being attached to the consequences.

Both systems also write that attachment down, so the chain of judgment can be reconstructed later:

When to automate and when to ask a human

As models get better, the temptation is to move the line and let the AI finish the job. My experience shipping these two systems points the other way. The better the automation, the more valuable the well-placed stop, because more rides on each remaining human decision.

  1. Automate the reversible If a mistake is cheap to undo, let the automation do it.
  2. Gate the irreversible Put the stop exactly at the reversibility boundary.
  3. Hand over a loaded action Give the person a one-keystroke action with full context, not the work itself.
  4. Write the decision down Keep traces and audit logs so the chain of judgment can be reconstructed.

You can see where the stop sits in the full UmrahFlow pipeline in From WhatsApp photo to government portal.

Frequently asked questions

What is human-in-the-loop automation?

It is automation that does the work but stops at chosen points for a person to decide. In my systems the automation prepares everything, and the person supplies the judgment and accountability at the step that cannot be undone.

Where should a human approval step go in an automated workflow?

At the reversibility boundary. Automate what is cheap to undo, such as classifying a WhatsApp message, and gate what is not, such as submitting to a government portal or granting a discount.

How do you stop human review from becoming a bottleneck?

Hand the person a loaded action. The UmrahFlow operator gets a staged, validated job and contributes one keystroke. The POS owner gets a typed request linked to the exact ticket and amount. If approval takes longer than the task it approves, it is a bottleneck.

Will better AI models remove the need for human approval?

In my experience it works the other way. The better the automation, the more rides on each remaining human decision, so a well-placed stop becomes more valuable, not less.

Why should an AI agent not take the final, irreversible step?

Because an AI cannot be accountable for the result. "The model decided" is not an answer a regulator, client or family business accepts, so a person needs to stay attached to the consequences.

Case study: UmrahFlow

All posts