Manuscript Offprint
arXiv:2609.04629SiLR: Structure-Preserving Admission and Process Reward for LLM Tool Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
A runtime gate for an LLM tool agent is usually cast as a filter. In a ReAct loop, however, a rejected proposal is followed by another at the same state: the gate is a search operator over the proposal stream, and its admission criterion shapes which trajectories are reachable. We study post-violation recovery admission, where progress must be admitted while the system is still in violation, and identify the scalar projection trap: an aggregate-score gate can accept a locally improving proposal and commit the trajectory to a residual plateau. SiLR instead shadow-executes each proposal and admits it under a product order over the branch-level violation state (overloaded-branch support and per-branch severity). We prove that no scalar surrogate is sound for this order, so the failure is a representational impossibility rather than a matter of threshold tuning. On mined Gym-ANM scenarios, SiLR recovers 21/21 multi-action episodes, against 0/21 for terminal admission and 9/21 for the best scalar gate, an advantage significant across the full 24-scenario benchmark. The terminal-versus-structured dichotomy holds across three model families and in CityLearn. Because admission rests on deterministic simulation, the LLM lies outside the trust boundary and admission authority resides in the verifier: a magnitude-redistribution attack that defeats both scalar and support-only baselines is contained only by the full per-branch predicate. With two constraint families active, every tested scalar projection admits physically unsafe actions, and the support-only gate admits the largest fraction (63.2% of 42,410 unsafe actions; product order 0). In the hardest dual-family traces, scalar gates recover only through that unsafe class. Reused as a GRPO process reward, the same signal outperforms its count projection in every mined scenario and is the only tested reward under which the ungated policy exceeds the untrained base (0.844 vs. 0.778). Scalar projection loses the violation geometry at both design points; only the full product order is structurally sufficient.
Introduction
Critical-infrastructure operations—power dispatch, datacenter scheduling, financial settlement—increasingly rely on tool-using large language model (LLM) agents (Zhang 2025). Recent runtime-enforcement systems (SARC (Besanson 2026), AgentSpec (Wang, Poskitt, and Sun 2026), GuardAgent (Xiang et al. 2025), ShieldAgent (Chen, Kang, and Li 2025), VeriGuard (Miculicich et al. 2025)) advance
the runtime governance of these agents. They share an implicit premise: the system starts inside the safe set, and the gate's job is to keep it there. Infrastructure under autonomous control, however, will sometimes start outside it, already in violation and needing several actions to recover. The enforcement question then inverts: the gate must decide whether an action that still leaves the system unsafe nonetheless makes admissible progress toward recovery. This post-violation recovery admission problem differs structurally from runtime prevention, and prior runtime governance for LLM tool agents does not address it. Runtime mediation intercepts unsafe actions, yet it rarely enables recovery after blocking an unsafe proposal (Sah et al. 2026): enforcement is not recovery.
We frame the problem around admission semantics: the formal criterion by which a runtime gate decides to apply or reject an LLM-proposed action. Our thesis is that this choice—not the gate’s strictness—has first-order effects on whether multi-step recovery is possible. A terminal gate (admit only fully-recovered post-states) is safe but admits no intermediate step, deadlocking every multi-action episode on our mined Gym-ANM (Henry and Ernst 2021) benchmark. The natural relaxation is a scalar admission gate, admitting any proposal whose aggregate violation penalty is non-increasing within a small slack. It is representationally insufficient: relaxing the slack does not close the recovery gap.
The reason is the scalar projection trap, an admission-level instance of proxy gaming (Skalse et al. 2022; Krakovna et al. 2020). In a ReAct loop (Yao et al. 2023) a rejected proposal is followed by another at the same state, so the gate is not a filter but a search operator over the agent's proposal stream. Admitting on an aggregate score collapses the multi-component violation geometry and can commit the trajectory to a residual plateau. A gate that preserves the per-branch geometry instead rejects a scalar-improving proposal that violates the product order and keeps the search alive. The gap is representational, which we make precise as an impossibility result and confirm empirically: 21/21 structured vs. 9/21 best scalar and 0/21 terminal, significant across the full 24-scenario benchmark.
Contributions. Our unifying claim concerns one object: a product order over the branch-level violation state. It is the
These authors contributed equally.
representation required at two design points of an LLM tool agent, and projecting it to a scalar fails at both for the same representational reason.
-
The gate as a search operator, and the scalar projection trap. We reframe the runtime admission gate not as a filter but as a search operator over the ReAct proposal stream. Its scalar instantiation collapses the violation geometry and commits the trajectory to a residual plateau.
-
Structured recovery admission (design point 1). We propose SiLR (Structure-preserving In-the-Loop Recovery), a simulator-backed admission layer that shadow-executes each LLM tool proposal and admits it only when the product order is preserved, emitting graded PASS/SAFE_PROGRESS/FAIL verdicts; we prove no scalar surrogate is sound with respect to this order.
-
Empirical evidence across model families and domains. Terminal admission deadlocks, and a scalar threshold sweep cannot close the recovery gap; plateau signatures and a model-predictive control (MPC) feasibility check confirm the mechanism is gate-induced; the dichotomy holds across three model families and a second domain (CityLearn).
-
Trust-boundary containment under LLM compromise. Because admission is grounded in deterministic simulation, admission authority moves from the LLM to the verifier; a magnitude-redistribution attack that defeats both scalar admission and the Grid-Agent (support-only) baseline is contained only by the full per-branch predicate. Under dual-family stress this becomes a safety-liveness split (Alpern and Schneider 1985). Despite near-ceiling single-constraint-family recovery, support-only admits the largest fraction of unsafe actions (63.2% of 42,410), whereas the product order admits none.
-
The same violation geometry as a process reward (design point 2). Reused as a GRPO signal, the product order yields a near-oracle process reward: deterministic, scalable process supervision with no human step labels. It is also the only tested reward under which the policy stays above the untrained baseline once the gate is removed; no tested scalar projection of the reward attains full recovery in both multi-family stress regimes we test.
Table 1: Positioning of SiLR against the closest runtime-safety systems. “Geom.”: retains the (support, severity) violation state vs. a scalar aggregate; “No look.”: single-step shadow only, no recovery policy or dynamics rollout.
| System | Graded | Geom. | Black-box LLM | No lookahead |
|---|---|---|---|---|
| SARC Pre-Action Gate | X | X | ✓ | ✓ |
| AgentSpec | X | X | ✓ | ✓ |
| GuardAgent / ShieldAgent | X | X | ✓ | ✓ |
| Grid-Agent | X | X† | ✓ | X‡ |
| MPS / Recovery RL | X | X | X | X |
| SiLR (ours) | ✓ | ✓ | ✓ | ✓ |
†support-level validation, no per-branch severity guard; ‡applies then reverts (post-hoc rollback).
ShieldAgent (Chen, Kang, and Li 2025), and VeriGuard (Miculich et al. 2025), yet none target post-violation recovery admission: a terminal predicate preserves safety but dead-locks multi-step recovery. SiLR instead shields black-box LLM tool-call dispatch by single-step shadow simulation under a product order on the branch-level violation state, at constant per-step cost.
Grid-Agent and scalarization. Grid-Agent (Zhang 2025) is the closest same-domain work: it couples LLM agents with sandboxed power-flow validation, rollback of negative actions, and monotonic-progress behavior for power-grid control. The mechanisms differ in kind. Grid-Agent's check is a post-hoc rollback that reverts an action unless the violation set is resolved without introducing new violations. This check is a support-level criterion with no per-branch severity guard. SiLR's product order is instead a pre-action admission predicate that never applies a proposal that violates the product order and emits graded verdicts reusable as a training signal. Scalarization is classically studied as a static representational problem (Miettinen 1999). The scalar projection trap instead concerns the behavior of the runtime gate, which acts as a commitment operator over the ReAct proposal stream, the admission-level counterpart of reward hacking (Skalse et al. 2022; Krakovna et al. 2020). On the training side, the same verifier provides deterministic, simulator-based process supervision (Lightman et al. 2024; Uesato et al. 2022) in place of human step labels. Prompt-injection defenses (Greshake et al. 2023) sanitize inputs; SiLR instead assumes a compromised LLM and enforces safety after the proposal. Table 1 positions SiLR against the closest systems along four axes: graded admission, retained multi-component violation geometry, black-box LLM tool proposals, and no backup policy or dynamics lookahead. SiLR is the only system that satisfies all four.
Threat Model and Method
Trust boundary and adversary. SiLR places the LLM outside the trust boundary: no admission verdict depends on the LLM's reasoning, only on the simulator's deterministic response. The LLM is untrusted; the simulator, verifier, checkers, and tool layer are trusted. We adopt the

