Traversal-as-Policy: Log-Distilled Gated Behavior Trees as Externalized, Verifiable Policies for Safe, Robust, and Efficient Agents
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
- 2025Adversarial Reinforcement Learning for Large Language Model Agent Safety6 Oct
- 2025AgentGuard: Runtime Verification of AI Agents28 Sep
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
Other references · 13
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2023Formally Specifying the High-Level Behavior of LLM-Based Agentscited by 15
- 2024BTGenBot: Behavior Tree Generation for Robotic Tasks with Lightweight LLMscited by 12
- 2024Enhancing Efficiency of Safe Reinforcement Learning via Sample Manipulationcited by 8
- 2025Profile-Aware Maneuvering: A Dynamic Multi-Agent System for Robust GAIA Problem Solving by AWorldcited by 5
- 2025Meta-Policy Reflexion: Reusable Reflective Memory and Rule Admissibility for Resource-Efficient LLM Agentcited by 5
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Let the Abyss Stare Back Adaptive Falsification for Autonomous Scientific Discoverycited by 3
- 2026AdaptFuse: Training-Free Sequential Preference Learning via Externalized Bayesian Inferencecited by 2
- 2026CAPS: Cascaded Adaptive Pairwise Selection for Efficient Parallel Reasoningcited by 1
- 2026PathCal: State-Aware Reflection-Marker Calibration for Efficient Reasoningcited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
- 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agents30 Sep 2026
- 2026PathCal: State-Aware Reflection-Marker Calibration for Efficient Reasoning21 May 2026
- 2026CAPS: Cascaded Adaptive Pairwise Selection for Efficient Parallel Reasoning15 May 2026
- 2026AdaptFuse: Training-Free Sequential Preference Learning via Externalized Bayesian Inference5 Apr 2026
- 2026Let the Abyss Stare Back Adaptive Falsification for Autonomous Scientific Discovery30 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026Environment Steering: Using Data Flow Control to Improve Agent Utility and Safety
- 2026LogAct: Enabling Agentic Reliability via Shared Logs
- 2026Ghost in the Context: Policy-Carriage Integrity in LLM Agents
- 2026Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents
- 2026RePolicy: Reinforcement Learning for Safety-Policy Invocation in Agent Safeguards
- 2025Building a Foundational Guardrail for General Agentic Systems via Synthetic Data
- 2026ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback
- 2025VIGIL: A Reflective Runtime for Self-Healing Agents