Manuscript Offprint

arXiv:2611.02516

Cumulative and Audited Guardrail Tool Evolution for LLM Agent Safety

Xiao Yang, Aishan Liu, Siyuan Liang, Zonghao Ying, Le Wang, Jiakai Wang, Xianglong Liu, Dacheng Tao

Abstract

Large language model (LLM) agents increasingly operate in open-world environments where safety risks cannot be fully predefined. However, most existing guardrail mechanisms remain static, relying on fixed rules, prompts, or classifiers that generalize poorly to emerging risks. Here we present EVOLVE, a tool-level self-evolving defense framework that formulates agent security as a process of cumulative security evolution. Inspired by how human societies transform experiences into transferable protective knowledge, EVOLVE externalizes security knowledge into executable guardrail tools that are continuously inherited, independently audited, and iteratively refined through lifelong interaction. Across multiple benchmarks, backbone models, and embodied environments, EVOLVE consistently outperforms existing defenses across diverse risk scenarios with +22% average F1 score. We further validate the framework in real-world robotic and autonomous agent systems. Our results suggest that scalable agent safety may require continuously evolving defense systems rather than static guardrails.

Keywords: self-evolution, agent safety, agentic system

Introduction

"It is not the strongest of the species that survives, nor the most intelligent, but the one most responsive to change."

– Charles Darwin

Large language model (LLM)-driven agents are rapidly emerging as a central pathway toward Artificial General Intelligence (AGI). These agents can invoke tools, execute actions, interact with external environments, and adapt through feedback and memory [1, 2], enabling deployment in high-stakes domains [3–5]. As agents shift from passive language interfaces to active decision-makers in open-world environments, safety failures may cause not only harmful outputs but also real-world consequences such as financial fraud, privacy leakage, unsafe robotic actions, and hazardous autonomous behaviors [6–8]. Ensuring LLM-agent safety and trustworthiness has therefore become a critical challenge.

To mitigate these risks, existing defense frameworks have introduced various forms of safety guardrails, including prompt-based reasoning constraints [9], fine-tuned safety discriminators [10], and rule- or knowledge-driven policy enforcement [11, 12]. Despite their methodological differences, these approaches share a common assumption: that risks can be predefined in advance and mitigated through static protection policies. However, real-world environments are inherently open-ended and continuously evolving. Emerging risks frequently arise outside predefined safety distributions, causing existing defenses to degrade as threat scenarios shift [13]. This reveals a fundamental structural mismatch between dynamic risks and static defenses.

Overcoming this mismatch requires rethinking defense itself. In human societies, resilience does not arise from memorizing every possible threat, but from cumulative adaptive processes that abstract patterns from experience, refine coping strategies, and verify newly acquired knowledge [14–17]. Research in cultural evolution, organizational adaptation, and collective intelligence suggests that robust systems emerge through cycles of exploration, refinement, reuse, and institutional auditing rather than fixed rule preservation [18]. By contrast, most agent defense frameworks remain static, lacking mechanisms that evolve with changing environments. This motivates a central question: can agent defense itself become a self-evolving capability?

Here we present EVOLVE, a self-evolving defense framework for LLM agents that reformulates agent safety as a process of cumulative security evolution through executable guardrail tools, shown in Fig. 1. Inspired by how human societies build resilience to emerging risks, EVOLVE organizes defense into four adaptive stages: generation, which externalizes newly discovered risks into executable guardrail tools; reuse, which retrieves and fuses previously generated tools to accumulate transferable security knowledge; audit, which independently verifies evolved tools before they can participate in future defense processes; and refinement, which iteratively repairs unsafe tools and replans unsafe agent behaviors through feedback. A key insight motivating this design is that self-evolved guardrail tools can themselves harbor vulnerabilities, a failure mode we term Vulnerable Guardrail Tools (VGT), making independent auditing a structural necessity rather than an optional safeguard.

Figure

Fig. 1: Overall framework of EVOLVE. EVOLVE organizes agent defense into generation, reuse, audit, and refinement stages, enabling executable guardrail tools to be generated, fused, verified, and repaired through lifelong interaction.

These stages are instantiated by a set of specialized agents that collectively establish an autonomous closed loop from risk perception to trusted adaptation. Together, EVOLVE enables security knowledge to be accumulated, governed, and continuously improved throughout lifelong interaction, allowing defense systems to evolve alongside changing environments while remaining bounded by verifiable safety constraints.

Extensive experiments across 3 agent safety benchmarks (RJudge [6], ASSEBench [19], AgentHarm [20]) and 4 backbone LLMs (DeepSeek [21], GPT [22], Claude [23], Gemini [24]) demonstrate that EVOLVE consistently outperforms existing defense frameworks largely (+22% average F1 score compared with the runner-up) across open-world risk scenarios. Besides, we further validate EVOLVE in embodied agent scenarios in the AI2THOR environment [25], a 6-DoF robotic arm [26], and a real-world tool-calling agent handling financial operations (OpenClaw [27]), demonstrating that the framework generalizes from text-based benchmarks to real-world deployment. Notably, the framework achieves high rates of guardrail tool reuse and iterative refinement (up to 86%), indicating that security knowledge can accumulate and evolve through interaction rather than remaining fixed after deployment.

By integrating lifelong self-evolution with agent defense, EVOLVE shifts agent security from static policy enforcement toward continuously adaptive protection mechanisms. Our findings suggest that scalable safety for future intelligent agents may depend not on enumerating all possible risks in advance, but on enabling defense systems themselves to expand, audit, and compound their security capabilities through tool-level inheritance.

References (54)