Manuscript Offprint

arXiv:2608.22538

STAGE: Stateful Translation to Agentic Graph Execution with Policy-Scoped Context and Deterministic Control

Mengxi Luo, Changjia Chen, An Cao, Zirong Huang, Wanyi Dai

Abstract

Policy-governed agents must interpret case evidence while following an authorized procedure. We present STAGE, an executable-graph framework that confines model judgment to policy-scoped nodes while placing procedural control in deterministic code. At each node, the model receives task-relevant policy context and returns a typed result, while the coordinator enforces the execution contract. We evaluate STAGE on SOP-Bench Referral Abuse, two τ2\tau^{2}-bench domains, and Smart Dispute, a proprietary banking benchmark. Compared with monolithic full-policy execution, STAGE generally improves task success and repeated-run reliability across workflows of varying procedural complexity. The largest observed gains are concentrated on the deeper Telecom and Smart Dispute workflows. Across models, the Pass 3^{3} gains range from 7.5 to 55.0 percentage points on Telecom and from 57.2 to 65.7 points on Smart Dispute. These results show that combining policy-scoped context with deterministic procedural control can improve the reliability of policy execution.

1 Introduction

Large language models (LLMs) are increasingly deployed as agents that do more than generate text: they interleave reasoning with actions, coordinate with users, and automate multi-turn tasks. Recent work addresses tool use, workflow orchestration, and reliable task completion (Erdogan et al., 2025; Chen et al., 2025). However, these capabilities are necessary but not sufficient for production use.

In regulated and operational settings, agents must follow heterogeneous instructions, such as policies, rules, and manuals. Real-world policies often define long, branching, and multi-stage procedures. A monolithic agent must handle both semantic reasoning and workflow control while tracking relevant rules and procedural state. As context grows, requirements compete with other instructions and observations (Liu et al., 2024), increasing the risk that steps will be omitted or misrouted and that unvalidated judgments will propagate. The challenge is therefore not only to reason correctly, but also to reliably follow the authorized procedure as context and complexity grow.

We introduce STAGE, a graph-structured framework for the reliable execution of complex policies. STAGE separates local semantic reasoning from execution control through graph-structured execution, as illustrated in Figure 1. It represents a policy as explicit action and decision nodes connected by valid transitions. Each node receives only the context, state, and tools required for its local responsibility. In short, the LLM owns local meaning, while code owns control. The executable graph supports reliable policy execution as context and complexity grow. As a result, STAGE is specifically designed for long, branching, and state-dependent workflows in which procedural correctness cannot be reduced to a single final decision.

Our contributions are threefold. First, we identify procedural complexity, including long dependencies, conditional branching, non-local transitions, and mixed decision and action steps, as a central source of unreliability in policy-following agents. Second, we introduce STAGE, which externalizes policy control into an executable graph with locally scoped nodes and deterministic coordination. Third, we evaluate STAGE against monolithic full-policy execution and use fixed-graph ablations to isolate the effects of policy localization and routing ownership. Our evaluation includes Smart Dispute, an internal industrial workflow, and three public benchmarks. STAGE consistently improves execution reliability, with the largest gains on deeper and more conditional workflows. The same trend appears on the public benchmarks, supporting generalization beyond our deployment.

∗^{*}These authors contributed equally.

Figure

Figure 1: STAGE illustration: STAGE constructs, validates, and freezes an execution graph offline (left), then uses policy-scoped nodes to validate evidence, constrain capabilities, and route decisions online (right).

References (20)