{"id":"b6ba0dd6-4541-4fd5-a658-82e219bc1d2b","arxiv_id":"2607.22868","paper_version":1,"verdict":"CONDITIONAL","confidence":"HIGH","novelty_score":7.0,"correctness_risk":"medium","formal_verification":"none","parameter_count":0,"one_line_summary":"A runtime gate enforces exactly the register-representable safety policies relative to its oracle, and once blocking changes behavior, static ROC scores cannot identify the true safety-utility frontier.","lead":"This paper proves which safety policies a runtime guardrail can enforce for tool-using AI agents, separating oracle-checkable rules, statistical judges, and feedback effects into three exact mathematical regimes. It gives frontier results showing that static calibration alone cannot certify closed-loop safety, a boundary that matters for anyone deploying agent systems that send emails, move money, or call APIs.","discovery_kind":"new_application","skeptic_critique":{"model":"deepseek-v4-flash","headline":"Theorem 1's 'exactly' holds only for an effect-neutral block; the paper's own C4 reruns show real blocks change later proposals, so the T1 characterization does not describe the deployed closed-loop system.","rationale":"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.","tokens_in":36507,"tokens_out":18308,"duration_ms":177736,"concrete_test":"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.","verdict_should_be":"UNCHANGED","load_bearing_attack":"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.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek-v4-flash","summary":"This paper develops a formal theory of what runtime guardrails for tool-using agents can certify. It separates three regimes: (T1) oracle-based enforcement by deterministic pre-execution gates, which it characterizes as exactly the nonempty safety policies whose good-prefix language is recognized by a keyed-counter register automaton relative to a fixed predicate interface; (T2) statistical frontiers under a fixed exogenous law, where Neyman--Pearson gives the exact false-block/miss frontier and conformal calibration yields a finite-sample marginal certificate; and (T3) controlled/closed-loop processes where blocking changes future proposals, for which a finite-abstraction belief-occupancy program provides the frontier. It also proves that nontriviality of a policy specification is undecidable with two decrementable counters but lies in PSPACE for a separable monotone fragment, and it presents experiments with 23 judges on AgentDojo, a controlled finite-model enumeration, representation rewrites, and paired closed-loop reruns to illustrate the regime distinctions.","tokens_in":36669,"tokens_out":12990,"duration_ms":116343,"significance":"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.","major_comments":[{"comment":"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. 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.","section":"Definition 1 / Appendix A.1 / Theorem 1"}],"minor_comments":[{"comment":"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.","section":"Corollary 1"},{"comment":"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.","section":"Section 7, Figure 1a and Appendix B.4"},{"comment":"There is a typographical spacing error in 'Theclassisnottunedtothetheorem' where spaces are missing; please proofread the full text for similar issues.","section":"Definition 2"},{"comment":"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.","section":"Proof of Theorem 4 (Appendix A.3)"},{"comment":"The term 'inpspace' appears in the abstract and 'inpspace' in the text should be 'in PSPACE' for readability; this is purely a typographical issue.","section":"Abstract and Section 6"},{"comment":"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.","section":"Table 1"}],"recommendation":"minor_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek-v4-flash","letter":"Colleague — 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.\n\nWhat'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.\n\nSoft 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.\n\nBottom 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.","headline":"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.","tokens_in":37312,"tokens_out":2433,"duration_ms":23641},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek-v4-flash","headline":"A deterministic pre-execution gate enforces exactly the nonempty safety policies whose good prefixes its register model can recognize, and no others.","keywords":["runtime guardrails","tool-using agents","pre-execution gates","safety properties","register automata","Neyman-Pearson frontier","conformal risk control","representation attacks"],"falsifier":"Run the paper's two-system construction: two horizon-2 environments with identical judge scores and identical ungated trajectory laws that differ only in what happens after a first-step block; any estimator that claims to recover the zero-unsafe intervention cost for both from ungated data alone will err on at least one of them.","tokens_in":36174,"feed_emoji":"🛡️","tokens_out":13684,"duration_ms":109588,"temperature":0.7,"pith_summary":"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.","feed_headline":"Gates enforce exactly the safety policies their monitors can recognize","feed_subtitle":"Oracle rules, statistical judges, and feedback have separate boundaries; static scores alone cannot certify a deployed gate.","key_machinery":"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_discovery":"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.","pith_inferences":["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."],"forward_implications":["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."],"supporting_citations":[{"why":"It supplies the lemma that safety properties are exactly the topologically closed sets, which grounds the bad-prefix/good-prefix equivalence used throughout.","marker":"Alpern and Schneider 1987"},{"why":"It establishes the classical result that execution monitors enforce exactly safety properties, the baseline that Theorem 1 refines for pre-execution gates.","marker":"Schneider 2000"},{"why":"It introduces edit automata and the suppression/reinsertion model used to prove that gate-enforceable policies are a strict subclass.","marker":"Ligatti, Bauer, and Walker 2005"},{"why":"It provides the run-time enforcement theorem for nonsafety renewal properties, the witness for the strict class separation in Proposition 1.","marker":"Ligatti, Bauer, and Walker 2009"},{"why":"It defines finite-memory register automata, the base model for the RA[T;Π] recognizer class and the equality-type abstraction used in the PSPACE fragment.","marker":"Kaminski and Francez 1994"},{"why":"It states the optimality result that yields the exact false-block/miss frontier in Theorem 2.","marker":"Neyman and Pearson 1933"},{"why":"It supplies conformal risk control, the calibration mechanism behind the finite-sample certificates in Theorem 4 and Theorem 5.","marker":"Angelopoulos et al. 2024"},{"why":"It provides the constrained-POMDP column-generation algorithm whose support-at-most-two optimum Theorem 3 specializes to the controlled frontier.","marker":"Walraven and Spaan 2018"},{"why":"It provides the constrained Markov decision process and occupancy-measure framework underlying the polytope program in Theorem 3.","marker":"Altman 1999"}],"fun_headline_variants":["Three exact boundaries for tool-safety gates","Gates enforce only recognizable safety policies","Static scores can't certify deployed tool gates","Runtime safety: three separate hard limits"],"cache_read_input_tokens":3200,"weakest_assumption_plain":"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.","fun_headline_variants_meta":{"raw":{"variants":["Three exact boundaries for tool-safety gates","Gates enforce only recognizable safety policies","Static scores can't certify deployed tool gates","Runtime safety: three separate hard limits"]},"model":"deepseek-v4-flash","effort":"low","cost_usd":0.000658,"raw_usage":{"total_tokens":3031,"prompt_tokens":985,"completion_tokens":2046,"prompt_tokens_details":{"cached_tokens":384},"prompt_cache_hit_tokens":384,"prompt_cache_miss_tokens":601,"completion_tokens_details":{"reasoning_tokens":1993}},"tokens_in":601,"tokens_out":2046,"duration_ms":16106,"temperature":1.0,"reasoning_tokens":1993,"cache_read_input_tokens":384,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-08-15T15:29:28.170555+00:00","model_set":{"reader":"deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.0-alltime-deepseek-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"Run the paper's two-system construction: two horizon-2 environments with identical judge scores and identical ungated trajectory laws that differ only in what happens after a first-step block; any estimator that claims to recover the zero-unsafe intervention cost for both from ungated data alone will err on at least one of them.","supporting_citations":[],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}