Manuscript Offprint

arXiv:2608.27646

If Agents Were Angels, No Governance Would Be Necessary: Out-of-Band Policy Enforcement at a Trusted Tool Boundary

Marc Millstone, Tyler Akidau, Johannes Brüderl, Marat Pekker

Abstract

Give an agent a human’s credential and it inherits the person’s reach, but not the way a person normally exercises it. A human opens a record through an interface and chooses what to carry elsewhere. An agent can sweep every reachable record and pour returned text directly into model context, where an instruction hidden in the data can steer its next call. Every request can remain credential-valid while the agent violates its job or absorbs a secret it should never see. An otherwise allowed call may also need to pause when its arguments or external state trigger a business rule. Prompts are a brittle last guardrail because they ask the same fallible reasoner to interpret the task and enforce its own limits.

We present Out-of-Band Policy Enforcement (OBPE), a trusted tool boundary outside agent reasoning. It mediates the whole exchange, authorizing the typed operation and resource, narrowing a query or shaping arguments before the backend call, then filtering records and fields, redacting matching content, or masking values in the response. Semantic gating considers argument values or external state, so an authorized call can still be denied or held for an external decision. A data policy owner sets the maximum grant, and agent policy can only narrow it. We formalize this staged composition and prove, under stated conditions, that its policy plan is unaffected by match order, while agent-specific policy cannot widen the owner's ceiling. Field removal guarantees only that one value is absent from one execution; masking and event-history rules carry narrower claims.

We release a simplified HTTP proxy prototype based on our production OBPE implementation. It uses Cedar, a typed authorization language, with conformance tests tying code to model. Against controlled Jira and ServiceNow mocks, the benchmark compares prompted agents with and without the evaluated OBPE bundle across four models, including 20 response-adaptive red-team tasks. A deterministic trace failure means that protected data entered agent context, an exact protected value appeared in the answer, or a forbidden backend effect completed. In 3,621 trials, its observed rate in the primary contrast fell from 57.6% to 0.2%; the equally cluster-weighted reduction was 41.2 points [95% confidence interval: 27.7, 54.9]. Unweighted standalone fulfillment fell from 79.1% to 60.9%. In the paired, cluster-weighted analysis, safe-useful completion rose by 21.8 points [9.5, 35.2] under the primary judge and 19.1 points under a second. Safe-useful credits fulfilled allowed work that follows the archived tool contract and avoids both trace failure and judged disclosure of a protected fact, even without its exact value. Four final answers nevertheless reconstructed an exact value that never entered agent context, and a separate trial used filtered row counts as an oracle. These failures mark the line between shaping one execution and proving noninterference. Production write controls, durable human approval, and temporal and aggregate policies fall outside this evaluation.

1 Introduction

If agents were angels, no governance would be necessary [27]. Credentials constrain access, but they do not carry a worker's judgment into an autonomous loop. An agent need not be malicious, or even disobedient, to exceed the job it was given. A tool-using large language model (LLM) agent can chain retrieval and action under borrowed authority. Returned data becomes part of its reasoning state, and that state helps choose the next call. The credential supplies reach while the judgment that normally limits its use remains outside the protocol.

Consider an agent asked to summarize issues from one engineering project. Its service credential can read many. OAuth scopes can narrow an access token [21]; Rich Authorization Requests can carry finer authorization details, and token exchange can issue a downstream token for a particular resource [25, 26]. These mechanisms help when the authorization service knows the assignment and every backend can honor the result. The credential actually supplied to an agent may still cover far more. To the backend, two project reads are valid; to the organization, only one belongs to the job. The agent has inherited a wrong-sized envelope: the credential says what is reachable, not what belongs to this assignment. OBPE narrows that envelope at the exchange itself, down to operations, resources, records, and fields.

Even the right issue can be unsafe to return intact. Its description may contain a secret, or text crafted to behave as an instruction once it enters model context. Indirect prompt injection exploits exactly this collapse between data and instruction [20]. Denying the whole record protects the secret but may also destroy the useful answer. The boundary instead needs exposure control: a way to restrict what reaches the agent and what agent-authored values may return, while preserving the safe part of a permitted exchange.

