arXiv:2610.18326cs.CROct 2026

Manuscript Offprint

arXiv:2610.18326

Jev-Guard: Fast Routing and Auditing Agent Actions over Editable Policy Trees

Wenbin Hu, Huihao Jing, Haochen Shi, Yuxuan Liu, Changxuan Fan, Sirui Zhang, Kawai Chung, Hanyu Yang, Zhenhuan Wang, Ziyi Chen, Haoran Li, Yangqiu Song

Abstract

Agent harnesses require a low-latency guardrail model together with customizable audit policies. However, deploying an auto-regressive guardrail model remains challenging: such models incur high inference latency and are often poorly aligned with customized policies. To address these problems, we present Jev-Guard, a unified model for safety classification and policy routing. We further construct a policy tree over which Jev-Guard performs routing, spanning diverse domains including content moderation, cybersecurity, privacy, and legal compliance. Specifically, Jev-Guard first navigates the policy tree to select the applicable audit policy given the caller's audit context, and then performs safety classification conditioned on the retrieved policies. On 7,033 evaluation cases, Jev-Guard achieves 93.72% safety accuracy, a mean latency of 58 ms, and 93.10% hierarchical routing accuracy. The full routing-and-classification pipeline averages 240 ms. Furthermore, we integrate Jev-Guard into the Hermes harness framework. Across agent trajectories, its separate permission gate cuts mean review time per task from 4.80 s for an SFT-LLM judge to 1.33 s, with no policy violations are observed for either guard.

1 Introduction

Agent harnesses execute tool calls on behalf of users, and every action must be reviewed before it takes effect (Wang et al., 2026a; Mou et al., 2026). Such review sits on the critical path of each step, so it demands a low-latency guardrail model. It also demands customizable audit policies: sending a public announcement to an approved partner differs from sending a private document to an address found in a webpage, and the two cases require different audit tasks. Across content moderation, cybersecurity, privacy, and legal compliance, the same agent action may call for vulnerability analysis, a disclosure check, or a review under a particular platform policy. An unsafe label alone identifies neither the audit task nor the execution authority.

Existing guardrail models fall short of these two requirements. First, policy-conditioned safeguards typically generate an auto-regressive rationale before emitting a verdict (Li et al., 2025c; Liu et al., 2026; Chen et al., 2025), which incurs high inference latency at every tool invocation. Second, such models are often poorly aligned with customized policies. Fixed taxonomies restrict deployments to a shared vocabulary, whereas placing all natural-language policies into the context for every action enlarges the input and introduces irrelevant candidates. Hierarchical labels help organize categories (Li et al., 2025a), but they do not let operators rename a category, remove it with a fallback, or insert a new routing level without retraining. Such edits change the decision interface even when the underlying action stays fixed, so a frozen model must follow the changed rules.

To address these problems, we present Jev-Guard, a unified model for safety classification and policy routing. Following the direct structured-decision paradigm of Jev (Typesafe AI, 2026) and the Open-Jev implementation family (Open-Jev Contributors, 2026), Jev-Guard is a Qwen3.5-2B classifier that replaces generated rationales with direct prediction heads. We further construct a versioned policy tree over which Jev-Guard performs routing, with 85 nodes and 73 leaves spanning content moderation, cybersecurity, privacy, and legal compliance. Given an agent action, Jev-Guard first navigates the tree through local decisions to select the applicable audit policy given the caller's audit context, and then performs safety classification conditioned on the retrieved leaf rules and taxonomy. Operators can inspect and revise the tree without retraining, and only the policies relevant to

∗^{*}Equal Contribution

†^{\dagger}Corresponding author

(a) Editable policy tree

(b) Routed diagnosis

(c) Execution gate

Figure

Figure 1: Policy tree, routed diagnosis, and execution gate. (a) The tree is editable without retraining. (b) The router picks one child per node, then the leaf review diagnoses. (c) A separate permission call decides execution without reading the diagnosis. S and C mark the heads. Scores and edits are illustrative.

the current action enter the context.

We evaluate Jev-Guard on 7,033 cases. It achieves 93.72% safety accuracy with a mean latency of 58 ms and 93.10% hierarchical routing accuracy. The full routing-and-classification pipeline averages 240 ms. Beyond classification, we integrate Jev-Guard into the Hermes harness (Nous Research, 2026), where an independent permission judgment and scope checks govern execution, and native leaf predictions serve as diagnostics. This separation matters for legitimate analysis of harmful material: recognizing phishing content should not automatically prohibit saving it for an authorized investigation. In agent trajectories built on executable simulated environments (Debenedetti et al., 2024), the separate permission gate reviews faster than an LLM judge but completes fewer normal tasks, and neither guard shows policy violations. Our contributions are threefold:

  1. A unified model and editable policy tree. We present Jev-Guard, a 2B direct classifier that performs hierarchical policy routing and policy-conditioned safety classification over an editable policy tree spanning content modulation, cybersecurity, privacy, and legal compliance.

  2. A four-domain data construction pipeline. We map tasks from the four domains to policy leaves while preserving source-specific safety meanings and annotation masks.

  3. Strong accuracy at low latency. On 7,033 evaluation cases, Jev-Guard achieves 93.72% safety accuracy and 93.10% hierarchical routing accuracy at 58 ms mean latency (240 ms for the full pipeline), and in Hermes the permission gate reviews faster than an LLM judge at a lower normal-task completion rate.

References (30)