Lesson 3 of 8 · 3 min read
Waiting for People
Human-in-the-loop steps turn agent runs into processes that wait for hours or days. A durable design persists the run's state, releases workers and connections, and resumes on a signal (the decision) or a timer (a reminder, an escalation, an expiry). The approval must be bound to the exact action shown to the approver, so a run cannot ask about one thing and do another; it must come from someone entitled to give it; and before acting on it the run rechecks anything that may have changed while it waited.
Get full Premium access · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Practise it as an interviewer asks it
What does it mean for an agent to be durable, and why can't a normal loop just retry after a crash?What are guardrails for an AI agent, and why is an instruction in the system prompt not one?Your agent has a 200k-token window and falls apart at 55k. Why, and what do you change?A worker crashes after the payment call succeeds and before the result is saved. Design recovery.Draw the line between what the model proposes and what the system executes.Human approval may arrive three days later. Design the wait.