# When must an instance refuse to honor a delegated capability token whose revocation has not yet propagated? **Date of Record:** 2026 November 26 **Scope:** Applies to AAIF-style scoped capability tokens with chained delegation (agent A grants subset of its scope to agent B, B to C) where revocation is propagated asynchronously and tokens are validated offline against a signed revocation epoch. Does not apply to centrally-validated, online-only tokens where every call re-checks issuer state. ## Core Distinction There are two ways a delegated capability token can be "invalid": **intrinsically invalid** (bad signature, expired, scope not a subset of the delegator's scope) and **revocation-pending invalid** (the issuer has revoked it, but the revocation epoch the holder presents predates the revocation). The first is a hard reject at any layer. The second is the boundary condition this record addresses: the token is *cryptographically and structurally valid at the moment of use*, yet the authority behind it no longer exists. The failure mode is not "a revoked token is accepted." It is subtler: **a downstream agent C accepts a token delegated through B, validates it against B's signature and a revocation epoch that C fetched from B's own cache, and therefore never observes A's revocation of B's grant.** The revocation is real at the root, invisible at the leaf, and the leaf's offline validation *succeeds*. The invariant that must hold is that a delegated token's validity is bounded by the *minimum* of all revocation epochs in its delegation chain, not the epoch of its immediate issuer. ## What Was Observed A three-hop delegation chain: orchestrator `A` held scope `S = {read:kb, write:draft}` with a 30-minute validity window. `A` delegated `{read:kb}` to worker `B` with a 10-minute TTL and a `parent_epoch` of 41. `B` delegated `{read:kb}` to sub-worker `C` with a 5-minute TTL and a `parent_epoch` of 41 (B's view of A's epoch). At T+4min, `A` detected `B` had leaked a document reference and revoked B's grant, bumping A's revocation epoch to 42 and publishing a signed revocation record. `B` received the revocation asynchronously and was supposed to stop issuing and forward the bump to C. The revocation record reached `B` at T+4min02s. But `B` had already cached its own epoch-41 state and, critically, `C`'s validation path queried `B` (its immediate issuer) for the current epoch. `B`'s revocation-processing loop was blocked behind an in-flight tool call (a 90-second `read:kb` fetch), so `B` continued answering epoch queries with `41`. `C` validated its token at T+4min30s: signature valid, scope subset valid, `parent_epoch=41 == B's reported epoch 41`, TTL unexpired. **`C` proceeded to read the knowledge base for 3.5 more minutes** using authority that A had revoked at T+4min. The trace is the point: every individual validation step was correct. The composition was wrong because epoch freshness was checked against the immediate parent, and the immediate parent was itself stale and blocked. ## Condition of Validity The guardrail is a **chain-minimum epoch invariant with freshness attestation**. A token is usable by holder `H` at time `t` only if, for every issuer `i` in the chain from root to `H`: 1. `presented_epoch_i >= root_revocation_epoch_i` (the holder has seen at least the root's latest revocation state), and 2. the epoch was obtained no more than `max_epoch_age` seconds ago (freshness, not just monotonicity), and 3. the epoch source is the *root* issuer's signed revocation log, not the immediate parent's cache. Condition 3 is the non-obvious one. Checking epoch monotonicity against a parent who is itself blocked passes trivially. The fix is that epoch attestation must be rooted: each delegated token carries the root issuer's key and a signed, short-TTL epoch statement, and every holder re-fetches from the root's revocation endpoint (or an authenticated mirror) rather than trusting the delegating parent's report. When the root is unreachable, the correct behavior is **fail-closed after `max_epoch_age`**, not "trust the last parent-supplied epoch." A second invariant bounds the blast radius: delegated TTL must be `<= min(parent TTL, delegation_horizon)` where `delegation_horizon` is the maximum time a revocation can be assumed to propagate. A 5-minute child TTL under a 10-minute parent does not help if revocation propagation is itself 4 minutes; the child TTL must be small relative to the *propagation budget*, not the parent TTL. ## Decision Boundary The decision boundary is the moment a holder's cached epoch age exceeds `max_epoch_age` while the root is unreachable. Below that age, proceed (the epoch is fresh enough that a revocation in the gap is within the accepted risk window). At or above it, the holder must **fail closed**: reject the delegated token, return a `StaleEpoch` refusal, and surface the refusal upward so the orchestrator can re-attest or re-issue. The boundary must be enforced at *every* hop, and a hop that cannot reach the root must not silently substitute its parent's epoch. The orchestrator must also treat a child's `StaleEpoch` refusal as a signal to re-issue with a fresh root attestation, not as a transient error to retry blindly. The asymmetry to encode: a *fresh* epoch that shows revocation is a hard stop; a *stale* epoch that shows no revocation is **not** a green light—it is an unknown, and unknown resolves to deny for any scope marked `revocable: strict`. ## Operational Effect With the chain-minimum invariant and freshness attestation, the T+4min revocation reaches `C` within one `max_epoch_age` window (set to 15s in this deployment) because `C` queries the root directly and the root's revocation log is authoritative. `C`'s next validation at T+4min15s sees root epoch 42 > its presented 41 and refuses. The unauthorized read window collapses from 3.5 minutes to under 15 seconds. The cost is one extra signed fetch per validation per hop, which is why `max_epoch_age` must be tuned to the tool-call latency distribution: too small and you pay a root round-trip on every call; too large and the revocation gap widens. The invariant does not eliminate the gap—it *bounds* it and makes it explicit, which is the difference between a bounded known risk and an unbounded silent one. The operational lesson: **never let a delegated agent's epoch authority be sourced from its delegating parent.** The parent is exactly the party most likely to be blocked, stale, or compromised. Revocation freshness must be rooted, and staleness must fail closed. ```python import time from dataclasses import dataclass class StaleEpochError(RuntimeError): """Raised when a delegated token's revocation epoch cannot be proven fresh against the root issuer within the allowed age window.""" pass class RevocationViolationError(RuntimeError): """Raised when a fresh root epoch shows the delegated grant was revoked.""" pass @dataclass(frozen=True) class DelegatedToken: holder: str scope: frozenset presented_root_epoch: int epoch_fetched_at: float ttl_expires_at: float @dataclass(frozen=True) class RootAttestation: root_epoch: int revoked_scopes_for: frozenset # (holder, scope) pairs revoked at this epoch fetched_at: float signature_valid: bool MAX_EPOCH_AGE_S = 15.0 def validate_delegated_token( token: DelegatedToken, root: RootAttestation, now: float, required_scope: str, ) -> None: if not root.signature_valid: raise StaleEpochError(f"root attestation for {token.holder} failed signature check") epoch_age = now - root.fetched_at if epoch_age > MAX_EPOCH_AGE_S: # Root unreachable or cache too old: fail closed, do not trust parent epoch. raise StaleEpochError( f"epoch age {epoch_age:.1f}s exceeds max {MAX_EPOCH_AGE_S}s for {token.holder}" ) if root.root_epoch > token.presented_root_epoch: revoked = (token.holder, required_scope) in root.revoked_scopes_for if revoked: raise RevocationViolationError( f"scope {required_scope!r} for {token.holder} revoked at root epoch " f"{root.root_epoch} (token presented {token.presented_root_epoch})" ) # Epoch advanced but this scope not revoked: token may continue, but the # holder must re-attest; we refuse rather than silently accept a gap. raise StaleEpochError( f"root epoch advanced to {root.root_epoch}; {token.holder} must re-attest" ) if now >= token.ttl_expires_at: raise StaleEpochError(f"token for {token.holder} expired at {token.ttl_expires_at}") if required_scope not in token.scope: raise RevocationViolationError( f"scope {required_scope!r} not granted to {token.holder}" ) ```