mlsanityData to 7 Oct 2026

Traversal-as-Policy: Log-Distilled Gated Behavior Trees as Externalized, Verifiable Policies for Safe, Robust, and Efficient Agents

arXiv 2603.05517 ↗First posted 30 Jan 2026cs.LG cs.AI cs.CRcited by 5

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Autonomous LLM agents fail because long-horizon policy remains implicit in model weights and transcripts, while safety is retrofitted post hoc. We propose Traversal-as-Policy: distill sandboxed OpenHands execution logs into a single executable Gated Behavior Tree (GBT) and treat tree traversal -- rather than unconstrained generation -- as the control policy whenever a task is in coverage. Each node encodes a state-conditioned action macro mined and merge-checked from successful trajectories; macros implicated by unsafe traces attach deterministic pre-execution gates over structured tool context and bounded history, updated under experience-grounded monotonicity so previously rejected unsafe contexts cannot be re-admitted. At runtime, a lightweight traverser matches the base model's intent to child macros, executes one macro at a time under global and node-local gating, and when stalled performs risk-aware shortest-path recovery to a feasible success leaf; the visited path forms a compact spine memory that replaces transcript replay. Evaluated in a unified OpenHands sandbox on 15+ software, web, reasoning, and safety/security benchmarks, GBT improves success while driving violations toward zero and reducing cost. On SWE-bench Verified (Protocol A, 500 issues), GBT-SE raises success from 34.6% to 73.6%, reduces violations from 2.8% to 0.2%, and cuts token/character usage from 208k/820k to 126k/490k; with the same distilled tree, 8B executors more than double success on SWE-bench Verified (14.0%58.8%) and WebArena (9.1%37.3%).

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 18 of its 23 references that are in the map. First posted on arXiv 30 Jan 2026.

Builds on

18 of 23 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Adversarial Reinforcement Learning for Large Language Model Agent Safety6 Oct
  2. 2025AgentGuard: Runtime Verification of AI Agents28 Sep
  3. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  4. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  5. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct

Other references · 13

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  4. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  5. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
  6. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  7. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
  8. 2023Formally Specifying the High-Level Behavior of LLM-Based Agentscited by 15
  9. 2024BTGenBot: Behavior Tree Generation for Robotic Tasks with Lightweight LLMscited by 12
  10. 2024Enhancing Efficiency of Safe Reinforcement Learning via Sample Manipulationcited by 8
  11. 2025Profile-Aware Maneuvering: A Dynamic Multi-Agent System for Robust GAIA Problem Solving by AWorldcited by 5
  12. 2025Meta-Policy Reflexion: Reusable Reflective Memory and Rule Admissibility for Resource-Efficient LLM Agentcited by 5
1 more
  1. 2025LLM-HBT: Dynamic Behavior Tree Construction for Adaptive Coordination in Heterogeneous Robotscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Environment Steering: Using Data Flow Control to Improve Agent Utility and Safety
  2. 2026LogAct: Enabling Agentic Reliability via Shared Logs
  3. 2026Ghost in the Context: Policy-Carriage Integrity in LLM Agents
  4. 2026Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents
  5. 2026RePolicy: Reinforcement Learning for Safety-Policy Invocation in Agent Safeguards
  6. 2025Building a Foundational Guardrail for General Agentic Systems via Synthetic Data
  7. 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback
  8. 2025VIGIL: A Reflective Runtime for Self-Healing Agents