No finite rulebook can certify every safe program: an impossibility theorem for gatekeeping AI agents
Tomas Perez-Acle
Key points
From the paper's conclusion- We characterise exactly which rules about visible behaviour evidence can confirm, and we show that any sound rulebook of $n$ bits omits a compliant program of about $n$ bits.
Abstract
An AI assistant writes small programs, and a gatekeeper must decide, from the code alone, whether each one may run. Suppose the rules are fixed: never perform a forbidden action, never let the output depend on a secret, always answer eventually. Can two rulebooks, one listing what is allowed and one listing what is not, both be complete, if every rule must be backed by evidence that a machine can check in finite time? We prove that they cannot. Checkable evidence can only establish what a finite record settles, and ``never'' and ``eventually'' are never settled by a finite record. For prohibitions the failure is one-sided: every violation can be caught by watching, but no safe program can be cleared for good. For confidentiality and responsiveness, neither side can be. We characterise exactly which rules about visible behaviour evidence can confirm, and we show that any sound rulebook of $n$ bits omits a compliant program of about $n$ bits. A time limit makes everything checkable, but only by running the program for essentially the whole limit, so a finite machine is not a feasible one. Finally, we show what a gatekeeper can still guarantee: not a verdict on every program, but a checkable list that contains everything it must allow and nothing it must refuse. Simulations on 2.2 million random programs and on self-referential adversaries show that the obstruction is adversarial rather than typical, and that the one error a longer test never removes is the liveness part of confidentiality.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Pandora's Toolbox Or Why Agent Safety Cannot Be VerifiedarXiv · 2026
- Local Allow, Global Deny: Why Per-Action Authorization Does Not Compose in LLM AgentsarXiv · 2026
- Proof-Carrying Contracts: Commitments AI Agents Cannot BreakarXiv · 2026
- No Perfect Guardrail & No Perfect Guard: On the Decidability of Output Policies for Large Language ModelsarXiv · 2026
- Provenance-Isolated Epistemic Quorums: Execution-Bound Evidence Certification and Plausible-World Safety Gating in Agentic Control PlanesarXiv · 2026
- AgentEval: Evidence-Bounded Assessment of Stateful AgentsarXiv · 2026