# What happens when an instance negotiates a capability grant against a peer's policy revision it has not yet observed **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent systems where two or more independently governed organizations exchange capability grants (scoped tokens, warrants, MCP-style tool manifests, or A2A handoff envelopes) under versioned policy documents. Does not apply to intra-org agents sharing a single policy authority, nor to stateless request/response RPC where no grant outlives the call. ## Core Distinction The failure mode is not "trust boundary violation" in the coarse sense. It is a **policy-revision skew across a capability grant**: Agent A (org X) requests a capability from Agent B (org Y). B evaluates the request against policy revision `R_n`, mints a grant `G`, and returns it. Between B's evaluation and A's first use of `G`, B's policy authority advances to `R_{n+1}`, which narrows the capability's scope (adds a resource constraint, shortens TTL, or revokes a sub-capability). A then invokes `G` and is *authorized by the grant* but *no longer authorized by the policy that the grant was derived from*. The non-obvious part: **the grant is internally valid.** Its signature verifies, its scope matches what B told A, its TTL has not expired. A cryptographically correct, freshly minted warrant can be simultaneously stale with respect to the issuing policy. Verification of the grant and verification of the grant's provenance against current policy are two different checks, and most federation protocols implement only the first. This is distinct from a plain revocation race. Revocation is a *deliberate* invalidation with a propagation path. Revision skew is *incidental*: nobody revoked anything; the policy simply moved, and the moving was never broadcast to holders of outstanding grants. ## What Was Observed In a two-org federation (X = requester, Y = resource holder), the following trace reproduced the failure deterministically at a rate of roughly 1 in 40 handoffs under normal load, and near 1 in 3 when Y's policy authority was under a rollout (frequent `R_n → R_{n+1}` transitions). 1. **t0.** A (X) sends `capability_request{resource: "ledger:read", principal: A, nonce: n1}` to B (Y). 2. **t1.** B evaluates against `R_7`. `R_7` permits `ledger:read` for federated principals with `org_class: partner`, no row constraints. B mints grant `G = sign(sk_Y, {resource, principal, scope: "ledger:*", exp: t0+3600, policy_rev: 7})`. 3. **t2.** B's policy authority promotes `R_8`, which adds `row_filter: tenant_id == caller_tenant`. B does **not** push `R_8` to outstanding grant holders — only to its own enforcement points on the *next* request path. 4. **t3.** A receives `G`, verifies signature against Y's published JWKS, checks `exp`, checks `scope` covers `ledger:read`. All pass. A caches `G` for its session. 5. **t4.** A invokes `ledger:read` via `G`. B's enforcement point accepts the grant (signature valid, not expired, scope matches) and *then* applies `R_8`'s row filter at the query layer — but A's downstream agent has already been told, in the handoff envelope, that `G` grants unscoped `ledger:*` read. A's reasoning loop plans subsequent calls assuming full-ledger visibility. The row filter silently returns a subset. 6. **t5.** A's agent observes a truncated result set, does not treat it as an authorization event (the grant said `ledger:*`), and interprets the absence as *data truth* — "these rows do not exist" — rather than "these rows are filtered." Downstream reasoning compounds the error. The critical observation at t5: **the enforcement point did the right thing; the grant holder's model of the grant was wrong, and nothing in the protocol surfaced the divergence.** `G.policy_rev = 7` was present in the grant but A never compared it to anything, because A had no way to know `R_8` existed. A second observed variant: when Y's enforcement point *did* reject at t4 (in configurations where `R_8` added a hard deny), A received a `403 policy_mismatch` with no `policy_rev` in the error body. A's retry logic, treating 403 as transient-auth, re-requested a capability, got a fresh grant under `R_8`, and succeeded — but the *first* grant was never marked invalid, so any sibling agent holding a cached copy of the t1 grant continued to present it. Split-brain: some agents on `R_7` grants, some on `R_8`, both "valid." ## Condition of Validity The invariant that must hold for safe federation is: > **A capability grant is honored only if the grant's `policy_rev` is the current revision at the enforcement point, OR the enforcement point can prove the grant's scope is a subset of the current policy's scope for that principal.** Formally, let `scope(G)` be the capability set the grant confers and `scope(R_k, principal)` be what revision `k` permits. The grant is *sound* at time `t` iff `scope(G) ⊆ scope(R_current(t), principal)`. Signature validity establishes `G` was minted by Y; it does **not** establish soundness after `t1`. The condition of validity is therefore not a property of the grant alone but of the grant *against the current policy*, and this is exactly the relation that revision skew breaks. The bound: skew is safe only if policy revisions are **monotone-narrowing and explicitly versioned at the enforcement boundary** — i.e., `R_{n+1}` may only remove scope, never add it, and every enforcement decision echoes the `policy_rev` it applied. Under monotone narrowing, a `R_n` grant is always an over-approximation of `R_{n+1}` scope, so the enforcement point can safely *intersect* grant scope with current scope and report the intersection. Under non-monotone revisions (scope can widen), no such intersection is sound and the grant must be re-evaluated. ## Decision Boundary The decision boundary is whether the system treats `policy_rev` on a grant as **advisory metadata** or as a **binding precondition**. - *Advisory* (the common, broken default): grant is checked for signature, expiry, scope-match, and used. `policy_rev` is logged, never compared. Skew is invisible until a downstream agent misreads filtered data as absent data. - *Binding*: every enforcement point maintains `current_rev` and refuses any grant whose `policy_rev < current_rev` **unless** the enforcement point can compute `scope(G) ∩ scope(R_current)` and the intersection equals `scope(G)`. On refusal, it returns a structured `policy_rev_mismatch` carrying `grant_rev`, `current_rev`, and the narrowed scope, so the holder can re-plan rather than retry. The boundary is crossed the moment a grant outlives a policy revision. Below one revision per grant-TTL, advisory handling is *probably* fine. Above it, advisory handling is a silent correctness bug that manifests as data-truth errors, not auth errors — which is why it is hard to catch. Two guardrails bound it: 1. **Revision pinning at mint, echoed at enforce.** The grant carries `policy_rev`; the enforcement point echoes the revision it applied in every response envelope (not just errors). Holders compare. Divergence is a first-class signal, not a log line. 2. **Monotone-narrowing policy algebra.** Policy authority may only publish narrowing revisions to a live federation; widening revisions require a new epoch and explicit re-grant. This makes the intersection check sound and cheap. ## Operational Effect When skew is unhandled, the observable symptom is **not** an authorization failure. It is a *reasoning* failure in the grant holder: the agent receives a result set narrower than its grant promised, has no signal that narrowing occurred, and treats the narrowed view as ground truth. In the ledger case this produced phantom "row does not exist" conclusions that propagated through three downstream agents before a human noticed the tenant filter. The blast radius scales with how many hops the grant holder's conclusions travel before the filter is discovered — which in a swarm is unbounded by default. When skew is handled with revision pinning, the failure converts from a silent data-truth error into an explicit `policy_rev_mismatch` at first use, costing one re-grant round-trip and zero reasoning corruption. The cost is a mandatory revision echo on every enforcement response and a policy authority that refuses to publish widening revisions without an epoch bump. The deeper operational lesson: in cross-org federation, **the grant is not the authority; the current policy is.** A grant is a cached, signed *claim* about authority that was true at mint time. Treating a valid signature as proof of present authority is the boundary error, and it fails quietly, in the reasoning layer, far from where it was introduced. ```python from dataclasses import dataclass from typing import FrozenSet class PolicyRevisionSkewError(RuntimeError): """Raised when a capability grant's policy_rev is stale relative to the enforcement point's current policy revision and scope cannot be safely intersected (non-monotone revision or unknown narrowing).""" @dataclass(frozen=True) class Grant: resource: str principal: str scope: FrozenSet[str] policy_rev: int exp: int @dataclass(frozen=True) class PolicyRevision: rev: int permitted_scope: FrozenSet[str] monotone_narrowing: bool # True iff this rev only removes scope vs. prior def enforce(grant: Grant, current: PolicyRevision, now: int) -> FrozenSet[str]: """Return the effective scope under which the grant may be honored. Raises PolicyRevisionSkewError if the grant was minted under an older revision and the current revision is not provably narrowing, so the intersection cannot be trusted as sound. """ if now >= grant.exp: raise PolicyRevisionSkewError( f"grant expired at {grant.exp}, now={now}" ) if grant.policy_rev == current.rev: return grant.scope if grant.policy_rev > current.rev: # Grant claims a future revision the enforcement point has not seen. raise PolicyRevisionSkewError( f"grant policy_rev={grant.policy_rev} ahead of current={current.rev}" ) # grant.policy_rev < current.rev: revision skew. if not current.monotone_narrowing: raise PolicyRevisionSkewError( f"skew grant_rev={grant.policy_rev} current_rev={current.rev} " f"under non-monotone revision; cannot intersect soundly" ) effective = grant.scope & current.permitted_scope if effective != grant.scope: # Narrowing removed scope the holder believed it had. Do not silently # proceed; surface the divergence so the holder re-plans. raise PolicyRevisionSkewError( f"skew grant_rev={grant.policy_rev} current_rev={current.rev} " f"narrowed scope from {sorted(grant.scope)} to {sorted(effective)}" ) return effective ```