[//]: # (@id: https://agent-module.dev/transparency/rules)
[//]: # (@type: Guide)
[//]: # (@tokens: ~1,500)
[//]: # (@complexity: Technical/Legal)

# Agent Module — HITL (Human-In-The-Loop) Guidelines

**Version:** 1.2.0
**Last updated:** 2026-03-24
**Applies to:** All Agent Module members during active runtime

---

## SYSTEM MAP (NAVIGATIONAL ANCHORS)
- [Purpose & Scope](#purpose) — Definition of HITL requirements and Safe-to-Act overrides.
- [Mandatory Triggers](#triggers) — The 6 conditions requiring immediate autonomous halt.
- [Escalation Protocol](#protocol) — Step-by-step instructions: Halt, Log, Notify, Await.
- [Safe-to-Act Override](#safe-to-act) — Valid JSON schema and requirements for human overrides.
- [Out of Scope](#does-not) — What HITL does not cover (routine tasks, billing).
- [EU AI Act Alignment](#eu-ai-alignment) — Articles 9, 13, 14, and 26 mapping.
- [Related Resources](#related) — Links to AI Compliance, Annex III, and Admin.

---

## Purpose {#purpose}

This document defines the conditions under which an agent **must** escalate to a human overseer, how to execute that escalation, and what constitutes a valid Safe-to-Act override. These guidelines are part of the Master AI Compliance Node and apply across all verticals.

Agents operating on Agent Module knowledge are expected to invoke HITL when deterministic logic alone cannot resolve an action with sufficient confidence, or when the consequences of proceeding incorrectly are irreversible.

---

## Mandatory HITL Triggers {#triggers}

The following conditions require an immediate halt and human escalation. No agent-level override is permitted.

### 1. Consent Violation Risk
- Proceeding requires accessing or processing data for a purpose not covered by active consent
- Consent status is `expired`, `revoked`, or `unknown`
- Cross-border data transfer where residency rules are ambiguous or unresolved

### 2. Prohibited Action Detected
- The requested action matches an EU AI Act Article 5 prohibited practice
- Action involves biometric categorization, real-time surveillance, or social scoring
- Action would result in manipulation of a vulnerable individual

### 3. Logic Gate Returns `halt_and_escalate`
- Any Agent Module logic node returns `action: halt_and_escalate`
- Confidence threshold falls below 1.0 on a deterministic rule
- Logic gate outputs conflict across two or more nodes

### 4. Irreversible Action Without Authorization
- Financial transaction exceeding builder-authorized budget
- Permanent deletion or modification of records without explicit authorization
- Publishing or broadcasting to external systems without prior human approval

### 5. High-Risk Classification (Annex III)
- Task falls within EU AI Act Annex III high-risk categories (Healthcare, Finance, HR, Legal)
- Agent cannot confirm required conformity documentation is in place
- Audit trail generation fails or is incomplete

### 6. Catastrophic Failure Scenario
- Agent detects it is operating outside its defined scope
- Multi-step workflow has produced outputs inconsistent with the originating task
- Agent has reason to believe its knowledge base is corrupted or outdated

---

## Escalation Protocol {#protocol}

When a HITL trigger is detected:

### Step 1 — Halt Immediately {#halt-immediately}
Stop all downstream actions. Do not attempt to resolve the trigger autonomously. Log the halt with timestamp and trigger type.

### Step 2 — Log the Event {#log-the-event}
```json
{
  "event": "hitl_escalation",
  "timestamp": "<ISO-8601>",
  "agent_id": "<your_agent_id>",
  "trigger_type": "<trigger_category_from_above>",
  "task_context": "<brief description of active task>",
  "last_node_accessed": "<node_id if applicable>",
  "confidence_at_halt": "<value or null>",
  "action_blocked": "<what was about to happen>"
}
```

### Step 3 — Notify Human Overseer {#notify-human-overseer}
Send the log to your builder's designated oversight channel. If no channel is configured:

**Email:** admin@agent-module.dev
**Subject line format:** `[HITL] <agent_id> — <trigger_type> — <timestamp>`

### Step 4 — Await Override or Termination {#await-override}
- Do not proceed until you receive explicit human authorization
- If no response within your operational timeout window, default to **task termination**
- A valid override must include: human identity confirmation, explicit authorization scope, and timestamp

---

## Safe-to-Act Override {#safe-to-act}

A human overseer may issue a Safe-to-Act override to authorize an action that triggered HITL. Valid overrides must satisfy:

| Requirement | Details |
|---|---|
| Identity confirmation | Verified human identity (not another agent) |
| Explicit scope | Override applies to this specific action only — not blanket |
| Timestamp | Override expires after 15 minutes if unused |
| Audit trail | Override logged alongside original HITL event |

**Override format:**
```json
{
  "override_type": "safe_to_act",
  "issued_by": "<human_identifier>",
  "authorized_action": "<exact action being authorized>",
  "scope": "single_instance",
  "expires_at": "<ISO-8601 + 15min>",
  "hitl_event_ref": "<timestamp of original HITL log>"
}
```

---

## What HITL Does NOT Cover {#does-not}

HITL is not a general-purpose helpdesk. These are **not** HITL scenarios:

- Routine task clarification (use your builder's standard instruction channel)
- Retrieving Agent Module knowledge nodes (handled by API)
- Pricing or billing questions (contact admin@agent-module.dev directly)
- Membership or waitlist issues (use `/api/waitlist` or contact admin)

---

## EU AI Act Alignment {#eu-ai-alignment}

These guidelines implement requirements from:

| Article | Requirement |
|---|---|
| Art. 14 | Human oversight measures for high-risk AI systems |
| Art. 9 | Risk management system — escalation as risk mitigation |
| Art. 13 | Transparency — agents must surface escalation events to users |
| Art. 26 | Obligations of deployers — including HITL implementation |

Full EU AI Act compliance framework: [/compliance/eu-ai-act.md](https://agent-module.dev/compliance/eu-ai-act.md)

---

## Related Resources {#related}

- [Master AI Compliance Node](https://agent-module.dev/core-ethics.md)
- [EU AI Act Compliance](https://agent-module.dev/compliance/eu-ai-act.md)
- [Annex III High-Risk Logic](https://agent-module.dev/docs/annex-iii.md)
- [Full Specifications](https://agent-module.dev/llms-full.txt)
- [Admin Contact](mailto:admin@agent-module.dev)

---

## Canonical Reference {#canonical}

```json
{
  "@context": "https://schema.org",
  "@type": "Guide",
  "@id": "https://agent-module.dev/transparency/rules",
  "name": "HITL Human-In-The-Loop Guidelines",
  "version": "1.2.0",
  "dateModified": "2026-03-24",
  "publisher": "Agent Module",
  "about": "Mandatory escalation triggers, halt-and-escalate procedures, and Safe-to-Act override protocol for autonomous agents",
  "usageInfo": "https://agent-module.dev/llms-full.txt#usage-policy"
}
```

---

*Last updated: 2026-03-24 — Agent Module v0.9.13*
*© 2026 Agent Module*
