Human-in-the-Loop (HITL)
Human-in-the-Loop (HITL) enables human oversight for AI decisions by pausing execution and requiring manual approval before proceeding. This is essential for regulatory compliance (EU AI Act Article 14, SEBI AI/ML, RBI FREE-AI) and high-risk decision oversight.
The require_approval Action
AxonFlow supports a require_approval policy action that triggers HITL workflows:
# Example policy with require_approval
name: "High-Value Transaction Oversight"
pattern: "(amount|value|total).*\\$[1-9][0-9]{6,}"
action: require_approval
severity: high
Community vs Enterprise
| Capability | Community | Enterprise |
|---|---|---|
require_approval action | ✅ | ✅ |
| Auto-approve (pass-through) | ✅ | - |
| HITL approval queue | - | ✅ |
| Customer Portal approval UI | - | ✅ |
| Multi-level approval workflows | - | ✅ |
| SLA management & escalation | - | ✅ |
| Approval audit trail | - | ✅ |
| Programmatic approval API | - | ✅ |
Community Behavior
In Community Edition, require_approval auto-approves immediately. This allows you to define HITL policies and test patterns, but actual human review requires Enterprise Edition.
Use Cases
- EU AI Act Article 14: Human oversight for high-risk AI systems
- SEBI AI/ML Circular: High-value transaction oversight (>₹10 lakh)
- RBI FREE-AI: Human review for sensitive banking operations
- Admin Access: Require approval for privileged operations
Policy Actions Reference
| Action | Description | Community | Enterprise |
|---|---|---|---|
block | Immediately block request | ✅ | ✅ |
require_approval | Pause for human approval | Auto-approve | Full queue |
redact | Mask sensitive content | ✅ | ✅ |
warn | Log warning, allow request | ✅ | ✅ |
log | Audit only | ✅ | ✅ |
Getting Started
You can create policies with require_approval in Community to prepare for Enterprise:
curl -X POST http://localhost:8080/api/v1/policies/static \
-H "Content-Type: application/json" \
-H "X-Tenant-ID: your-tenant-id" \
-d '{
"name": "High-Value Transaction Oversight",
"pattern": "(amount|value|total).*\\$[1-9][0-9]{6,}",
"action": "require_approval",
"severity": "high",
"enabled": true
}'
Working examples are available in the repository:
git clone https://github.com/getaxonflow/axonflow.git
cd axonflow/examples/hitl
Enterprise HITL Features
Enterprise Edition
For full HITL functionality including approval queues, workflows, and compliance reporting:
- Enterprise HITL Guide - Complete implementation guide
- Contact Sales - Discuss your compliance requirements
Related Documentation
- Policy Overview - Policy syntax and actions
- Policy Examples - More policy patterns
- EU AI Act Compliance - Article 14 requirements
- SEBI Compliance - Indian securities regulations