SHE: Trajectory-driven Safety Harness Evolution for LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
The safety of large language model (LLM) agents depends not only on model weights but also on the agent harness that manages context, memory, tools, permissions, and runtime control. Existing safety mechanisms often treat the harness as a fixed deployment artifact, limiting their ability to evolve with emerging risks. Moreover, coupled functions across harness components obscure safety responsibility attribution, making localized evolution difficult. We propose Safety Harness Evolution (SHE), a framework that learns evolving safe boundaries from rollout trajectories. SHE decomposes the harness into four artifacts with explicit safety responsibilities, including the System Prompt, Rule Bank, Safety Memory, and Tool Policy, defining clear functional boundaries for localized evolution. Based on this decomposition, SHE introduces an attribution-guided evolution loop that converts trajectory failures into structured diagnoses, learns artifact-specific boundary refinements, and selects evolved harnesses through safety-utility validation. Experiments on Agent-SafetyBench demonstrate that SHE effectively enhances safety through harness evolution, achieving a 3.1x ASR reduction compared with static SafeHarness, while also improving benign utility. The evolved harness further generalizes to unseen risks on the held-out AgentHarm benchmark and transfers across agent models without additional evolution.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 29 of its 40 references that are in the map. First posted on arXiv 10 Aug 2026.
Builds on
29 of 40 references.
Closest ancestors · 12
Same direction, newest first
- 2026AgentGuard: An Attribute-Based Access Control Framework for Tool-Use LLM-Based Agent27 May
- 2026SafeHarbor: Defining Precise Decision Boundaries via Hierarchical Memory-Augmented Guardrail for LLM Agent Safety7 May
- 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deployment15 Apr
- 2026ClawGuard: A Runtime Security Framework for Tool-Augmented LLM Agents Against Indirect Prompt Injection13 Apr
- 2026ATBench: A Diverse and Realistic Agent Trajectory Benchmark for Safety Evaluation and Diagnosis2 Apr
- 2026AgentDoG: A Diagnostic Guardrail Framework for AI Agent Safety and Security26 Jan
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback15 Jan
- 2025LlamaFirewall: An open source guardrail system for building secure AI agents6 May
- 2025Progent: Securing AI Agents with Privilege Control16 Apr
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
- 2024The AI risk repository: A meta-review, database, and taxonomy of risks from artificial intelligence14 Aug
Other references · 17
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
- 2026SkillOpt: Executive Strategy for Self-Evolving Agent Skillscited by 148
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 142
- 2026Self-Harness: Harnesses That Improve Themselvescited by 107
5 more
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 66
- 2026The MiniMax-M2 Series: Mini Activations Unleashing Max Real-World Intelligencecited by 61
- 2025EvoTest: Evolutionary Test-Time Learning for Self-Improving Agentic Systemscited by 37
- 2026ABSTRAL: Automatic Design of Multi-Agent Systems Through Iterative Refinement and Topology Optimizationcited by 6
- 2026Benchmarking Safety Risks of Knowledge-Intensive Reasoning under Malicious Knowledge Editingcited by 1
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignmentcited by 6
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agentscited by 3
- 2026Training Agents to Evolve with Their Harness: TaoLive Digital Avatar Agent Technical Reportcited by 1
- 2026SafeCoEvo: Co-Evolving Safety Harnesses and Guards for LLM Agents at Test-Timecited by 1
- 2026Evolutionary Safety of Recursive Self-Improving AI: Taxonomy, Risk Discovery, and Evaluationcited by 0
- 2026Compositional Safety Failures in Harness Evolution: Identification and Runtime Monitoringcited by 0
- 2026SafeCoEvo: Co-Evolving Safety Harnesses and Guards for LLM Agents at Test-Time29 Sep 2026
- 2026Compositional Safety Failures in Harness Evolution: Identification and Runtime Monitoring27 Sep 2026
- 2026Evolutionary Safety of Recursive Self-Improving AI: Taxonomy, Risk Discovery, and Evaluation25 Sep 2026
- 2026Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents10 Sep 2026
- 2026SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignment2 Sep 2026
- 2026Training Agents to Evolve with Their Harness: TaoLive Digital Avatar Agent Technical Report16 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026EvoSafeHarness: Evolving Model- and Domain-Specific Harnesses for Securing Agents
- 2026HERA: Harness-Environment Co-Evolution for Reliable Agentic Abstention
- 2026HARDE: Optimizing Agent Harnesses for Runtime Risk Detection and Execution Control
- 2026S3: Improving Agent Safety through Multi-Stage Defense
- 2025AgentAlign: Navigating Safety Alignment in the Shift from Informative to Agentic Large Language Models
- 2026AutoSpec: Safety Rule Evolution for LLM Agents via Inductive Logic Programming
- 2026HarnessRisk: A Lifecycle-Oriented Benchmark for Agent Harness Safety
- 2026Risky-Bench: Probing Agentic Safety Risks under Real-World Deployment