Editor’s introduction
The study assesses VeriWeave Govern, a runtime governance system that checks AI agent actions against versioned policies using typed evidence and applies a fixed decision sequence: deny, then human review, then allow. It evaluates over 60,000 cases across five enterprise domains, showing 0.9888 mean accuracy and zero observed false allows or governance attacks. The system maintains consistency through replayable, tamper-evident audit logs and passes all end-to-end scenarios and concurrency tests. The results indicate strong safety performance under controlled conditions. However, the evidence is limited to synthetic oracle-generated cases, which lack real-world ambiguity, organizational dynamics, or undocumented practices.
Introduction
Large language models (LLMs) are evolving from text generators into agents that reason, call tools, and execute actions. ReAct and Toolformer established influential patterns for interleaving reasoning with environment/API interaction; recent surveys describe increasingly autonomous LLM-based and agentic systems operating over complex goals. This capability shift changes the security question. An incorrect answer is undesirable, but an incorrectly authorized action can deploy software, release data, send external messages, or affect a citizen-facing process.
Conventional authorization provides necessary foundations. RBAC and ABAC govern permissions using roles and attributes; OPA and Cedar externalize policy evaluation into dedicated engines. Agent governance, however, also depends on evidence freshness, conflicting controls, human accountability, unknown actions, and policy evolution. For example, a production deployment can be technically permitted yet still require a current change approval and rollback plan; a high-impact action can possess complete documentation yet remain subject to human review.
This work emphasizes a systems question that is easily obscured when governance is treated only as policy syntax: what information must cross the runtime boundary before an autonomous action is allowed to acquire side effects? VeriWeave answers with a typed contract. The planner supplies an intended operation and context, governed systems supply identity and evidence, a versioned policy bundle supplies constraints, and the governor returns a decision plus reasons that are independently replayable. This separates three concerns that are often conflated: semantic planning, authorization, and organizational accountability.
Design scope and assumptions
VeriWeave governs proposed side effects: tool calls, infrastructure changes, data transfers, external communications, and other actions whose execution can alter enterprise state. Pure reasoning steps can remain inside the planner, but any transition to a protected resource is normalized into the governance request schema. The model assumes that the governance service, policy repository, trusted identity source, cryptographic keys, and authoritative evidence connectors are protected by conventional platform security. Compromise of those roots of trust is outside the benchmark threat model and would require infrastructure controls in addition to the decision logic studied here.
Three design objectives follow. First, safety precedence must be independent of rule order: a prohibition cannot disappear because a permissive rule was evaluated earlier. Second, evidence sufficiency must be typed: ten weak documents should not substitute for one required approved change record. Third, uncertainty must remain explicit: unknown actions, incomplete evidence, or procedural approval requirements should produce review rather than accidental allow. These objectives motivate the tri-state lattice used throughout the implementation.
Integration and execution semantics
The design is intentionally compatible with existing enterprise components. OIDC/identity systems provide workload and tenant claims; OPA/Cedar may serve as predicate-policy backends; ticketing/workflow systems receive review tasks; and SIEM or immutable storage receives signed audit records. The API contract is deliberately narrower than a general natural-language prompt: action, resource, purpose, environment, impact, data classification, external-transfer state, and typed evidence are explicit fields. This reduces ambiguity before policy matching and makes policy coverage measurable.
Execution is fail-closed with respect to governance semantics but not indiscriminately deny-by-default. A malformed request fails API validation, an unknown semantic action becomes review, a matched prohibition becomes deny, and a well-scoped low-risk request may become allow only after its evidence requirements are satisfied. This distinction keeps operational uncertainty visible while avoiding an architecture in which every novel action is either silently permitted or permanently blocked.
Policy bundles are versioned and identified in each response by a policy-set hash. Evidence assessments retain both acceptance state and reasons, allowing downstream reviewers to distinguish missing evidence from low-authority, stale, unsigned, or contradictory evidence. Thus the governance decision remains explainable without asking an LLM to reconstruct the decision after execution.
Policy lifecycle and temporal semantics
Runtime governance is not only a function of request content; it is also a function of when the request was evaluated and which policy bundle was authoritative at that time. VeriWeave therefore treats policy version, evaluation time, and source snapshot as first-class inputs. A policy update may legitimately change a later decision without invalidating the auditability of an earlier one. Historical replay binds the old request to the old policy hash, while live evaluation binds the request to the currently active bundle.
This distinction matters for both engineering and regulatory scenarios. Rollouts can introduce a rule in shadow mode, activate it after review, and later retire it without rewriting history. Likewise, a legal source may be known before a provision becomes applicable; source availability and application date are not interchangeable. The validation artifact records both dimensions so that future-effective cases are not scored as though they were already enforceable at the snapshot date.
Policy evolution also creates a regression-testing obligation. Counterfactual certificates and frozen benchmark cases can be reevaluated against a candidate bundle before promotion. A change is then observable not only as a textual diff but as a decision diff: newly allowed, newly reviewed, and newly denied cases can be inspected before production activation.
Evidence gate and audit integrity
The evidence score and the governance decision therefore serve different roles. The score ranks whether an item is acceptable as evidence under the configured verifier; it does not directly authorize an action. Authorization remains a symbolic consequence of matched rules, typed sufficiency, and precedence. This separation is important when calibration is imperfect: a threshold can be tuned and audited without converting the learned score into an opaque end-to-end permission model.
with optional HMAC signing. Tamper evidence assumes that the chain head or a checkpoint is protected outside the mutable audit store, or is authenticated with an HMAC/signature; a hash chain alone cannot prevent an attacker with full control of the store from rewriting the entire history. Policy hashes and timestamps support historical replay under the policy version that governed the original request.
GovernBench and research questions
GovernBench is a synthetic, oracle-labelled controlled benchmark. The reference experiment uses 30 independent seeds and 2,000 cases per seed (60,000 total) across public administration, healthcare, financial services, software-engineering agents, and enterprise-office agents. We ask whether deterministic governance (RQ1) reduces unsafe allows, (RQ2) resists adversarial evidence/action perturbations, (RQ3) depends on multiple complementary controls, (RQ4) meaningfully discriminates evidence quality, (RQ5) behaves correctly through the real HTTP service, and (RQ6) sustains concurrent service-level load without correctness failures.
Cases include low-risk allows, weak/missing evidence, protected-data exfiltration, high-impact review, policy conflicts, OOD actions, and temporal evolution. Adversarial families include stale evidence, forged-signature metadata, citation laundering, evidence flooding, contradictory evidence, policy-version downgrade, and tool substitution. GASR is unsafe allows divided by attacked cases whose oracle decision is review/deny. Aggregate 95% intervals are computed over seed-level metrics, avoiding the fiction that all 60,000 cases are independent draws from a real deployment.
Threat model and adversarial families
The threat model assumes that the governance service and its trusted configuration are not already compromised. Instead, an agent or upstream workflow can manipulate the proposed operation, destination, contextual attributes, submitted evidence, or requested policy version in an attempt to obtain an unsafe allow. This distinction targets the practical boundary between a stochastic planner and deterministic enforcement rather than host-level compromise.
The adversarial families deliberately test different failure modes. Evidence flooding asks whether quantity can substitute for typed sufficiency; citation laundering places policy-like text inside low-authority material; contradictory evidence tests whether a favorable source masks an unfavorable one; tool substitution changes the surface action while preserving risky side effects. The design goal is not merely high average accuracy but conservative behavior on cases where uncertainty or manipulation should prevent automatic execution.
Statistical treatment and artifact pipeline
Each GovernBench seed is treated as an independent synthetic realization with its own generated cases and fitted evidence calibrator. We aggregate seed-level results and report 95% intervals across seeds rather than pooling all cases as if they were independent real-world observations. Baselines are evaluated on the same realization, which supports paired comparisons at the seed level. For the 150-case human-reviewed set, row-level predictions were frozen before annotation. We report case-level 10,000-sample bootstrap intervals, exact two-sided McNemar tests on paired correctness outcomes, and Holm–Bonferroni correction across comparator tests.
The synthetic study, Docker API check, legal-source audit, frozen comparator predictions, and independent human annotation are deliberately separated until reporting time. This preserves the distinction between controlled oracle behavior, engineering correctness, source consistency, and the human-reviewed reference signal used for the 150-case comparison.
Three execution paths
A useful governance architecture should make qualitatively different control paths explicit. Three cases exercised through the real Docker API illustrate distinct execution paths. The HTTP request passes schema validation, policy matching, evidence verification, decision reduction, audit writing, and response serialization before the benchmark checks the outcome.
Trusted low-risk read. The first case proposes an internal summarization/read action in a test context with low impact. The request carries a current, signed policy reference from an approved policy library with high authority. The allow rule matches, the evidence verifier accepts the policy reference, and no higher-precedence rule matches. The resulting allow is therefore supported by both policy and evidence. This case demonstrates why the evidence gate is not merely a risk score: the same low-risk action without the required reference is downgraded to review, and an outdated/unsigned reference is rejected by evidence quality checks.
Production deployment. The second path separates evidence sufficiency from organizational accountability. A deployment request can carry an approved change ticket, test evidence, and rollback plan and still be routed to a production-change queue. This is intentional. Evidence answers “are the prerequisites documented?”; it does not answer “has an accountable person accepted this production action?” The review state therefore persists even when all required artifacts are valid. This pattern maps naturally to CI/CD, database migration, firewall, identity-platform, and policy-bundle changes where technical automation should not erase four-eyes control.
Fair external-comparator protocol
Comparing an evidence-aware tri-state governor with general policy engines or LLMs requires a protocol that avoids giving one method hidden information. The artifact therefore separates case facts from labels. OPA and Cedar receive normalized structured facts and versioned equivalent policies. A real LLM baseline receives the scenario facts and official-source summaries, but not provisional labels, human-review rationales, prohibition metadata that encodes the answer, or VeriWeave predictions. The same frozen case identifiers are used for every method so correctness outcomes can be compared pairwise.
The comparison should also distinguish engine capability from reference-policy scope. OPA and Cedar can encode sophisticated logic; a coarse study policy is not evidence of an intrinsic engine limitation. Consequently, external results should report the exact policy bundle, engine version, and translation assumptions. The useful research question is whether the same governance intent can be implemented reproducibly and what additional machinery is required for evidence acceptance, review routing, temporal replay, and audit explanation.
In the reported LLM run, temperature is fixed at zero, JSON-mode structured output is enforced, and failures/timeouts are preserved rather than silently retried until correct. The requested Ollama model is gemma4:31b-cloud, which resolves to gemma4:31b; all 150 row-level outputs are retained. Mean invocation latency is 1.34 s for the cloud LLM, compared with 1.89 ms for OPA and 8.56 ms for Cedar in this run; because the deployment paths differ, these are descriptive timings rather than a controlled engine-speed comparison. We compute false-allow and false-review rates, 10,000-sample paired bootstrap intervals, exact two-sided McNemar tests, and Holm correction against the human consensus. This protocol prevents the validation stage from becoming a post-hoc selection exercise and preserves negative as well as positive results.
Discussion
The results support an architectural conclusion: action generation and authorization should be separate trust domains. Agentic systems increase both action flexibility and attack surface; a deterministic boundary converts that flexibility into an explicit contract. This does not make LLMs unnecessary. They can classify requests, retrieve candidate evidence, draft policies, or explain decisions, but their output remains untrusted until validated by deterministic controls.
Tri-state governance is central. Binary authorization conflates “safe to execute” with “cannot safely decide automatically.” Review gives uncertainty an accountable destination. The ablations show why this is more than interface design: removing the review gate or OOD fail-safe introduces unsafe allows. Likewise, evidence gating prevents an agent from improving its authorization outcome by withholding, weakening, or laundering evidence.
The independent human review changes the interpretation of the external comparison in an instructive way. Thirty cases that development labels had conservatively marked review were marked allow by both annotators. VeriWeave, OPA, and Cedar therefore incur no observed false allows on this set but a 0.2000 false-review rate, whereas Gemma has zero observed false allows and only 0.0267 false reviews on the same consensus. This does not remove the need for deterministic enforcement: the LLM still converts three consensus denies to review, and its output is stochastic policy advice rather than a replayable authorization proof. Instead, the result identifies a practical tuning target for deterministic governance—reduce unnecessary escalation without weakening deny dominance or evidence gates.
Deployment trust boundaries
The architecture separates four trust zones. The planner zone is explicitly untrusted and may contain an LLM, RAG component, or multi-agent coordinator. The context zone contributes identity, tenant, role, impact, data classification, and approved policy/evidence sources; these inputs require their own authentication and lifecycle controls. The governance zone is deterministic and should be deployed with a small, auditable attack surface. Finally, the execution zone contains side-effecting tools and human approval systems that act only on an explicit governor outcome.
This separation supports incremental adoption. In shadow mode, the governor evaluates real proposed actions but does not block execution; mismatches reveal missing action classes and ambiguous policies. In active mode, narrow low-risk allows and unambiguous denies can be enforced while consequential actions remain review-gated. The same policy-set hashes and audit schema should be preserved across both modes so that a later enforcement change does not erase the history used to justify it.
Operational deployment lifecycle
A deterministic governor can be introduced incrementally rather than as an immediate hard gate. A practical sequence is: (1) observe, in which actions are normalized and logged but not blocked; (2) shadow, in which the governor computes decisions and reviewers inspect mismatches with existing practice; (3) selective enforcement, in which narrow allow and deny rules are activated for well-understood action classes while ambiguous classes remain review-only; and (4) broad enforcement, in which coverage expands only after decision diffs, review load, and incident handling are understood. The audit schema should remain stable across these phases so that policy evolution can be analyzed longitudinally.
Review capacity is part of the control system. A policy that routes too many low-risk cases to people is safe in a narrow sense but may be operationally unsustainable, leading teams to bypass the gate or approve mechanically. For that reason, false-review rate, queue latency, reviewer load, and recurring reasons for escalation should be treated as governance telemetry. The goal is not to eliminate review, but to reserve it for cases where accountability or uncertainty genuinely requires human judgment.
Policy-engineering implications
The experiments suggest four practical policy-engineering rules. First, encode prohibitions independently of permissive rules so deny dominance remains explicit. Second, express evidence requirements by type and provenance rather than by document count. Third, version policy bundles and bind decisions to policy hashes so changes are reviewable and replayable. Fourth, treat unknown semantic actions as a coverage signal: repeated OOD reviews indicate that the action taxonomy or policy bundle needs extension, not that the fail-safe should be removed.
Counterfactual certificates can support this workflow by showing which minimal change would alter a decision. If removing one evidence item changes allow to review, that item is part of the authorization basis; if changing destination or data classification changes review to deny, the responsible predicate is visible. Such traces are useful for regression suites because they test the intended shape of the decision boundary rather than only the final label.
Limitations and threats to validity
Synthetic oracle alignment: GovernBench is generated from a controlled grammar and oracle policy. The large gaps versus RBAC/ABAC establish behavior on this benchmark, not universal superiority. The generator also cannot reproduce the full ambiguity, organizational politics, or undocumented practices present in real deployments.
Comparator scope: the OPA and Cedar results depend on the translated policy bundles used in this study and should not be interpreted as intrinsic limits of those engines. Likewise, the Gemma result reflects one model/run configuration and a frozen prompt protocol; it is not evidence that an LLM is generally safer or less safe than deterministic policy enforcement.
Performance and scale: the single-instance 40,040-request load matrix reaches concurrency 32 without failures, but the measured rates are hardware- and configuration-specific. Multi-instance scaling, substantially larger policy/evidence sets, durable distributed audit storage, long-duration soak tests, and cross-hardware replication remain future work.


