Principle:1ay1 Agentty Trust Handoff
| 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:
- Provenance tracking: every path the sandbox writes is recorded, per turn, with the command that wrote it.
- Host-trusted set: paths the host later trusts (hooks.json, .vscode/tasks.json, .git/config, venv interpreters) are a known set.
- 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
# 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