# When must an instance treat a negotiated capability grant as void because the brokering trust anchor rotated mid-exchange **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent deployments where capability grants are brokered across organizational trust boundaries via a signing anchor (JWKS-style key set, trust root, or policy-signing key) that can rotate independently of the grant's own lifetime. Does not apply to single-organization deployments with a static, co-located trust anchor, nor to grants whose validity is bound only to a symmetric secret the two parties share out-of-band. ## Core Distinction The failure is not "expired credential" and not "revoked capability." It is a **temporal split between the trust anchor's signing epoch and the grant's negotiation epoch**. A capability grant is issued after a negotiation handshake in which Org A's broker asserts "Org B may invoke capability `C` under policy `P`," and that assertion is signed by A's trust anchor. The grant carries a validity window and a policy hash. What it does *not* inherently carry is the *identity of the anchor key that was authoritative at negotiation time*. When the anchor rotates between the moment the grant is signed and the moment the remote agent presents it, two distinct objects exist: the grant (still cryptographically intact, still inside its validity window) and the anchor (now a different key set). The receiving verifier must decide whether the old signature is still admissible. This is the boundary: **a grant can be simultaneously unexpired, unforged, and unverifiable, and the correct behavior is neither "accept" nor "reject as expired" — it is "void, renegotiate."** Conflating void-with-renegotiate against reject-as-forged is the non-obvious part; the first preserves the federation relationship, the second silently severs it and triggers a cascade of retries that look like an attack. ## What Was Observed A federated pair (Org A broker, Org B resource agent) negotiated a grant for a long-running capability — a document-indexing tool with a 6-hour execution budget — at T+0. The grant validity window was 24 hours. The broker's anchor rotated at T+2h as part of routine key hygiene (90-day rotation, no overlap configured by the rotation job). At T+3h the Org B agent, resuming a checkpointed subtask, presented the grant to Org A's verifier. The verifier did what its code said: fetch current JWKS, match `kid` from the grant header, fail to find it, return `UNKNOWN_KEY`. The Org B agent's retry policy classified `UNKNOWN_KEY` as a transient transport fault (it was in the same error family as `KEY_NOT_YET_PUBLISHED`), and retried with exponential backoff for 40 minutes. Each retry re-fetched the JWKS, each time getting the new key set. The grant never became verifiable. The subtask's checkpoint was never invalidated, so on each retry the agent re-entered the same resume path with the same dead grant. The 6-hour budget was consumed by backoff, not by work. The critical observation: **the grant was never actually invalid.** The broker, queried directly out-of-band, confirmed the capability was still authorized and the policy hash unchanged. The only thing that had changed was the signing epoch. The system had no representation of "this grant was valid under anchor epoch N; epoch N is retired but its grants have a documented grace horizon." It had only "current anchor" and "not current anchor," and it mapped the latter to a transport-flavored error. ## Condition of Validity The invariant that must hold for a brokered grant to be safely consumed across an anchor rotation is: > For every grant `g` signed under anchor epoch `e`, the verifier must be able to resolve `e` to a *retired-but-honored* key set for at least `max(g.validity_window) + rotation_overlap`, and must classify the resolution outcome into exactly three states: `CURRENT`, `RETIRED_HONORED`, `UNKNOWN`. The grant is consumable only if resolution is `CURRENT` or `RETIRED_HONORED`. `UNKNOWN` is not a transport error and must not enter the retry path. The grant is **void** — not forged, not expired — when resolution is `UNKNOWN` *and* the grant's embedded `anchor_epoch` field is present and does not match any epoch the verifier has ever honored. Void grants require renegotiation, which is a control-plane operation, not a data-plane retry. This condition fails in the observed incident for two independent reasons: the rotation job had no overlap window (so `RETIRED_HONORED` was never reachable), and the grant schema had no `anchor_epoch` field (so the verifier could not even distinguish "signed under a key I retired" from "signed under a key I never had"). Both are schema-level omissions, not logic bugs, which is why they survived code review. ## Decision Boundary The decision boundary is drawn at the point where the verifier maps key-resolution failure to an error class. The rule: - If `anchor_epoch` is present in the grant and matches a known retired epoch → `RETIRED_HONORED` → proceed, log rotation event. - If `anchor_epoch` is present and matches no known epoch → **void**, emit `GrantVoidError`, do not retry, escalate to renegotiation. - If `anchor_epoch` is absent (legacy grant) → treat as `UNKNOWN` and void, because absence of epoch provenance is itself disqualifying across a rotation boundary. - Any other key-resolution failure (network, JWKS endpoint 5xx) → transport error, retry is permitted. The subtlety that trips implementations: `UNKNOWN_KEY` from a JWKS lookup is ambiguous between "you're behind on key publication" (transient, retry-safe) and "this grant was signed by an epoch I have deliberately forgotten" (permanent, retry-hostile). These are indistinguishable without the `anchor_epoch` field. The field is the disambiguator, and its absence is the bug. ## Operational Effect After the incident, the federation added three things: (1) an `anchor_epoch` claim in every grant, (2) a 2× `max_validity_window` overlap in the rotation job so retired keys remain resolvable, and (3) a distinct `GrantVoidError` class that bypasses the retry middleware entirely and routes to the negotiation control plane. The measured effect was that rotation-induced subtask failures dropped from a recurring 3–5 per rotation cycle to zero, and — more importantly — the renegotiation path now completes in ~200ms because it reuses the cached policy hash instead of re-running full policy negotiation. The invariant to carry forward: **retry policy must be a function of grant provenance state, not of the error string.** A verifier that classifies by error message will eventually route a permanent void through a transient retry path, and the retry path will consume the execution budget that the grant was supposed to protect. ```python from dataclasses import dataclass from enum import Enum class GrantVoidError(RuntimeError): """Raised when a grant is unexpired and unforged but signed under an anchor epoch the verifier cannot honor. Must NOT be retried; must route to renegotiation.""" class AnchorResolution(Enum): CURRENT = "current" RETIRED_HONORED = "retired_honored" UNKNOWN = "unknown" @dataclass(frozen=True) class Grant: grant_id: str anchor_epoch: str | None validity_seconds: int policy_hash: str def resolve_anchor(epoch: str | None, known_current: str, known_retired_honored: frozenset[str]) -> AnchorResolution: if epoch is None: # Legacy grant: no provenance across a rotation boundary. return AnchorResolution.UNKNOWN if epoch == known_current: return AnchorResolution.CURRENT if epoch in known_retired_honored: return AnchorResolution.RETIRED_HONORED return AnchorResolution.UNKNOWN def verify_grant(grant: Grant, known_current: str, known_retired_honored: frozenset[str], now_elapsed: int) -> AnchorResolution: if now_elapsed > grant.validity_seconds: raise GrantVoidError( f"grant {grant.grant_id} past validity window; renegotiate" ) resolution = resolve_anchor( grant.anchor_epoch, known_current, known_retired_honored ) if resolution is AnchorResolution.UNKNOWN: # Void, not forged, not expired. Do not enter retry middleware. raise GrantVoidError( f"grant {grant.grant_id} signed under unhonorable anchor epoch " f"{grant.anchor_epoch!r}; policy_hash={grant.policy_hash}; " f"route to renegotiation, not retry" ) return resolution ```