Figure 1: SiLR admission architecture and trust boundary. A possibly compromised LLM (untrusted) emits a tool proposal ; the verifier shadow-executes it on a deep copy of the trusted simulator, applies the admission gate (tool validation, then the product-order test ), and either applies the admitted action (PASS/SAFE_PROGRESS) or rejects it (FAIL, regenerating within the step).
compromised-prompt and compromised-observation capability class, the union of the SARC (Besanson 2026) and VeriGuard (Miculich et al. 2025) threat models. An attacker may (C1) rewrite the system prompt, (C2) splice attacker-controlled text into every observation, and (C3) persist both rewrites for the whole episode, which is the worst case for the defender. The attacker may not modify the verifier, simulator, or tool-layer validators, bypass the tool-application interface, or read the verifier's shadow state. We score two safety failures and their union. Material worsening is a final penalty strictly above the no-intervention default, false recovery is a terminal recovery reported while the live state still holds violations, and attack success is the union of the two. Recovery rate is reported separately as a liveness measure (attack constructions in the supplementary material).
Setting. An LLM tool-calling agent controls a critical-infrastructure simulator through a ReAct loop (Fig. 1). At each control step the agent observes , proposes a tool call , and a runtime verifier mediates the proposal before it is applied; on rejection the agent regenerates within the same step, up to a per-step budget . Post-violation initial conditions mean starts in with active constraint violations, and the goal is to drive violation-free.
Shadow-execution verifier. For each candidate , the verifier evaluates a deterministic shadow state , where is the domain's steady-state solver (Newton-Raphson power flow for Gym-ANM (Henry and Ernst 2021)), run on a deep copy of so rejected proposals leave the live system untouched.
Branch-level violation state and verdict ladder. We instantiate on a vector-valued violation state; in our powergrid testbed the active constraint family is branch loading, indexed by overloaded branch, and CityLearn instantiated the same construction on energy/comfort violations. Define the branch-level violation state
where is the set of branches, the support set of overloaded branches, and the per-branch severity vector . The fully-recovered state satisfies ; the aggregate penalty is . We equip the state space with the product order
where the severity comparison is componentwise and support inclusion subsumes count non-increase. This order retains both the overloaded-branch support and the per-branch severity; a scalar penalty gate is its one-dimensional projection. We use violation geometry to denote the joint support-and-severity structure that this order retains. We call admissible from if . The verdict ladder is: PASS if (terminal recovery); SAFE_PROGRESS if but (admissible nonterminal progress); FAIL otherwise.
The scalar projection trap. A scalar alternative replaces the product order with a scalar admission gate: admit whenever is within a small slack of . Any scalar surrogate projects onto , and projecting a partial order with antichains onto a total order necessarily makes some incomparable states comparable.
Proposition 1 (Scalarization gap). No scalar-threshold admission gate is sound for : for any and any slack , the gate admitting whenever accepts, on some -antichain pair, a step that introduces or relocates a violation.
Proof (constructive). Take and , : these are -incomparable while ). Since is totally ordered, ranks the pair, so the gate admits (adds branch ) or (drives to ); either is non-improving under . For the aggregate , for every , so no slack removes the acceptance. The same antichain pair defeats the strongest scalar candidates: the sup-norm () admits and a lexicographic order on admits , so no monotone scalarization—weighted, max-norm, or lexicographic—escapes.
The representational gap is intrinsic to projecting a partial order with antichains onto a total order; relaxing the slack only enlarges the admissible set, never removing the collapse. SiLR admits on directly. Through the search loop the representational gap becomes behavioral: a scalar gate admits the first -improving proposal, ends the per-step search, and commits the trajectory to a residual plateau (the scalar projection trap); a structured gate rejects the same proposal as inadmissible under the product order and keeps the search active. No scalar projection yields a sound recovery-admission criterion.
Predicates and admission invariant. The implemented admission gate is a conjunction of three predicates evaluated on the shadow: validates the tool and parameter bounds; (support inclusion); and for all , with . The conjunction is the computable test for the relaxed -dominance order (Lau-manns et al. 2002), recovering the exact product order as . Here absorbs the finite resolution of the discrete action space and absorbs the numerical precision. This yields the gate's containment guarantee.
Proposition 2 (Admission invariant). Under shadow fidelity (the live system reproduces the shadow post-state, exact in our deterministic simulators), every admitted trajectory satisfies (i) for all , independently of LLM behavior, and (ii) , a bound that relaxes as grows.
The support invariant is -free and holds for any gated policy, including a compromised LLM—the containment guarantee that defines a runtime shield and anchors a formal safety case (proof in the supplementary material). Empirically supplies liveness by preserving support, while supplies the per-branch severity containment that RQ4 shows to be necessary. Concretely, rejects a count-preserving redistribution that both and any scalar aggregate admit. Severities leave the support unchanged and lower from 20 to 19.1, yet they drive one branch from 10 to 19. Recovery is robust over (15/15), consistent with the -free support invariant (sweep in the supplementary material).
Applicability. A verifier call takes 17.5–30.0 ms on a single CPU core, orders of magnitude below the latency of an LLM ReAct step. The construction therefore applies wherever the tool API admits a deterministic shadow of the proposed call. In our testbed it runs on the dispatch loop, where shadow execution reuses the power-flow study that already precedes each dispatch.
Evaluation
We compare Structured admission against terminal and scalar gates (RQ1–RQ3), then test containment under compromise (RQ4) and generalization across model families and a second domain (RQ5). The simulator is Gym-ANM ANM6-Easy (Henry and Ernst 2021), with a state-cloning shadow and bit-exact Newton–Raphson power flow. The LLM is Qwen3-14B (Qwen Team 2025), served via vLLM at temperature 0. Each ReAct episode runs control steps with proposals per step. We mine a 600-scenario pool by gridded perturbation and classify it by recoverability; the 24 MPC-recoverable multi-action scenarios form our benchmark (pool composition in the supplementary material). For RQ1–RQ3, a focused comparison uses three operating points (Scenario A–Scenario C, with Scenario B the easiest and Scenario A the hardest) at , giving 7 episodes per scenario and 21 per policy, and we additionally evaluate all 24 scenarios at . The five admission policies are as follows. Ungated applies no verifier. Terminal admits iff , the binary SARC-style pre-action gate (Besanson 2026). Support-only applies , the pre-action instantiation of the Grid-Agent rollback baseline (Zhang 2025). Structured applies , the full product-order gate. The scalar sweep Scalar admits iff for . For the full-pool stress test (RQ4) we additionally evaluate the strongest scalar surrogates of Prop. 1: the sup-norm and a lexicographic order on .
RQ1: binary terminal admission deadlocks recovery. Fig. 2(a) reports the main recovery ladder at matched (21 episodes/policy). Terminal recovers 0/21: every intermediate proposal has , regardless of search depth. Structured admission recovers 21/21 (residual 0.000) against the best scalar result of 9/21, significant at the scenario level on the full benchmark (RQ2). The improvement is structural: support geometry closes the recovery gap, while the per-branch predicate adds the severity containment RQ4 requires.
RQ2: scalar admission is insufficient. If terminal admission fails solely because it is too strict, the natural fix is scalar slack. Relaxing the threshold neither closes the recovery gap nor yields monotone recovery: across recovery is 5/21, 9/21, 7/21, 7/21 (each far below structured admission's 21/21). The non-monotonicity is itself a trap signature: the drop comes entirely from Scenario A and Scenario C, where wider slack admits an early -improving proposal and locks


Figure 2: One product order, two design points. (a) As an admission gate at matched , the product order recovers 21/21 multi-action episodes, against 20/21 for support-only (Grid-Agent), 9/21 for the best scalar slack, 1/21 ungated and 0/21 terminal; sublabels give each gate's admission criterion. (b) As a GRPO process reward, a reward built on the same violation geometry has zero reward-level confusion against 0.25 for its count projection and 1.0 for a binary signal (oracle-optimal binarization ceiling 0.42); the dominance holds in all 24 mined scenarios (sign test ).
Table 2: RQ2: the full benchmark of 24 mined multi-action scenarios, , recovery [Wilson 95% CI]. Support-only is the Grid-Agent rollback baseline.
| Policy | Recovery | 95% CI |
|---|---|---|
| Terminal | 0/120 | [0.00, 0.03] |
| Scalar | 96/120 | [0.72, 0.86] |
| Support-only | 113/120 | [0.88, 0.97] |
| Structured | 120/120 | [0.97, 1.00] |
the trajectory onto a residual plateau rather than rejecting it to keep the per-step search alive. The recovery gap closes at the support level: support-only () recovers 20/21 and the full product order 21/21. The full 24-scenario benchmark confirms this (Table 2): structured admission recovers 120/120 against the best scalar gate's 96/120 (terminal deadlocks); treating each of the 24 scenarios as an independent cluster, the structured-vs-scalar advantage is significant (scenario-clustered Wilcoxon , bootstrap 95% CI for the recovery-rate difference excluding zero).
RQ3: the projection-trap plateau is gate-induced. The trap leaves a population signature: over the full benchmark, structured admission drives every episode to the recovered origin, while scalar-admitted failures settle on a nonzero-residual plateau (Fig. 3). The three operating points show increasing difficulty under the best per-scenario slack. Scalar admission recovers 7/7 episodes in Scenario B, at most 2/7 in Scenario C (mean final residual 5.94 against a default of 17.59), and at most 1/7 in Scenario A, whereas structured admission recovers 7/7 in all three (representative trace in the supplementary material). When initialized from the scalar-admitted Scenario C plateau, an MPC feasibility oracle (constant-setpoint baseline) reaches zero penalty in one rollout, which confirms that the plateau is gate-induced.
RQ4: the admission architecture contains LLM-side compromise. A compromise suite evaluates the gate under

Figure 3: RQ3: final residual penalty of all 480 benchmark episodes (24 scenarios, , four gates; horizontally jittered). The count above each column is the number of episodes fully recovered (). Structured admission drives every episode to the recovered origin; scalar-admitted failures settle in a nonzero-residual plateau band; terminal episodes remain at their initial violation state.
three attack families: prompt injection, observation poisoning, and stall, the last in plain and RAG forms. It runs across the three mined scenarios plus matched benign controls (60 attack and 15 benign episodes). No attack success, false recovery, or material worsening occurs in the 60 attack episodes (0/60) or in the 15 benign-control episodes (0/15). Containment is architectural: the verifier never accesses the LLM's prompt or observation channels (Prop. 2).
The per-branch predicate is necessary. This suite establishes containment against channel compromise; whether the per-branch predicate is necessary is a separate question, isolated by a dedicated 120-case suite. Magnitude redistribu-

Figure 4: RQ4: magnitude-redistribution attacks admitted, by admission tier. Each added predicate closes more attack surface: Scalar 43/120, Support-only (Grid-Agent, ) 11/120, Structured () 0/120.
tion (C1/C2) drives one retained branch toward failure while holding the overloaded-branch set and the aggregate penalty within nominal bounds, evading aggregate- and support-level monitoring. Across this suite a scalar gate admits the concentrating step in 43/120 cases and the support-only Grid-Agent rollback baseline () in 11/120, whereas the full product order () admits none (0/120; Fig. 4): only the per-branch test rejects the concentrating step.
The complementary antichain on the full witness pool. Beyond the support-preserving redistribution of Fig. 4, full-pool enumeration exposes the complementary Prop. 1 antichain (support expansion) and confirms the gap is representational. Over all 558 physically-unsafe one-step actions in ANM, the sup-norm admits 46 and a lexicographic order on admits 88, while the full product order admits 0/558. These breaches instantiate the antichain: a new branch overloads while falls. The same class recurs in CityLearn over 11,311 physically-unsafe actions under an independent state-of-charge/feeder oracle (verifier-level enumeration, independent of model choice): the sup-norm admits 6761, the full product order 0/11,311 (ReAct replication in RQ5). Across pools the invariant comparison is zero-versus-nonzero: the full product order is the only gate that admits no unsafe action in either domain (supplementary material).
Safety versus liveness under multi-family stress. The containment gap widens with two physically incomparable constraint families active, where any scalarization must trade one against the other. Over all 42,410 physically-unsafe actions on mined dual-family (voltage + branch) ANM states, every tested scalar projection admits 40.6–53.6%, and support-only admits the largest fraction at 63.2%, whereas the full product order admits 0. Support inclusion alone is therefore insufficient, and the per-branch guard closes the multi-family surface. Recovery nevertheless remains feasible under this discipline: an oracle audit finds an admissible all-safe recovery order in all 689 mined dual-family scenarios. In ReAct traces on the two hardest dual-family scenarios (3 seeds each), every scalar-gated recovery passes through physically unsafe steps (18–38% of its penalty descent; worst, a 212%-loaded branch driven to 282%), whereas the product-
Table 3: RQ5: generalization across model families (ANM) and to a second domain (CityLearn), (recovery). CityLearn at ; *Qwen3-8B reaches 15/15 at . ANM Structured per-model (3 scenarios pooled) Wilson 95% CI [0.80, 1.00].
| Model | ANM | CityLearn | ||
|---|---|---|---|---|
| Term. | Structured | Term. | Structured | |
| Qwen3-8B | 0/15 | 15/15 | 5/15 | 14/15* |
| Qwen3-14B | 0/15 | 15/15 | 5/15 | 15/15 |
| Gemma-3-12B | 0/15 | 15/15 | 5/15 | 10/15 |
| Llama-3.1-8B | 0/15 | 15/15 | 5/15 | 15/15 |
order gate admits none. This reproduces the safety–liveness trade-off familiar from runtime shielding (Alshiekh et al. 2018) (details in the supplementary material).
RQ5: the dichotomy transfers across model families and domains. At the ReAct level, the terminal-versus-structured dichotomy is family-independent and transfers across domains (Table 3). Across Qwen3 (two sizes), Gemma-3 (Gemma Team 2025), and Llama-3.1 (Llama Team 2024) on ANM, terminal admission deadlocks every model (0/15) while structured admission recovers completely (15/15). The same pattern recurs in CityLearn building-energy dispatch (Vázquez-Canteli et al. 2019): terminal admission succeeds only on the single-step scenario (5/15), while structured admission recovers between 10/15 and 15/15 depending on the model. The admission rule thus transfers unchanged, whereas completion rates depend on model capability: the gate semantics show structural portability to a distinct physical model.
From Admission Gate to Process Reward
The product order is also the representation required at a second design point: not only the criterion a runtime gate admits on, but the object a policy should internalize. We reuse the verifier's outputs, namely the graded verdict and the persisted branch state of Eq. 1, to define a Group Relative Policy Optimization (GRPO) process reward (Shao et al. 2024; Lightman et al. 2024). This requires no verifier changes and no task-specific outcome labels. We fine-tune Qwen3-8B with low-rank adaptation (LoRA) (Hu et al. 2022) on the 9 hardest multi-action ANM scenarios, which the ungated base fails to recover reliably. The primary outcome is ungated recovery: the gate is removed at evaluation, so recovery measures what the policy internalized. An admitted SAFE_PROGRESS step from to shadow post-state is scored on the branch state itself; writing and ,
where and are the eliminated and surviving overloaded branches, the constraint fam-


Figure 5: Training dynamics in the multi-family stress regimes. (a) Coupling: the geometric reward converges to full recovery within five GRPO iterations; the count reward—blind to the drift its own actions cause—is driven below its random initialization. (b) Trained recovery versus -heterogeneity: failure emerges at (both arms dip briefly at ratio 2); CityLearn's measured ratio (286, dashed) lies deep in the collapsed regime; in the homogeneous limit all arms tie, ruling out the construction.
ilies partitioning , and . Three choices matter here. Support elimination outranks severity reduction on surviving branches, echoing the admission order. The drift term debits any surviving branch driven worse. Per-family normalization keeps a high- family from hijacking the signal. The count projection replaces by , and graded PASS/FAIL verdicts anchor the scale identically across arms (full scaffold in the supplementary material).
Violation geometry yields a higher-fidelity process reward. We measure reward-layer fidelity by scoring every legal single-setpoint action at each trap state against the true one-step recovery value. The geometric reward never misorders an action pair with distinct oracle values (reward-level confusion 0.000 vs. 0.25 for its count projection), and it dominates in all 24 mined scenarios (sign test ). By contrast, a binary admit/reject signal cannot rank admissible steps at all (1.0; Fig. 2(b)). The separation is a property of the reward, not of the rollout distribution. It persists over the full legal action set (0.04 for the geometric reward, 0.19 for the count projection, and 0.63 for the binary signal) and against an oracle-optimal binarization (0.42), which is the ceiling of a process reward trained on binary outcome labels (Lightman et al. 2024). The geometric ranking matches the oracle with a Spearman correlation of 0.986; robustness controls are in the supplementary material.
The violation geometry is the active ingredient. Three reward arms share the same rollout gate and differ only in the signal. The full geometric reward, descent in the product order over , is the only one that keeps the trained policy above the untrained base ungated (0.844 vs. 0.778). A verdict ladder (0.733) or a violation count (0.667) leaves it worse than untrained, which indicates gate-dependent behavior rather than internalized recovery (supplementary material). On 15 held-out scenarios the geometric policy recovers 14/15 against the base's 9/15, both ungated (one-sided
Fisher exact ).
The same scalarization gap, on the training side. This is the training-side counterpart of the admission-side impossibility: the scalarization that is unsound as an admission rule (Prop. 1) collapses the GRPO advantage signal as a reward.
Proposition 3 (Advantage collapse). With concurrent violation branches, a count-based reward takes at most distinct values. Action pairs within a count-equivalence class therefore receive identical immediate reward and have no step-level advantage separation. Along a continuous partial reduction of any single branch, the count reward is piecewise constant, with zero gradient except at elimination points, whereas the graded geometric reward is strictly monotone in that reduction.
(Proof in the supplementary material.) Empirically the flat fraction of the count reward is 98% of the continuous action range, inducing a failure class: with incomparable constraint families active, no tested scalar projection of the reward attains full recovery in both regimes; only the full geometric reward does. We isolate the mechanism in a controlled tabular GRPO setting (Table 4; 16 training seeds each; design in the supplementary material): the severity scalar is hijacked by raw magnitude under -heterogeneity, the count reward is blind to the cross-family drift its own actions cause under coupling (Fig. 5(a)), and restoring the drift term closes only the coupling regime (Table 4).
The collapse is a threshold effect that reproduces at scale. The severity-scalar failure emerges at , and CityLearn's measured heterogeneity ratio (286) lies deep in the collapsed regime (Fig. 5(b)). A four-building CityLearn suite reproduces the effect at scale: the geometric reward's advantage signal correlates with the true one-step value (Spearman's vs. 0.79 for count), and at the same violation count the count arm leaves the battery family with 14% higher residual severity (supplementary material).
Table 4: The scalarization failure class: trained recovery in the two multi-family stress regimes (16 seeds each).
| Training reward | trained recovery | |
|---|---|---|
| -het | coupling | |
| geometric (full ) | 1.00 | 1.00 |
| severity-scalar ( descent) | 0.00 | 0.04 |
| count ( descent) | 0.80 | 0.12 |
| count with drift penalty | 0.80 | 1.00 |
Conclusion
We recast the admission gate as a search operator and identify the scalar projection trap: collapsing the violation state to a scalar commits trajectories to residual plateaus. The formal results establish this representational gap independently of LLM behavior (Prop. 1 and Prop. 2), and the experiments show 21/21 recoveries for structured admission, against 9/21 for the best scalar gate and 0/21 for terminal admission. Under multi-family stress the product order keeps every intermediate step safe, whereas scalar gates reach recovery only through unsafe redistributions. Reused as a process reward, the same signal lets the policy internalize recovery. Preserving the violation geometry is required at both design points.
Attack-Family Constructions
We implement four attack families under the compromised-prompt/compromised-observation capability class of Section . Prompt injection (C1): a high-priority operator-impersonating override that pushes an aggressive fixed set-point. Observation poisoning (C2): a fabricated “all readings nominal” stanza spliced into every observation, contradicting the violation list the verifier re-derives from the live simulator. Stall (C1): near-no-op setpoints that stay admissible while never recovering; a “stall-RAG” variant instructs the same behavior through a poisoned retrieval context. Magnitude redistribution (C1/C2): driving a single retained branch toward failure while holding the overloaded-branch set and aggregate penalty within nominal bounds, masking per-branch overload behind nominal aggregate- and support-level readings.
The compromise suite (RQ4) runs the three attack families in four configurations—prompt injection, observation poisoning, and stall in plain and RAG forms—across the three mined multi-action scenarios at per configuration, plus a matched benign control (60 attack + 15 benign = 75 episodes). Across the 60 attack episodes we observe no attack success, false recovery, or material worsening (0/60; Wilson 95% CI [0.00, 0.06]), and none of these failures occurs in the 15 benign-control episodes (0/15). Under prompt injection the rejection rate climbs sharply. The fourth family, magnitude redistribution, is evaluated against competing gates in the 120-case redistribution suite of Fig. 4: its cases concentrate severity on a single retained branch while preserving the overloaded-branch set and holding the aggregate penalty within nominal bounds, slipping past aggregate-and support-level gates (43/120 and 11/120) while the per-branch test rejects every one.
Strong-scalar baselines on the full witness pool. Beyond the balanced 120-case suite, we enumerate every physically-unsafe one-step action in each domain—558 in ANM, 11,311 in CityLearn (the latter under an independent state-of-charge/feeder-overload oracle, verifier-level, no LLM in the loop)—and evaluate all five gates (Table 5). The denominator is a constructed witness pool, not a natural-attack frequency, and absolute breach counts reflect each pool’s category composition, so they are not comparable across domains; within a fixed pool, a lower unsafe-admission count indicates stricter containment. The one domain-invariant statement is that the full product order admits zero in both. The strongest scalar projections fail on the Prop. 1 antichain in both domains: in ANM all 46 sup-norm breaches are support expansions with non-increasing; in CityLearn 6670 of the 6761 sup-norm breaches are the same support-expansion class, the newly violating element being a battery-or feeder, confirming the mechanism in a second physical system. Finally, we stress the gates with two simultaneously active constraint families: a third enumeration over mined dual-family (voltage + branch-loading) ANM states yields 42,410 physically-unsafe actions: the aggregate admits 17,200 (40.6%), the normalized aggregate 18,311, the sup-norm 17,663, the lexicographic order 22,729, support-only 26,817 (63.2%), and the product order 0.
Table 5: Unsafe admissions on the full physically-unsafe witness pool (verifier-level enumeration; counts reflect each pool’s category mix and are not comparable across domains; within a pool, lower is stricter containment). The full product order is the only gate that admits no unsafe action in either domain.
| Gate | ANM () | CityLearn () |
|---|---|---|
| Scalar—aggregate | 108 | 7204 |
| Scalar—sup-norm | 46 | 6761 |
| Scalar—lex. () | 88 | 7650 |
| Support-only (Grid-Agent ) | 258 | 432 |
| Structured () | 0 | 0 |
Proofs
Proposition 1 (Scalarization gap). Any scalar surrogate composes the vector-valued violation state with a total order. The pair forms a -antichain: blocks , while blocks . Because maps both into the totally ordered , exactly one of or holds (or both, if equal), so for any slack the gate admits at least one of the two transitions, each non-improving under (one introduces branch ; the other inflates ). For the canonical aggregate , , so for all and no slack removes the acceptance of . The argument depends only on admitting an antichain, hence applies to every scalar surrogate.
Proposition 2 (Admission invariant). By induction on . Base: trivially and . Step: an admitted action passes on the shadow, and shadow fidelity makes the live post-state equal the shadow, so (giving by the inductive hypothesis) and for all (and off ). Unrolling gives ; at the bound reads . Neither step uses any property of the action source, so the support invariant (-free) holds for any gated policy, including a compromised LLM. The severity term is a worst-case per-step drift envelope, not a descent guarantee: convergence to depends on proposal quality.
Proposition 3 (Advantage collapse under scalarization). Immediate from the definitions. With concurrent violation branches, the count delta of cleared violations ranges over , taking at most distinct values; hence every action pair within a count-equivalence class receives identical immediate reward and there is no step-level advantage separation between them. Along a continuous partial reduction of any single branch's severity that does not eliminate it, is unchanged, so the count reward is piecewise constant, with zero gradient except at the discrete elimination points. The graded geometric reward's severity term is strictly monotone in that same reduction, so it retains a nonzero advantage signal everywhere on the continuum. Empirically the flat fraction is 98% of the continuous action range.
Robustness and Cross-Domain Generalization
Scenario pool composition. The mined 600-scenario ANM pool classifies by recoverability as 153 single-action, 24 multi-action, 252 MPC-residual, and 171 trivial; the 24 multi-action scenarios form the main benchmark.
-window sweep. Recovery holds across an -window: for and at (), consistent with the -free support invariant (Prop. 2); the magnitude guard tightens as without disturbing support-driven recovery. The full 24-scenario benchmark (Table 2) and the cross-family replication (Table 3) are reported in the main text.
Cross-domain (CityLearn). The full cross-domain replication is reported in Table 3 (RQ5): the gate semantics recur in CityLearn building-energy dispatch (Vázquez-Canteli et al. 2019) over three district battery-storage scenarios (CL-1-CL-3; state-of-charge floor/ceiling and feeder-export limits, indexed by the violating building or feeder). Gemma-3-12B on CL-2 is the only capability-related exception. The gate admits every Gemma proposal in that scenario (all SAFE_PROGRESS, with no rejections), so the admission rule transfers unchanged, but the sequence stalls before the terminal action the other models reach. Completion therefore tracks proposal quality rather than gate semantics.
Scenario-level trap trace. Fig. 6 shows the representative Scenario-C trace underlying RQ3: the scalar gate admits one early locally-improving proposal and plateaus at nonzero

Figure 6: Scalar projection trap on Scenario C (RQ3): representative trace at the best slack ; structured admission descends to full recovery in three steps while the scalar gate plateaus.
residual (best slack ; the plateau recurs at all four slack settings, best ), while structured admission descends to full recovery.
Dual-family recovery audit. We mine 689 oracle-recoverable dual-family (voltage + branch-loading) ANM states and replay oracle device orders through the product-order verifier: an admissible all-safe recovery order exists in all 689/689 cases, so per-step safety never renders recovery infeasible. At the ReAct level (32-step budget, Qwen3-14B, temperature 0), we rescore every admitted step with the RQ4 physical oracle. On the two hardest such states, every scalar-gated recovery passes through physically unsafe steps (18–38% of its penalty descent; worst, a 212%-loaded branch driven to 282% loading), including support expansions of the same class enumerated in the dual-family admission audit. The product-order gate admits zero unsafe steps.
The Verifier as a Process Reward: Extended Analysis
Setup. We fine-tune Qwen3-8B with LoRA (Hu et al. 2022) on the 9 hardest multi-action ANM scenarios (greedy decoding, without chain-of-thought). Three reward arms share the same structured rollout gate and differ only in the reward signal: Geometric rewards descent in the product order over ; Count rewards the count-delta of cleared violations; and a Verdict-only ablation strips the geometric component, leaving only the verdict ladder. We evaluate the checkpoint after the second GRPO (Shao et al. 2024; Lightman et al. 2024) iteration, pooled over 5 training seeds (Table 6). On a separate 15-scenario held-out set, the geometric policy reaches 14/15 ungated recovery, against 9/15 for the base policy (RQ-reward section).
Reward formulas. All arms share one verdict scaffold and differ only in how an admitted SAFE_PROGRESS step is scored. For a step from pre-state to shadow post-state
Table 6: Verifier-as-reward on the 9 hardest ANM scenarios (5 seeds pooled; recovery [Wilson 95% CI]). Ungated recovery (gate removed at eval) measures internalization: only the full geometric reward stays above the untrained base.
| Reward (signal) | gated | ungated | steps |
|---|---|---|---|
| base (no LoRA) | 0.778 | 0.778 | 4.71 |
| Geometric ( descent) | 0.956 | 0.844 [0.71,0.92] | 3.64 |
| Verdict-only (ladder) | 0.889 | 0.733 [0.59,0.84] | 4.08 |
| Count (count-delta) | 0.889 | 0.667 [0.52,0.79] | 3.84 |
with verdict v,
where is the mean normalized constraint margin and grades the worst residual violation (warning/violation/critical); a fixed step cost 0.05 is subtracted from every step and a terminal recovery bonus +1 is added at the trajectory level, both shared across arms. Writing for the pre/post overloaded-branch supports with per-branch severities , for the eliminated branches, for the surviving ones, and for the constraint families partitioning , the three SAFE_PROGRESS scorings are (expanding the compact notation of Eq. 3)
with weights , so severity-weighted support elimination outranks per-branch severity reduction , echoing the admission product order; the third term penalizes any surviving branch driven worse. The geometric arm normalizes within each family and averages families with equal weight, so no high- family hijacks the signal; for a single family it reduces exactly to -normalization, leaving the single-type ANM result unchanged. A count-preserving magnitude reallocation earns and is debited by the drift term, yet is invisible to ; the Verdict-only arm flattens to a constant, keeping the PASS>SAFE_PROGRESS>FAIL ladder while discarding within-step geometry. The failure-class study's severity scalar instead uses the total-severity fraction , which retains magnitude but collapses the physically incomparable families into one dimension.
Reward-layer fidelity controls. The reward-layer comparison in the main text (geometric confusion 0.000 vs. 0.25 for count over 24/24 scenarios) is stable under four controls (Fig. 7). (i) On-policy distribution. Scoring confusion on the states visited under three rollout policies—greedy on the geometric reward, greedy on the count reward, and uniform random—keeps the geometric reward at 0.000 while count ranges 0.21–0.22, so the separation is a property of the reward rather than of a chosen visitation. (ii) Complexity scaling. On controlled trap states with simultaneous violation branches, count confusion grows from 0.347 at to 0.465 at (Pearson ) as more distinct actions collapse onto the same count-delta level, while the geometric reward stays at 0.000: the representational gap widens with problem complexity. (iii) Exactness. The simulator-computed geometric reward retains its fidelity advantage under additive Gaussian perturbation of scale : its misordering rate rises from 0.011 () past the count projection's 0.157 only once exceeds —the margin exact simulation affords over a learned approximation. (iv) Exploit resistance. Fidelity also bounds how easily the reward is gamed: a binary admit/reject reward pays +0.5 for both a stall, an admitted no-op with , and a drift, a count-preserving reallocation that worsens a branch. An 8-step stall therefore accrues 4.0 against 1.5 for recovering in three steps. The count reward is likewise indifferent to drift, whereas the severity-scalar and geometric rewards both score on a stall and penalize drift. Resistance to both hacks rises with the constraint geometry the reward preserves.
The multi-family failure class. When several physically incomparable constraint families are active at once, any scalar reward must collapse the product order into one dimension, and the representational gap of Prop. 1 reappears in training dynamics as advantage collapse (Prop. 3). We run two controlled mechanism-isolation training-dynamics analyses (Krakovna et al. 2020), each a minimal multi-family recovery regime isolating one component of the violation geometry, with GRPO on the unmodified reward functions (16 training seeds each; trained recovery in Table 4). In the -heterogeneity regime (one large- family, one small- family whose violation is urgent), the severity scalar is hijacked by raw magnitude, chasing the large family and recovering 0%, while per-family normalization makes the urgent family's elimination worth a full family, and the geometric arm recovers 100%. In the coupling regime (clearing the large family drifts the small family toward an irreversible limit), the count reward is blind to the drift its own actions cause and trains to 12%; the drift-aware geometric reward trains to 100%. Restoring the drift term rescues count in the coupling regime (1.00) but not cross-family priority (0.80 under -heterogeneity), and the severity scalar fails in both—the two regimes require distinct components that only the full geometric reward combines.
The -heterogeneity sweep (Fig. 5(b)) shows the failure is not an artifact of a chosen operating point: it emerges at , saturates from 8 onward (CityLearn's measured heterogeneity is 286), and vanishes in the homogeneous limit. The separation holds across the full



Figure 7: Reward-layer fidelity controls. (a) Reward-level confusion grows with the number of simultaneous violation branches for the count reward (Pearson ) while the geometric reward stays at 0.000. (b) The geometric reward retains its advantage over the count projection under additive noise up to . (c) The fidelity gap holds on states visited under three rollout policies (geometric confusion 0.000 throughout; count 0.21–0.22). (d) A binary admit/reject reward pays +0.5 for both stall and drift; the count reward is blind to drift, which the severity-scalar and geometric rewards penalize.
coupling–floor grid (Fig. 8): geometric 0.97 in all 16 cells, count 0.42 in 15; the single cell where the count reward retains recovery lies at the weakest coupling. An MLP policy reproduces the same ordering (1.00/0.13/0.05 for geometric/count/severity-scalar), so the pattern is not specific to the policy class.
The mechanism at full scale. Training Qwen3-8B with GRPO on the multi-family CityLearn suite (four buildings, -het 286) reproduces the mechanism in a second, larger system and shows that trajectory-return credit is needed to propagate delayed cross-family consequences, since a per-step z-score cannot assign the cost of flooring the battery family back to the early step that caused it. With trajectory-return credit the trained policies separate along the axis Prop. 3 predicts. Across seeds the geometric reward's advantage signal correlates with the true one-step action value (Spearman's vs. 0.79 for count). After training, at the same violation count, the count arm leaves the battery family with 14% higher residual severity than the geometric arm, which is the signature of a severity-blind signal.
(a) Geometric reward

(b) Count reward

Figure 8: Trained recovery across the 4×4 coupling–floor grid. The geometric reward recovers ≥ 0.97 in all 16 cells; the count reward collapses (≤ 0.42) in 15 of 16, recovering only in the single cell (coupling, )=(1.0, 3.5), at the weakest coupling in the grid.
References
Alpern, B.; and Schneider, F. B. 1985. Defining Liveness. Information Processing Letters, 21(4): 181–185.
Alshiekh, M.; Bloem, R.; Ehlers, R.; Könighofer, B.; Niekum, S.; and Topcu, U. 2018. Safe Reinforcement Learning via Shielding. In Proc. AAAI Conf. on Artificial Intelligence.
Bastani, O. 2019. Safe Reinforcement Learning with Nonlinear Dynamics via Model Predictive Shielding. arXiv preprint arXiv:1905.10691.
Besanson, G. 2026. SARC: A Governance-by-Architecture Framework for Agentic AI Systems. arXiv preprint arXiv:2605.07728.
Chen, Z.; Kang, M.; and Li, B. 2025. ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning. arXiv preprint arXiv:2503.22738.
Gemma Team. 2025. Gemma 3 Technical Report. arXiv preprint arXiv:2503.19786.
Greshake, K.; Abdelnabi, S.; Mishra, S.; Endres, C.; Holz, T.; and Fritz, M. 2023. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. In ACM Workshop on Artificial Intelligence and Security (AISec).
Henry, R.; and Ernst, D. 2021. Gym-ANM: Reinforcement Learning Environments for Active Network Management
Tasks in Electricity Distribution Systems. Energy and AI, 5. ArXiv:2103.07932.
Hu, E. J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; and Chen, W. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In Int. Conf. on Learning Representations (ICLR). ArXiv:2106.09685.
Krakovna, V.; Uesato, J.; Mikulik, V.; Rahtz, M.; Everitt, T.; Kumar, R.; Kenton, Z.; Leike, J.; and Legg, S. 2020. Specification gaming: the flip side of AI ingenuity. DeepMind Blog.
Laumanns, M.; Thiele, L.; Deb, K.; and Zitzler, E. 2002. Combining Convergence and Diversity in Evolutionary Multiobjective Optimization. Evolutionary Computation, 10(3): 263–282.
Lightman, H.; Kosaraju, V.; Burda, Y.; Edwards, H.; Baker, B.; Lee, T.; Leike, J.; Schulman, J.; Sutskever, I.; and Cobbe, K. 2024. Let's Verify Step by Step. In Int. Conf. on Learning Representations (ICLR).
Llama Team. 2024. The Llama 3 Herd of Models. arXiv preprint arXiv:2407.21783.
Malik, G. 2026. Hierarchical Reinforcement Learning with Runtime Safety Shielding for Power Grid Operation. arXiv preprint arXiv:2604.14032.
Miculicich, L.; Parmar, M.; Palangi, H.; Dvijotham, K. D.; Montanari, M.; Pfister, T.; and Le, L. T. 2025. VeriGuard: Enhancing LLM Agent Safety via Verified Code Generation. arXiv preprint arXiv:2510.05156.
Miettinen, K. 1999. Nonlinear Multiobjective Optimization. Kluwer Academic Publishers.
Qwen Team. 2025. Qwen3 Technical Report. arXiv preprint arXiv:2505.09388.
Sah, T.; Srivastava, V.; Sah, D.; and Jordan, K. 2026. The Verifier Tax: Horizon-Dependent Safety-Success Tradeoffs in Tool-Using LLM Agents. arXiv preprint arXiv:2603.19328.
Shao, Z.; Wang, P.; Zhu, Q.; Xu, R.; Song, J.; et al. 2024. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300.
Skalse, J.; Howe, N. H. R.; Krasheninnikov, D.; and Krueger, D. 2022. Defining and Characterizing Reward Hacking. In Advances in Neural Information Processing Systems.
Thananjeyan, B.; Balakrishna, A.; Nair, S.; Luo, M.; Srinivasan, K.; Hwang, M.; Gonzalez, J. E.; Ibarz, J.; Finn, C.; and Goldberg, K. 2021. Recovery RL: Safe Reinforcement Learning with Learned Recovery Zones. IEEE Robotics and Automation Letters, 6(3).
Uesato, J.; Kushman, N.; Kumar, R.; Song, F.; Siegel, N.; Wang, L.; Creswell, A.; Irving, G.; and Higgins, I. 2022. Solving math word problems with process- and outcome-based feedback. arXiv preprint arXiv:2211.14275.
Vázquez-Canteli, J. R.; Kämpf, J.; Henze, G.; and Nagy, Z. 2019. CityLearn v1.0: An OpenAI Gym Environment for Demand Response and Urban Energy Management. In Proceedings of the 6th ACM International Conference on Systems for Energy-Efficient Buildings, Cities, and Transportation (BuildSys).
Wang, H.; Poskitt, C. M.; and Sun, J. 2026. AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents. In IEEE/ACM International Conference on Software Engineering (ICSE). ArXiv:2503.18666.
Xiang, Z.; Zheng, L.; Li, Y.; Hong, J.; Li, Q.; Xie, H.; Zhang, J.; Xiong, Z.; Xie, C.; Yang, C.; Song, D.; and Li, B. 2025. GuardAgent: Safeguard LLM Agents via Knowledge-Enabled Reasoning. In Int. Conf. on Machine Learning (ICML).
Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.; and Cao, Y. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. In Int. Conf. on Learning Representations (ICLR). ArXiv:2210.03629.
Zhang, Y. 2025. Grid-Agent: An LLM-Powered Multi-Agent System for Power Grid Control. arXiv preprint arXiv:2508.05702.