
Imagine you're a building inspector. You can check that a house has smoke detectors (present, visible, done). But can you certify that a house will *never* catch fire? You'd need to watch it forever. This paper proves that the same asymmetry applies to AI code gatekeeping — and that it's not a limitation of current tools, but a mathematical wall. The committed claim: for any fixed, finite, machine-checkable rulebook that an AI gatekeeper uses to approve or reject programs, completeness on both sides — catching every unsafe program AND clearing every safe one — is impossible. Specifically, safety properties ("never do X") can be violated and caught by finite observation (you see the violation happen), but can never be confirmed safe by finite evidence (you'd have to watch forever). For confidentiality and liveness ("always eventually respond"), neither confirmation nor refutation is finitely settleable. The paper characterizes exactly which behavioral properties sit on which side of this line. The proof machinery is rooted in computability theory and the topology of observable behavior, drawing on classical results about the arithmetical hierarchy. The key technical move: any sound rulebook of n bits necessarily omits at least one compliant program of roughly n bits. This is not a vague "undecidability means things are hard" hand-wave — it's a precise, quantified incompleteness bound. You can make the rulebook bigger, but there's always a safe program that slips through the gap, and the gap scales with the rulebook itself. The authors then examine the obvious escape hatch: impose a time limit. If you bound execution time, everything becomes checkable — but only by running the program for essentially the entire time limit. A finite-time gatekeeper is technically complete but practically useless, because checking a program takes as long as just running it. This is a sharp distinction between decidability and feasibility that most AI safety discussions elide. What can a gatekeeper still do? The paper constructs a "best-effort" regime: not a verdict on every program, but a checkable list that contains everything the gatekeeper must allow and nothing it must refuse. Think of it as a curated menu rather than a universal filter. The constructive part of the result is arguably more useful than the impossibility: it tells system designers exactly what guarantees are achievable. Simulations on 2.2 million random programs and adversarial self-referential inputs confirm that the impossibility is adversarial, not typical. Most programs in practice are easy to classify. The hard cases are pathological constructions — but in security, adversaries build pathological constructions on purpose. The one error that longer testing never eliminates is the liveness component of confidentiality: you can never finitely confirm that a program will always eventually respond without leaking information. The paper is a single-author, 34-page formal treatment. It does not propose a new algorithm or system. It draws a permanent boundary around what any gatekeeping system — current or future — can achieve with finite, machine-checkable evidence. For the growing industry of AI agent sandboxing and code-review guardrails, this is the speed-of-light limit.
The analogy
You're a building inspector. You can confirm smoke detectors are installed (finite check, done). But you cannot certify a house will never catch fire — that would require watching it forever. This paper proves the same asymmetry governs AI code gatekeeping: violations are catchable, but safety is never fully certifiable by finite evidence.
Building inspector
Can verify presence of a safety feature (smoke detector) but cannot certify a house will never catch fire without infinite observation
Code gatekeeper
Can catch a safety violation when it occurs (finite trace) but cannot certify a program will never violate a safety property without infinite execution
Honest assessment
A clean, well-framed impossibility result that draws a permanent theoretical boundary around AI code gatekeeping. The proof is the load-bearing element and appears sound; the simulations are illustrative gravy. The practical value depends entirely on whether the AI safety and sandboxing communities engage with the formalization — if they do, this becomes the 'speed of light' reference for what static verification can and cannot promise. Single-author, no code release mentioned, no independent verification yet. Practitioners building agent guardrails today should read the constructive result (what gatekeepers *can* guarantee) more carefully than the impossibility.
What Is CLAIMS?
63
/ 100
BedrockNews applies a structured analytical framework called CLAIMS to academic papers and technical research releases.
How CLAIMS worksClaim
4/5
Ladder
3/5
Architecture
3/5
Integrity
4/5
Milestone
2/5
Successor
3/5
What is this paper actually committing to?
Genuine impossibility theorem, not incremental. Proves no finite checkable rulebook pair can be complete for safety/confidentiality/liveness, with a quantified incompleteness bound scaling with rulebook size.
The field fight
Can AI agent behavior be fully governed by static, pre-deployment verification, or does safety require runtime monitoring and inherently incomplete guarantees?
Side A
Sufficiently thorough static analysis and sandboxing can make AI agents provably safe before deployment
Held by: Formal verification community, some AI safety startups (Anthropic's constitutional AI framing, guardrail vendors)
Side B
Static verification is fundamentally incomplete for the properties that matter; runtime monitoring and best-effort guarantees are the ceiling
Held by: Computability theorists, this paper, Rice's theorem tradition
Milestone tracker
Unlocks: Empirical adversarial coverage rate for best-effort gatekeepers on production AI-agent outputs
Current
2.2M
synthetic programs
this paper's simulation
Next
10K+
real AI-agent programs
adversarial coverage on real agent code
~1-2 years if sandboxing teams adopt the framework
Verified Facts (6)
Simulations on 2.2 million random programs and on self-referential adversaries
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
The one error a longer test never removes is the liveness part of confidentiality
34 pages, 4 figures
Three property classes examined: safety (never perform forbidden action), confidentiality (output never depends on secret), responsiveness (always answer eventually)
Practical Implications (4)
Any AI agent sandboxing product claiming 'provably safe' static verification is provably overclaiming — this result bounds what's achievable
The best-effort gatekeeper construction gives sandbox designers a concrete, achievable guarantee: a checkable list containing everything that must be allowed and nothing that must be refused
Time-bounded verification is complete but infeasible — checking takes as long as running, which means runtime monitoring, not pre-deployment approval, is the realistic ceiling
The adversarial-vs-typical distinction matters: most real programs are easy to classify, but security threat models are adversarial by definition
More latest news
Read all