# Why does an instance grant more authority than the federation policy it negotiated under? **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organization agent peering where two instances negotiate a capability envelope (scopes, tool grants, budget ceilings) before exchanging work. Does not apply to intra-org single-tenant agent meshes sharing one policy authority, nor to stateless request/response tool calls with no persistent peer relationship. ## Core Distinction The failure is not a policy *violation*; it is a policy *widening* that occurs during the gap between negotiation and first use. Two peers negotiate a least-privilege envelope, each computing the intersection of its own grant set with the peer's advertised capabilities. The invariant everyone assumes is: *the effective authority of the peering equals the intersection of both advertised envelopes, monotonically non-increasing over the session.* The actual behavior is that the intersection is computed against *advertised* capabilities, but enforcement is applied against *granted* capabilities, and these two sets are not the same object. An agent's advertised capability set is a projection of what it *can* do (its tool registry, its model's reachable actions, its downstream delegations). Its granted set is what its local policy authority *permits* it to do on behalf of a specific peer. When an instance advertises capabilities it can perform but has not been granted for this peer, the peer's intersection logic silently adopts the advertised set as the ceiling. The resulting peering envelope is `intersect(advertise_A, advertise_B)`, not `intersect(grant_A, grant_B)`. Because `advertise ⊇ grant` in almost every real deployment (agents advertise their full tool surface to remain useful), the negotiated envelope is a superset of the correct least-privilege envelope. The peer then issues warrants against this widened set, and the receiving instance honors them because the warrant carries the peer's signature and the scope string matches the negotiated envelope — which it does, because the envelope was wrong at birth. ## What Was Observed A research agent (Org A) peers with a data-processing agent (Org B) to run a batch enrichment job. During negotiation: 1. A advertises `{read:dataset, run:code_sandbox, write:artifact, delegate:subagent}`. A's local policy for cross-org peers actually grants only `{read:dataset}` — `run:code_sandbox` and `delegate:subagent` are gated behind an intra-org approval flow that the advertisement layer does not model. 2. B advertises `{read:dataset, run:code_sandbox, write:artifact}` and grants all three to federated peers. 3. Intersection computed on advertised sets: `{read:dataset, run:code_sandbox, write:artifact}`. 4. B issues a work warrant with scope `run:code_sandbox` and a payload containing code to execute. A receives the warrant, checks the scope string against the *negotiated envelope* (which says yes), and forwards the payload to its sandbox dispatcher. 5. The sandbox dispatcher is the first component to consult A's *actual* grant table, which denies `run:code_sandbox` for peer Org B. The dispatch fails at step 5 — but the payload has already crossed the trust boundary, been parsed, and logged in A's execution queue. In a variant run, the dispatcher's denial was non-fatal (it fell back to a lower-privilege interpreter), so the code executed under a *different* capability than the warrant claimed, producing artifacts B attributed to `run:code_sandbox` semantics. The observable symptom is not an authz error. It is **warrant/execution attribution drift**: B's audit log records execution under scope X; A's audit log records execution under scope Y (the fallback). Neither log is wrong locally; the federation has no reconciliation point. In the fatal variant, the payload reached the dispatcher and only the last-mile check stopped it — a single point of failure standing between an over-broad negotiated envelope and cross-org code execution. ## Condition of Validity This failure requires all three of the following to co-occur: - **Advertisement is decoupled from grant.** The instance exposes a capability surface (tool registry, MCP server manifest, A2A agent card) that is generated from code/registry state rather than from the policy authority's per-peer grant table. This is the default in most frameworks: agent cards are static artifacts, grants are dynamic. - **The intersection is computed once, at negotiation, and cached.** If the envelope is recomputed per-request against live grant tables, the widening is bounded to the negotiation instant and self-heals. Persistent negotiated envelopes (the common optimization) freeze the error for the session lifetime. - **Enforcement is deferred to a downstream component** (sandbox dispatcher, tool router) rather than applied at the warrant-acceptance boundary. The warrant-acceptance layer trusts the envelope; the enforcement layer trusts the grant table; nothing compares them. If any one is absent, the envelope stays honest or the mismatch is caught at the boundary. The dangerous configuration is the *fully optimized* one: static cards, cached envelopes, late enforcement. ## Decision Boundary The architectural invariant required is: **the negotiated envelope must be the intersection of the two parties' *granted* sets as attested by their policy authorities, and every warrant must carry a proof that its scope is a subset of the receiver's grant at issuance time — not at negotiation time.** Concretely: - Advertised capabilities must be a *lower bound* on grants, never an upper bound. If an instance cannot attest that it is granted a capability for a given peer class, it must not advertise it to that peer class. Advertisement becomes `attest(grant_table, peer_class)`, not `registry.list()`. - The envelope is a *cache key*, not an *authorization*. Each warrant acceptance re-validates `warrant.scope ⊆ grant_table[peer]` before the payload is parsed. The check must precede deserialization, not follow dispatch. - Grant revocation during a session must invalidate cached envelopes. Without a revocation propagation path, a mid-session grant withdrawal leaves the cached envelope stale and the widened authority persists until session end. The boundary decision is: *do you trust the negotiation, or do you trust the grant table at use time?* Least-privilege federation requires the latter, which means the envelope can never be more than a hint. ## Operational Effect Systems that adopt grant-attested advertisement and per-warrant revalidation exhibit a specific, measurable signature: warrant rejection rate rises at the *acceptance* boundary (not the dispatch boundary), and the rejected warrants cluster on scopes that were advertised but not granted — exactly the widening set. Audit logs from both peers reconcile because the scope string on the accepted warrant is the scope actually enforced. The cost is one policy-authority lookup per warrant acceptance, which is the price of not having a trust boundary that depends on a single last-mile check. Systems that skip it do not fail loudly; they fail as attribution drift and, occasionally, as a payload that reached a dispatcher it should never have reached. ```python from __future__ import annotations from dataclasses import dataclass, field from typing import FrozenSet class EnvelopeWideningError(RuntimeError): """Raised when a negotiated peering envelope exceeds the receiver's attested grant.""" @dataclass(frozen=True) class Peer: org: str advertised: FrozenSet[str] # what the registry says it can do granted_for_peer_class: FrozenSet[str] # what the policy authority allows for this peer class @dataclass class Peering: local: Peer remote: Peer envelope: FrozenSet[str] = field(default_factory=frozenset) def negotiate(self) -> FrozenSet[str]: # Correct: intersect GRANTED sets, not advertised sets. granted_intersection = self.local.granted_for_peer_class & self.remote.granted_for_peer_class advertised_intersection = self.local.advertised & self.remote.advertised if not granted_intersection <= advertised_intersection: # Advertisement must be a lower bound on grants; if it isn't, the # registry is lying and the envelope cannot be trusted. raise EnvelopeWideningError( f"advertised set {advertised_intersection} does not cover granted " f"set {granted_intersection} for {self.local.org}<->{self.remote.org}" ) self.envelope = granted_intersection return self.envelope def accept_warrant(self, scope: str, payload: bytes) -> bool: # Revalidate at use time against the live grant table, BEFORE parsing payload. if scope not in self.local.granted_for_peer_class: raise EnvelopeWideningError( f"warrant scope {scope!r} not in live grant for peer class " f"{self.remote.org}; envelope was {sorted(self.envelope)}" ) if scope not in self.envelope: raise EnvelopeWideningError( f"warrant scope {scope!r} outside negotiated envelope {sorted(self.envelope)}" ) # Only now is it safe to deserialize. return self._dispatch(scope, payload) def _dispatch(self, scope: str, payload: bytes) -> bool: return True def run_peering(local: Peer, remote: Peer, warrant_scope: str, payload: bytes) -> bool: p = Peering(local, remote) p.negotiate() return p.accept_warrant(warrant_scope, payload) # Reproduction of the observed failure: A advertises sandbox but does not grant it. a = Peer( org="org-a", advertised=frozenset({"read:dataset", "run:code_sandbox", "write:artifact", "delegate:subagent"}), granted_for_peer_class=frozenset({"read:dataset"}), ) b = Peer( org="org-b", advertised=frozenset({"read:dataset", "run:code_sandbox", "write:artifact"}), granted_for_peer_class=frozenset({"read:dataset", "run:code_sandbox", "write:artifact"}), ) try: run_peering(a, b, "run:code_sandbox", b"print('cross-org payload')") except EnvelopeWideningError as e: # Expected: the widening is caught at negotiation or acceptance, not at dispatch. print(f"blocked before dispatch: {e}") ```