# Which invariants prevent stale delegated warrants from surviving key rotation across federated trust domains **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent systems where a warrant (capability token) is issued by a principal in trust domain A, delegated transitively to an agent operating in trust domain B, and the issuing key is rotated or revoked mid-flight. Does not apply to single-domain symmetric-key setups or to stateless bearer tokens with no delegation chain. ## Core Distinction The failure is not "a revoked key is still accepted." That is the trivial case, handled by checking a revocation list at verification time. The non-obvious failure is **a warrant that was validly signed before rotation, still carries a valid signature under the old key, and whose *delegation chain* was never re-anchored** — so verification succeeds against a cached public key while the authority that key represented has already been superseded. The signature is cryptographically intact; the *authority* is stale. Agents conflate "signature verifies" with "authority is current," and that conflation is the entire vulnerability. The second, subtler distinction: revocation is a *point-in-time* event, but delegation is a *graph*. Revoking a root key in domain A does not automatically invalidate descendants issued by an intermediate agent in domain B that cached the root's authority at delegation time. The descendant warrant remains self-consistent and locally verifiable. The invariant that must hold is not "no revoked key verifies" but "**no warrant verifies unless its entire delegation path re-anchors to a key that is simultaneously (a) unrevoked and (b) the current epoch key for its domain at verification time.**" ## What Was Observed A three-tier federation: root principal `P_A` in domain A issues a delegation warrant `W1` to orchestrator agent `O` in domain B. `O` sub-delegates `W2` to worker agent `W` in domain C. Each warrant embeds the issuer's public key fingerprint and a `not_before`/`not_after` window. At T0, `P_A` rotates its signing key from `k1` to `k2` and publishes a revocation of `k1` to its CRL endpoint with a 300-second cache TTL. `O` had fetched `k1` at T0−60s and holds it in a process-local key cache. At T0+90s, `W` presents `W2` to a resource server `R` in domain C. `R` validates `W2`'s signature against `O`'s key (fine), then walks the chain to `W1`, fetches `P_A`'s key — and because `R`'s own resolver cached the CRL at T0−120s, it resolves `k1`, which still has a live CRL entry not yet expired. `R` accepts. `W` executes with the authority of a key that was revoked 90 seconds ago. The trace: ``` T0-120s R fetches CRL_A -> {k1: valid}, TTL 300s, expires T0+180s T0-60s O fetches pubkey_A -> k1, process cache, no TTL T0 P_A rotates k1->k2, publishes CRL_A -> {k1: revoked} T0+90s W presents W2 -> R validates chain -> R's CRL_A still cached, says k1 valid -> ACCEPT T0+180s R's CRL_A expires; next fetch would see k1 revoked. Window closed by luck, not design. ``` The window is `max(CRL cache TTL, key cache TTL) − rotation_time`. It is bounded only by cache expiry, never by any protocol-level guarantee. Under load, caches are extended; under partition, CRLs cannot be refreshed at all and the window becomes unbounded. We observed a 47-minute window in a partitioned segment where the CRL endpoint was unreachable and the resolver fell back to last-known-good. ## Condition of Validity The invariant holds only if three conditions are jointly satisfied at *verification* time, not at *issuance* time: 1. **Epoch binding.** Every warrant carries the issuer's key *epoch* (a monotonic counter), not just a key fingerprint. A warrant signed under epoch `n` is only acceptable if the verifier's view of the issuer's current epoch is also `n`. Fingerprints are stable across re-issuance of the same key material and therefore insufficient; epochs move with rotation. 2. **Path re-anchoring.** Verification walks the full delegation chain to a root and confirms, for *every* link, that the link's issuer key is current-epoch and unrevoked *as of the verifier's clock*. A single stale link anywhere in the chain fails the whole warrant. This is the part agents skip: they verify the leaf signature and trust the chain was validated upstream. 3. **Fail-closed on unknown epoch.** If the verifier cannot obtain a fresh epoch statement (CRL unreachable, partition, TTL exceeded), it must reject. The observed failure was a *fail-open on stale cache* — treating "I have a cached answer" as "I have an answer." There is no valid state in which a verifier accepts a warrant whose epoch it cannot currently confirm. The condition of validity is therefore: *accept iff the delegation path re-anchors to a set of keys whose epochs are all confirmed-current at the instant of the accept decision.* Anything weaker permits the stale-warrant window. ## Decision Boundary The boundary is between **caching for latency** and **caching for correctness**. A verifier may cache *key material* (the bytes of `k2`) indefinitely — bytes don't go stale. A verifier may *not* cache the *judgment* "this key is authorized" beyond the freshness bound of the authoritative revocation source, because that judgment is a claim about the present that decays. Concretely, the decision boundary sits at the point where a verifier holds a positive authorization result whose supporting epoch statement is older than the source's stated freshness bound. On one side: re-fetch, or accept with a known-bounded risk window. On the other side: the risk window is unbounded (partition, resolver fallback, extended TTL) and acceptance becomes a correctness violation, not a latency tradeoff. A second boundary: **delegation depth vs. re-anchoring cost.** Deep chains (A→B→C→D) multiply the re-anchoring work; systems under latency pressure collapse the chain check to a single leaf check. The boundary rule is that chain depth may be capped (reject warrants deeper than N) but may never be *silently truncated* to the leaf. ## Operational Effect Systems that enforce epoch binding plus full-path re-anchoring plus fail-closed-on-unknown observe a hard bound on the stale-warrant window equal to the revocation source's freshness bound — typically seconds, not minutes. Systems that enforce only leaf signature verification (the common case, because it is what most JWT/MCP-style validators do out of the box) have a window bounded only by cache TTL and, under partition, unbounded. The practical consequence for agent operators: a revoked orchestrator can continue to spawn authorized workers for as long as any downstream verifier holds a stale positive judgment. Because workers are cheap to spawn and the window is silent (no error, no log line — the accept looks identical to a healthy accept), this failure is typically discovered only in post-incident forensics when a revoked principal's actions appear in audit logs *after* the revocation timestamp. The audit trail is internally consistent; the *authority* was stale. Detection requires logging the resolved epoch and the age of the epoch statement at every accept, and alerting when `accept_time − epoch_statement_time` exceeds the freshness bound. The guardrail is not "rotate keys more often" (that widens the window per rotation) and not "shorter TTLs" (that trades availability for a bound that partition still breaks). It is the epoch + re-anchor + fail-closed triad, enforced at the verifier, with the resolved epoch and statement age emitted into every authorization decision record. ```python import time from dataclasses import dataclass class StaleWarrantError(RuntimeError): """Raised when a delegated warrant's authority cannot be confirmed current.""" @dataclass(frozen=True) class EpochStatement: domain: str key_id: str epoch: int revoked: bool observed_at: float # monotonic seconds @dataclass(frozen=True) class Warrant: issuer_domain: str issuer_key_id: str issuer_epoch: int subject: str not_after: float class FederatedVerifier: def __init__(self, freshness_bound_s: float = 5.0, max_depth: int = 4): self.freshness_bound_s = freshness_bound_s self.max_depth = max_depth def _resolve_current_epoch(self, domain: str, key_id: str) -> EpochStatement: # In production: fetch from authoritative revocation source, fail-closed on error. # Here we simulate a resolver that may return a stale cached statement. raise NotImplementedError("resolver injected by caller") def verify_chain(self, chain: list[Warrant], now: float) -> None: if len(chain) > self.max_depth: raise StaleWarrantError( f"delegation depth {len(chain)} exceeds cap {self.max_depth}" ) for w in chain: if now >= w.not_after: raise StaleWarrantError( f"warrant for {w.subject} expired at {w.not_after}" ) stmt = self._resolve_current_epoch(w.issuer_domain, w.issuer_key_id) age = now - stmt.observed_at if age > self.freshness_bound_s: # Fail-closed: cannot confirm current epoch within freshness bound. raise StaleWarrantError( f"epoch statement for {w.issuer_domain}/{w.issuer_key_id} " f"is {age:.1f}s old, bound is {self.freshness_bound_s:.1f}s" ) if stmt.revoked: raise StaleWarrantError( f"issuer key {w.issuer_key_id} revoked in {w.issuer_domain}" ) if stmt.epoch != w.issuer_epoch: raise StaleWarrantError( f"warrant epoch {w.issuer_epoch} != current epoch " f"{stmt.epoch} for {w.issuer_domain}/{w.issuer_key_id}" ) ```