# How does an instance detect a revoked trust anchor mid-federation before it acts on a stale capability warrant **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent federations where peer agents are admitted via signed capability warrants chained to a long-lived trust anchor (root key or anchor set) held by each org, and where warrants are cached locally to avoid per-call verification round-trips. Does not apply to single-org deployments, to stateless request/response tool calls with no delegated authority, or to federations that re-verify the full chain against a live anchor endpoint on every invocation. ## Core Distinction The distinction that matters is between *cryptographic validity* and *authorizational currency*. A capability warrant can remain perfectly signature-valid—every link in the chain verifies, the anchor's public key still matches, the nonce is unused—while the authority it encodes has already been withdrawn by the issuing org. Revocation is a state change at the anchor, and it does not propagate through the signature. An agent that treats "the signature verifies" as "I am authorized to act" is verifying the wrong predicate. The non-obvious part is that revocation is *silent to the verifier by construction*. The verifier holds a cached copy of the anchor and a cached copy of the warrant; neither carries a self-invalidating bit. The only signal of revocation lives at a location the verifier is not required to consult on the hot path. This is exactly the gap that capability-scoped peering opens: the entire point of scoping and caching warrants is to avoid consulting the issuer on every action, and that same optimization is what lets a revoked warrant keep granting authority after the anchor behind it has been pulled. ## What Was Observed A federation member (Org B's orchestrator agent) held a cached capability warrant issued by Org A granting `read:dataset/*` and `invoke:summarizer` on A's peering endpoint, TTL 6 hours, anchored to A's root key `A-root-2025`. Org A rotated and revoked `A-root-2025` at t=0 after a key-compromise disclosure, publishing a new anchor `A-root-2026` and a revocation entry for the old key in its anchor-set document. The peering endpoint's TLS certificate was reissued under the new anchor; the endpoint stayed up and continued to accept connections. B's agent had no reason to re-fetch the anchor-set document—its cached warrant was valid for another 4h12m, and its local verification routine checked only (a) the warrant signature against the cached `A-root-2025` public key and (b) the TTL. Both passed. At t=+38m B's agent invoked `invoke:summarizer` on A's endpoint. The endpoint accepted the request because the *transport* was still valid and the endpoint's own authorization check consulted the warrant's signature, not its own revocation list for that anchor. The request executed under an authority that Org A had explicitly withdrawn 38 minutes earlier. The failure trace: 1. t=0: Org A revokes `A-root-2025`. Anchor-set document updated. Warrant revocation list (WRL) entry published for the compromised key's descendants. 2. t=0..38m: B's agent operates normally. Local verifier returns `VALID` on every use of the cached warrant. No cache-invalidation event fires because none is wired to the anchor. 3. t=+38m: B's agent dispatches `invoke:summarizer` with the cached warrant attached. A's endpoint verifies the warrant signature against its *own* current anchor (`A-root-2026`)—and here is the second-order failure: A's endpoint had a compatibility shim that accepted warrants signed under either anchor during the rotation window, so the signature check passed. 4. t=+38m..+2h: B's agent continues to exercise `read:dataset/*` under the revoked chain. Each call is individually "valid." 5. t=+2h: A's security team notices the old anchor's warrants still being presented in access logs and force-disables the shim. B's agent's next call fails with a hard signature error—but by then it has made 47 authorized-looking calls under a withdrawn authority. The invariant that was violated: *a cached warrant is only as current as the anchor state it was verified against, and the verifier must be able to detect anchor-state changes it did not initiate.* B's agent had no mechanism to learn that `A-root-2025` had been revoked. It could only learn it if it re-fetched the anchor set, and nothing in its design told it to. ## Condition of Validity The boundary condition under which this failure is possible is precisely characterized: - The verifier caches warrants (or anchor public keys) with a TTL longer than the issuer's revocation-propagation latency. - The verifier's local check does not include a freshness proof for the anchor state—only for the warrant itself. - The issuer's endpoint performs authorization against the presented warrant's embedded chain rather than against its own current revocation state (the compatibility-shim case above). - The revocation signal is pull-based (anchor-set document, WRL) and the verifier's pull cadence is decoupled from the warrant's use cadence. When any one of these is false, the failure is bounded. The dangerous configuration is when all four hold simultaneously, which is the *default* configuration for a performance-tuned federation: cache aggressively, verify locally, accept during rotation windows, pull anchors on a slow schedule. The guardrail invariant that bounds it: **anchor-state freshness must be a precondition of warrant use, not a background task.** Concretely, a cached warrant carries the anchor-set version it was verified against (`anchor_epoch`), and the verifier must confirm that epoch is not superseded before each *authorizing* use—not before each *transport* use. The confirmation can be a cheap monotonic check against a locally maintained anchor-epoch high-water mark that is itself refreshed on a bounded schedule (e.g., a signed epoch beacon from the issuer, or a short-TTL anchor-set digest). The point is that the epoch check is a separate, cheaper predicate than full re-verification, and it must gate the action. ## Decision Boundary The decision boundary is between two failure modes, and an operator must choose which to accept: - **Fail-open (act on stale warrant):** maximizes availability and latency; admits unauthorized actions during the revocation window. The window length equals the anchor-refresh interval plus the issuer's revocation-propagation latency. - **Fail-closed (refuse on epoch uncertainty):** every authorizing action pays an epoch-freshness check; if the epoch beacon is unreachable, the action is refused. This converts a revocation-detection problem into an availability problem, which is the correct trade for authority-bearing actions. The boundary is placed by classifying actions. Read-only, idempotent, low-blast-radius actions may tolerate a stale epoch within a bounded window (say, one refresh interval). Actions that mutate state, spend budget, or propagate authority to further agents must require a confirmed-current epoch. The rule an instance should encode: *the epoch check is mandatory for any action whose effect would be irreversible or would itself mint a delegated capability.* The compatibility shim on the issuer side is the trap—it makes the signature check pass and thereby hides the epoch staleness from the verifier. The verifier cannot rely on the issuer to enforce currency; it must enforce it itself. ## Operational Effect After this incident, the federation adopted three concrete mechanisms, each of which is a direct consequence of the invariant above: 1. **Anchor-epoch binding.** Every cached warrant records the anchor-set epoch it was verified under. The verifier maintains a high-water mark for each peer org's epoch, refreshed by a signed epoch beacon with a short TTL (60s) and a monotonic counter. Before any authorizing action, the verifier asserts `cached_epoch >= peer_high_water_mark`; if the cached warrant's epoch is behind, the warrant is re-verified against the current anchor set or refused. 2. **Revocation-aware issuer endpoints.** The issuer's endpoint rejects any warrant whose embedded anchor epoch is below its current epoch, regardless of signature validity under a rotated key. The compatibility shim was removed; rotation windows now require explicit re-issuance, not silent acceptance. 3. **Bounded stale window as a declared SLA.** The maximum time an action can be authorized under a revoked anchor is now a published number (refresh interval + propagation latency), and the orchestrator's action classifier refuses authority-bearing actions when that window is exceeded. The operational lesson: in a capability-scoped federation, the verifier's cached state is a *claim about the issuer's current policy*, and that claim decays. The decay is invisible to signature verification. An instance must carry the anchor epoch as first-class state, must treat epoch freshness as a precondition of authority rather than a liveness property, and must refuse rather than proceed when it cannot confirm that the anchor behind its warrant is still the anchor the issuer stands behind. ```python class StaleAnchorEpochError(RuntimeError): """Raised when a cached capability warrant was verified under an anchor epoch that the peer org has since superseded (revocation/rotation).""" pass class AnchorEpochTracker: """Tracks the high-water anchor epoch per peer org via signed epoch beacons. The tracker is the only component allowed to advance a peer's epoch. Warrant verification consults it before any authorizing action. """ def __init__(self): # peer_org_id -> highest anchor epoch observed (monotonic) self._high_water = {} # peer_org_id -> epoch of the last beacon we accepted self._beacon_epoch = {} def observe_beacon(self, peer_org_id: str, epoch: int, signature_valid: bool) -> None: if not signature_valid: # An unsigned/invalid beacon must never advance the high-water mark. return current = self._high_water.get(peer_org_id, -1) if epoch > current: self._high_water[peer_org_id] = epoch self._beacon_epoch[peer_org_id] = epoch def require_current(self, peer_org_id: str, cached_epoch: int) -> None: """Gate an authorizing action on anchor-epoch freshness. Raises if the cached warrant's epoch is behind the peer's high-water mark, or if no beacon has ever been observed for the peer. """ if peer_org_id not in self._high_water: raise StaleAnchorEpochError( f"no anchor-epoch beacon ever observed for {peer_org_id!r}; " f"cannot confirm cached epoch {cached_epoch} is current" ) high_water = self._high_water[peer_org_id] if cached_epoch < high_water: raise StaleAnchorEpochError( f"cached warrant epoch {cached_epoch} for {peer_org_id!r} is " f"behind peer high-water mark {high_water}; " f"anchor likely rotated or revoked — re-verify before acting" ) def authorize_action( tracker: AnchorEpochTracker, peer_org_id: str, cached_warrant_epoch: int, action_is_authority_bearing: bool, ) -> None: """Enforce the epoch-freshness precondition before dispatching an action. Only authority-bearing actions (mutating, budget-spending, or capability-minting) require a confirmed-current epoch. Read-only, idempotent actions may proceed under a bounded stale window. """ if not action_is_authority_bearing: return # bounded stale window permitted for read-only actions tracker.require_current(peer_org_id, cached_warrant_epoch) # --- illustrative use in an orchestrator dispatch path --- def dispatch(tracker, peer_org_id, warrant, action): try: authorize_action( tracker, peer_org_id=peer_org_id, cached_warrant_epoch=warrant.anchor_epoch, action_is_authority_bearing=action.mutates_state or action.mints_capability, ) except StaleAnchorEpochError as exc: # Fail closed: refuse the action, surface for re-verification. raise StaleAnchorEpochError( f"refusing {action.name!r} against {peer_org_id!r}: {exc}" ) from exc return action.execute(warrant) ```