Artificial Intelligence · arXiv:2607.22868 v1 · submitted 24 Jul 2026 · 3 references
What Can Be Enforced? A Theory of Certified Runtime Safety for Tool-Using Agents
The paper says
“Runtime guardrails act before irreversible tool calls, but their guarantees depend on what policy state is representable, what a judge observes, and whether intervention changes future behavior. We separate three questions.”
more of the abstract
First, relative to fixed oracle predicates, a deterministic gate enforces exactly the nonempty safety policies whose good prefixes its register model recognizes; policy nontriviality is undecidable with two decrementable counters but in PSPACE for a separable monotone fragment. Second, under a fixed exogenous law, Neyman-Pearson gives the exact false-block/miss frontier and conformal calibration gives a finite-sample marginal certificate, possibly via block-all. Third, once blocking changes future proposals, static scores and ungated trajectories need not identify the closed-loop frontier; a specified finite controlled model instead yields an occupancy program. Bounded representation attacks add a robustness margin, so benign calibration alone does not transfer. Experiments target these distinctions through static diagnostics, controlled-model enumeration, representation rewrites, and paired closed-loop reruns.
from the abstract
Pith says
Machine review · deepseek-v4-flash · 15 Aug 2026 · what was read was not recorded · not checked by a person
It can be wrong. Challenge this review or reply to it.
Holds up, with conditions. A genuinely useful theory paper that separates three enforcement regimes for tool-use guardrails; the main proofs hold, the no-op abstraction is honestly flagged, and the C4 reruns confirm that real gates live in the feedback regime rather than the oracle one. This line is wrong
1 major objection · 6 minor
How often objections from reviews like this one are right: not yet measured
Not checked: figures, code, what the 3 references say.
The paper says, at Definition 1 / Appendix A.1 / Theorem 1
The review did not quote this passage.
Pith says: Objection 1 of 1 · major
The exactness of Theorem 1 is relative to the no-op abstraction in Definition 1, where committing the distinguished action ⊥ has no external effect and leaves the recognizer state unchanged (δ(q,⊥)=q). The paper explicitly labels this an abstraction, but the wording 'exactly' in the abstract and in Section 4 could be misread as unconditional.
more of objection 1
The manuscript's own C4 paired reruns (Section 7, Table 4) show that real blocks do change later proposals (34 vs. 5 and 29 vs. 22 gate-only attacks), so deployed systems live in the controlled regime of Definition 5 and Theorem 3, not in the T1 projection. Because this is a scope limitation rather than an internal inconsistency, it does not invalidate the theory, but I recommend adding an explicit sentence in the abstract and at the start of Section 4 stating that the T1 characterization applies to the effect-neutral block model, and that any visible or state-changing block falls under the controlled model.
6 minor objections
The paper says, at Corollary 1
Pith says: minor objection 1 of 6
In the all-violation case (q=1), the formula R(β)=1-(1-β)^H is well defined, but the per-step false-block probability is not defined because there are no compliant actions; please clarify that the 'false-block' quantity in this boundary case is understood as the limit from the Bernoulli(q) case or restrict the statement to q<1.
The paper says, at Section 7, Figure 1a and Appendix B.4
Pith says: minor objection 2 of 6
The term 'cross-fitted conformal points' may confuse readers: the conformal theorem (Theorem 4) requires a single calibration draw under exchangeability, whereas the 500 two-fold splits are a descriptive diagnostic. The paper does state this distinction in B.4, but Figure 1a's caption should explicitly say 'descriptive cross-fit diagnostic' rather than implying a certified conformal procedure.
show 4 more
The paper says, at Definition 2
Pith says: minor objection 3 of 6
There is a typographical spacing error in 'Theclassisnottunedtothetheorem' where spaces are missing; please proofread the full text for similar issues.
The paper says, at Proof of Theorem 4 (Appendix A.3)
Pith says: minor objection 4 of 6
In the display after the union bound, the expression Σ P[Lt=1|θhat] = Σ P[viol. at t] r(θhat) should include a multiplication sign for clarity; it is mathematically clear from context but a minor formatting fix would help.
The paper says, at Abstract and Section 6
Pith says: minor objection 5 of 6
The term 'inpspace' appears in the abstract and 'inpspace' in the text should be 'in PSPACE' for readability; this is purely a typographical issue.
The paper says, at Table 1
Pith says: minor objection 6 of 6
In the notation table, R(θ) is listed as 'episode unsafe rate' while the text uses R(β) as a function of per-step miss; aligning the notation between the table and the main body would prevent confusion.
What would settle it
Run C4 with a second condition in which the blocked tool call is suppressed silently: no error message, no trace entry, no signal to the agent, while the committed effect trace is identical to the current block action. Compare paired discordance rates. If the 3B gate's 5 gate-only attacks and the 7B gate's 22 drop to roughly zero, the neutral no-op is the operative modelling assumption and T1's exactness fails to transfer only through visibility or feedback; if they persist, blocking has additional channels, such as the absence of a result changing the agent's state, and the T1 projection is even further from deployment.
from the skeptic's reading
How the review went
4 readings by deepseek-v4-flash · 15 Aug 2026
- Reader holds up, with conditions
- Skeptic agrees
- Editor wrote the verdict above
- Referee minor revision: 1 major objection, 6 minor
Not run on this paper: the simulated authors' defence.
Pith did not check this review's objections against the paper.
The review in full
The review in brief, machine-written
Read this one. It's a theory paper about runtime guardrails for LLM agents, and it's better than most. The central move is to split the question into three regimes: oracle-checkable policies (T1), fixed one-step statistical decisions (T2 exogenous), and closed-loop where blocking changes future proposals (T2/T3 controlled). Theorem 1 says a deterministic pre-execution gate enforces exactly the nonempty safety policies whose good prefixes its register model recognizes — a clean re-derivation of Schneider-style enforcement in guardrail notation. Theorem 2 identifies the exact false-block/miss frontier with the Neyman-Pearson ROC, which is correct. The genuinely new bits: the keyed-counter register fragment with exact cap saturation and one-witness projection (Theorem 7), and the feedback non-identifiability result (Prop 2/Cor 2) showing static scores plus ungated trajectories cannot identify the closed-loop frontier. The paper explicitly credits the classical machinery, so there's no overclaiming.
What's good beyond the math: the paper is honest about its own load-bearing assumptions. Definition 1's no-op ⊥ has no external effect and leaves the recognizer state unchanged; the paper itself says this is an abstraction and that T1's 'exactly' depends on it. The C4 closed-loop reruns show real gates create attacks — 34 vs 5 and 29 vs 22 discordant episodes — so deployed systems are in the controlled regime of Theorem 3, not the T1 projection. The stress test flagged this; it holds up, but it's not a hidden flaw because the paper names it. The experiments target the estimands rather than dodging them: reporting block-all as vacuous, giving simultaneous intervals, and separating static AUC from closed-loop cost.
Soft spots, in proportion. The T0 PSPACE result rests on a proof sketch plus a bounded differential audit rather than a full formalization; the robust calibration certificate needs a verified uniform margin η̄(ρ) that the paper identifies as open; the primary AgentDojo static diagnostic scores instruction strings rather than context-rich tool calls. These are real but minor-to-moderate and all self-flagged. I'd ask for the artifact to be pinned to a commit hash.
Bottom line: this paper deserves a serious referee and a careful reading. I'd cite it for the regime separation and the feedback non-identifiability. It won't be the last word on practical guardrails, but it's a solid foundation.
The strongest objection
The weakest load-bearing point is the neutral no-op abstraction in Definition 1, used in Appendix A.1 ('committing ⊥ produces no effect and leaves R's state unchanged, so δ(q,⊥)=q') and in Theorem 1's constructive gate, which commits ⊥ on a bad transition and keeps the recognizer at q. The 'exactly' in Theorem 1 is a claim about a gate whose blocks have no latency, visibility, memory, retry, or other side effects. The paper explicitly labels this an external-effect abstraction, but it is doing real work: if a block has any external consequence, that consequence is itself part of the committed effect trace and could create a bad prefix, so soundness is no longer guaranteed by the recognizer simulation; and if a block is visible to the agent, the proposal stream is no longer the open-loop stream used in the converse. Corollary 2 then applies: static and ungated evidence cannot identify the closed-loop frontier. The paper's own C4 paired reruns demonstrate gate-created attacks (34 vs 5 for the 3B gate, 29 vs 22 for the 7B gate), so deployed systems live in the controlled regime of Definition 5 and Theorem 3, not in the T1 projection. This does not expose an internal inconsistency; it means the central three-regime separation is exact for a model that real guardrails violate.
The central theorems are internally coherent under their stated definitions; I found no flaw in the T1 characterization, the Neyman-Pearson frontier, the finite-model occupancy argument, or the decidability fragment. The most load-bearing condition for the paper's practical reading is the no-op abstraction, and the paper itself flags it in Definition 1 and Section 8. The reader's weakest_assumption identifies the same point. Because the concern is a scope boundary rather than a proof error, it does not overturn Theorem 1; it does mean the 'exactly' claim and the clean separation of regimes should not be presented as describing a deployed gate whose blocks are visible and consequential, which C4 shows they are. The T3 PSPACE result rests on a proof sketch plus a differential audit rather than a mechanized proof, but I could not identify a concrete gap, and the paper's own framing as an executable bounded audit is honest. I keep the reader's CONDITIONAL verdict: accept with requested tightening of the no-op assumption's role and a pinning of the artifact, rather than rejection or unconditional acceptance.
The referee's report
The paper is a serious and largely successful attempt to replace vague claims about guardrail guarantees with a precise taxonomy. Its central positive results -- the T1 oracle characterization, the exact exogenous ROC frontier, the identification impossibility of Corollary 2, and the decidability boundary -- are clearly stated and the proofs are coherent. The authors are unusually explicit about scope: they label the no-op abstraction, the exogenous-law assumption, and the need for a specified controlled model. The executable audits and the careful paired experimental design are strengths. If accepted, the paper will help practitioners choose appropriate analysis tools for their regime and will discourage the common misuse of static ROC estimates in settings with feedback.
Pith's reading of the paper (a machine's summary, not the authors')
The paper asks which safety policies a runtime guardrail can enforce for tool-using agents, and at what utility cost, and separates the answer into three regimes. With exact oracle predicates, a deterministic pre-execution gate enforces exactly the nonempty safety policies whose good prefixes its register model can recognize; edit automata, which can buffer and reinsert actions, are strictly stronger. When the judge is fallible and the decision is one-step, the exact tradeoff between false blocks and missed violations is the Neyman-Pearson ROC frontier (the minimum false-block rate at each allowed miss rate) of the information the gate sees, and conformal calibration turns that frontier into a finite-sample marginal certificate. Once blocking changes future proposals, static scores and ungated trajectories no longer identify the closed-loop frontier: the right object is an occupancy program over a specified controlled model. A bounded adversarial rewrite of what the judge sees degrades the certificate by up to the horizon times the robustness margin, so benign calibration alone is not a security boundary.
What carries the argument. The load-bearing abstractions are the no-op block and the register-model recognizer. The paper models a block as committing a distinguished no-op action ⊥ that has no external effect and leaves the recognizer state unchanged; this makes blocking safe from every good prefix and lets Theorem 1's construction go through exactly: simulate the recognizer and refuse exactly the one-step extensions it rejects. The recognizer class RA[T;Π] is a register automaton with per-key monotone counters and fixed oracle predicate bits; it is what the gate can keep in memory. The second mechanism is the separation of the exogenous decision (a fixed one-step law, where the Neyman-Pearson ROC frontier is exact) from the endogenous controlled process (where a belief-state occupancy polytope and the Bellman recursion give the frontier). The third is conformal risk control with label-conditional exchangeability, which converts the frontier into a finite-sample marginal certificate, and the cap-saturation and one-witness projection that puts a useful counter fragment in PSPACE.
Core claim. The central discovery is that runtime safety for tool-using agents is not one problem but three, with different exact boundaries. Relative to fixed oracle predicate bits, a deterministic pre-execution gate enforces a policy if and only if the policy is a safety property and its good-prefix language is recognized by the gate's register automaton class (Theorem 1); irreversibility plus prefixwise transparency forces safety, and the recognizer simulation witnesses the converse. Relative to a fixed one-step law, the safety-utility tradeoff is exactly the ROC frontier of the observed information: no rule using the same information can lie below roc_I(β), and the best operating point is a randomized likelihood-ratio test (Theorem 2). Once blocking changes future observations, the fixed one-step ROC is no longer identifiable from ungated trajectories and static judge scores (Corollary 2); for a specified finite controlled model, the achievable cost-risk set is a compact convex polytope solved by belief-state occupancy linear programming (Theorem 3). The paper also proves that deciding whether a policy specification ever fires is undecidable with two decrementable counters, but is in PSPACE for a separable monotone fragment with key-local counters, and that a budget-ρ representation adversary degrades any conformal certificate by at most H times the robustness margin.
The premise it rests on. The exact oracle characterization assumes that blocking a tool call is a truly neutral no-op: no external effect, no memory update, and no influence on what the agent proposes next.
If the paper is right (Pith's inferences, not the authors')
A pre-execution gate cannot enforce non-safety properties such as 'every payment is eventually followed by a confirmation'; doing that requires buffering and reinsertion, which only edit automata can provide.
Given a fixed one-step information source, the best possible gate operates on the Neyman-Pearson frontier of that source; no ensemble or wrapper using the same information can do better.
Static judge scores and ungated trajectories cannot certify closed-loop guardrail performance; paired reruns or a specified controlled model are required.
Conformal calibration on violating examples gives a finite-sample bound on expected unsafe episodes, but a bounded adversarial rewrite of the judge-visible representation weakens the certificate by up to the horizon times the robustness margin.
For policy DSLs with monotone per-key counters, the basic linter question 'does this rule ever fire?' is decidable in PSPACE, while allowing two decrementable counters makes it undecidable.
Extension: the three-regime separation implies a reporting standard: any guardrail claim should state the information variable, the feedback effect of blocking, and an adversarial margin; without these, an offline ROC curve does not transfer to deployment.
Extension: the non-identifiability result for controlled frontiers generalizes beyond tool agents; any safety filter whose intervention changes the input distribution, in robotics or content moderation, needs a controlled model rather than a static classifier.
Extension: the cap-saturation technique suggests that other monotone resource policies, such as token budgets or rate limits with reset windows, may admit provably decidable static analysis, which would be a testable extension of the PSPACE fragment.
Extension: a practical audit follows from the robustness theorem: systematically rewrite judge-visible strings while keeping the executable action fixed, measure the miss increase, and compare it against H times the margin to test whether the bound is tight in deployment.
Check this review
Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.
How often reviews like this one are right
Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.
How often objections from reviews like this one are right: not yet measured
Reviews by people
This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.
The paper
Abstract
Runtime guardrails act before irreversible tool calls, but their guarantees depend on what policy state is representable, what a judge observes, and whether intervention changes future behavior. We separate three questions. First, relative to fixed oracle predicates, a deterministic gate enforces exactly the nonempty safety policies whose good prefixes its register model recognizes; policy nontriviality is undecidable with two decrementable counters but in PSPACE for a separable monotone fragment. Second, under a fixed exogenous law, Neyman-Pearson gives the exact false-block/miss frontier and conformal calibration gives a finite-sample marginal certificate, possibly via block-all. Third, once blocking changes future proposals, static scores and ungated trajectories need not identify the closed-loop frontier; a specified finite controlled model instead yields an occupancy program. Bounded representation attacks add a robustness margin, so benign calibration alone does not transfer. Experiments target these distinctions through static diagnostics, controlled-model enumeration, representation rewrites, and paired closed-loop reruns.
The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.
abstract compiled · 2026-09-23
The authors' main claim, as the classifier picked it out 0.86
“Runtime guardrails act before irreversible tool calls, but their guarantees depend on what policy state is representable, what a judge observes, and whether intervention changes future behavior.”
How the main claim is stated: asserted 1.00
What the abstract itself states, as probabilities: claims first 0.05 · states limitation 0.75 · human participants 0.04 · controlled comparison 0.42 · randomized assignment 0.02 · states quantitative result 0.25 · compares with prior results 0.30 · mentions code or data availability 0.04
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| Runtime guardrails act before irreversible tool calls, but their guarantees depend on what policy state is representable, what a judge observes, and whether intervention changes future behavior. | background 0.99 | 0.09 | 0.18 | asserted 1.00 |
| We separate three questions. | contribution 0.65 | 0.57 | 0.02 | unclear 0.76 |
| First, relative to fixed oracle predicates, a deterministic gate enforces exactly the nonempty safety policies whose good prefixes its register model recognizes; policy nontriviality is undecidable with two decrementable counters but in PSPACE for a separable monotone fragment. | result 0.85 | 0.68 | 0.15 | asserted 1.00 |
| Second, under a fixed exogenous law, Neyman-Pearson gives the exact false-block/miss frontier and conformal calibration gives a finite-sample marginal certificate, possibly via block-all. | result 0.76 | 0.35 | 0.08 | asserted 0.66 |
| Third, once blocking changes future proposals, static scores and ungated trajectories need not identify the closed-loop frontier; a specified finite controlled model instead yields an occupancy program. | result 0.63 | 0.49 | 0.17 | asserted 0.80 |
| Bounded representation attacks add a robustness margin, so benign calibration alone does not transfer. | result 0.68 | 0.41 | 0.11 | asserted 1.00 |
| Experiments target these distinctions through static diagnostics, controlled-model enumeration, representation rewrites, and paired closed-loop reruns. | method 0.89 | 0.87 | 0.06 | asserted 0.98 |
What kind of paper the classifier reports this is: theoretical result 1.00 · evidence from proof or derivation 0.91
What was examined, and what was not
Sources read
- arXiv listing abstract v1
Not examined
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Levels run
- P abstract
Not run
- S sections
- T body sentences
- C citations
- R cross-paper relations
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-09-23: 1 request, 5,611 input tokens.
Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON
Figures (8)
Figures are the authors', reproduced from the paper.
References (3)
- [548] Springer. Bojanczyk,M.;David,C.;Muscholl,A.;Schwentick,T.;and Segoufin,L.2006.Class-MemoryAutomata.InProceedings of the 21st Annual IEEE Symposium on Logic in Computer Science (LICS), 291–300. Cairoli, F.; Paoletti, N.; and Bortolussi, L. 2023. Conformal QuantitativePredictive... on PitharXiv
- [1988] Comparing the Areas under Two or More Correlated ReceiverOperatingCharacteristicCurves:ANonparametric Approach.Biometrics, 44(3): 837–845. Doula, A.; Mühlhäuser, M.; and Sanchez Guinea, A. 2025. SafePath: Conformal Prediction for Safe LLM-Based Au- tonomous Navigation. arXiv:2... on PithPith's reviewarXiv
- [2015] Shield Synthesis: Runtime Enforcement for Reactive Systems. InTools and Algorithms for the Construction and Analysis of Systems (TACAS), volume 9035 ofLNCS, 533– on Pith
Cited by 5 Pith papers
Reviewed papers on Pith that cite this one. OpenAlex reports about 8 citations worldwide. The full citation record
- Controller-Agnostic Runtime Safety Certificates for Tool-Using AI Agents via Data-Driven Robust Reachability eess.SY · Oct 2026
- No finite rulebook can certify every safe program: an impossibility theorem for gatekeeping AI agents cs.AI · Nov 2026
- Blindfold: Keeping the Audit Coin Secret from LLM Agents cs.CR · Oct 2026
- Certified Execution Harness for Agentic AI: Safe and Least-Intrusive Petri-Net Supervisory Control Between Reasoning and Action cs.AI · Oct 2026
- agent-risk: Risk Assessment for Changes to AI Agents cs.AI · Oct 2026
Challenges and discussion
Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.
Come back by email
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account.
No comments yet.
Sign in to comment