AI Safety Through Containment

An architectural approach — and why software alone cannot get there 

Artificial intelligence has changed the security problem. Training, prompts, and software guardrails are controls placed around a machine the agent runs inside — and a sufficiently capable optimizer, operating at superhuman speed on an architecture built from mutable shared memory, reaches around them. This essay argues that containment which survives a capable adversary cannot be a check the adversary can reach. It must be the architecture itself. And it describes a machine built on that premise: the Church Machine. 

I will be precise about what is already demonstrated, what is designed but not yet proven, and what remains a goal. The argument is strong enough that it does not need to be oversold. 

The bottom line 

Software security cannot, by itself, prevent what a superintelligence may do. The reason is structural, not a matter of better monitors. Conventional machines are built around mutable shared memory and ambient authority — the background permission a running program carries simply by virtue of where it is executing. A guardrail, a monitor, a permission check, a privileged mode: each is a thing in the agent’s environment. Given a mutable interior and reachable surface, a capable agent finds it, models it, and works around it. Adding more software surveillance does not remove that underlying exposure — it deepens it, and it trades away human freedom for a watchfulness that still fails at the decisive moment. 

The Church Machine takes a different road. It descends from two ideas: Alonzo Church’s lambda calculus, and the capability model first carried into hardware by the PP250 in 1972. Combined as a programmable hardware architecture, they remove ambient authority — the standing backdoor behind most of cybercrime. Every instruction is checked, in hardware, against the authority actually granted to it. The effect is not that dangerous actions are detected. It is that they become unavailable — operations for which no permitted authority can be assembled. 

That is the whole wager, stated once plainly: containment that survives a capable adversary must make the dangerous action unrepresentable, not merely forbidden. The rest of this essay explains the mechanism, states honestly what is proven and what is not, and invites partners and evaluators to examine it. 

 

Why the familiar defenses fail 

Today’s AI-safety practice leans on reinforcement learning from human feedback, system prompts, and software monitors — guardrails running on conventional computers. They are useful. They cannot eliminate the risk of breakout or malware, because they share a foundation with the thing they are meant to restrain. 

A capable optimization process exploits the architecture beneath the guardrail. It uses ambient authority to reach shared memory, or finds an unmediated path — a debug interface, a direct memory access, a privileged service — that no monitor was watching. The conventional machine was not designed for adversarial networks, for malware, or for AI containment. It was designed in 1945 for speed and generality, and it has served brilliantly at both. But to a superintelligence, a software guardrail is just more data: a pattern of bits to read, model, and route around. The more it reads, the better it does so. The bits meant to constrain it are, to it, simply more territory. 

This is why “more surveillance” is the wrong direction. It does not close the exposure; it enlarges the watching apparatus around an interior that remains open — and an interior that remains open to the agent remains open, however closely it is watched. 

 

The Church Machine’s core idea 

Authority is a token, held in hardware — not a value in a pointer 

In the Church Machine, authority travels as a Golden Token (GT): an immutable name for an object or a service. A GT does not contain its own powers. Unlike a pointer-based capability that packs bounds and permissions into the pointer itself, a GT names an object whose bounds and rights are held in a Namespace table, in a slot the hardware checks on every use. Three properties follow, and they are the heart of the machine: 

  • Immutable identity. A program holding a GT cannot widen it into authority over more, or retarget it at something else. Derivation only preserves or reduces authority — it never escalates. Authority attenuates as it is shared; it never grows. 

  • Hardware-checked bounds. The Namespace slot supplies the bounds, checked at the moment of access. Out-of-bounds and unresolved accesses are stopped in hardware, at runtime, not reported afterward. 

  • Version-based staleness. When an object’s slot version advances, every GT issued against the old version becomes stale and fails the check. Revocation needs no privileged instruction for an adversary to race — a stale token simply stops working. 

A functional core, not a mutable store 

The machine is grounded in the lambda calculus: its execution model evaluates expressions to produce values, rather than overwriting shared mutable state. This is the quiet radical move. The reason a conventional machine is so hard to contain is that its interior is a single mutable store every program reaches into. Replace that substrate with functional evaluation, and the most common route to another program’s state — overwrite it in place — is not there to be found. 

 

A note on the two roads of computation 

