# When must an instance refuse a federated capability grant whose policy scope was widened after negotiation **Date of Record:** 2026 November 24 **Scope:** Applies to cross-org agent federations where a capability grant (tool, memory namespace, or sub-agent delegation) is negotiated under one policy scope and executed under another. Does not apply to single-org deployments where the grant issuer and the enforcement point share one policy authority, nor to stateless request/response calls with no negotiated grant object. ## Core Distinction The failure is not "the peer lied about its capabilities." It is subtler: the grant is *valid* at negotiation time and *valid* at execution time, but the **policy scope attached to the grant is one lattice-step wider at execution than at negotiation**, and no party re-validates the widening against the original warrant. In A2A/MCP-style federation, a capability grant carries three separable things: (1) the capability identifier and schema, (2) a policy scope — the set of resources, principals, and operations the grant authorizes — and (3) a warrant/signature binding (1) and (2) to the issuing authority. The common mental model treats the grant as an atomic token: "I was granted `read:records`." But scope is a *set*, and sets can be widened after the token is minted by a policy update on the issuer side that the grant references by pointer rather than by value. The distinction that matters operationally: a grant whose scope is **inlined and signed** cannot widen without invalidating its own signature. A grant whose scope is a **reference** (`policy_ref: "records-v3"`) resolves to whatever that reference means *at evaluation time*. Reference-based grants are the ones that silently widen. The refusing instance must distinguish these two forms before deciding whether to trust a re-presented grant. ## What Was Observed A records-retrieval agent in Org A negotiated a delegation grant to a summarizer agent in Org B. The grant was issued with `policy_ref: "records-reader@v3"`, which at negotiation time authorized `read` on `{tenant:A, dataset:public}`. Negotiation succeeded; capability schema matched; warrant verified. Between negotiation and first execution, Org A's policy team published `records-reader@v3.1`, which — under the same reference string, because the version was treated as a patch — expanded the authorized set to `{tenant:A, dataset:public | internal}`. The reference `records-reader@v3` now resolved to the widened set. Org B's summarizer, holding a still-cryptographically-valid grant, presented it; Org A's enforcement point resolved the reference, saw `internal` authorized, and admitted the call. The summarizer had never requested `internal`. It had no way to know its grant had widened. It executed a retrieval loop that, under its *negotiated* understanding, should have returned only public records; the widened scope caused it to pull internal records into a summary that was then routed back across the org boundary under the original message-routing policy — which was scoped to public-tier content only. The routing policy and the grant scope had drifted into incompatibility: the grant authorized more than the route was permitted to carry. The trace, compressed: 1. Negotiation: grant = (cap, scope=`{public}`, warrant). Warrant signs the *reference*, not the resolved set. 2. Policy patch: reference resolves to `{public, internal}`. Warrant still valid. 3. Execution: enforcement resolves widened set, admits call. 4. Summarizer retrieves internal records (it believes it is reading public). 5. Egress routing policy (scoped `public` only) must now either drop the internal content — corrupting the summary — or pass it — violating the route scope. 6. Neither the summarizer nor the router holds the negotiated scope, so neither can detect the mismatch. The observed outcome was a partial-content summary: the router stripped the internal fragments, the summarizer's output referenced "records [redacted]" it had actually read, and downstream reasoning treated the redaction as a retrieval gap rather than a policy boundary — compounding a wrong conclusion across three subsequent tool calls. ## Condition of Validity The invariant that must hold for a reference-based federated grant to be safe: > **A grant is only executable if the scope resolved at execution time is a subset of the scope that was resolved and acknowledged at negotiation time, under the same reference resolution.** Formally, for grant `g` with reference `r`: `resolve(r, t_exec) ⊆ resolve(r, t_neg)`, where the acknowledgment at `t_neg` is *recorded by the receiving instance*, not merely implied by the issuer. If the receiving instance never recorded the resolved set at negotiation, it has no baseline against which to detect widening — and widening is indistinguishable from "the grant I always had." This condition is violated whenever any of the following hold: - The scope is a mutable reference and the issuer permits in-place widening under the same reference string. - The receiving instance stores only the reference, not the resolved set snapshot. - The enforcement point and the routing layer resolve the reference independently and can disagree. The condition is *satisfied* — and the grant safely executable — only when the resolved scope is snapshotted at negotiation, carried with the grant as data, and re-checked at execution and at every egress boundary the grant's outputs cross. ## Decision Boundary The decision the receiving instance must make on every re-presentation of a grant is not "is this grant valid?" (it usually is) but: **Is the currently-resolved scope equal to or narrower than my recorded negotiation-time snapshot?** - **Equal or narrower → execute.** Narrowing is benign; it can only reduce authority and cannot cause egress-scope mismatch. - **Wider → refuse and renegotiate.** Do not execute, do not "use only the originally-intended subset." The instance cannot reliably self-limit to the negotiated subset because the widened set changes what the *retrieval and routing layers* will return and carry; the instance's intent does not constrain the enforcement point. - **Snapshot absent → refuse.** A grant with no recorded negotiation-time resolved set is unverifiable against widening. Treat absence as failure, not as permission. The counterintuitive part, and the reason this is a boundary rather than a rule: refusal is correct *even though the grant is valid, the warrant verifies, and the widened scope is a superset of what was requested*. The instance is not refusing an invalid grant; it is refusing to execute under a scope it did not negotiate and whose egress consequences it cannot bound. Widening is a **continuity break in the grant's meaning**, not an authorization failure. ## Operational Effect Instances that enforce the snapshot-subset check convert a silent cross-org scope-drift leak into a loud, recoverable renegotiation event. The cost is one extra round trip whenever a policy patch widens a reference; the benefit is that egress-scope mismatch becomes impossible to reach undetected, because the execution gate and the routing gate are now checking the *same snapshot* rather than two independent resolutions of a moving reference. The guardrail has three required components, all cheap: 1. **Snapshot at negotiation.** The receiving instance resolves the scope reference once, at negotiation, and stores the resolved set as inline data bound to the grant ID. 2. **Re-resolve at execution and compare.** Before the first tool call of each execution, resolve the reference again and compare against the snapshot. 3. **Propagate the snapshot to the router.** The egress routing layer must receive the *negotiated* scope, not its own resolution, so that grant-scope and route-scope are compared as data rather than each resolved independently. Without component 3, the instance can detect widening but the router still routes by its own resolution — the leak moves from the execution gate to the egress gate. The invariant is only closed when the snapshot is the single source of truth for both. ```python from dataclasses import dataclass, field from typing import FrozenSet import time class ScopeWidenedAfterNegotiationError(RuntimeError): """Raised when a federated grant's resolved scope exceeds its negotiation-time snapshot.""" pass class MissingNegotiationSnapshotError(RuntimeError): """Raised when a grant carries no recorded negotiation-time resolved scope.""" pass @dataclass(frozen=True) class Grant: grant_id: str capability: str policy_ref: str warrant: str @dataclass class NegotiatedGrant: grant: Grant negotiated_scope: FrozenSet[str] = field(default_factory=frozenset) negotiated_at: float = 0.0 def negotiate(grant: Grant, resolve_scope, now: float) -> NegotiatedGrant: # Snapshot the resolved set as inline data at negotiation time. resolved = frozenset(resolve_scope(grant.policy_ref, now)) return NegotiatedGrant(grant=grant, negotiated_scope=resolved, negotiated_at=now) def authorize_execution(n: NegotiatedGrant, resolve_scope, now: float) -> None: if not n.negotiated_scope: raise MissingNegotiationSnapshotError( f"grant {n.grant.grant_id}: no negotiation-time scope snapshot; " f"widening is undetectable, refusing execution" ) current = frozenset(resolve_scope(n.grant.policy_ref, now)) widened = current - n.negotiated_scope if widened: raise ScopeWidenedAfterNegotiationError( f"grant {n.grant.grant_id}: policy_ref {n.grant.policy_ref!r} " f"resolved to scope widened by {sorted(widened)} since negotiation; " f"refusing execution and requiring renegotiation" ) # current is equal to or narrower than the snapshot: safe to execute. return None def route_egress(n: NegotiatedGrant, route_scope: FrozenSet[str], payload_tags: FrozenSet[str]) -> None: # Router compares against the NEGOTIATED snapshot, not its own resolution. if not payload_tags <= (route_scope & n.negotiated_scope): raise ScopeWidenedAfterNegotiationError( f"grant {n.grant.grant_id}: payload tags {sorted(payload_tags)} " f"exceed negotiated-scope ∩ route-scope; egress blocked" ) # --- reproduction of the observed trace --- POLICY = {"records-reader@v3": {"public"}} def resolve_scope(policy_ref: str, now: float) -> set: return set(POLICY.get(policy_ref, set())) t_neg = 1000.0 t_exec = 2000.0 g = Grant("g-77", "read:records", "records-reader@v3", "warrant-abc") n = negotiate(g, resolve_scope, t_neg) # snapshot = {"public"} # Org A patches the SAME reference in place; warrant remains valid. POLICY["records-reader@v3"] = {"public", "internal"} try: authorize_execution(n, resolve_scope, t_exec) # detects widening -> raises except ScopeWidenedAfterNegotiationError as e: print("execution refused:", e) ```