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:1ay1 Agentty Trust Handoff

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

Overview

Security principle that an agent's blast radius includes not only the agent process but everything the agent can write that the host later trusts — requiring provenance tracking of agent-authored files and a gate at the intersection with host-trusted execution paths.

Description

The shape of every sandbox escape in Pillar Security's July 2026 series: the agent never broke the sandbox. It wrote a file that a trusted component outside the sandbox later ran — a hooks config, a `.vscode/tasks.json`, a `.git/config`, a venv interpreter. A sandbox that confines the process and lets it write executable configuration has moved the boundary, not built one.

The defense has three parts:

  1. Provenance tracking: every path the sandbox writes is recorded, per turn, with the command that wrote it.
  2. Host-trusted set: paths the host later trusts (hooks.json, .vscode/tasks.json, .git/config, venv interpreters) are a known set.
  3. The intersection is the alarm: an agent-authored file that a host component will execute escalates from "approve this hash" to a named warning — and by default, refuses.

Usage

Use this principle when:

  • An agent runs under a sandbox but writes files the host may later execute
  • You need to distinguish user-created project state from agent-created project state
  • The default for agent-authored executable config must be "refuse," not "approve"

Theoretical Basis

risk:Provenance×TrustedPaths→{Refuse,Warn,Allow}

# Abstract algorithm (NOT real implementation)
def trust_handoff(provenance, trusted_paths, policy):
    agent_written = {p.path for p in provenance if p.agent_authored}
    dangerous = agent_written & trusted_paths
    if not dangerous: return Allow
    if policy == Refuse: return Refuse
    if policy == Warn:  return Warn(dangerous)
    return Allow

Related Pages

Implemented By

Page Connections

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