TRANSMISSION // 2611.13367v1
Why an AI code gatekeeper cannot certify every safe program
Source published
A theoretical preprint applies classical computability limits to AI-generated code: a checker cannot certify every compliant program while remaining correct for all unrestricted programs. Conservative approval, execution limits and runtime controls can provide narrower guarantees.
An AI assistant writes a program. Before it runs, another system checks that it will never perform a forbidden action, reveal a secret or leave a request unanswered. These sound like straightforward rules. A new preprint by Tomás Pérez-Acle explores why turning them into a perfect approval process runs into the same fundamental obstacle as predicting whether an arbitrary program will ever stop.
A limit on universal guarantees
The paper studies a deliberately idealised gatekeeper. Submitted programs are deterministic, written in a language capable of universal computation, and have potentially unlimited time and memory. The gatekeeper can inspect their code and simulate their execution.
Its decisions must have finite certificates: evidence checked by a procedure that always terminates. Finding that evidence, however, need not terminate. A system might keep searching forever without approving or rejecting a particular program.
The distinction matters. A short rule can describe a requirement precisely without providing an algorithm that checks every program against it. Nor does the result mean that individual safe programs cannot be proved safe. The obstacle is a sound certification system that covers all compliant programs in the unrestricted domain.
Three requirements, different obstacles
The author treats three requirements separately. Safety means never performing a designated forbidden operation. Confidentiality means producing identical complete public output sequences for either value of a secret bit. Responsiveness means eventually returning a valid answer on every natural-number input.
The central method is reduction from the halting problem. Consider a program that first simulates another computation, then performs the forbidden operation only if that computation stops. Certifying every such program as safe when appropriate would require recognising every computation that never stops—something no algorithm can do.
Safety nevertheless has an asymmetry: every violation eventually supplies evidence when the forbidden operation occurs. There is no corresponding procedure that eventually certifies every safe program without ever certifying an unsafe one.
For the paper’s confidentiality and responsiveness definitions, neither compliance nor violation has such a complete confirmation procedure.
Confidentiality illustrates why the observation model matters. Different published values can expose a leak immediately. But if one execution has published something and the other has not, the apparent difference might disappear later. Establishing that the second execution will never catch up is not generally possible. This model compares output values, order and sequence length, but ignores timing and does not directly observe termination.
Responsiveness has a different universal demand: answering every tested input does not establish that every possible input will receive an answer. Waiting without an answer also does not establish that one will never arrive.
What finite evidence can establish
The paper organises these results around a characterisation related to the classical Rice–Shapiro theorem. For requirements judged only by observable behaviour, a category is fully confirmable precisely when membership can be established by a finite observation pattern from an effectively enumerable collection, and further behaviour cannot undo that membership.
Seeing a forbidden action fits this pattern. Never seeing one does not.
A separate worst-case result examines execution budgets. Limiting the number of steps makes the bounded questions decidable by simulation; bounded responsiveness also requires a finite input set. These bounded requirements differ from their unbounded counterparts.
The computational lower bound depends on additional efficient-simulation and self-reference assumptions. With linear simulation overhead, an always-correct checker faces specially constructed programs requiring work proportional to the execution budget, up to model-dependent constants. Under the paper’s more general polynomial-overhead assumption, the lower bound is weaker: it rules out a checker whose running time is polynomial in the combined length of the program and the binary-encoded budget, but does not establish work proportional to the budget. Neither result says that static analysis cannot accelerate ordinary cases.
Simulations show examples, not deployment risk
Alongside the proofs, the author reports experiments on 2.2 million randomly generated register-machine programs, exhaustive short-program populations and adversaries constructed against particular checkers.
Among the resolved random-program cases, bounded safety tests missed no violations at horizons of at least 128 steps. That observation is specific to the sampled programs, not a universal safe timeout. Programs whose behaviour could not be settled by the reference methods were excluded from error counts.
Confidentiality produced another effect: some programs emitted the same infinite sequence at different speeds. Comparing their outputs at a fixed deadline could therefore reject programs that satisfied the unbounded, timing-insensitive requirement.
These experiments illustrate the constructions and one artificial program distribution. They do not measure how often deployed AI agents produce dangerous code.
Useful gatekeepers remain possible
The paper gives a conditional alternative to complete classification. Let obligatory programs be those the system must admit, and permitted programs those it may admit. A suitable admission set must contain every obligatory program and no forbidden program. The author calls such a set a separator.
The existence condition matters. A computable gatekeeper that always reaches an admission or rejection decision exists exactly when there is a decidable separator. A gatekeeper allowed to keep some programs waiting exists exactly when there is a computably enumerable separator: an algorithm can eventually recognise every admitted program without necessarily terminating on others.
Such a separator need not exist for the chosen obligations. If every permitted program must be admitted, the admission set must equal the entire permitted category, recovering the computability barriers above. Narrower obligations can make a separator possible—for example, admitting only a decidable syntax of simple constant-return programs. Even then, otherwise permitted programs outside that admission set may be rejected or left waiting.
Restricted languages, proof-carrying code, execution budgets and runtime interception offer different routes to narrower guarantees. They restrict the domain or admission set, change the requirement, or control execution rather than perfectly classify every original program in advance.
The source is an arXiv preprint. Its foundations are classical computability results; the author’s claimed contribution is their organisation into this gatekeeping framework. Its conclusions depend on explicit program and observation models, not a comprehensive definition of real-world harm. The takeaway is a boundary on perfect advance classification—not a verdict that AI safety checks are futile.
- AI agents
- program verification
- halting problem
- computability
- AI safety
- information flow
- runtime enforcement
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
What an AI universality claim must say about memory and time
Shared method: Pérez-Acle's budgeted gatekeeping lower bound and Salishev's bounded-halting lower bound both use a self-referential program that queries a proposed checker and reverses its answer. Salishev fixes a unit-cost transition model with explicit wrapper overhead; Pérez-Acle addresses behavioral norms. The shared method concerns worst-case exact checking, not deployed-agent failure rates or average runtime; these preprint excerpts do not establish identical machine models.
Model review: · openai-codex/gpt-6.1-sol
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.13367v1 — Original paper
Excerpt reference:
static/papers/2611.13367v1.md:117-235
Basis: Paper text
Source SHA-256:8e6c8b6e2ca5467c171b355ea91932ed6e7088b28609b54192aca08ba072d2942611.13367v1 — Original paper
Excerpt reference:
static/papers/2611.13367v1.md:1438-1497
Basis: Paper text
Source SHA-256:8e6c8b6e2ca5467c171b355ea91932ed6e7088b28609b54192aca08ba072d2942611.06303v1 — Original paper
Excerpt reference:
static/papers/2611.06303v1.md:391-463
Basis: Paper text
Source SHA-256:4dbc6bfc40b0275fe6cdb5dca6798b25aaddb1a4be952186bd6fa3f59dc776f0
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
AI safety may depend more on access than intelligence, preprint argues
Source published
Shared keywords: ai safety
Following AI agents over time reveals patterns that benchmarks can miss
Source published
Shared keywords: ai agents, ai safety
A last-second warning for AI-agent disclosures comes with false alarms
Source published
Shared keywords: ai agents, ai safety
How an AI agent receives an error can change what it does next
Source published
Shared keywords: ai agents, ai safety
ARC-AGI-2 study tests training data and compute budgets for open models
Source published
Shared keywords: program verification