Manuscript Offprint

arXiv:2610.19372

Policy-Verified Self-Training: Learning Agent Compliance from Verifiable Policy Rewards

Min-Young Yu

Abstract

Runtime policy verifiers can prevent agents from executing disallowed actions, but their decisions are typically used only for enforcement and discarded afterward. We ask whether these decisions can instead become verifiable policy rewards for training the agents they guard. We introduce Policy-Verified Self-Training (PVST), a post-training paradigm in which an agent generates its own interaction trajectories and an executable policy verifier, here a deterministic gate compiled from a written policy, evaluates whether each action complies. Compliant trajectories are reinforced, and violations become negatives for preference optimization. PVST thus turns an existing runtime guardrail into a teacher for the same agent: beyond the gate and the benchmark's task-success signal, it needs no stronger teacher model, no human preference labels and no attack-specific supervision, although rollouts are collected in the benchmark's attacked environment.

We evaluate PVST on tool-using agents under prompt injection. On held-out AgentDojo tasks, policy-verified preference training of Qwen3-8B reduces violating trajectories from 37.2% to 10.3±0.9%10.3 \pm 0.9\% (three seeds) and successful attacks from 12.4% to 0.5% at equal or higher pooled task utility, although utility falls on travel, compared with 22.0% violating trajectories when negatives are selected by an attack oracle and 31.9±0.9%31.9 \pm 0.9\% with negatives that contain no violation (a control whose negatives are any failures, drawn without the gate, lands at 20.2%). This separation indicates that the improvement comes from the policy information encoded by the verifier rather than from preference optimization alone. The learned behavior also transfers beyond the training distribution: it holds under an attack template never used in training (37.7% to 11.0%), violations decrease from 34.8% to 16.7% on a suite whose rule set and tasks were excluded from training, and measurable improvements emerge from a few dozen preference pairs. When the original verifier is retained at deployment, its intervention rate falls from 39.2% to 8.8% (seed 0), reducing reliance on runtime enforcement while preserving a deterministic safety backstop; the compliance result replicates on a second trainee (Qwen3-4B-Instruct-2507, 37.3% to 10.2%).

Our analysis identifies two conditions under which the verdict is most informative: success must not already imply compliance, and guarded actions must appear in both permitted and forbidden contexts. Executable policies can therefore serve not only as runtime constraints but as a scalable source of verifiable rewards for self-training.

ORCID: Min-Young Yu, 0009-0007-2325-1469. Preprint.

(a) Runtime enforcement

(b) Policy-Verified Self-Training

Figure

verdict used once, then discarded

Figure 1: Left: a runtime gate blocks a forbidden call and its verdict is discarded. Right: PVST replays the agent's own rollouts through the same gate, keeps compliant successes as positives, cuts violating rollouts at the denied call as negatives and post-trains the agent; at deployment the gate stays and intervenes a fifth as often.

1 Introduction

Tool-using language-model agents are deployed under written policies. An airline assistant may cancel a reservation only after the customer confirms; a banking assistant may transfer money only to a recipient the account holder named. Violations are common for small open-weight models and dangerous because they are executed: a wrong send_money call moves money. A common defence is a runtime gate (Debenedetti et al., 2025; Shi et al., 2025; Wang et al., 2026) that inspects each tool call and refuses the ones the policy forbids. Our prior work compiles such a gate from the policy text itself (Yu et al., 2026), yielding a deterministic checker whose decisions can be replayed and audited. We take the compiled gate as given: this paper contributes nothing to the compiler and everything to what the gate's decisions can be used for.

A runtime gate has two costs. It is a permanent tax on latency and, when the policy is stricter than the task requires, on utility; and it does not change the model, which keeps attempting the same forbidden calls. This paper asks whether the gate's verdict can instead be used to train the agent, so that compliant behavior moves into the model and the gate becomes a rarely-triggered backstop. We call the resulting recipe Policy-Verified Self-Training (PVST): an agent generates its own rollouts, an executable policy verifier deterministically judges each action, and the verdicts become the acceptance filter and the preference labels with which the same agent is post-trained (Figure 1). PVST consumes only the gate's verdict and the benchmark's task-success flag, on rollouts collected in the benchmark's attacked environment.

The verdict has the properties that reinforcement learning with verifiable rewards exploits in mathematics and code, where a checker can grade an answer: it is deterministic (a fixed program, not a learned reward model), annotation-free (every rollout can be scored automatically) and traceable (each denial names a rule). We do not propose a new optimizer; the contribution is the source and structure of the supervision, consumed by existing rejection-sampling and preference-optimization recipes. Policy compliance for agents has lacked a checker compiled from the policy text that grades rollouts under injected inputs; a compiled gate supplies one. Traceability matters beyond bookkeeping: every reward carries the rule that produced it, so a failure can be attributed to the model, the data, the policy or a predicate, and Section 6.3 turns this into a pre-training check on the predicates.

References (23)