HITL Gate

Pause before anything irreversible.

Critical steps are reviewed and approved by a human before execution. The system suspends, persists state, poses a structured question, and resumes once the human replies. Best framed as graduated autonomy — oversight set per action class by stakes (full automation for low-stakes, supervised for moderate, human-led for high-stakes) rather than a single on/off gate.

Level
04 · Production
Subdomain
Governance & Safety
Also known as
HITL, Human Approval, Manual Review Gate, Human-in-the-Loop Collaboration
Trade-off
Higher control is achieved against slower operational workflows.
Native in
LangGraph, Google ADK, OpenAI Agents SDK, Microsoft Agent Framework, CrewAI
The mental model

A shape you can draw on a napkin.

Before any irreversible action, the agent pauses on a gate. A human inspects, approves, or rewrites.

  1. The run pauses at a defined node and its state is persisted.
  2. A human answers a structured question — approve, edit, or reject.
  3. The run resumes exactly where it stopped — on top of any other pattern.

Compare all six coordination patterns →

pauseresumeAgentHumanExecute
Walk it through

A real run, step by step.

Task"Apply a refund to a flagged customer order."
  1. Draftagent(order) → { refundAmount: 249.00, reason: 'duplicate_charge', method: 'original_payment' }
  2. PauseState suspends at interrupt. Human receives: 'Approve refund of $249.00 to original payment?'
  3. InspectHuman reviews payload. Changes amount to $199.00 and approves.
  4. ResumeCommand(resume={ approved: true, refundAmount: 199.00 }) → graph continues
  5. ExecuteRefund of $199.00 processed. Original $249.00 draft never touched production.
The gate must include the diff the human needs to review. If the payload is opaque, approvals become rubber-stamps.
In code

The pattern in code.

LangGraphpython
from langgraph.graph import StateGraph, END
from langgraph.types import interrupt, Command

class State(TypedDict):
    order: dict
    refund: dict | None
    approved: bool | None

def draft_refund(state):
    return {"refund": refund_llm(state["order"])}

def human_gate(state):
    # Suspends execution; resumes when human replies
    return interrupt({
        "question": "Approve refund?",
        "payload": state["refund"],
    })

def execute_refund(state):
    if state["approved"]:
        process_refund(state["refund"])
    return state

g = StateGraph(State)
g.add_node("draft", draft_refund)
g.add_node("gate", human_gate)
g.add_node("execute", execute_refund)
g.add_edge("draft", "gate")
g.add_edge("gate", "execute")
g.add_edge("execute", END)
g.set_entry_point("draft")

# Resume with: graph.invoke(None, config, stream_mode="values")
# after human calls Command(resume={"approved": True, ...})
hitl = g.compile()
Fit

Use it, or not.

When to reach for it

  • Actions have irreversible or expensive consequences.
  • Compliance mandates human decisions.
  • Model uncertainty must be surfaced.

When it backfires

  • Low-risk actions can run fully automated.
  • Approvals are merely symbolic.
  • Latency requirements preclude manual checks.
Pitfalls

Two ways this pattern will hurt you.

Gate placed too early — humans drown in approvals that don't matter

Every low-risk action triggers a gate. Humans develop approval fatigue and start clicking 'approve' without reading.

Countermeasure

Gate only on irreversible or high-cost actions. Use a risk classifier to auto-approve low-risk operations.

Approval payload omits the diff the human needs

The gate shows the final state but not what changed. The human can't tell if the refund amount is correct.

Countermeasure

Include a clear diff in the interrupt payload: 'Proposed change: $249.00 → $199.00. Reason: duplicate charge.'

EU law

Regulation

Duties from EU law that this pattern helps meet, or that land on it. A reading aid, not legal advice.

  • EU AI Act Art. 14The system is designed so that natural persons can effectively oversee it while in use; the measures match its risks, its level of autonomy and its context of use.Providers of high-risk systems · from 2 Dec 2027 (Annex III) or 2 Aug 2028 (Annex I products)
  • EU AI Act Art. 26Deployers assign competent human oversight, monitor operation and keep the logs that are under their control for at least six months, unless other law provides otherwise.Deployers of high-risk systems · from 2 Dec 2027 (Annex III) or 2 Aug 2028 (Annex I products)
  • EU AI Act Art. 27Before first use, the deployer assesses the impact on fundamental rights: the processes and the period of use, the people affected, the risks of harm, the human oversight measures, and what happens if a risk materialises.Deployers of Annex III high-risk systems, critical infrastructure excepted, that are bodies governed by public law or provide public services, and deployers of credit-scoring and of life and health insurance pricing systems · from 2 Dec 2027 (Annex III)Explained on the DPIA page
  • GDPR Art. 22A person has the right not to be subject to a decision based solely on automated processing that produces legal effects or similarly significantly affects them.Controllers · since 25 May 2018
  • GDPR Art. 35Before processing that is likely to result in a high risk, in particular with new technologies, the controller assesses its impact on the protection of personal data.Controllers · since 25 May 2018Explained on the DPIA page

An engineer's reading aid, not legal advice. The legal texts and their interpretation are authoritative.

Framework support

Where HITL Gate is native.

LangGraphinterrupt() / Command(resume=...) primitivesNative
CrewAINative
Temporalsignals pause a workflowAdaptable

Search

Search patterns, frameworks, and pages.