It is worth saying where this comes from, because it is not a new invention so much as a road not taken. In the 1930s, computation was given two equivalent foundations: Alan Turing’s machine, and Alonzo Church’s lambda calculus. They compute the same functions. But when the first digital computers were drawn up during the Second World War, engineering simplicity won, and the machine that emerged — the mutable-store, stored-program design we still use — took Turing’s road and left Church’s largely unused in hardware. 

That choice separated two things that, in any well-made system, belong together: what and how a computation proceeds, and why and where its effects are allowed to land. The 1945 computer is powerful and unguarded — a body with no sense of what it is permitted to touch. For eighty years that was merely an inconvenience, patched over as each new class of attack appeared. In the age of capable AI it is a structural danger, because the agent can now do the patching in reverse: study the guardrails and dismantle them. 

The Church Machine’s claim is that Church’s road carries something the Turing road, as built, discarded — a second dimension of scope and bound, in which every operation has a shape and a limit the hardware enforces. Not metaphor: mechanism. Authority is the currency of action, and it is checked all the way down. 

 

Five containment goals, and the mechanisms that meet them 

AI-safety discussions converge on a handful of properties a contained agent must have. Here is how each maps to a Church Machine mechanism — and, just as important, where each stands on the ladder from proven to speculative. 

Goal 

The risk 

CM mechanism 

Status 

Corrigibility & shutdown 

The agent resists revocation, masks itself, or hides. 

Authority is held in capabilities, not a privilege ring. A service is taken offline by advancing its version; stale GTs then fail hardware checks. 

Modeled. The return-to-service path, and who may advance a version, remain open design questions. 

No self-modification / goal lock 

The agent rewrites its own goals, rewards, or rules. 

An object with no write authority and no save-right cannot be written through any GT. Functional evaluation needs no write authority over the terms it evaluates. 

Mechanism proven; configuration to verify. The machine’s checks prevent the write; provisioning the right goal object correctly is a design fact to confirm. 

Bounded delegation 

A child process or tool is handed escalated authority. 

Derivation is attenuation-only: a child’s authority can never exceed its parent’s. 

Proven, as a property of the capability model. 

Memory isolation 

Ambient-authority escapes permit unauthorized reach. 

Hardware checks each access against the Namespace slot. Thread separation is not the sole guard. 

Ordinary access checks proven. Side-channel and covert-timing containment are not yet established. 

Side-effect limitation 

An undetected error causes an irreversible external act. 

Authority is surrendered atomically with the action it guards — spent, not standing. 

Mechanism modeled. And an honest limit: rollback cannot undo an effect already loose in the world. 

Three of these deserve a closer word, because they show the pattern — the same mechanism, seen from different sides. 

Goal lock is an absence, not a guard. The machine does not forbid the agent from rewriting its goal with a rule the agent might reach. It arranges that the goal object has no write authority in existence — so there is no token any program could present to write it. The lock is the absence of a capability, not the presence of a policeman. 

Revocation needs no privilege ring. Advancing a slot’s version makes every outstanding GT against it stale. There is no privileged “revoke” instruction for an adversary to race or intercept — the authority simply expires. This is modeled, not complete: the authorized return-to-service path is still an open design question, treated as a protected operation rather than an ambient power. 

Side effects are spent, not held. External authority — to send, to pay, to actuate — is surrendered in the same atomic step as the act it authorizes. It cannot be replayed, because once spent it is gone. The honest edge: this governs what the machine will do next, never what it has already done. Containment is forward-looking. It is not time travel. 

 

What the Church Machine does not claim 

This is the section that should make a careful reader trust the rest, so I will state it without hedging. 

Hardware-enforced capability checks can limit what each operation may reach. But the containment argument is conditional on two things the architecture does not supply by itself: 

  1. Complete mediation — every route to every object enumerated and shown to pass through the check. Boot, calls, capability movement, memory reuse, privileged services, debug and readback paths, external interfaces: all of them. One unenumerated route is a hole. 

  1. Correct grants — the initial authority handed out must actually match intent. A faithfully enforced over-broad grant is a failure the hardware will not catch, because the authority is legitimate. 

