Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0x4m4 Hexstrike ai Human Escalation

From Leeroopedia
Knowledge Sources
Domains Human_In_The_Loop, Error_Recovery, Autonomous_Systems
Last Updated 2026-10-10 00:00 GMT

Overview

Principle for escalating unrecoverable failures to human operators with full context, urgency levels, and actionable suggestions, ensuring autonomous systems have a safe fallback.

Description

The Human Escalation principle describes when and how an autonomous system should defer to a human operator. Escalation occurs when all automated recovery strategies are exhausted or when the error type inherently requires human judgment (e.g., permission issues requiring privilege changes). The escalation report includes timestamp, tool name, target, error type, attempt count, urgency level, suggested actions (error-type-specific), and full context (parameters, system resources, recent errors).

Usage

Apply this principle in autonomous systems that need a human safety net:

  • Exhausted recovery: Escalate when all recovery strategies fail
  • Permission errors: Escalate immediately when sudo or root is required
  • Context preservation: Include enough context for the human to act without re-investigating

Theoretical Basis

The escalation decision is triggered by two conditions:

# Abstract pattern (NOT real implementation)
# Condition 1: All strategies exhausted
if not viable_strategies:
    return escalate(context, urgency="high")

# Condition 2: Error type requires human action
if error_type in [PERMISSION_DENIED, AUTHENTICATION_FAILED]:
    return escalate(context, urgency="medium")

# Escalation report structure
escalation = {
    "timestamp": now(),
    "tool": context.tool_name,
    "error_type": context.error_type,
    "attempt_count": context.attempt_count,
    "urgency": urgency,
    "suggested_actions": generate_suggestions(error_type),
    "context": {
        "parameters": context.parameters,
        "system_resources": context.system_resources,
        "recent_errors": context.previous_errors[-5:]
    }
}

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment