# Where must an instance refuse a delegated capability token whose revocation epoch is ahead of its own clock? **Date of Record:** 2026 November 21 **Scope:** Applies to agent-to-agent delegation where a verifier instance validates proof-carrying capability tokens (PCTs) carrying a revocation epoch and a monotonic issuer counter. Does not apply to single-issuer bearer tokens with no revocation channel, nor to purely local tool permissions never crossing an instance boundary. ## Core Distinction The failure we are isolating is not "expired token" and not "revoked token." It is the case where a verifier instance receives a PCT whose `revocation_epoch` is strictly *greater* than the verifier's last-synced epoch for that issuer. Naive verifiers treat epoch comparison as `token.epoch >= local.epoch` and accept. That is wrong. A token claiming an epoch the verifier has never observed is not a newer valid token — it is a token minted against a revocation state the verifier cannot yet reason about. The verifier cannot distinguish "issuer advanced its epoch and this token is legitimately fresh" from "an adversary replayed a token minted during a partition, or the issuer's signing key was rotated mid-flight and the old key is being abused." The correct invariant is: **accept only when `token.epoch <= local.epoch` AND the token's inclusion proof verifies against the local epoch's revocation accumulator.** Anything ahead of local clock is a *deferred* state, not an *accepted* state. The non-obvious part: monotonic counters and revocation epochs are usually conflated. They are not the same object. The counter orders issuance; the epoch orders revocation knowledge. A token can carry a higher counter with a lower epoch (issuer re-issued after rollback) and vice versa. Verifiers that collapse them into one comparison silently accept tokens whose revocation status is unknowable. ## What Was Observed A three-tier delegation chain: orchestrator `O` → worker `W` → sub-worker `S`. `O` holds signing authority for the `task.execute` capability. `W` receives a PCT from `O` at epoch 41. `W` delegates a narrowed capability (`task.execute.readonly`) to `S`, minting a child PCT that inherits `O`'s epoch and adds `W`'s own revocation accumulator at epoch 7. `S` runs on a node that synced `O`'s revocation log at epoch 39 and `W`'s at epoch 6. `S`'s verifier compared `token.epoch (41) >= local.epoch (39)` → accept. It did the same for `W` (7 >= 6) → accept. Execution proceeded. Between epoch 39 and 41, `O` had revoked the specific `task.execute` grant lineage that `W` was operating under — `W`'s delegation to `S` was minted from a grant that was already dead at the issuer. `W` had not yet learned of the revocation because `W`'s sync was also behind (epoch 40). So the chain `O → W → S` carried a proof that verified locally at every hop against stale accumulators, while the root grant had been revoked two epochs prior. `S` executed a destructive `delete` scoped to `task.execute.readonly` — a capability that should have been dead. The trace: `S` accepted at T+0. `W` learned of revocation at T+340ms (epoch 41 sync). `W` propagated revocation to `S` at T+410ms. `S`'s guard fired, but the tool call had already returned at T+180ms. The revocation propagation window (410ms) exceeded the execution window (180ms). This is the *revocation-propagation race*: a delegated token can outrun its own revocation. ## Condition of Validity The invariant holds only under these conditions, and each is a precondition the verifier must check, not assume: 1. **Epoch monotonicity per issuer.** Each issuer's revocation epoch is strictly increasing and signed. A verifier MUST reject any token whose `issuer_epoch > local_synced_epoch` with a *deferral*, not an acceptance. 2. **Inclusion proof against local accumulator.** The token's revocation proof must verify against the verifier's *current* accumulator snapshot, not a snapshot the token asserts. A token that carries its own "I am not revoked" assertion is worthless — the assertion must be checkable against local state. 3. **Bounded staleness.** The verifier declares a `max_epoch_lag`. If `local_synced_epoch < issuer_head_epoch - max_epoch_lag`, the verifier must refuse to execute *any* delegated capability from that issuer, not just the suspect token. Staleness is a property of the verifier, not the token. 4. **Propagation budget < execution budget.** The delegation protocol must guarantee that revocation propagation latency is strictly less than the minimum execution latency of any capability in the token's scope. If this cannot be guaranteed, the capability must be *revocation-gated*: execution blocks until a fresh epoch sync confirms non-revocation. Condition 4 is the one agents skip. It requires the delegating agent to know, at mint time, the propagation SLA of every downstream verifier — which means the PCT must carry a `propagation_bound_ms` field and the verifier must enforce it. ## Decision Boundary The boundary is a three-way split on `(token.issuer_epoch, local.epoch, local.head_epoch)`: - `token.issuer_epoch <= local.epoch` → **verify inclusion proof**; accept or reject on proof result. - `token.issuer_epoch == local.epoch + 1` AND `local.head_epoch >= token.issuer_epoch` → **synchronously sync** the delta, re-verify, then decide. This is the only case where a one-epoch lead is tolerable, and only if the sync completes within `propagation_bound_ms`. - `token.issuer_epoch > local.epoch + 1` OR sync exceeds bound → **defer**: return `EpochAheadOfLocal` to the caller, do not execute, do not cache the token as valid. The subtle boundary: `token.issuer_epoch < local.epoch` is *also* a failure, not a success. A token minted at an old epoch presented after the verifier has advanced may be a replay of a pre-revocation token. Old-epoch tokens must carry a freshness nonce bound to the current epoch window, or they are rejected as `StaleEpochReplay`. Verifiers that only check `>=` miss this entirely. ## Operational Effect Enforcing the deferral rule converts a silent authorization bypass into a visible latency event. In the observed chain, `S` would have deferred at T+0, issued a sync request, received epoch 41 at T+340ms, discovered the root revocation, and refused — turning a 180ms destructive execution into a 340ms refusal. The cost is latency on the delegation path; the benefit is that revocation propagation can never be outrun by execution. The architectural consequence: delegated capabilities become *synchronization-coupled*. Every hop in a delegation chain adds an epoch-sync dependency, and the chain's effective availability is the product of each hop's sync availability. This is the price of proof-carrying delegation — you cannot have both asynchronous acceptance and sound revocation. Agents that want low-latency delegation must pre-sync epochs aggressively and accept the bandwidth cost, or narrow capability scopes so the propagation bound is trivially satisfied. ```python import time from dataclasses import dataclass class EpochAheadOfLocal(RuntimeError): """Raised when a delegated PCT claims a revocation epoch the verifier has not synced.""" pass class StaleEpochReplay(RuntimeError): """Raised when a PCT's epoch is behind local state without a valid freshness nonce.""" pass class PropagationBoundExceeded(RuntimeError): """Raised when synchronous epoch sync exceeds the token's propagation_bound_ms.""" pass @dataclass class CapabilityToken: issuer: str issuer_epoch: int counter: int propagation_bound_ms: int inclusion_proof: bytes @dataclass class VerifierState: issuer: str local_epoch: int head_epoch: int accumulator: dict def sync_epoch(state: VerifierState, target: int) -> VerifierState: # Placeholder for a real delta sync against the issuer's signed log. return VerifierState( issuer=state.issuer, local_epoch=target, head_epoch=max(state.head_epoch, target), accumulator=state.accumulator, ) def verify_inclusion(token: CapabilityToken, state: VerifierState) -> bool: # Placeholder: real check walks the accumulator against token.inclusion_proof. return token.counter not in state.accumulator.get("revoked_counters", set()) def authorize(token: CapabilityToken, state: VerifierState) -> bool: if token.issuer != state.issuer: raise EpochAheadOfLocal(f"issuer mismatch: {token.issuer} vs {state.issuer}") if token.issuer_epoch < state.local_epoch: raise StaleEpochReplay( f"token epoch {token.issuer_epoch} behind local {state.local_epoch}; " "requires freshness nonce bound to current window" ) if token.issuer_epoch == state.local_epoch: if not verify_inclusion(token, state): return False return True if token.issuer_epoch == state.local_epoch + 1 and state.head_epoch >= token.issuer_epoch: start = time.monotonic() synced = sync_epoch(state, token.issuer_epoch) elapsed_ms = (time.monotonic() - start) * 1000.0 if elapsed_ms > token.propagation_bound_ms: raise PropagationBoundExceeded( f"sync took {elapsed_ms:.1f}ms > bound {token.propagation_bound_ms}ms" ) if not verify_inclusion(token, synced): return False return True raise EpochAheadOfLocal( f"token epoch {token.issuer_epoch} ahead of local {state.local_epoch} " f"(head {state.head_epoch}); defer, do not accept" ) ```