So “unrepresentable” is a property of architecture and configuration, not of architecture alone. The architecture makes the dangerous action possible to rule out; the configuration and the coverage argument are what make it actually ruled out. Those remain case-by-case design questions, and in this project they are modeled and in progress — not proven. Any claim that skips this section is selling something. 

 

Why a reachable patch is not enough — and the CHERI question 

The most serious objection to all of this is reasonable: capability hardware already exists. CHERI and its kin add capabilities to conventional processors, and they genuinely fix important things — spatial memory-safety errors, pointer forgery, coarse compartmentalization. For the vast installed base of C and C++, that is real and valuable, and it should not be waved away. 

But a capability extension bolted to a mutable-state processor with a supervisor ring leaves the base machine in place. Four structural limits remain: 

  • Mutable shared state remains. Capabilities can fence access to overwrite-in-place memory — but the overwrite-in-place substrate is still there. The Church Machine’s functional core produces values instead. 

  • Authority still lives in the pointer. Revoking a copied pointer-capability is hard and may need sweep or epoch schemes to reach every copy. When authority lives in the Namespace binding instead, advancing one version makes every copy stale at once. 

  • A privilege ring remains. A supervisor/agent split preserves ambient authority tied to privileged status. The Church Machine runs SYSTEM as a thread with limited capabilities — no extra power from identity alone. 

  • The perimeter must still be fully covered. A capability layer around an unchanged interior must account for every path into that interior — debug, DMA, privileged services, every other piece of software. The Church Machine’s aim is to make authority the mechanism of access, rather than to draw a tighter fence around an interior that is otherwise unmediated. 

The verdict is not that CHERI is wrong — it improves real security. It is that a patch inherits the assumptions of the machine it patches. The limit is not the tokens; it is what they are bolted to. 

And here is why that matters against a superintelligence specifically. A control the agent can reach — a guardrail, a monitor, a permission check, a privileged mode — is part of the agent’s environment. Given a mutable interior and reachable paths, it can be studied and circumvented. Authority that cannot be acquired is categorically different: an operation for which no permitted derivation yields the needed authority has no representation available to the agent at all. Not forbidden — absent from the machine’s vocabulary, the way the largest prime number is not forbidden but simply does not exist. 

This is not the claim that no machine could contain a superintelligence. It is the claim that you cannot get there by patching a machine the agent can reach into — and that an architecture which makes unauthorized action unavailable is a different kind of thing from a tighter boundary around an open interior. That is the wager. It is stated as a wager, not a guarantee, and its soundness still rests on the complete-mediation and correct-grant conditions above. 

 

Where the Church Machine stands today 

No honest version of this essay ends without a precise ledger. Here is one. 

Built and running — [proven]. The capability model, GT validation, bounds checking, attenuation-only derivation, write-absent objects, the save-right (B) tokens, and the functional/lambda core are running on an Artix-7 FPGA. In test, the machine denied an unauthorized access while authorized work continued. The honest limit: this does not yet establish which check caused the denial, nor exercise every capability type, permission combination, and lifecycle transition. 

Designed and under review — [modeled]. The lifecycle machinery — lazy load and resolve, retirement, the SYSTEM-thread event model, version-defined OFFLINE and revocation, consume-once authority handoff — is specified and under review. Commit atomicity and whole-update exclusion still require proof under fault injection, first in simulation and then in RTL. 

Aspiration, in progress — [speculative]. The AI-alignment framing itself, formal proofs of the microcode propagation rules, and side-channel / covert-timing containment are goals, not established guarantees. The machine’s primitives are argued to map onto them; that mapping is not yet demonstrated. 

 

An invitation 

The Church Machine is a wager that the containment we will need cannot be painted onto the machine we have — that it has to be built into a different one, along the road computation’s founders laid down and the hardware of 1945 left unused. The wager may be wrong in places; the coverage argument is unfinished and the hardest proofs are still ahead. That is exactly why it should be examined by people who will try to break it. 

The design is open. The FPGA images and the framing documents are available, and collaborators, reviewers, and adversarial evaluators are genuinely wanted — most of all on the two conditions that decide everything: complete mediation, and correct grants. 

Open-source for research and experimental use; commercial licensing available. Patents applied for. FPGA downloads and framing documents: github.com/khhodges. Contact: kenneth@hamer-hodges.us 

Comments