Describe three patterns for inserting human approval into an agent workflow and their tradeoffs
Name and describe three distinct patterns for human in the loop approval in an agent workflow. For each, describe the latency/safety tradeoff.
Human-in-the-loop patterns sit at three timeline points: approve before execute, edit and continue, or review after the fact. Pick by action reversibility, not by feel.
Imagine a new assistant booking your travel. You could make them check with you before every single click, which is safe but slow. You could let them book everything and then read the receipts later, which is fast but a booked flight is hard to cancel. Or you could tell them to act on their own for cheap, refundable things and only knock on your door for the big, non-refundable ones. A fourth option is to let them ask for help only when they are unsure. The right choice depends on how easy it is to undo a mistake. Sending money is hard to undo, so check first. Drafting an email is easy to undo, so let them draft and you fix it later. Good systems mix these, not pick one for everything.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Name the three timeline positions, add escalate on low confidence as the fourth, state reversibility as the selection variable, walk one example each, then close on undo windows and approval fatigue as the production concerns that decide whether the design actually holds up.
Real products, models, and research that use this idea.
- LangGraph ships an interrupt primitive that pauses a StateGraph before a chosen node, the canonical approve before execute gate, and resumes with human-edited state for edit and continue.
- Claude Code asks before running shell commands or editing files, but lets you allowlist safe commands so only risky tool calls interrupt, an escalate on threshold pattern in practice.
- Gmail's send-undo delay and Stripe's payment holds are real undo windows that make a logically irreversible action safe to route to post-hoc review.
- Cursor's agent mode proposes multi-file diffs the developer edits and accepts before they hit disk, a clear edit and continue checkpoint over the file-write tool.
- GitHub Copilot Workspace stages a proposed plan and code changes for review and edit before anything is committed, combining approve before execute with edit and continue.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you classify which actions need a blocking pre-action gate versus async post-hoc review?
QHow do you set and tune the threshold for escalate on low confidence without flooding or starving the human?
QWhat concrete mechanisms create an undo window for a logically irreversible action?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking one approval pattern for the whole agent. The right design routes each action type to a different gate based on how reversible and how costly that action is.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.