AgentPolicyForge: From Executable Environments to Policy Benchmarks and Adaptive Guards
Not on the map. Why?
Abstract (arXiv)
Customized agent deployments define policies over tools, resources, and execution conditions. Providing these policies in the task agent's prompt does not reliably prevent violations. Training a guard requires examples of tool calls that comply with or violate those policies. We introduce AgentPolicyForge, a framework that uses executable environments to construct policy benchmarks and iteratively train policy guards. With this framework, we construct PolicyGym, a dataset across ten policy families using 698 scenarios for training data generation and 254 separate held-out scenarios for human-reviewed test sets. Tool calls are executed and their outcomes recorded to help determine whether they comply with the policy. Every violating case uses a permitted tool, requiring checks of arguments, resources, and context rather than tool identity alone. The case construction process supports iterative guard training: an attacker generates requests using retrieved strategies, and the guard is fine-tuned on balanced, environment-verified examples. Training improves policy enforcement even with a fixed archive. Updating the archive further reduces in-domain attack success compared with keeping it fixed. We compare policy-aware task agent self-regulation with a trained policy guard. On PolicyGym, the final guard-based configuration achieves a 40-44% relative reduction in attack success rate and fewer benign rejections than policy prompting alone.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 15 of its 21 references that are in the map. Submitted 20 Oct 2026.
Builds on
15 of 21 references.
References · 15
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,506
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 637
- 2015Illuminating search spaces by mapping elitescited by 470
- 2024Rainbow Teaming: Open-Ended Generation of Diverse Adversarial Promptscited by 240
- 2026Agent World Model: Infinity Synthetic Environments for Agentic Reinforcement Learningcited by 87
- 2025Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Modelscited by 46
- 2026MAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safetycited by 27
- 2024Toward Optimal LLM Alignments Using Two-Player Gamescited by 16
- 2025The Alignment Waltz: Jointly Training Agents to Collaborate for Safetycited by 12
- 2025AEGIS : Automated Co-Evolutionary Framework for Guarding Prompt Injections Schemacited by 5
Built on by
Not cited yet.