The Protocol Institute
Protocols for Business · Reference Report

Constitutional 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.

Cases7 mechanisms
ClassHard guardrails / fail-closed
AudienceAI deployment managers
PreparedJune 2026
Framework

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.

Constitutional software
Technical infrastructure that encodes the firm's constitutional limits — what the organization will and will not permit — as executable constraints enforced at machine speed. Authority migrates from "a human will catch it" to "the apparatus will not permit it."
Hard guardrail vs. soft guardrail
A soft guardrail asks the agent not to do something — system prompts, model alignment, policy documents, instructions. It degrades under prompt injection, model drift, and novel planning. A hard guardrail makes the action unreachable: it fails closed regardless of what the model decides, what an injected instruction tells it, or how its planner reasons.
Blast radius
The maximum harm a single failure, compromise, or misjudgment can cause before something stops it. Containment engineering treats the agent as untrusted by default and asks not "is it well-behaved?" but "what is the bound on damage when it is not?"
Reachable states
The thesis's term for the set of conditions a system is structurally permitted to enter. A hard guardrail works by removing a dangerous state from the reachable set entirely, so no decision — correct or adversarial — can arrive there.
Fail-closed
On error, ambiguity, or loss of the control plane, the system denies rather than permits. The default is the safe state; action requires an explicit, valid authorization that the agent cannot manufacture for itself.
The physics test

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.

01
Case 01 · Execution Isolation
Containment Boundary Firecracker · gVisor · Kata

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.

Exact software
Firecracker, gVisor, Kata Containers
Boundary
Dedicated guest kernel per task
Boot / overhead
~125 ms · <5 MiB (Firecracker)
Failure mode
Fail-closed; guest destroyed on exit

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.

Physics analog
The reactor containment building and the aviation flight envelope — a structural shell that holds whatever happens inside it, by construction, regardless of operator action.
02
Case 02 · Network Containment
Egress Control Agent firewall · allowlist proxy

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.

Exact software
pipelock, gh-aw-firewall, egress proxy
Default posture
Deny-all outbound; explicit allowlist
Inspection
DLP, SSRF, MCP-aware, rate limits
Enforcement point
Un-bypassable network proxy

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.

Physics analog
The one-way check valve and pressure-relief system — flow is permitted only in sanctioned directions to sanctioned places; reverse or unsanctioned flow is physically blocked.
03
Case 03 · Identity & Access
Least-Privilege Identity Credential broker · DPoP (RFC 9449)

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.

Exact software
Aembit, Scalekit, Entra Agent ID
Token lifetime
Seconds to ~15 minutes
Binding
DPoP (RFC 9449) — non-replayable
Standing privilege
None — minted per task, per scope

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.

Physics analog
The railway absolute-block token — a train may occupy a section of track only while holding the single physical token issued for that block; without it, entry is structurally impossible, and only one token exists at a time.
04
Case 04 · Consumption Limits
Pre-Execution Budget Token budgets · rate & concurrency caps

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.

Exact software
Waxell token budgets; provider rate limits
Granularity
Per session · per agent · fleet-wide
Timing
Pre-execution, in the call path
On breach
Call rejected at the gate (fail-closed)

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.

Physics analog
The electrical circuit breaker and the market circuit breaker that halts trading at a threshold — and the grid's load-shedding relay that drops load before the system collapses.
05
Case 05 · Authorization
Authorization Gate OPA · Oso · risk-tiered approval

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.

Exact software
Open Policy Agent, Oso
Default posture
Zero tools; explicit allowlist
Decisions
Allow · constrain · approve · deny
High-risk tier
Human-in-the-loop signature required

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.

Physics analog
The machine-guard interlock (the press will not cycle while the guard is open), the nuclear two-person rule, and the SCRAM — a single hard-stop that drops the system to a safe state on command.
06
Case 06 · Cryptographic-Economic
Threshold Authorization Safe · Bitcoin P2SH · MPC / TSS

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.

Exact software
Safe (Gnosis), Bitcoin P2SH, MPC/TSS
Rule
m-of-n signatures or invalid
Enforced by
Consensus validation of the transaction
Agent's role
One signer; cannot act alone

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.

Physics analog
The dual-key vault and the nuclear two-person rule — the cryptographic form of "no single actor can authorize the consequential action alone."
07
Case 07 · Cryptographic-Economic
Irreversible Settlement Nakamoto consensus · UTXO · BFT finality

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.

Exact mechanisms
UTXO, Nakamoto consensus, account nonce, BFT finality
Guarantee
No double-spend; settled = irreversible
Enforced by
Every validating node, independently
Trust model
No central operator required

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.

Physics analog
The railway interlocking that makes two trains on a collision path a state the signals cannot be set into — and the one-way turnstile that cannot be re-crossed. The contradictory configuration is removed from the reachable set.
Synthesis & About

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" enforcedBlast radius sealedAnalog
01 Execution SandboxCode cannot escape the kernel boundaryHost & tenant compromiseContainment vessel
02 Egress ProxyData cannot leave to non-allowed destinationsExfiltration, C2, SSRFOne-way relief valve
03 Scoped CredentialsStolen / widened access cannot be usedCredential theft, privilege creepRailway block token
04 Circuit BreakerConsumption cannot exceed a ceilingRunaway loops, denial-of-walletFuse / breaker
05 Capability GateUnauthorized actions cannot executeIrreversible high-stakes actionsInterlock / two-person rule
06 MultisigNo single key can authorize aloneUnilateral movement of fundsDual-key vault
07 Double-Spend PreventionThe same asset cannot be spent twiceDuplicate / reversed settlementRailway 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.

Contact

Reach us at team@protocol-institute.org.

More at protocol-institute.org.