Skip to main content

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

CapabilityCommunityEnterprise
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

ActionDescriptionCommunityEnterprise
blockImmediately block request
require_approvalPause for human approvalAuto-approveFull queue
redactMask sensitive content
warnLog warning, allow request
logAudit 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: