- Category: C. AI Engineering & LLM Ops
- English term: Human-in-the-Loop and Escalation
- Related: LLM-as-a-Judge · Independent Verification (Verifier) · Fallback Chain (Cascading Fallback) · ADR (Architecture Decision Record) · Receipt and Definition of Done
General Meaning
Human-in-the-Loop (HITL) is an architectural philosophy that places human judgment, approval, and correction steps at critical points within an autonomous AI cycle. Rather than delegating every decision blindly to AI, human intervention is required at safety-critical branches or when model confidence is low.
Escalation is the staged handoff of a task and its context to a higher-capability model or a human operator when a lower-level autonomous process hits its authority boundary—such as payment approval, account management, or legal liability—or reaches its retry limit on an error.
Why It Matters
- Preventing irreversible damage and legal risk: Interposing human confirmation before irreversible operations such as billing, contract signing, or handling personal data prevents severe incidents.
- Recovering from unknown errors and breaking changes: Allows seamless handoff to a human when an external API changes unexpectedly or an unfamiliar UI change blocks autonomous recovery.
- Minimizing human operational burden: Autonomous AI resolves everyday routine work and minor errors on its own, letting humans focus exclusively on high-value decisions that only a person can make.
How the Site Factory Uses It
The Site Factory operates autonomously with the goal of reducing the human operator's hands-on time to once per day. Consequently, every action request directed at the operator must first pass through AI pre-review (operator_review) via ops/operator_review.md (per the 2026-10-13 directive and K104). When an error or decision wait occurs in the loop, AI agents do not immediately notify the operator; instead, they check official documentation, apply fixes, retry, or hand off to another AI agent.
The final judgment on whether human operator action is genuinely indispensable is made by a top-tier model (Claude Opus high, Codex Sol high, or Antigravity Gemini Flash high), and a parent worker independently verifies the model execution record (such as token completion logs) before confirming the escalation. Human requests are strictly limited to unavoidable personal actions such as personal login, re-authentication, payment, or contracts, whereas direct instructions given by the operator in chat ([運営者の依頼:...]) are exempt from AI pre-review (2026-10-24 decision in decisions.md).
Caveats & Operational Rules
- Notifying a human on every error is not true HITL: Autonomous HITL presupposes that AI agents first exhaust retries and alternative recovery paths; immediately dumping raw failures on a human is a system design flaw.
- Never subject explicit human instructions to AI censorship: Sending a decision explicitly instructed by the operator in chat back through AI pre-review inverts system sovereignty, so the Site Factory exempts direct operator requests.
- Never confirm an escalation based on AI self-reporting alone: Even if an AI claims human action is required, the escalation is not confirmed until a worker independently verifies proof that the designated top-tier model ran to completion.
Related Terms
- LLM-as-a-Judge
- Independent Verification (Verifier)
- Fallback Chain (Cascading Fallback)
- ADR (Architecture Decision Record)
- Receipt and Definition of Done
References
- Book: Chip Huyen, "AI Engineering", Chapter 10 (AI Engineering Architecture and User Feedback)
Verified: 2026-11-08