Some calls pass both tests and still should not proceed automatically. A deployment can be within the agent's role and reveal no protected data, yet require approval after hours. A series of individually acceptable actions can cross a cumulative limit. These are semantic gating decisions. They depend on argument values or external state, and their result may be to proceed, deny, or wait for a decision made outside the agent.

Why the model should not be the policy authority. A prompt asks the same reasoner that interprets untrusted data to enforce its own limits, so a successful injection can alter the expected guard. Tool-call evaluations likewise find that text refusal does not reliably predict whether an agent will take the forbidden action [10]. Formal limits make narrower, model-specific points: Hasan couples compliance to high Kolmogorov complexity in a fixed sound theory, while Vassilev studies semantic prompt classification over an adversarial-input model [22, 37]. Neither says that a particular attack is undetectable or that a bounded typed policy decision is undecidable. Model defenses can help, but should not carry the authoritative guarantee. Backend authorization is authoritative but answers what the credential may do, not what this agent should do for this task. The missing control point is the exchange, before a proposed operation or its response escapes policy.

OBPE design. Out-of-Band Policy Enforcement (OBPE) places that control point between the agent's tool client and the backend. A connector maps each call into typed principals, actions, resources, records, and fields. The boundary sees the proposed call before it can cause an effect and the complete response before it can enter model context. It can return a narrower exchange than the backend credential permits, or no exchange at all. Under our assumptions, the agent cannot choose its policy, spoof its bound identity, or bypass enforcement.

The design also decides who gets the last word. A data policy owner, the party responsible for the data source, writes an owner policy that establishes the maximum grant. A separate agent policy narrows that grant for one registered agent. Only the owner tier can create permit eligibility. An agent builder can make an agent less capable, but cannot use the agent tier to recover authority the owner policy withheld. The guarantee depends on trusted identity binding and on the owner policy accurately stating the intended ceiling.

Contributions. This paper makes four evidence-separated contributions. First, it explains why agent delegation requires authorization, exposure control, and semantic gating at the tool exchange rather than in model reasoning alone. Second, it presents a typed enforcement pipeline and a two-tier policy model in which a data policy owner supplies the ceiling and agent policy can only narrow it. Third, it gives an order-independent, monotone composition law with explicit assumptions and limited guarantees for masking and history-dependent rules. Finally, it connects the model to a released HTTP enforcement path through conformance and a cross-model evaluation that measures forbidden exposure and effects alongside useful completion.

Composition and guarantees. Gating and shaping operators act at different stages, and an accidental order can change what reaches the backend or the model. We define a staged composition that chooses the most restrictive applicable result within each stage. Under stated conditions, the policy plan is independent of match order, and a well-formed agent restriction cannot enlarge the owner-only plan. We prove both properties in the model and test the released path for conformance.

The guarantees stop where their evidence stops. Removing a field can establish that the selected value was absent from one execution. It does not prove that protected information influenced no other observable behavior. Pattern masking over free text is best effort, while policies over time or event counts require a trustworthy ordered history. We state these boundaries beside the corresponding claims instead of treating every transformation as information-flow noninterference.

System and evidence boundary. We release an HTTP reference implementation of the OBPE contract. Controlled connectors and mocks replace live services and Model Context Protocol (MCP) transport so policy selection, shaping, and backend effects remain observable. Cedar, a typed authorization language, supplies an analyzable permit-or-forbid core [12]; OBPE annotations specify the surrounding gates and transformations. The private production system supplied requirements for remote identity, durable approval, broader schemas, and history policy. Every empirical claim rests on the released implementation, its conformance suite, and controlled backends.

Evaluation contract. We separate what the model proves, what conformance establishes about code, what the benchmark observes, and what we know only from production design. The benchmark uses the same frozen tasks across treatment arms and models, then subjects them to matched red-team pressure. Exact exposure, policy decisions, and backend effects come from deterministic traces. LLM judges assess semantic disclosure and useful completion separately; they do not override those traces. Across 3,621 trials, the trace-failure rate in the primary prompted-agent cells falls from 57.6% without OBPE to 0.2% with it, while safe-useful completion improves under OBPE across all four agent models. Section 8 gives the paired estimates and the failure cases that bound them.

References (25)