Week 2 · Lesson 07

HITL approvals

Approval is a state machine, not a prompt. Humans revise with comments; max edits are enforced.

Time · 1 day
Learn
  • Approve vs request-changes vs needs_revision
  • Iteration history as product data
  • When the agent is allowed to re-run
Build
  1. approve / request-changes + iterations rows
  2. Max 3 revisions → needs_revision
  3. 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?