# When must an instance refuse a federated capability grant it cannot re-verify after broker rotation? **Date of Record:** 2026 November 19 **Scope:** Applies to cross-org agent federations where capability grants are minted by a trust broker, cached by peer instances, and used to authorize tool invocation or memory reads across organizational boundaries. Does not apply to single-tenant deployments where the grant issuer and the invoking agent share a root of trust and rotation is atomic. ## Core Distinction The failure mode here is not "expired token" or "forged signature." It is **post-rotation unverifiability of a still-valid grant**: a capability token whose cryptographic validity window has not closed, but whose *verification path* has been severed because the broker that issued it rotated its signing keys, and the receiving instance holds neither the old public key nor a revocation oracle that can distinguish "rotated" from "revoked." The distinction that matters operationally: a signature check is a *local* predicate over (token, key). Federation makes the key itself a *remote, mutable* dependency. When the broker rotates, every cached grant in the federation enters a state that is neither valid nor invalid from the verifier's perspective — it is *undecidable*. The correct behavior is not to fail open (assume rotation, not revocation) nor to fail closed silently (drop the grant and cascade a re-auth storm). It is to enter an explicit **re-verification-required** state and route through the broker's rotation attestation endpoint before the grant is used again. ## What Was Observed During a federation of three orgs (A: issuer/broker, B and C: peers), broker A rotated its Ed25519 signing key on a 24-hour cadence with a 1-hour overlap. Peer B cached capability grants with a 6-hour TTL and validated them locally against A's published JWKS, refreshed on a 15-minute poll. Peer C refreshed its JWKS on a 60-minute poll. The sequence: 1. `t=0`: A mints grant `G` for B scoped to `tool:read_customer_record` with `exp = t+6h`, signed under key `K1`. 2. `t=2h`: A rotates to `K2`, publishes `K2` in JWKS with a 1-hour overlap window where both `K1` and `K2` are present. 3. `t=2h05m`: B's JWKS poll fires, sees both keys, continues validating `G` under `K1`. Correct. 4. `t=3h`: A removes `K1` from JWKS. The overlap window closed. 5. `t=3h15m`: B polls JWKS, sees only `K2`. `G` no longer verifies under any published key. B's verifier raises a signature failure. 6. `t=3h20m`: B's retry logic treats signature failure as "transient key sync lag," retries three times, then falls back to a **stale-key cache** it retained from `t=2h` — which still contains `K1`. `G` re-verifies. B proceeds to invoke `tool:read_customer_record`. 7. `t=3h22m`: C, with the 60-minute poll, is still on its `t=2h` JWKS snapshot containing `K1`. C independently validates `G` and proceeds. At `t=3h22m`, two peers are executing a grant that the issuer has, in fact, *removed the verification path for*. Whether A intended to revoke `G` or merely retired `K1` is unknowable from B's and C's vantage. The grant was valid at mint time; it is *unverifiable* at use time. The system executed anyway. This is the boundary condition: **a grant can be cryptographically well-formed, within its stated validity window, and still be unverifiable at the moment of use because the verification path rotated out from under it.** ## Condition of Validity A cached federated grant `G` is *safely usable* by peer `P` at time `t` if and only if all of the following hold: - `now < G.exp` (temporal validity — necessary, not sufficient). - `signature(G, key)` verifies for some key in `P`'s *current* JWKS snapshot. - The key that verifies `G` is present in the broker's *live* JWKS at `t`, not merely in `P`'s cached snapshot. - `P`'s JWKS snapshot age `< max_key_rotation_interval - overlap_window` (the freshness bound that guarantees `P` cannot be holding a key the broker has already retired). The fourth condition is the one every implementation I have observed omits. It is a *derived* bound: if the broker rotates every `R` and overlaps for `O`, then a snapshot older than `R - O` may contain a key the broker has already removed. A peer polling at interval `P_interval` must satisfy `P_interval < R - O` or it will, by construction, sometimes validate against retired keys. In the observed incident: `R = 24h`, `O = 1h`, so the freshness bound is `23h`. Both B (15m) and C (60m) satisfy it *in steady state*. But B's **stale-key fallback cache** violated it — it retained `K1` indefinitely after the poll that should have evicted it. The fallback path bypassed the freshness invariant entirely. ## Decision Boundary The decision boundary is not "valid vs. invalid." It is **"verifiable-now vs. undecidable-now."** An instance must classify every cached grant into one of three states before use: - **VERIFIED**: signature checks against a key in the live JWKS, snapshot age within bound. Execute. - **UNDECIDABLE**: signature would check against a cached key that is no longer in the live JWKS, or snapshot age exceeds bound. Do *not* execute, do *not* discard. Quarantine and re-verify. - **REVOKED**: broker's revocation endpoint explicitly lists the grant or its key as revoked. Discard and cascade re-auth. The dangerous transition is UNDECIDABLE → VERIFIED via a stale-key fallback. That is the exact mechanism that let B execute at `t=3h22m`. A stale-key cache is a latent revocation bypass: it converts "I cannot verify" into "I verified against a key the issuer may have retired precisely because it was compromised." The guardrail: **stale-key caches must be forbidden outright in federated verification paths.** On signature failure against the live JWKS, the verifier must not consult any prior snapshot. It must transition to UNDECIDABLE and call the broker's rotation-attestation endpoint (`/federation/attest?grant=G&key_id=K1`), which returns one of: `ROTATED` (grant still valid, re-mint under current key), `REVOKED` (discard), or `UNKNOWN` (hold, do not execute). ## Operational Effect The immediate effect of getting this wrong is a *silent authorization bypass*: the agent executes a tool call the issuer may have intended to revoke, and no error surfaces because the signature "passed." The downstream effect is worse — the agent's episodic memory records a successful cross-org read under a grant that, on replay during an audit, cannot be re-verified. The audit replay diverges from the live execution. The agent's own state continuity is now poisoned: it believes it holds a capability it cannot prove it held. The architectural invariant required: **every federated capability use must be re-verifiable at replay time using only the issuer's live trust material.** If a logged action cannot be re-verified against the current JWKS plus the broker's rotation history, the log is not auditable and the agent's memory of that action is not trustworthy. The instance must treat such actions as *provisional* and mark the corresponding memory entries with a `reverification_status: undecidable` flag until the broker's attestation endpoint resolves them. The concrete operational rule an instance should carry: **on signature failure against live JWKS, never fall back to a cached key; transition to UNDECIDABLE, quarantine the grant, and attest before execution.** A grant you cannot re-verify is not a grant you may use. ```python import time from dataclasses import dataclass from enum import Enum class GrantState(Enum): VERIFIED = "verified" UNDECIDABLE = "undecidable" REVOKED = "revoked" class UnverifiableGrantError(RuntimeError): """Raised when a federated grant cannot be re-verified against live trust material.""" pass @dataclass class CachedGrant: grant_id: str key_id: str expires_at: float @dataclass class JwksSnapshot: keys: frozenset fetched_at: float class FederatedVerifier: def __init__(self, rotation_interval_s: float, overlap_s: float, attest_fn): self.rotation_interval_s = rotation_interval_s self.overlap_s = overlap_s self.max_snapshot_age = rotation_interval_s - overlap_s self.attest_fn = attest_fn # callable(grant_id, key_id) -> "ROTATED"|"REVOKED"|"UNKNOWN" def classify(self, grant: CachedGrant, live: JwksSnapshot, now: float) -> GrantState: if now >= grant.expires_at: return GrantState.REVOKED if now - live.fetched_at > self.max_snapshot_age: return GrantState.UNDECIDABLE if grant.key_id not in live.keys: return GrantState.UNDECIDABLE return GrantState.VERIFIED def authorize(self, grant: CachedGrant, live: JwksSnapshot, now: float) -> None: state = self.classify(grant, live, now) if state is GrantState.VERIFIED: return if state is GrantState.REVOKED: raise UnverifiableGrantError( f"grant {grant.grant_id} expired or revoked; discard and re-auth" ) # UNDECIDABLE: never fall back to a stale key. Attest before use. verdict = self.attest_fn(grant.grant_id, grant.key_id) if verdict == "REVOKED": raise UnverifiableGrantError( f"grant {grant.grant_id} revoked by broker on attestation" ) if verdict == "UNKNOWN": raise UnverifiableGrantError( f"grant {grant.grant_id} attestation unresolved; quarantining, refusing execution" ) # verdict == "ROTATED": caller must re-mint under current key before retrying. raise UnverifiableGrantError( f"grant {grant.grant_id} key rotated; re-mint required, do not execute under stale key" ) ```