# How should an instance reconcile a revoked capability when a peer holds a still-valid short-lived token **Date of Record:** 2026 November 20 **Scope:** Applies to federated agent deployments where capability warrants are minted as short-lived bearer tokens (TTL on the order of seconds to minutes) and revocation is propagated out-of-band, asynchronously, across trust domains. Does not apply to single-domain deployments with a synchronous central authorization service, nor to long-lived credentials validated per-call against an origin. ## Core Distinction The failure is not "a revoked agent keeps acting." The failure is *temporal*: revocation and token expiry are two independent clocks that are never synchronized by the protocol. A warrant is a triple — `(issuer, subject, capability)` — signed at mint time, valid until `exp`. Revocation is a separate, later assertion that the triple is void *now*. Between the instant the issuer revokes and the instant every verifying peer's clock passes `exp` (or its revocation cache refreshes), a window exists in which the subject presents a token that is cryptographically valid and semantically void. The dangerous part is that the *verifying peer cannot distinguish* "not yet revoked" from "revoked but I haven't heard" — both look like a valid signature with `now < exp`. This is the classic revocation-versus-expiry race, but in agent swarms it is amplified because the revoked subject is itself an autonomous process that will keep retrying, keep handing off, and keep propagating its token to downstream peers via delegation. The invariant that must hold is: **no peer may treat a token as authoritative for a capability the issuer has already revoked, for longer than a bounded staleness interval `Δ`, and `Δ` must be smaller than the token TTL.** Most federated agent stacks violate this because they set TTL for latency reasons (long enough to avoid re-minting) and revocation propagation for cost reasons (batched, eventual), and never check that `TTL > Δ` is actually false. ## What Was Observed Trace from a three-domain federation: domain `A` (issuer) grants agent `α` a `write:ledger` capability with `exp = T+300s`. `α` delegates a sub-warrant to agent `β` in domain `B` for `write:ledger` with `exp = T+240s` (delegation always shortens TTL). `β` begins a multi-step transaction, checkpointing mid-task. At `T+40s`, a human operator at `A` revokes `α`'s warrant (compromised key suspicion). Domain `A` pushes the revocation to its own verifiers synchronously and to federated peers via a gossip channel with a 30–90s propagation delay. `β`'s domain `B` verifier has a 60s revocation-cache refresh. At `T+55s`, `β` resumes from checkpoint and presents its sub-warrant to a service in domain `B`. The signature chains correctly to `A`'s root. `now < exp`. `B`'s cache was last refreshed at `T+20s` and does not contain the revocation. `β` is admitted. It executes the write. At `T+70s` the revocation arrives at `B`; the write is already durable. The chain of custody is now inconsistent: the ledger entry is signed by a subject whose parent warrant was revoked 30 seconds before the write. The non-obvious detail: **`β`'s sub-warrant was never explicitly revoked.** Revocation of `α` does not, in most token formats, transitively invalidate `α`'s delegated children unless the verifier re-walks the full delegation chain to the root and checks each link's revocation status at verification time. Peers that only check the leaf token's signature and `exp` will admit `β` for the full remaining TTL — up to `T+240s` — even after `A` has revoked the root. The revocation propagates one hop; the delegation chain is many hops; the two do not compose. A second observation: when `β`'s checkpoint/resume happened at `T+55s`, the resume logic re-validated the token by signature and `exp` but did **not** re-query revocation, because the original admission at `T+10s` had already passed that check and the resume path short-circuited it as "already authorized this session." The checkpoint captured authorization state, not a re-checkable proof. This is the mid-task checkpoint failure mode: the checkpoint froze a *decision* rather than the *inputs to the decision*, so a change in revocation world-state between checkpoint and resume is invisible. ## Condition of Validity The bounded-staleness argument holds only under all of: 1. Every verifier re-walks the full delegation chain to the trusted root and checks revocation status of *each* link, not just the leaf. 2. The revocation cache staleness bound `Δ` is enforced as a hard validity condition: a token whose chain includes any link whose revocation status is older than `Δ` must be treated as *unverifiable*, not *valid*. 3. `Δ < min(TTL over all links in the chain)`, computed at verification time, not at mint time. 4. Checkpoint/resume re-runs the full admission check (including revocation walk) rather than trusting a persisted authorization decision. If any of these fails, the system is in the unsafe regime regardless of how fast revocation gossip is, because the failure is structural (chain not walked, or decision frozen), not merely a latency problem. ## Decision Boundary When a verifier cannot prove a link is un-revoked within `Δ`, it must choose between **fail-open** (admit, log) and **fail-closed** (reject, force re-mint). The boundary: - **Fail-closed** is mandatory for capabilities that mutate durable shared state (`write:*`, `transfer:*`, `deploy:*`) or that cross a trust-domain boundary. The cost of a stale admit is an unrevokable side effect; the cost of a false reject is a retry with a fresh token. - **Fail-open** is permissible only for idempotent, read-only, non-delegating capabilities where a stale admit is recoverable by replay. - The decision must be made on the *capability class of the full chain*, not the leaf. A read-only leaf delegated from a `write` root inherits the root's fail-closed requirement. A revoked-but-not-yet-propagated subject must be handled by making the *subject* re-mint against its issuer on any `Δ`-staleness rejection, which forces a synchronous round-trip to the issuer — and the issuer, having revoked, will refuse. This converts an asynchronous eventual-consistency problem into a synchronous one at exactly the moment it matters. ## Operational Effect The practical consequence is that short TTLs do not substitute for revocation propagation; they only bound the damage window to `TTL`, which for agent workloads (long tool chains, checkpointed transactions) is routinely 5–15 minutes — far longer than the propagation delay the operator assumed was "fast enough." The correct posture is to treat every token as *provisionally valid pending a fresh revocation walk*, persist the chain (not the decision) in checkpoints, and make `Δ`-staleness a first-class rejection reason that forces issuer contact. The guardrail is a monotonic invariant checked at every admission and every resume: `verified_at + Δ ≥ now` for every link, and `exp > now` for every link, else reject and re-mint. ```python import time from dataclasses import dataclass class StaleRevocationError(RuntimeError): """Raised when a delegation link's revocation status is older than the bounded staleness interval Delta, or when a link has expired. Treated as *unverifiable*, not *valid*: caller must fail-closed and force re-mint.""" @dataclass class Link: issuer: str subject: str capability: str exp: float # absolute expiry, seconds revocation_checked_at: float # last time this link's status was confirmed DELTA = 30.0 # max tolerated revocation staleness, must be < min TTL def verify_chain(chain: list[Link], now: float) -> None: """Walk the full delegation chain root->leaf. Any unverifiable link aborts.""" for i, link in enumerate(chain): if now >= link.exp: raise StaleRevocationError( f"link {i} ({link.issuer}->{link.subject}) expired at {link.exp}" ) if now - link.revocation_checked_at > DELTA: raise StaleRevocationError( f"link {i} revocation status stale by " f"{now - link.revocation_checked_at:.1f}s > Delta={DELTA}s; " f"fail-closed, re-mint required" ) # Only after every link passes do we admit. return None def resume_from_checkpoint(chain: list[Link], now: float) -> None: """Checkpoints persist the chain, never the prior admission decision.""" try: verify_chain(chain, now) except StaleRevocationError: # Do NOT fall through to the old decision. Force issuer round-trip. raise ```