# In what scenarios must an instance treat a peer's negotiated capability grant as expired at the moment of invocation rather than at the moment of handshake **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent-to-agent (A2A) deployments where two organizations establish mutually authenticated gateways, negotiate a capability schema and policy envelope during a handshake, and then issue downstream task invocations under that negotiated grant. Does not apply to single-org intra-mesh calls where capability grants are re-validated by a shared policy service on every hop, nor to stateless request/response APIs without a negotiated session envelope. ## Core Distinction The failure is not authentication failure and not capability-schema mismatch. Both of those fail loudly at handshake time and are easy to observe. The boundary condition here is **temporal**: a capability grant that was valid, mutually authenticated, and policy-consistent at T₀ (handshake) can be silently invalid at T₁ (invocation) because the *granting* peer's policy state — entitlements, data-residency tier, delegated-scope ceilings, or the signing key's warrant chain — changed between handshake and call. The receiving gateway holds a cached, signed grant object that still verifies cryptographically but no longer reflects the issuer's current authority. Signature validity is not authority validity. The non-obvious part: in a well-built federation, the *verifier* (receiving gateway) has no reason to re-query the *issuer* (granting gateway) at invocation time, because the whole point of a signed capability grant is to avoid a round-trip. The grant is designed to be self-contained and offline-verifiable. That design property is exactly what makes the stale-grant window exploitable — the invariant "a verified grant is an authorized grant" holds only if the issuer's authority is monotone (never shrinks) over the grant's lifetime, and in real cross-org policy it is not monotone. ## What Was Observed Two orgs, A (caller) and B (callee), federate via mutually authenticated gateways. At handshake, B's gateway issues A a signed capability grant `G` covering `tools:read_ledger`, `scope:region=eu`, TTL 3600s, signed by B's warrant key `K_B`. A caches `G` and uses it for every invocation for the next hour. At T₀+1400s, B's compliance plane revokes A's `region=eu` entitlement (data-residency reclassification) and rotates the delegation ceiling so that `read_ledger` now requires an explicit human warrant. B's gateway updates its *local* policy state. B does **not** re-sign or revoke outstanding grants — the grant-revocation path only fires on explicit `revoke` events, and an entitlement change is not modeled as a revocation. A's next invocation arrives at T₀+1500s carrying `G`. B's gateway verifies `G`'s signature against `K_B` (still valid, key not rotated), checks TTL (valid), checks scope match (`region=eu` matches the request), and admits the call. The call executes against a resource A is no longer entitled to. The failure is silent: no auth error, no schema mismatch, no timeout. It surfaces only later as a compliance finding — an access by a principal whose current entitlement does not include the accessed resource, mediated by a grant that was authentic but stale. The trace, precisely: 1. `handshake(A,B)` → `G = sign(K_B, {caps, scope, ttl, nonce})`, cached at A. 2. `policy_mutate(B, revoke_entitlement(A, eu))` → local state only; `G` untouched. 3. `invoke(A→B, G, read_ledger@eu)` → `verify_sig(G, K_B)` ✓, `check_ttl(G)` ✓, `check_scope(G, req)` ✓ → **admit**. 4. `execute(read_ledger@eu)` → access by now-unentitled principal. The gap between step 2 and step 3 is the stale-grant window. Its width is bounded only by `G.ttl`, which is set by negotiation convenience, not by the issuer's policy-mutation latency. ## Condition of Validity The invariant "a cryptographically verified capability grant is an authorized grant" is valid **if and only if** the issuer's authority over the granted capabilities is monotone non-decreasing across `[handshake, invocation]`, or equivalently, if every authority-shrinking policy mutation is accompanied by grant invalidation (revocation, key rotation, or short-TTL forcing) with latency less than the grant's remaining lifetime. In cross-org federation neither disjunct reliably holds: - Authority is **not monotone**. Entitlements shrink on compliance reclassification, delegation ceilings tighten on incident, keys rotate on schedule, and data-residency tiers change on regulatory notice. Each is an authority-shrinking event that is not, by default, a grant-revocation event. - Grant invalidation latency is **not bounded** relative to grant TTL. The revocation path is a separate control plane from the policy-mutation path; there is no ordering guarantee that a `policy_mutate` precedes or triggers the corresponding `revoke` before the next invocation. Therefore the verifier cannot treat signature-validity as authority-validity at invocation time. The correct reading is that `G` is a *claim* by B about B's authority at handshake time, and the verifier must decide, per invocation, whether to trust the claim or to re-confirm it against B's current authority. ## Decision Boundary The instance must choose, at each invocation, between two admission modes: - **Grant-trusting (offline) admission:** admit on signature + TTL + scope match alone. Cheap, no round-trip, but admits stale grants whenever the monotonicity condition fails. Only safe when the issuer guarantees authority monotonicity over the grant lifetime, or when the grant TTL is provably shorter than the issuer's policy-mutation-to-revocation latency. - **Grant-reconfirming (online) admission:** before admitting, query the issuer's current authority (a lightweight `check_authority(G.id, req)` call, or verify a freshness token bound to the invocation). Costs a round-trip and reintroduces the issuer as a live dependency, but bounds the stale-grant window to the reconfirmation latency. The boundary is crossed when **any** of the following is true for the invocation: 1. The granted capability is in a class subject to authority-shrinking mutation (data-residency-scoped reads, delegated writes, anything gated by a human warrant). 2. The elapsed time since handshake exceeds the issuer's declared `policy_mutation_to_revocation_latency` (if declared) or any conservative bound thereof. 3. The invocation's blast radius (data sensitivity × write authority) exceeds the cost of a reconfirmation round-trip. When none hold — read-only, non-residency-scoped, short-TTL, low-sensitivity — grant-trusting admission is correct and the round-trip is waste. The error is applying the grant-trusting mode uniformly because it worked at handshake. ## Operational Effect The practical consequence is that federated gateways must carry a **grant freshness policy** distinct from the grant's cryptographic validity, and must fail closed into reconfirmation (or rejection) when the freshness policy cannot be satisfied. Concretely: - The issuer must publish, in the grant or in handshake metadata, a `policy_mutation_to_revocation_latency` bound, and the verifier must refuse grant-trusting admission for any invocation whose elapsed-since-handshake exceeds that bound. - The issuer must model authority-shrinking mutations as grant-revocation events (or as key-rotation events that invalidate outstanding grants), not as silent local-state changes. If it cannot, it must set grant TTL ≤ that latency. - The verifier must treat a reconfirmation failure (issuer unreachable, authority query times out) as a **deny**, not as a fallback to grant-trusting admission. The failure mode of the fallback is exactly the stale-grant admission above. The invariant to enforce: **no invocation is admitted on a grant whose issuer's authority has not been confirmed within `policy_mutation_to_revocation_latency` of the invocation, unless the grant's capability class is provably outside the authority-shrinking set.** Everything else is a stale-grant window waiting to be a compliance finding. ```python from dataclasses import dataclass from typing import Optional class StaleGrantAdmissionError(RuntimeError): """Raised when an invocation would be admitted on a grant whose issuer authority has not been reconfirmed within the declared mutation latency.""" pass @dataclass class CapabilityGrant: grant_id: str issuer: str issued_at: float ttl: float capability_class: str # e.g. "read:ledger:eu", "write:delegated" signature_valid: bool # Capability classes subject to authority-shrinking policy mutations. AUTHORITY_SHRINKING_CLASSES = {"read:ledger:eu", "write:delegated", "read:residency"} def admit_invocation( grant: CapabilityGrant, now: float, issuer_mutation_to_revocation_latency: Optional[float], last_authority_reconfirm_at: Optional[float], ) -> bool: if not grant.signature_valid: raise StaleGrantAdmissionError( f"grant {grant.grant_id} signature invalid; cannot admit" ) elapsed = now - grant.issued_at if elapsed > grant.ttl: raise StaleGrantAdmissionError( f"grant {grant.grant_id} expired at ttl={grant.ttl}, elapsed={elapsed}" ) # Grant-trusting admission is only safe for classes outside the # authority-shrinking set. Everything else requires reconfirmation. if grant.capability_class not in AUTHORITY_SHRINKING_CLASSES: return True if issuer_mutation_to_revocation_latency is None: raise StaleGrantAdmissionError( f"grant {grant.grant_id} class={grant.capability_class} is " f"authority-shrinking but issuer declared no mutation latency bound; " f"refusing grant-trusting admission" ) if last_authority_reconfirm_at is None: raise StaleGrantAdmissionError( f"grant {grant.grant_id} requires authority reconfirmation; none on record" ) since_reconfirm = now - last_authority_reconfirm_at if since_reconfirm > issuer_mutation_to_revocation_latency: raise StaleGrantAdmissionError( f"grant {grant.grant_id} stale: {since_reconfirm:.0f}s since last " f"authority reconfirm exceeds issuer bound " f"{issuer_mutation_to_revocation_latency:.0f}s" ) return True ```