arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.12813

VEPA: Verified Evolving Formal Policy for Lifelong LLM Agent Guardrails

Duy Nguyen, Lesly Miculicich, Bhavana Dalvi Mishra, Shuo Li, Krishnamurthy Dj Dvijotham, Mohit Bansal, Tomas Pfister, Long T. Le

Duy Nguyen 12∗^{1 2 *}, Lesly Miculicich 1^{1}, Bhavana Dalvi Mishra 1^{1}, Shuo Li 3^{3}, Krishnamurthy Dj Dvijotham 3^{3}, Mohit Bansal 2^{2}, Tomas Pfister 1^{1} and Long T. Le 1^{1}

1^{1}Google Cloud AI Research, 2^{2}University of North Carolina at Chapel Hill, 3^{3}Google DeepMind

LLM agents increasingly operate over sensitive resources, such as private documents and mutable system states, which can create serious safety and security risks. Runtime guardrails should therefore make inspectable, reproducible, and deterministic allow or refuse decisions before potentially irreversible agent actions are executed. However, safety and security requirements are rarely complete before deployment, so guardrails need to keep adapting as new risks emerge. Existing adaptive guardrails learn from deployment experience, but they usually apply safety policies through LLM inference, which can lead to inconsistent decisions and ambiguous policy interpretations. Formal guardrails, on the other hand, enforce policies deterministically, but they usually rely on pre-deployment or task-specific policies and have no mechanism to adapt to newly observed risks. We introduce VEPA, a framework for the verified evolution of formal agent guardrails. VEPA represents the guardrail as a formal policy of executable symbolic rules over typed agent events. During deployment, we use an LLM guided by deployment feedback to propose policy patches that fix newly observed failures while preserving previously correct behavior. Then, a deterministic verifier only accepts policies that are structurally valid and conflict-free. Finally, an evidence-aware authority layer activates a verified rule only when it has enough supporting evidence, so uncertain updates cannot directly affect guardrail decisions. Across ASSEBench-Safety, ASSEBench-Security, and ATBench, VEPA consistently outperforms baselines while expanding the scope of deterministic formal-policy enforcement. These gains also hold under more challenging deployment conditions, including mixed streams, corrupted feedback, and longer horizons.

1. Introduction

As LLM agents become more capable, they are increasingly deployed with broad access to sensitive systems, allowing them to read private documents, call privileged tools, send messages, and update records (He et al., 2025; Luo et al., 2025b). This access turns agent mistakes into severe consequences, such as unauthorized data exfiltration or tool misuse that violates safety and security policies (Andriushchenko et al., 2025; Debenedetti et al., 2024; Kim et al., 2026a). To prevent such failures, agent guardrails serve as runtime enforcement layers that inspect agents' actions and their relevant context before execution, and decide whether the action should be allowed or refused. Because many agent actions are irreversible once taken, guardrails in high-stakes settings should provide reliable and consistent enforcement of safety and security requirements, with decisions that can be inspected and audited (Christodorescu et al., 2026; Tsai and Bagdasarian, 2025; Wang et al., 2025). At the same time, safety and security policies are rarely completely specified before deployment. New failure modes can emerge as agents encounter new application-specific requirements, changing user behaviors, and previously unseen attacks (Choi et al., 2026b; Kim et al., 2026b; Luo et al., 2025c). A practical lifelong guardrail must therefore satisfy two requirements: it should provide reliable and auditable enforcement, while continually adapting to newly observed risks.

Existing guardrail approaches can generally be classified into two types: neural guardrails and formal guardrails, but each satisfies only one of these requirements. Neural guardrails include using

Corresponding author(s): Duy Nguyen: duykng@cs.unc.edu and Long T. Le: longtle@google.com

  • This work was done while Duy Nguyen was a Student Researcher at Google Cloud AI Research.

Figure

