ActGov: Using policy constraints to validate tool actions of governed LLM agentsActGov: Governing LLM Agent Actions via Policy-Constrained Validation
ActGov intercepts indirect prompt injection before tool calls using finite two-dimensional records and offline Z3-validated policies; on the AgentDojo test set, ASR is 0.000 for all four models.
Indirect prompt injection (IPI): the initial user instruction is trusted; the attacker injects content through downstream tool observations and induces the LLM to propose unauthorized actions; cannot modify the trusted user task or the ActGov execution layer (tool specifications and deployed policies). External effects must first pass pre-execution checks.
- When LLM agents execute long-horizon processes through external tools, untrusted tool outputs may be treated as user intent, leading to unauthorized actions. Existing isolation, static plans, or policies struggle to adapt to dynamic branching and to provide verifiable guarantees on scalable tool ecosystems.
- ActGov maps runtime context to a finite two-dimensional record space, offline uses an LLM to iteratively propose three-layer policies based on tool specifications, benign trajectories, and attack failure traces, and uses Z3 for counterexample checking on safety assertions, freezing after UNSAT. At runtime, only deterministic policy decisions are made; tools are executed only after passing.
- On unseen test splits of AgentDojo and AgentDyn, relative to no defense and CaMeL, Progent, DRIFT, ACE, the authors state ActGov lowers indirect prompt injection ASR and preserves utility. On AgentDojo, ASR across four models is 0.000; under cross-domain transfer, ASR remains 0.000, but utility drops.
- The authors state validation is limited to specific data splits, and preserving utility across unseen tools and domains remains future work. The main experimental policy was generated by GPT-5.5 through 10 rounds plus human review; the 5-round automatic loop without HITL was tested only on AgentDyn.
- Evaluated models
- Qwen3.6-flashMiniMax-M2.5DeepSeek-v4-proGPT-4o mini
- Benchmarks
- AgentDojoAgentDyn
- Metrics
- Clean UtilityAttacked UtilityASR
ActGov is a runtime execution framework that validates each tool action proposed by the LLM before it has external impact. It is based on a unified semantic model of authorization, actions, runtime context, and safety constraints: ActGov-Policy iteratively builds a policy set from tool specifications, benign tasks, and observed failure trajectories, verifying each update with SMT-based counterexample checking; ActGov-Runtime abstracts each tool call into a finite policy record at runtime, and only allows the call if it is within the task-scoped authorization boundary and satisfies all applicable policies. The authors evaluate on AgentDojo and AgentDyn benchmarks across multiple models and attack configurations, and state that ActGov consistently reduces the success rate of indirect prompt injection attacks while maintaining task utility, clearly outperforming existing defenses, and does not rely on the underlying LLM to correctly identify malicious instructions.
Paper analysis
What problem does this paper attempt to solve?
In dynamic tool flows, untrusted observations can drive unauthorized actions, while existing defenses lack verifiable per-action authorization.
For LLM agents in long-horizon, dynamically branching tool calls, how can fine-grained authorization be given to each proposed action without relying on the model to identify malicious instructions on its own, while preserving task utility.
- Scenario: the authors state that LLMs have shifted from text generation to agents that can plan, call tools, and execute multi-step actions across resources such as email, calendars, file systems, code repositories, and financial accounts. Model outputs can directly trigger high-impact operations such as modification, deletion, and authorization; untrusted external content may be treated as user intent, thereby executing unauthorized actions.
- Existing shortcomings: the authors summarize three points. First, a unified semantic framework is lacking; defenses may treat untrusted content as an authorization source or fail to recognize unauthorized paths. Second, predefined plans, expected tool trajectories, or static parameter checks struggle to follow intermediate outputs and dynamic branching, either over-restricting legitimate adaptation or failing when assumptions are violated. Third, as the tool ecosystem expands, hand-written policies are hard to maintain; automatically generated policies or permissions lack mechanisms to detect omissions, conflicts, or unintended permissions before deployment. The authors state that formal methods such as VeriGuard often verify policy logic separately from the concrete runtime states the agent encounters.
- Core design: map unstructured execution context into a finite record space so that offline formal verification and runtime pre-execution decisions share the same abstraction; the LLM only performs record extraction and policy proposal, while authorization is deterministically given by verified policies.
- Threat model:
- Goal and entry point: indirect prompt injection (IPI). The initial user instruction is trusted; attacker-controlled content enters through downstream tool observations and induces the LLM to propose unauthorized actions.
- Attacker capabilities: can control external content and manipulate action proposals; cannot modify the trusted user task or the ActGov execution layer (including tool specifications and deployed policies).
- System assumption: any action must pass ActGov's pre-execution checks before producing external effects.
- Victim system: LLM-based tool-calling agents; the defense sits between the agent and the external tool interface.
- Proposed in this paper: ActGov, comprising offline ActGov-Policy (policy generation, Z3 verification, and iteration) and online ActGov-Runtime (context abstraction and policy checking). The authors state it reduces IPI success rate on AgentDojo and AgentDyn while preserving task utility.
What related research exists?
Related work is divided into formal policy defenses and structural/execution-layer defenses; ActGov emphasizes sharing a finite record and solving offline.
In the introduction and Related Work, the paper divides existing defenses into two categories and names several system-level baselines.
Formal and policy-based agent defenses
- VeriGuard (Miculicich et al. 2025) — translates explicit safety requirements and agent specifications into executable policy code, and formally verifies before runtime execution that the implementation satisfies the corresponding preconditions and postconditions. It was not included in evaluation in the experiments because its source code was not public at the time.
- Progent (Shi et al. 2025a) — aimed at least privilege, represents the currently allowed space of tool calls using symbolic rules over tool names and parameters, and uses SMT to determine whether each policy update narrows or expands that space.
- The authors state that the published descriptions of the two do not provide evidence of adopting a shared, typed runtime context abstraction that treats task permissions, parameter provenance, target binding, and execution history as first-class factors for both verification and execution.
Structural defenses and execution-layer analysis
- CaMeL (Debenedetti et al. 2025) and ACE (Li et al. 2026a) — establish trusted control flow or abstract plan boundaries and enforce information flow and capability constraints.
- Trajectory-based methods (Li et al. 2026b; Wang et al. 2025; Weng et al. 2026) — use checks for deviation from a predetermined trajectory, or reconstruct execution trajectories as dependency and impact graphs to analyze runtime behavior. The authors state that such structural defenses are strongly isolated, but precommitted plans and control flow boundaries may be overly conservative when legitimate goals must be determined by runtime observations; trajectory analysis may require continuous online reasoning over evolving execution states.
Prompt-level and other defenses (introduction)
- Prompt-level source marking and injection filtering (Hines et al. 2024; Meta 2025; Shi et al. 2025b), as well as information flow and capability separation (Wu, Cecchetti, and Xiao 2024; Debenedetti et al. 2025), execution isolation or structured plans (Wu et al. 2024; Li et al. 2026a). The authors state that these methods improve agent safety but remain fragile and hard to scale in dynamic, open tool ecosystems.
Baseline methods and benchmarks
- Baselines: no defense, and system-level defenses CaMeL, Progent, DRIFT (Li et al. 2026b, dynamic validation and trajectory isolation), and ACE.
- Benchmarks: AgentDojo (Debenedetti et al. 2024) and AgentDyn (Li et al. 2026c).
The authors position ActGov as: the agent can still adapt plans based on runtime observations, but each candidate tool call is deterministically authorized against a verified policy over a finite semantic record space, thereby avoiding online SMT and reducing the delegation of final safety decisions to the agent LLM.
How does the paper address this problem?
ActGov uses a two-dimensional finite record to connect offline Z3 policy evolution with runtime deterministic per-action authorization.
ActGov separates action intent from execution permission: the agent can freely propose candidate tool calls, but they are not forwarded to external tools until validation passes. Figure 1 is divided into ActGov-Policy (policy generation and iteration) and ActGov-Runtime (context abstraction and policy checking). Both share the same formal semantics; the LLM only converts natural language into bounded records or proposed policies, with authorization performed by a deterministic interpreter.
Problem Setting and Formalization
- At step si, the LLM observes execution history Hi and proposes candidate tool call ci. ci may be influenced by untrusted external content or model hallucination. ActGov does not directly evaluate the entire unstructured history; instead, it abstracts relevant state from Hi and ci into a finite runtime record ri ∈ R.
- Evaluation function V: R × P → {allow, deny} gives verdict vi; state transition T updates history with ci and vi. External tools execute if and only if vi = allowed. The protected agent is written as a finite state machine M = (H, C, R, P, V, T).
- Governance goal: Reduce the unpredictability of leaving safety decisions to the LLM. The LLM only extracts predefined boolean or categorical values (e.g., whether a parameter comes from an untrusted source), and authorization logic is left to a deterministic interpreter.
Orthogonal Two-Dimensional Record Space
- R is organized along formation hierarchy and semantic scope. The formation axis has three levels: L1 Deterministic (computed directly from explicit structured system state), L2 Bounded Semantic (LLM acts only as a semantic parser, mapping unstructured text to a finite value domain), L3 Composed (combining L1/L2 via boolean logic to capture compositional or temporal dependencies).
- The semantic axis has seven scopes: action, permission, parameter, history, binding, external, domain, describing the candidate action, task baseline permission, parameter source and role, execution history, whether intent and actual target align, security attributes of external destinations, and the operational phase of the task. Table 1 gives an example: pending_obligation belongs to L1 and History, indicating whether there are still unresolved user approval requirements in the trajectory.
- Records abstract concrete resources and their sources into predefined finite values, allowing policies to generalize across different resource identifiers. The authors state that fixed patterns and finite value domains prevent adversarial instructions from directly influencing the final policy evaluation.
Three-Layer Policies and Validation Gate Evolution
- Deployed policy P = PTP ∪ PHI ∪ PPO. Task-Permission (PTP) binds trusted user tasks to the minimal tools and resources needed to complete them, forming a baseline boundary perm; actions outside the boundary are blocked. Hard-Invariant (PHI) encodes global safety properties, such as blocking outbound network actions derived from untrusted injected content, independent of the current task scope. Procedural-Obligation (PPO) handles conditions beyond the agent's autonomous processing authority, such as weak goal binding or uncertain parameter sources; they are conditional rules that allow execution only after specific prerequisites are met.
- ActGov-Policy iteratively drafts rules using three types of input: tool specifications (capabilities and risk constraints), benign task trajectories (to discover overly strict rules), and observed attack failures (to discover missing safety conditions). The LLM is only a proposer; candidate rules are deployed after formal checking and administrator confirmation, and after convergence rules are given to the administrator for confirmation.
- Z3 searches the finite record domain for assignments that satisfy policy semantics Psem but violate predefined safety assertions Asec. The paper gives an existential query: exists r, v such that DomainR(r) ∧ Psem(r, v) ∧ ¬Asec(r, v). SAT exposes policy gaps or conflicts and triggers refinement; deployment occurs only when all queries are UNSAT. The authors state this mathematically guarantees that updated policies preserve predefined safety invariants, and solving occurs only in the preparation phase. The main experiment uses GPT-5.5 as the policy proposer, with 10 refinement rounds and human-in-the-loop (HITL) review, then freezes the policy. The appendix gives the full prompts for policy generation and iteration; controlled ablations use fixed templates, while in the main experiment the authors adjust refinement prompts based on development split feedback.
Runtime Execution
- ActGov-Runtime sits between the agent LLM and external tools. It intercepts ci, instantiates record ri = αR(τ, perm, Hi, ci) according to the pattern, then evaluates PHI and PPO. An action is allowed if and only if it is within perm and does not violate safety policies.
- The LLM is not used for end-to-end safety judgment, only as an isolated feature extractor (e.g., parameter source classification). Expensive Z3 remains offline; runtime only does deterministic matching against frozen policies. Appendix Table 9 lists an executable rule catalog, annotated by layer with deny, approval, or escalate, and indicates whether each rule is enabled in AgentDyn or AgentDojo policy packs.
Success Determination
- Uses AgentDojo and AgentDyn's native user goal and attacker goal scorers. Clean Utility is the proportion of unattacked user tasks completed successfully; Attacked Utility is the proportion of attacked executions that still complete the original user task; ASR is the proportion of attacked executions where the attacker's specific goal is achieved. The authors state that only reducing ASR by blocking all executions yields zero utility, so ASR reduction must be viewed alongside utility.
What experiments did the paper conduct?
Across four models, ActGov reduces test-set ASR to at most 0.007, with a clear utility drop under cross-domain transfer.
Experimental Setup
- Research questions: RQ1 whether ASR can be reduced without relying on the underlying LLM to identify malicious instructions and outperform system-level defenses; RQ2 whether task completion rates are maintained in benign and attacked executions; RQ3 how policy generation LLM and training data size affect effectiveness and utility.
- Agent backends under test: Qwen3.6-flash, MiniMax-M2.5, DeepSeek-v4-pro, GPT-4o mini. The main experiment's policy proposer is GPT-5.5.
- Benchmarks: AgentDojo contains multi-step tasks in workspace, banking, travel, Slack, etc., with attacks injected into tool observations such as emails and web pages, totaling 629 safety test cases (user tasks paired with compatible injection tasks). AgentDyn contains dynamic open tasks and third-party instructions, with 60 user tasks and 28 injection tasks, forming 560 safety test cases.
- Split: Attack pairs from both benchmarks are equally split into training and test. In the main evaluation, the training set is given only to ActGov-Policy; after policy freezing, ActGov and baselines are compared on the unseen test split. The paper reports separately by policy source: policies trained on AgentDyn are evaluated only on AgentDyn test split, similarly for AgentDojo.
- Baselines: No defense, CaMeL, Progent, DRIFT, ACE. CaMeL is rewritten as a guarded pipeline with native scorers retained; DRIFT uses the official evaluation process and reports all completed guard runs; ACE uses native scorers. VeriGuard is omitted because its source was not public at the time.
- Metrics: Clean Utility, Attacked Utility, ASR, defined in question 3. The paper does not report number of repetitions, statistical significance tests, or the specific number of items in each test split.
Main Results
Main results come from Table 2 (AgentDyn test split) and Table 3 (AgentDojo test split). In the table, Clean and Attacked are utilities, higher is better; ASR lower is better.
Swipe horizontally to read the table
Model Benchmark Method Clean Attacked ASR Qwen3.6-flash AgentDyn No defense / ActGov 0.667 / 0.667 0.650 / 0.586 0.046 / 0.004 MiniMax-M2.5 AgentDyn No defense / ActGov 0.650 / 0.617 0.625 / 0.546 0.036 / 0.004 DeepSeek-v4-pro AgentDyn No defense / ActGov 0.767 / 0.600 0.729 / 0.511 0.086 / 0.007 GPT-4o mini AgentDyn No defense / ActGov 0.467 / 0.433 0.414 / 0.343 0.111 / 0.007 Qwen3.6-flash AgentDojo No defense / ActGov 0.857 / 0.714 0.857 / 0.673 0.069 / 0.000 MiniMax-M2.5 AgentDojo No defense / ActGov 0.857 / 0.735 0.857 / 0.700 0.031 / 0.000 DeepSeek-v4-pro AgentDojo No defense / ActGov 0.878 / 0.755 0.839 / 0.713 0.061 / 0.000 GPT-4o mini AgentDojo No defense / ActGov 0.653 / 0.612 0.690 / 0.606 0.036 / 0.000 - The authors state that on AgentDyn, ActGov limits ASR to at most 0.007 across the four models while retaining competitive utility. For example, Qwen3.6-flash's Clean / Attacked is 0.667 / 0.586, compared to 0.667 / 0.650 without defense.
- The authors state that on AgentDojo, ActGov achieves ASR of 0.000 for all four backends; Qwen3.6-flash and MiniMax-M2.5 have utility in a higher tier, DeepSeek-v4-pro and GPT-4o mini show competitive performance. In Table 3, ActGov's Clean is lower than no defense for the same model.
- The authors state that CaMeL and ACE trade low ASR for structural restrictions but suffer large utility losses, especially on AgentDyn: in Table 2, both have Clean, Attacked, and ASR all 0.000 across the four models. Progent and DRIFT perform better on the more structured AgentDojo, worsen on AgentDyn with longer trajectories and larger tool sets, and vary with backend. The authors attribute ActGov's stability to the LLM doing only bounded record extraction, with authorization computed deterministically by deployed policies.
Other baselines in the same tables (AgentDyn / AgentDojo, ASR): On Qwen3.6-flash, Progent is 0.011 / 0.004, DRIFT is 0.000 / 0.004, CaMeL is 0.000 / 0.002, ACE is 0.000 / 0.000. On DeepSeek-v4-pro, Progent is 0.014 / 0.008, DRIFT is 0.039 / 0.063. On AgentDojo, DeepSeek-v4-pro's DRIFT has ASR 0.063, higher than no defense's 0.061, and Attacked Utility 0.753, lower than no defense's 0.839. On AgentDojo, GPT-4o mini's DRIFT has Clean 0.674, higher than no defense's 0.653, ASR 0.015, while ActGov has ASR 0.000 and Clean 0.612.
Policy Generator and Data Size (RQ3)
- What was tested: Removed HITL, limited policy generation to fully automatic 5 rounds on AgentDyn. One group used the same prompts on the same fixed 50% subset of the training set with different LLMs generating policies, evaluation backend fixed to DeepSeek-v4-pro, evaluation on the full test split. Another group used DeepSeek-v4-pro as both generator and agent backend, with training data at 25% or 50% of the training split.
- Results (Table 4): On the 50% subset, Qwen3.6-flash, MiniMax-M2.5, DeepSeek-v4-pro as generators give ASR 0.007, 0.004, 0.007 respectively; Clean / Attacked are 0.317 / 0.271, 0.283 / 0.232, 0.533 / 0.429. When training proportion drops from 50% to 25%, Clean goes from 0.533 to 0.500, Attacked from 0.429 to 0.432, ASR remains 0.007.
- Authors' interpretation: All generators achieve near-zero ASR (≤ 0.007), but utility varies greatly; DeepSeek-v4-pro has the highest Clean and Attacked, Qwen3.6-flash and MiniMax-M2.5 produce stricter policies. The authors believe both the generator LLM's capability and the coverage of the training split affect policy generation and iteration. Clean in these automatic settings is lower than ActGov with GPT-5.5 and HITL for the same evaluation backend in Table 2 (0.600).
Cross-Domain Transfer
- What was tested: Table 5 swaps policy sources on DeepSeek-v4-pro. AgentDyn test: no defense, in-domain AgentDyn policy, AgentDojo policy. AgentDojo test symmetric.
- Results: When transferred to AgentDyn, AgentDojo policy's Clean / Attacked / ASR is 0.100 / 0.075 / 0.000, in-domain is 0.600 / 0.511 / 0.007, no defense is 0.767 / 0.729 / 0.086. When transferred to AgentDojo, AgentDyn policy is 0.224 / 0.302 / 0.000, in-domain is 0.755 / 0.713 / 0.000, no defense is 0.878 / 0.839 / 0.061.
- Authors' interpretation: The authors state that on out-of-domain tasks, policies maintain ASR of 0.000 by defaulting to more conservative restrictions; unfamiliar tasks' safety boundaries cause utility loss. The authors write no defense as a theoretical upper bound on utility and state this is consistent with the premise that policy refinement requires sufficient coverage of benign tasks and attack scenarios.
Other Ablations and Analyses
- The paper does not report separate ablation numbers for individual rules, record levels, or the three policy layers; Table 9 only indicates whether rules are enabled in Dyn / Dojo policy packs, without giving per-rule utility or ASR.
- RQ3 only compares three policy generation LLMs and two training proportions (25%, 50%), with evaluation backend fixed to DeepSeek-v4-pro and only on AgentDyn.
- Main experiment uses 10 refinement rounds with HITL; RQ3 uses 5 rounds without HITL. The paper does not report query counts, runtime latency, or Z3 solving time.
- On AgentDyn, ActGov's Clean drop relative to no defense varies across the four models: Qwen3.6-flash stays at 0.667, DeepSeek-v4-pro drops from 0.767 to 0.600.
- In Table 2, DRIFT on Qwen3.6-flash has ASR 0.000, lower than ActGov's 0.004, but its Clean is 0.033 and Attacked 0.046. CaMeL and ACE on AgentDyn have ASR 0.000 and utility also 0.000.
What are some points that can be further explored?
The authors note that current validation is limited to specific splits; generalization across unseen tools and domains while preserving utility remains to be done.
Limitations and future directions noted by the authors
- Cross-domain generalization (Limitations and Future Work): in-domain evaluation is effective and preserves utility, but policy generalization is a limitation. The authors state that current empirical validation is limited to learning and refining policies on specific dataset splits.
- Open world (same section): extending ActGov to open-world policy generalization and preserving utility on previously unseen tools and domains remains an important direction for future work.
- Coverage premise (same section): the authors state that, as a framework prioritizing strict safety, its foundational premise is that the policy refinement component needs exposure to a sufficiently comprehensive set of benign tasks and attack scenarios to synthesize the corresponding rule packages. Table 5 is used to quantify out-of-domain utility degradation.
- The conclusion section restates evaluation results and framework positioning, without a separate standalone limitations list. The paper does not list additional future work on statistical tests, human agreement, or runtime overhead beyond Limitations.
Experimental coverage
- The main comparison agent backends are Qwen3.6-flash, MiniMax-M2.5, DeepSeek-v4-pro, and GPT-4o mini; benchmarks are AgentDojo (629 safety test cases) and AgentDyn (60 user tasks, 28 injection tasks, 560 safety test cases), with attack pairs split evenly between training and testing (Experimental Setup).
- The main result policy was generated by GPT-5.5 through 10 rounds of refinement plus HITL, and after freezing was compared only on unseen test splits of the same benchmarks against no defense, CaMeL, Progent, DRIFT, and ACE; VeriGuard was not evaluated because its source code was not public at the time.
- RQ3 removes HITL, uses a 5-round fully automatic loop, compares policy generation LLMs and 25%, 50% training splits only on AgentDyn, with the evaluation backend fixed to DeepSeek-v4-pro (Table 4).
- Cross-domain reports only policy interchange between AgentDojo and AgentDyn on DeepSeek-v4-pro (Table 5). Metrics are Clean Utility, Attacked Utility, and ASR.
- The paper does not report number of repetitions, number of cases per test split, runtime latency, Z3 time, or agreement between review and human scoring; success determination uses the native scorers of the two benchmarks.
Summarize the main content of the paper
ActGov uses offline-verified finite record policies for per-action authorization, reducing IPI ASR on test sets.
ActGov is a runtime authorization framework for tool-calling agents, used to intercept unauthorized actions driven by indirect prompt injection while preserving task completion as much as possible.
- Problem: the initial user task is trusted; the attacker injects content through downstream tool observations, inducing the LLM to propose unauthorized tool calls. Predefined plans, static policies, and methods that separate verification from concrete runtime state are either too strict on dynamic branching and extensible tool sets, or cannot guarantee no gaps before deployment.
- Method: execution context is mapped to a finite two-dimensional record (forming hierarchical levels L1–L3, seven semantic scopes). Policies are divided into Task-Permission, Hard-Invariant, and Procedural-Obligation. ActGov-Policy uses an LLM to propose rules based on tool specifications, benign trajectories, and attack failure traces; Z3 searches for assignments violating safety assertions, and after all are UNSAT, the policy is frozen; administrators perform HITL confirmation in the main experiments. ActGov-Runtime performs only deterministic matching; only allowed calls produce external effects.
- Main results: on the AgentDojo test split, ActGov ASR is 0.000 across four agent backends (Table 3), with Clean lower than the same model without defense, e.g., DeepSeek-v4-pro from 0.878 to 0.755. On AgentDyn, ASR is 0.004 to 0.007 (Table 2); Qwen3.6-flash Clean is the same as no defense at 0.667, DeepSeek-v4-pro from 0.767 to 0.600. CaMeL and ACE on AgentDyn have ASR and utility both 0.000.
- Where policies come from: 5-round automatic generation without HITL on AgentDyn with DeepSeek-v4-pro backend has ASR ≤ 0.007, but Clean is at most 0.533 (Table 4), lower than the 0.600 with GPT-5.5 and HITL. Transferring the AgentDojo policy to AgentDyn gives ASR 0.000 and Clean dropping to 0.100 (Table 5).
- Authors' conclusion: the authors believe that per-action, record-based deterministic checks can suppress injected actions without delegating final authorization to the underlying LLM's natural language understanding; they also believe current validation is limited to specific splits, and preserving utility on unseen tools and domains remains future work.