Human in the Loop

Four patterns ordered by autonomy — from maximum control to full agent independence.

pattern

Approval Gate

Agent runs autonomously until it reaches an irreversible or high-stakes action — sending an email, deploying code, spending money. Execution halts. A human reviews the specific action, its context, and consequences, then approves or rejects. The bottleneck is intentional.

deploy pipeline
pattern

Interrupt on Uncertainty

The agent is trusted by default and operates autonomously — but it monitors its own confidence. When it drops below a calibrated threshold, it surfaces a specific "I'm not sure" signal and pauses, waiting for human input before continuing. Requires a well-calibrated uncertainty model, which is non-trivial.

clinical assistant
pattern

Post-hoc Review

Agent operates at full speed. Outputs are staged — written to a review buffer, not committed. The human reviews the batch, approves clean outputs, and rejects or corrects problematic ones. Faster UX than approval gates, still fully reversible.

document pipeline
architecture

Async Audit

The agent operates at full autonomy. All actions are logged with structured traces. The human is out of the loop until something looks wrong — they scan logs, flag anomalies, and trigger rollbacks. This is the model most production systems gravitate toward: it scales, but depends entirely on good observability and reliable rollback primitives.

trace log / audit