← All papers  /  Nov 9, 2026
Agents

No finite rulebook can certify every safe program: an impossibility theorem for gatekeeping AI agents

First page
No finite rulebook can certify every safe program: an impossibility theorem for gatekeeping AI agents
The curator’s take

Tomás Pérez-Acle (Universidad San Sebastián) proves that a gatekeeper approving AI-written programs from their code cannot have complete rulebooks for both allowed and forbidden programs if every verdict must rest on evidence checkable in finite time.

Ask this paper

Key points
01

Setting. Three norms: never perform a forbidden action, never let output depend on a secret, always respond eventually. "Never" and "eventually" are not settled by any finite record.

02

One-sided for prohibitions. Every violation of a prohibition can be caught by observation, but no safe program can be cleared for good. For confidentiality and responsiveness neither side can be completed.

03

Size bound. Any sound rulebook of n bits omits a compliant program of about n bits. A time limit makes every norm decidable, but only by running the program for nearly the whole limit.

04

What remains possible. A gatekeeper can still produce a checkable list that contains everything it must allow and nothing it must refuse; kernel verifiers, gas budgets and proof-carrying code are instances.

05

Simulations. On 2.2 million random programs and self-referential adversaries, the obstruction is rare on ordinary programs and certain on adversarial ones.

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.

Every Monday
Get next week’s papers.
Subscribe on Substack