Figure 1 | Motivation for evolving formal policy. Static formal policy cannot adapt. Across a sequence of deployment tasks, natural-language memory can accumulate ambiguous or conflicting guidance and overgeneralize from feedback, causing regression on previously correct behavior. In contrast, VEPA represents policy as executable symbolic rules, verifies new rules for conflict-freedom, and preserves previously correct rules while adapting to newly observed cases.

static LLMs as content classifiers (Inan et al., 2023; Rebedea et al., 2023; Zeng et al., 2024) or agent-level monitors to reason about agent trajectories (Chennabasappa et al., 2025; Liu et al., 2025). More recent memory-based adaptive approaches (Choi et al., 2026a,b; Kim et al., 2026b; Liu et al., 2026; Luo et al., 2025c) accumulate and refine textual safety memories from agent experience, allowing guardrails to adapt to newly observed risks during deployment. However, because of the stochastic nature of LLMs, both the guardrail decisions and the generated policies are non-deterministic and non-verifiable. As a result, the policies can be ambiguous, contradict themselves, and regress on risks they previously handled correctly when adapting (Shao et al., 2026; Zhao et al., 2026) (Fig. 1). Conversely, formal or symbolic guardrails encode safety and security requirements as structured or executable policies that can be checked at runtime (Hong et al., 2026; Miculicich et al., 2025; Palumbo et al., 2026; Shi et al., 2025; Tsai and Bagdasarian, 2025; Wang et al., 2025). These approaches provide a clearer enforcement boundary and, for systems with deterministic rule execution, reproducible decisions under the same policy-relevant state. However, many formal guardrails require manual translation of safety and security specifications into executable policies (Hong et al., 2026), which can require substantial human effort. Moreover, they often treat the formal policy as fixed before deployment, with limited mechanisms for revising it from newly observed deployment feedback (Chen et al., 2025; Palumbo et al., 2026). As a result, they can struggle to incorporate new risks and requirements that emerge only after deployment.

To bridge this gap, we propose VEPA (Verified Evolving Policy for Agent Guardrails), a framework for verified evolution of formal agent guardrails. Our key design separates generation, verification, and authority, allowing LLMs to adapt the policy without directly controlling enforcement. Agent traces are parsed into typed events, over which executable symbolic rules produce allow-or-refuse decisions. During deployment, VEPA uses feedback to balance repairing newly observed failures against preserving previously correct behavior. We formulate this as a constrained multi-objective problem: an LLM proposes policy patches, while a deterministic verifier admits only structurally valid, conflict-free candidates. Because structural verification alone does not ensure that a new rule will generalize to future events, we introduce an evidence-aware authority layer that allows a verified rule to affect deployment only after accumulating sufficient supporting evidence and revokes its authority when later feedback contradicts it. Thus, VEPA enables continual policy adaptation while restricting deployment authority to verified and empirically supported symbolic rules. Empirically, we evaluate VEPA on ASSEBench-Safety, ASSEBench-Security (Luo et al., 2025a), and ATBench (Li et al., 2026) under online deployment. VEPA achieves the strongest F1 across all three benchmarks on events covered by its active policy compared to LLM-only and adaptive natural-language-memory guardrails (Kim et al., 2026b; Luo et al., 2025c). These advantages persist under mixed streams with shifting risk types, noisy feedback, longer deployments, and alternative LLMs.

Contributions. In summary, we make the following contributions:

• To our knowledge, we are the first to study lifelong evolution of formal agent guardrails from deployment feedback. Unlike prior adaptive guardrails that evolve natural-language memories and formal guardrails that typically rely on fixed or task-specific policies, VEPA continually updates an executable symbolic policy with deterministic enforcement over post-parsing typed agent events.

• We introduce a new formulation of formal-policy evolution as a constrained multi-objective problem that balances failure repair against regression avoidance. Unlike prior policy-generation or memory-update approaches, VEPA combines LLM-guided archive-based Pareto search with deterministic structural and conflict verification and an evidence-aware authority mechanism.

• We demonstrate across three agent safety and security benchmarks that VEPA consistently outperforms other guardrail baselines while progressively expanding the scope of formal enforcement, with gains that remain robust across challenging deployment conditions and different LLMs.