Human-in-the-loop approvals don't scale to 1,000 agent runs/hour—the future is policy-as-code guardrails with OPA/Cedar
Every enterprise AI demo ends with the same reassuring slide: "And before taking action, the agent pauses for Human-in-the-Loop approval!"
In a pilot with 5 users, clicking "Approve" in Slack feels safe. At 1,000 agent runs per hour, Human-in-the-Loop collapses into two failure modes:
- Throughput Deadlock: Your entire system bottlenecks on human response latency.
- Approval Fatigue: Engineers start blindly clicking "Approve" on 50 consecutive Slack modals without reading the JSON arguments—giving you the illusion of security with zero actual protection.
The Production Pattern: Policy-as-Code (Cedar / OPA)
Treat autonomous agents like untrusted microservices governed by deterministic Cedar or Open Policy Agent (OPA) rules evaluated at the MCP tool gateway in <2ms:
permitautomatically iftool == "issue_refund" && args.amount <= 50 && user.tier == "verified"forbidoutright iftool == "sql_query" && args.sql matches "DROP|TRUNCATE"- Escalate to a human only for the 2% of high-blast-radius edge cases (
args.amount > 500).
Deterministic policy engines scale infinitely; human attention does not.