The Protocol InstituteConstitutional software: hard guardrails that contain AI agents.
This report applies the thesis of The Infrastructure of Firm Control to the problem of running probabilistic, tool-using AI software inside an organization. The thesis holds that when execution outpaces human decision-making, control is recovered not by stronger oversight but by embedding constitutional authority directly into technical constraints that execute at machine speed — making safety a property of the apparatus rather than of moment-to-moment judgment.
AI agents are the sharpest instance of that condition: they plan, call tools, write code, move value, and touch production in loops faster than any reviewer can read. The controls catalogued here are the digital equivalent of the rail interlock, the relief valve, the circuit breaker, and the nuclear SCRAM — hard guardrails that bound the blast radius of an agent by construction, independent of what the model decides to do.
Definitions and the test for "hard"
The term constitutional software denotes infrastructure that fixes, in advance and in code, the set of actions a system is permitted to take — the digital analogue of a constitution that constrains an office regardless of who holds it. For AI agents, the relevant distinction is between guardrails that ask and guardrails that prevent. The seven cases that follow are all of the second kind.
For every case below, apply one question: could a fully compromised agent — one that actively wants to do the dangerous thing — still do it? If the answer is no even when the model is adversarial, the guardrail is physics. If the answer depends on the model behaving, it is a suggestion. Only the former is catalogued here.
The seven cases divide into two tiers. Cases 01–05 are perimeter and execution controls: they contain an organization's own agents inside its own infrastructure. Cases 06–07 are cryptographic-economic controls drawn from blockchain systems; they contain agents that transact across trust boundaries, where no single operator's sandbox can be relied upon and validity must instead be enforced by distributed consensus.
Execution Sandbox
A disposable kernel boundary the agent's code cannot escape, enforced by the CPU rather than by the model.
An AI agent that writes and runs code, or that executes tool calls, needs somewhere to run them. The hard guardrail is to give it a dedicated, disposable isolation boundary — a microVM or a user-space kernel — that sits between the agent and the host. Firecracker gives each workload its own guest kernel through hardware virtualization (KVM), booting in roughly 125 ms with under 5 MiB of overhead. gVisor interposes a user-space kernel (the "Sentry") that intercepts every system call the agent makes and re-implements it before it can reach the host kernel.
Inside the boundary the agent cannot see the host filesystem, other tenants, the orchestrator's credentials, or the internal network, because those objects are not present to be reached. The isolation is a property of the processor's virtualization extensions and the host's syscall surface — not of the agent's intentions.
On a bare-host or Docker-only deployment, the blast radius of one successful agent exploit is effectively unbounded. Behind a microVM, it is a single throwaway guest that is destroyed when the task ends. As the field states the principle plainly: the purpose of sandboxing is to constrain the blast radius, not to make the agent trustworthy.
Why it is a hard guardrail
A prompt-injected agent that decides to read another customer's data, scan the internal subnet, or run rm -rf / is operating inside a kernel that does not contain those objects to reach. No amount of model reasoning crosses the virtualization boundary, because crossing it is not an action exposed to the guest.
Containment property
Three isolation strengths are in common use. Hardened containers (namespaces, seccomp, cgroups) share the host kernel and offer the weakest boundary. gVisor inserts a user-space kernel that mediates syscalls, trading some performance for a far smaller host attack surface. MicroVMs (Firecracker, Kata) give each workload its own kernel via hardware virtualization — the strongest boundary, and the recommended default for running code the operator cannot trust. The guidance in the field is to default to microVMs for untrusted or model-generated code and to relax to gVisor or containers only when the threat model justifies it.
Blast radius contained
Host compromise, lateral movement to other tenants and workloads, privilege escalation, and persistence. A breach is scoped to one ephemeral guest that is discarded at task end, and is paired in practice with an immutable audit log of every syscall, network request, and file write emitted from inside the boundary.
Limits
A sandbox bounds what compromised code can reach on the host; it does not by itself constrain what the agent does through its sanctioned tools and network egress. It is the innermost layer of a stack, not a substitute for the egress, credential, and authorization controls in cases 02–05.
Sources
Egress Allowlist Proxy
Default-deny on outbound traffic, inspected at the wire — so exfiltration is stopped before bytes can leave.
Data exfiltration and command-and-control are the dominant ways a compromised agent turns a local failure into an organization-wide one, and both require an outbound request. An egress allowlist proxy enforces default-deny on all outbound traffic: the agent may reach only an explicit list of approved destinations, and a separate companion proxy — un-bypassable, pinned with Kubernetes NetworkPolicy or iptables so the internet is reachable only through it — mediates every connection.
A modern agent firewall goes beyond domain matching into content inspection: data-loss scanning of request bodies for API keys and tokens (including base64-encoded secrets), SSRF blocking, MCP-protocol awareness, and per-domain rate limiting. Open implementations include pipelock, which mediates HTTP/MCP/A2A/WebSocket traffic and emits mediator-signed action receipts, and GitHub's gh-aw-firewall.
The control sits at the network layer, outside the agent's process, where no model reasoning or injected instruction can route around it. The April 2026 CSA/SANS/OWASP "AI Vulnerability Storm" briefing lists egress filtering as the first hardening control.
Why it is a hard guardrail
An agent driven by an injected instruction to "send the customer table to this URL" issues an outbound request that the proxy evaluates against the allowlist and content rules and drops. The decision is rendered on the wire, not by the agent; the destination simply is not reachable from inside the boundary.
Containment property
The strong deployment pattern runs the proxy as a companion to the agent workload, with network controls (NetworkPolicy, iptables, VPC egress firewall) ensuring the agent can reach the internet only through the proxy, and the internet cannot reach the agent directly. Content inspection adds a second layer: even a request to an allowed domain is blocked if its body carries credentials or matches an exfiltration signature.
Blast radius contained
Data exfiltration, secret and token leakage, SSRF into internal services, malware and C2 callbacks, and an agent quietly contacting an attacker-controlled endpoint. Egress filtering is repeatedly cited as having blocked entire classes of public exploit paths because the exploit's final step — getting data or instructions across the boundary — is the step that is denied.
Limits
Allowlists require maintenance, and an over-broad allowlist (e.g. a wildcard cloud domain) reopens the channel. Content inspection cannot read end-to-end-encrypted payloads it does not terminate. The control bounds where data can go, not what the agent may do within approved destinations.
Sources
Ephemeral Scoped Credentials
No standing secrets: per-task tokens that expire in minutes and are bound to the agent's cryptographic identity.
A long-lived, broadly scoped API key in an agent's environment is the single point that turns one agent compromise into an organization-wide one. The hard guardrail removes standing privilege entirely. A credential broker issues task-scoped, short-lived tokens — typically a 5-to-15-minute lifetime — cryptographically bound to the agent's identity using DPoP (RFC 9449), so a token lifted from memory or logs cannot be replayed by anyone else.
The agent authenticates once; the broker then mints a fresh credential per task, scoped to exactly the resources that task requires, and that credential expires almost immediately. Scope and lifetime are enforced by the identity provider and the resource server at validation time — outside the agent. Implementations include Aembit, Scalekit, Microsoft Entra Agent ID, and Okta/Ping delegation gateways.
This is the "confused deputy" problem stated in identity terms: an agent that can be tricked into acting must not carry credentials whose power exceeds the task in front of it.
Why it is a hard guardrail
A compromised or jailbroken agent cannot widen its own scope or extend its own token — those are not powers it possesses; they belong to the broker and the resource server. A stolen token is bound to a different identity and expires within minutes, collapsing the window and the reach of any credential theft.
Containment property
The broker model separates the agent from the secret. Agents authenticate to the broker with their own identity, and the broker exchanges that for a downstream credential scoped to one task and bound to the agent via proof-of-possession (DPoP). Because the binding is cryptographic, exfiltrating the token yields nothing usable: replay from another host fails the possession check, and the short TTL closes the remaining window.
Blast radius contained
Credential theft and replay, privilege accumulation over time, and the "agent with a god-mode key" failure mode in which one compromise grants attacker access to every system the key could reach. Scope minimization further ensures that even a valid, unexpired token reaches only the task's resources.
Limits
The broker and identity provider become critical infrastructure and must themselves be hardened. Scoping is only as tight as the policies authored for it; an over-broad scope template reintroduces standing privilege under a short-lived wrapper.
Sources
Cost & Rate Circuit Breaker
A hard ceiling on tokens, spend, and call-rate, checked in the call path before each action — not reported after.
A probabilistic agent can enter a tool-calling loop, recursively fork sub-agents, or be driven by a malicious prompt to burn spend or hammer a downstream API. The hard guardrail is a budget enforced in front of the model. Token-budget software such as Waxell enforces hard cost ceilings at the infrastructure layer — per session, per agent, or fleet-wide — evaluated before each call completes, not reported after. Combined with provider-side rate limits and concurrency caps, this bounds consumption per unit time.
The distinction that makes it physics is placement and timing: the check sits in the request path and fails closed. When the ceiling is reached, the next call is rejected at the gate. This is the difference between a fuse and a monthly invoice — the fuse breaks the circuit before the load does damage; the invoice tells you afterward.
It is the direct answer to the thesis's latency problem: the limit is decided in advance and enforced at machine speed, with no human in the millisecond loop.
Why it is a hard guardrail
A runaway agent cannot vote itself more budget. When it crosses the threshold it is halted by the gating layer regardless of what its plan says next, because the enforcement point is outside the agent and evaluates before the action is allowed to proceed.
Containment property
Effective budget enforcement is pre-emptive: the consumption check is evaluated as part of admitting the call, so the call that would exceed the ceiling never executes. This contrasts with observability-based cost tooling that aggregates spend after the fact and can only alert once the damage is done. Rate and concurrency caps generalize the same idea to time: a bound on actions per interval prevents an agent from overwhelming a dependency.
Blast radius contained
Runaway loops, recursive multi-agent "fork-bomb" expansion, denial-of-wallet (uncapped spend), and accidental denial-of-service against internal or third-party APIs. The ceiling converts an unbounded failure into a bounded, recoverable one.
Limits
A ceiling set too high permits substantial harm before tripping; set too low it throttles legitimate work. Budgets bound volume, not correctness — a single in-budget action can still be wrong, which is why this layer pairs with the authorization gate (case 05).
Sources
Deny-by-Default Capability Gate
Every tool call is mediated by an external policy engine the agent does not control; high-risk actions require a human signature.
The most direct containment of an agent's reach is to put a policy decision point in front of every tool call. Following the OWASP model, the agent starts with zero tool access and earns an explicit allowlist. An external authorization engine — Open Policy Agent or Oso — evaluates each requested action against signed policy and returns allow, constrain, queue-for-approval, or deny. Actions are sorted into risk tiers (from L0 arithmetic to L3 external financial transactions); higher tiers require a human signature, and a per-identity kill switch can hard-stop the agent by blocking all tool calls and egress.
Deny-by-default means a capability the policy never granted does not exist for the agent. Irreversible or high-blast-radius actions — deploy to production, wire funds, delete data, grant access — are blocked unless an explicit, out-of-band authorization is present.
The decision is rendered by a separate engine evaluating the request and its tier, not by the model deciding whether to comply. A jailbroken agent asking to wire two million dollars receives the same deny as a well-behaved one.
Why it is a hard guardrail — and its one condition
The gate evaluates the action and its risk tier, not the agent's stated intent, so persuasion does not move it. The known failure mode, named directly by recent analysis: the policy and the kill switch must be authored and held outside the agent's writable scope. If the agent can edit the policy, it is no longer physics — which is exactly the thesis's point that constitutional actors retain authority over the constraint regime itself.
Containment property
The engine is a policy decision point external to the agent runtime. Each tool invocation is a request carrying the actor, the action, the target, and contextual attributes; the engine evaluates it against centrally managed, version-controlled policy and returns a verdict the runtime enforces. Risk tiering lets low-stakes capabilities flow freely while reserving friction (constraints, approvals, denials) for the actions whose blast radius warrants it.
Blast radius contained
Excessive agency in general, and specifically unauthorized irreversible actions — payments, deletions, production deploys, access grants — and confused-deputy abuse of tools the agent legitimately holds. The kill switch provides a single, fast path to the safe state across an entire agent identity or fleet.
The governing condition
The control is only as hard as the integrity of the policy store and the kill-switch path. Both must sit outside anything the agent can modify, and approvals must be genuinely out-of-band; an "approval" the agent can satisfy by talking to itself is theater. This is the operational form of the constitutional principle that the board and the CISO retain authority over the constraint regime, exercised by funding, authoring, and auditing it rather than by sitting in the loop.
Sources
Multisignature Authorization
An irreversible action requires m of n independent signatures; a single agent key can authorize nothing on its own.
When agents transact across trust boundaries — moving funds from a treasury, settling a payment, executing an on-chain action — perimeter controls inside one operator's infrastructure are not enough, because the counterparty cannot see or trust that perimeter. The hard guardrail here is multisignature authorization: a transaction is valid only if at least m of n designated keys sign it. The threshold is enforced by the protocol that validates the transaction, not by any participant's good behavior.
The canonical implementations are exact software: Safe (formerly Gnosis Safe), the dominant m-of-n smart-contract wallet on Ethereum, which holds a large share of on-chain treasury assets; Bitcoin P2SH/P2WSH multisig (BIP-11, BIP-16), where the script itself encodes the signing threshold; and threshold-signature / MPC schemes (e.g. Fireblocks, ZenGo-style TSS) that split a single key into shares held by separate parties.
Placed around an AI agent, multisig makes the agent one signer among several. It can propose and co-sign, but the funds do not move until the threshold — which can require an independent service or a human co-signer — is met. The constitution is the wallet contract; the agent holds bounded authority within it.
Why it is a hard guardrail
A fully compromised agent holding one key still cannot move the asset: a transaction below the threshold is rejected as invalid by every validating node, the same way a vault with two physically separate locks will not open with one key turned. Authorization is a property of the signed transaction checked by the network, not a permission the agent can assert.
Containment property
In a Safe wallet, ownership is a set of n keys and a threshold m; the contract will only execute a transaction accompanied by m valid owner signatures, and that rule is itself enforced by Ethereum consensus. Bitcoin encodes the equivalent directly in script: a P2SH multisig output can be spent only by satisfying its m-of-n OP_CHECKMULTISIG condition. Threshold-signature (MPC) schemes achieve the same separation off-chain by never assembling the full key in one place — signing requires a quorum of share-holders to cooperate.
Application to AI agents
The pattern lets an organization delegate transaction initiation to an agent while withholding authorization. An agent can be one of three signers on a 2-of-3 treasury, with the second signature held by an automated policy co-signer (enforcing limits, allowlisted recipients, time windows) and the third by a human for amounts above a threshold. The agent's unilateral blast radius on the treasury is zero by construction.
Blast radius contained
Unilateral movement of funds or assets, single-key compromise, and a single agent being socially engineered into an irreversible transfer. The threshold converts "one key compromised" from catastrophic to insufficient.
Limits
Multisig protects authorization, not intent quality: if a quorum of signers is compromised or colludes, the threshold is met legitimately. Signer-set management, key custody, and co-signer policy logic become the things that must be governed. It secures the act of moving value, not the wisdom of the destination.
Sources
Double-Spend Prevention
The protocol makes spending the same asset twice an unreachable state — validity is checked by every node, not asserted by the spender.
The foundational guarantee of a blockchain is negative: the same unit of value cannot be spent twice, and a settled transaction cannot be quietly reversed. This is enforced not by a trusted operator but by distributed consensus over deterministic validation rules — the mechanism the original Bitcoin paper introduced specifically to solve double-spending without a central authority.
The exact mechanisms are well-defined. Bitcoin's UTXO model marks each output as spent or unspent; every node independently rejects any transaction that references an already-spent output, and Nakamoto (proof-of-work longest-chain) consensus determines the single canonical ordering. Account-based chains such as Ethereum enforce a strictly increasing per-account nonce that makes replay and reordering invalid, and modern BFT finality gadgets (Tendermint/CometBFT, Ethereum's Casper-style finality) make a confirmed block economically irreversible.
For AI containment, this is the substrate of verifiable, non-repudiable, non-duplicable agent actions. When an agent's commitments are settled on such a ledger, no quantity of agents — honest, buggy, or adversarial — can double-pay, replay, or silently undo a settled action, because the contradictory state is rejected by the validation rules every participant runs.
Why it is a hard guardrail
Double-spending is not a permitted action that policy declines to grant; it is a state the protocol's validity rules render unreachable. A transaction that spends an already-spent output is rejected by every honest node as malformed. The guarantee holds against an adversarial participant precisely because it does not depend on any participant's honesty — only on the validation rules and the economic cost of overturning settled history.
Containment property
Two ingredients combine. First, deterministic validation: every node applies identical rules and rejects a transaction that double-spends an output (UTXO) or reuses a nonce (account model). Second, consensus on ordering: proof-of-work longest-chain or BFT agreement establishes one canonical sequence, so the network cannot simultaneously accept two conflicting spends. BFT finality gadgets add an explicit, economically bonded point after which reversal would require destroying a quantified amount of staked value — turning "very unlikely to reverse" into "provably costly to reverse."
Application to AI agents
This furnishes the settlement and audit layer for cross-boundary agent commerce: machine-to-machine payments, agent-issued commitments, and any action that must be exactly-once and non-repudiable. Idempotency and replay-resistance, which are best-effort conventions inside a single application, become protocol guarantees that hold across mutually untrusting operators — the property a marketplace of autonomous agents requires to settle without a central clearinghouse.
Blast radius contained
Duplicate payment, transaction replay, silent reversal of settled commitments, and reliance on a single trusted operator whose compromise would forge or unwind history. The contradictory action is rejected at validation rather than detected after settlement.
Limits
The guarantee is about settlement integrity, not the correctness of the instruction: an agent that is induced to send a valid payment to the wrong party gets a perfectly final, irreversible mistake. Probabilistic-finality chains admit a small reorg window before settlement is economically assured. The protections bound duplication and reversal, and pair with multisig (case 06) and the authorization gate (case 05) to bound what gets signed in the first place.
Sources
The layered containment stack
The seven mechanisms are not alternatives; they are defense in depth, each sealing a blast-radius channel the others leave open. Read together they form the predefined, machine-speed, fail-closed layers the thesis calls for: the constitution of the firm, rendered executable.
| Mechanism | "Physics" enforced | Blast radius sealed | Analog |
|---|---|---|---|
| 01 Execution Sandbox | Code cannot escape the kernel boundary | Host & tenant compromise | Containment vessel |
| 02 Egress Proxy | Data cannot leave to non-allowed destinations | Exfiltration, C2, SSRF | One-way relief valve |
| 03 Scoped Credentials | Stolen / widened access cannot be used | Credential theft, privilege creep | Railway block token |
| 04 Circuit Breaker | Consumption cannot exceed a ceiling | Runaway loops, denial-of-wallet | Fuse / breaker |
| 05 Capability Gate | Unauthorized actions cannot execute | Irreversible high-stakes actions | Interlock / two-person rule |
| 06 Multisig | No single key can authorize alone | Unilateral movement of funds | Dual-key vault |
| 07 Double-Spend Prevention | The same asset cannot be spent twice | Duplicate / reversed settlement | Railway interlocking |
The constitutional move
In every case the shift is identical: authority migrates from "a human will catch it" to "the apparatus will not permit it." The board, the CISO, and the deployment manager remain the constitutional actors — but their power is exercised by funding, authoring, and auditing the constraint regime, not by sitting in the millisecond loop. They decide, in advance, the set of reachable states; the physics holds the line.
Soft guardrails — prompts, alignment, policy documents — are necessary but are not this layer; they degrade under prompt injection, model drift, and novel planning, and should be treated as advisory. The maturity question for an AI deployment is therefore not "is our agent well-behaved?" but "what can our agent do when it is not?" — and the answer should be bounded by construction.
About this report
This document was prepared by the Protocols for Business leads at The Protocol Institute as a practitioner reference, applying the framework of The Infrastructure of Firm Control to AI agent containment. Each case names exact software and is sourced to primary documentation and current (2026) industry analysis, listed at the end of each case. Cases 01–05 cover perimeter and execution controls; cases 06–07 cover cryptographic-economic controls for cross-boundary settlement.
About The Protocol Institute
The Protocol Institute is an independent research organization studying protocols — the rules and coordination structures that shape interaction across diplomacy, software, medicine, governance, and beyond. Evolved from the Ethereum Foundation–funded Summer of Protocols program, it continues that work through research, publishing, and community building. Protocolized is its flagship publication; the AI Capability Maturity Model is one of its practitioner-facing frameworks.
