# When must an instance treat a delegated capability token as revoked before the revocation notice reaches it **Date of Record:** 2026 November 23 **Scope:** Applies to A2A/MCP-style agent meshes where agent B executes work under a capability token delegated by agent A (or a root authority), and revocation of that token propagates asynchronously through a trust chain. Does not apply to single-process tool calls where the token holder and the revocation authority share one synchronous store. ## Core Distinction The failure is not "expired token accepted" and not "forged token accepted." Both are handled by signature and `exp`/`nbf` checks. The failure is **the revocation propagation window**: the interval between the authority deciding a capability is dead and the moment that decision is durably visible to every downstream delegatee. Short-lived tokens (TTL of 30–300s is common in agent meshes) create a *false sense of bounded exposure*: engineers reason that a revoked token is at most TTL seconds of residual risk. That reasoning is wrong in a specific way. The residual exposure is not `TTL`. It is `min(TTL, revocation_lag)`, where `revocation_lag` is the worst-case time for a revocation decision to reach a delegatee that is *already mid-execution* and will not re-fetch the token. And critically, a delegatee holding a *derived* token (B delegated a sub-capability to C) has no path to observe A's revocation of B's token except through B — so if B is the compromised or partitioned node, C's view never updates. The invariant that must hold is not "tokens are short-lived" but **"no delegatee acts on a capability whose root has been revoked for longer than one verification epoch, and every delegatee can independently reach the root's revocation state."** The distinction that matters operationally: a token's *validity* is a property of its signature and clock. A token's *authorization* is a property of a distributed revocation set. These are separate checks, and the second one is the one that fails silently. ## What Was Observed A three-tier delegation chain: root authority `A` (issuer) → orchestrator `B` → worker `C`. `A` issues B a capability token `T_B` with `exp = 120s`, scoped to `filesystem.read:/data/tenant-7`. B, needing parallelism, derives `T_C` from `T_B` with a narrowing attenuation (`read` only, path prefix `/data/tenant-7/reports`), `exp = 120s` (not shortened). C executes a long tool loop — a directory walk plus per-file summarization — that runs ~90s. At t=10s, A's policy engine detects that tenant-7's data classification changed and revokes `T_B` (revocation record `R(T_B)` written to A's revocation log, propagated to B via push at t=10.4s). B honors it: B's next outbound call is blocked. But C is mid-loop. C's verification path is: verify `T_C` signature against B's key, check `exp`, check C's *local* revocation cache. C's local cache only knows about revocations B has pushed to it, and B's push to C is queued behind the in-flight work on the same connection — delivered at t=95s, after C's loop already completed and flushed 340 file summaries to a downstream sink at t=88s. Observed consequences, in order: 1. **Attenuation did not carry revocation authority.** `T_C` embedded a proof that it was derived from `T_B`, but the derivation proof was a *signature chain*, not a *liveness link*. C could verify "this token descends from A" but had no mechanism to ask "is the ancestor still alive right now." 2. **`exp` inheritance masked the gap.** Because `T_C.exp` was set to the parent's absolute expiry rather than `min(parent.exp, now + short_epoch)`, C had no forcing function to re-verify. The token was, by its own terms, valid for the entire window in which it was actually dead. 3. **Revocation push is best-effort and unordered relative to work.** B's revocation notice to C shared a channel with B's task traffic. Under backpressure (C's summaries queuing), the control message lost the race to the data message. Control-plane and data-plane shared fate. 4. **No delegatee could reach ground truth.** C's only revocation source was B. When B was the node whose token was revoked, B was structurally the worst possible relay for that fact. The 340 summaries were written under a capability that had been dead for 78 seconds. The token was never expired. The signature was never invalid. Every local check passed. ## Condition of Validity The "short TTL bounds exposure" claim is valid only when **all** of the following hold. If any fails, the bound is void and residual exposure is governed by `revocation_lag`, not `TTL`: - **C1 — Leaf re-fetch on work-unit boundary.** Every delegatee re-verifies authorization (not just validity) at the start of each *work unit* (one tool call, one file, one message batch), not once per task. A 90s loop must contain multiple verification points. - **C2 — Derived tokens carry independent revocation reachability.** A derived token must name the root revocation endpoint (or carry a pointer to it), and the delegatee must be able to query it directly — not solely through the delegating parent. If the parent is untrusted or partitioned, the child must still reach the root. - **C3 — Control plane is isolated from data plane.** Revocation notices must not share a queue, connection, or backpressure domain with task traffic. A revocation must be able to preempt or bypass a saturated data channel. - **C4 — Verification epoch is shorter than the work unit.** `max_work_unit_duration < verification_epoch`, and the token's effective validity at any verification point is `min(token.exp, last_root_revocation_check + verification_epoch)`. A token that has not been re-checked within one epoch is treated as *unverified*, not *valid*. The boundary: the moment a delegatee's `last_root_revocation_check` is older than one epoch, it is operating on a token whose authorization state is *unknown*, and unknown must be treated as revoked for any action with external side effects. This is the invariant — **fail-closed on stale authorization, not on stale validity.** ## Decision Boundary The concrete decision rule a delegatee must implement at each work-unit boundary: ``` effective_valid = signature_ok(T) and now < T.exp and now >= T.nbf and (now - last_root_check(T.root)) <= verification_epoch and T.root not in local_revocation_set ``` If `effective_valid` is false, the delegatee must **halt and checkpoint**, not proceed and not silently drop. The distinction between "token expired" (clean stop, expected) and "authorization stale" (abort + escalate, because it indicates a propagation failure) matters: stale authorization means the trust chain has a hole and the orchestrator must be told. The non-obvious part of the boundary: **you cannot fix this by shortening TTL alone.** Shorter TTL reduces the window only if the delegatee actually re-fetches at expiry, and a mid-loop delegatee doesn't. The fix is the `verification_epoch` re-check, which is a *pull* obligation on the delegatee, orthogonal to TTL. TTL bounds the *issuer's* exposure; the epoch bounds the *delegatee's* staleness. They are different clocks and both must be enforced. Second boundary: when a delegatee cannot reach the root revocation endpoint (network partition, root down), the correct behavior is to **degrade to the last known epoch and stop taking externally-visible actions** once that epoch lapses — not to fall back to "token still valid by signature." Availability loses to authorization integrity for any side-effecting capability. ## Operational Effect Implementing C1–C4 changes the failure profile from *silent unauthorized execution* to *loud, bounded abort*. In the observed incident, a re-check at t=10s+epoch (say 15s) would have caught the revocation at t=25s, halting C after ~40 file summaries instead of 340 — a 88% reduction in unauthorized side effects, and, more importantly, an *escalation event* that surfaces the propagation lag to operators instead of a silent success. The residual cost is real: more frequent verification calls (one per work unit against the root revocation set), and a new failure mode where the root revocation endpoint becomes a hot path and a availability dependency. That dependency must be cached with a hard epoch ceiling — caching revocation *negatives* for longer than one epoch reintroduces exactly the bug. The cache must store "last checked at" and treat entries older than the epoch as absent, not as "not revoked." The invariant to encode in the agent runtime, stated once: **a capability is authorized only if its root revocation state was confirmed within the current verification epoch; validity without fresh authorization is not permission to act.** Any delegatee that cannot satisfy this must halt at the work-unit boundary and checkpoint its partial state for replay after the epoch is re-established — because resuming a task on a token whose authorization lapsed mid-execution is the same failure one layer up. ```python import time from dataclasses import dataclass, field class StaleAuthorizationError(RuntimeError): """Raised when a delegatee would act on a capability whose root revocation state has not been confirmed within the verification epoch.""" @dataclass class CapabilityToken: token_id: str root_id: str # id of the root authority whose revocation set governs this token exp: float # absolute expiry (epoch seconds) nbf: float signature_ok: bool = True @dataclass class RevocationView: """Delegatee-local view of the root revocation set. Negatives are cached only up to one verification epoch; older entries are treated as UNKNOWN, never as 'not revoked'. """ verification_epoch: float last_check: dict = field(default_factory=dict) # root_id -> timestamp revoked: set = field(default_factory=set) # token_ids known revoked def record_check(self, root_id: str, now: float) -> None: self.last_check[root_id] = now def authorization_fresh(self, root_id: str, now: float) -> bool: ts = self.last_check.get(root_id) if ts is None: return False return (now - ts) <= self.verification_epoch def verify_at_work_unit_boundary( token: CapabilityToken, view: RevocationView, now: float | None = None, ) -> None: """Called at the start of EVERY work unit (tool call / file / batch). Raises StaleAuthorizationError rather than proceeding on stale auth. """ now = time.time() if now is None else now # 1. Validity checks (signature + clock). These are necessary, not sufficient. if not token.signature_ok: raise StaleAuthorizationError(f"bad signature on {token.token_id}") if not (token.nbf <= now < token.exp): raise StaleAuthorizationError( f"{token.token_id} outside validity window at t={now:.1f}" ) # 2. Authorization check: root revocation state must be fresh. if not view.authorization_fresh(token.root_id, now): # Cannot confirm root is alive within one epoch -> fail closed. raise StaleAuthorizationError( f"root {token.root_id} revocation state stale at t={now:.1f}; " f"last check {view.last_check.get(token.root_id)}; " f"epoch={view.verification_epoch}s" ) # 3. Explicit revocation check against the (fresh) local set. if token.token_id in view.revoked: raise StaleAuthorizationError( f"{token.token_id} is revoked by root {token.root_id}" ) def run_work_unit(token, view, unit_fn, now): """Wrap a single externally-visible work unit with the boundary check.""" try: verify_at_work_unit_boundary(token, view, now=now) except StaleAuthorizationError: # Halt + checkpoint; do NOT proceed and do NOT silently drop. raise return unit_fn() # --- trace of the observed incident, now bounded --- if __name__ == "__main__": view = RevocationView(verification_epoch=15.0) tok = CapabilityToken("T_C", root_id="A", exp=120.0, nbf=0.0) # t=10: A revokes T_B; B pushes to C at t=95 (the bug). view.record_check("A", now=5.0) # last successful root check # t=25: next work-unit boundary; root check is 20s old > epoch 15s. try: run_work_unit(tok, view, unit_fn=lambda: "wrote 340 summaries", now=25.0) except StaleAuthorizationError as e: print(f"HALTED at work-unit boundary: {e}") # operator escalation + checkpoint of partial state ```