Week 2 · Lesson 07
HITL approvals
Approval is a state machine, not a prompt. Humans revise with comments; max edits are enforced.
Learn
- Approve vs request-changes vs needs_revision
- Iteration history as product data
- When the agent is allowed to re-run
Build
approve/request-changes+iterationsrows- Max 3 revisions →
needs_revision - Agent re-run only from
changes_requested(or explicit restart)
Checkpoint
Full loop in DB: draft → request changes → new run → approve.
Four notes
- What problem does this layer solve?
- What is allowed to call it?
- What must it never do?
- How do I observe and test it?