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:ARCANGEL0 EVA Tool Dispatch Safety

From Leeroopedia
Knowledge Sources
Domains Security_Automation, Access_Control, Agentic_Systems
Last Updated 2026-10-29 14:00 GMT

Overview

Access-control model that gates tool execution behind mode-based approval checks, ensuring an autonomous agent operates within operator-sanctioned boundaries at each step.

Description

When an AI agent can execute arbitrary commands, safety gating is essential to prevent unintended damage. This principle defines a layered approval model based on operational modes:

  • Recon mode: Only passive, low-impact commands are auto-approved. Active scanning, exploitation, or mutation tools require explicit operator approval.
  • Guided mode: The agent pauses after each investigation action and must use a dialog tool to ask the operator for the next direction. Write/non-read-only tools require approval before execution.
  • AutoPwn mode: The agent operates autonomously within the approved scope, but destructive tools still require confirmation.

The model uses three mechanisms:

  1. Read-only classification: Each tool is annotated with a read-only hint. Non-read-only tools require approval in Guided mode.
  2. Recon allowlisting: A curated set of passive commands (read-only tools, Intel tools, and a restricted set of shell commands) are permitted in Recon mode. Commands with pipes, redirects, or shell metacharacters are rejected.
  3. Guided checkpointing: After each investigation action in Guided mode, the agent must present results via a dialog tool before proceeding.

Usage

Apply this principle when:

  • An agent can execute potentially destructive commands (shell, file modification, network scanning).
  • Different engagement phases require different levels of operator oversight.
  • You need to prevent runaway autonomous action while still allowing efficient workflows.

Theoretical Basis

The model implements a capability-based access control system:

# Abstract algorithm (NOT real implementation)
def can_execute(tool, mode, arguments):
    if mode == "Recon":
        return is_low_impact(tool, arguments)
    if mode == "Guided":
        if is_bookkeeping_tool(tool):
            return True
        if not is_read_only(tool):
            return await operator_approve(tool, arguments)
        return True
    if mode == "AutoPwn":
        return True  # autonomous within scope

The recon allowlist uses a positive filter: only commands matching a known-safe pattern (e.g., `whois`, `dig`, `cat`) are permitted, and any command containing shell metacharacters (`|;&<>' $()`) is rejected outright.

Practical Guide

  • Classify tools at registration time — read-only vs. destructive — not at call time.
  • Use a positive allowlist for recon commands rather than a blocklist; new unknown commands should default to requiring approval.
  • Reject shell metacharacters in recon mode to prevent command injection through tool arguments.
  • Force a dialog checkpoint after each Guided investigation step so the operator can redirect.
  • Track the session's validated access and inject it into the system prompt so the agent doesn't repeat completed setup.

Related Pages

Implemented By

Uses Heuristic

Page Connections

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