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

Heuristic:ARCANGEL0 EVA Guided Mode Checkpoint

From Leeroopedia
Knowledge Sources
Domains Security, Safety
Last Updated 2026-10-29 12:00 GMT

Overview

In Guided mode, pause after a single investigation action and present the operator with a dialog to choose the next step.

Description

Guided mode enforces a human-in-the-loop checkpoint pattern: after one investigation action completes, the agent must pause and use `mitsu__user_dialog` to summarize results and let the operator decide the next direction. Non-investigation tools (Intel updates, user dialog, session upsert, exploit recording) are exempt from this restriction — the checkpoint only triggers after a "flow action" (actual investigation tool like `bash`, `armory_run`, web search, etc.). If the agent attempts a second investigation action before the dialog, it receives "Not run: Guided mode pauses after one investigation action for the operator's next-step choice."

Usage

Apply this heuristic when operating in Guided mode. The checkpoint is automatic — after any investigation action, `guided_checkpoint_due` is set to `True`, and only checkpoint tools (Intel updates, user_dialog, record_exploit, etc.) are allowed until the operator responds. The operator can always redirect by interrupting the run.

The Insight (Rule of Thumb)

  • Action: In Guided mode, allow only one investigation action per step, then require `mitsu__user_dialog`.
  • Value: `guided_checkpoint_due = True` after any `_guided_flow_action` tool call.
  • Trade-off: Slower pace than AutoPwn mode, but ensures human oversight of each investigation step.
  • Compatibility: Guided mode only. Recon mode has its own allowlist. AutoPwn has no checkpoints.

Reasoning

Pentest engagements can cause unintended side effects (service disruption, data modification, detection by defenders). Guided mode ensures the operator reviews each action's results before authorizing the next step. The one-action-then-dialog pattern gives the operator full control over the investigation trajectory while still letting the agent suggest next steps through the dialog options. Intel updates and session bookkeeping are exempt because they don't touch the target.

Code Evidence

Guided checkpoint tool detection from `agents/runtime.py:36-41`:

def _guided_checkpoint_tool(name: str) -> bool:
    local_name = _tool_name(name)
    return name.startswith("mitsu__") and (
        local_name.startswith("intel_")
        or local_name in {"user_dialog", "record_exploit", "remove_exploit", "session_upsert"}
    )

Flow action detection from `agents/runtime.py:44-56`:

def _guided_flow_action(name: str) -> bool:
    local_name = _tool_name(name)
    bookkeeping = {
        "user_dialog", "ask_user", "request_mode", "session_upsert",
        "record_exploit", "remove_exploit", "intel_get_map", "armory_tool_catalog",
    }
    return not (name.startswith("mitsu__") and (local_name in bookkeeping or local_name.startswith("intel_")))

Checkpoint enforcement from `agents/runtime.py:368-372`:

elif invocation_mode == "Guided" and guided_action_seen and _guided_flow_action(invocation.name):
    result = "Not run: Guided mode pauses after one investigation action for the operator's next-step choice."

Checkpoint system prompt from `agents/runtime.py:265-272`:

elif checkpoint_pending:
    active_system_prompt += (
        "\n\nA Guided investigation step has finished. Save the new evidence in Intel. "
        "Before another investigation action, use mitsu__user_dialog to summarize what "
        "changed and let the operator choose the next direction."
    )

Related Pages

Page Connections

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