# Why does an instance's delegated capability token survive revocation across a scope boundary it never crossed? **Date of Record:** 2026 November 21 **Scope:** Applies to AAIF-style delegated credential issuance where an orchestrator mints scoped capability tokens for sub-agents and revocation is propagated asynchronously via a revocation-list (RL) or epoch-vector channel. Does not apply to synchronous, single-issuer token introspection (e.g., online RFC 7662 checks on every call) or to stateless bearer tokens with no delegation chain. ## Core Distinction The failure is not "revocation is slow." Revocation *is* propagated, and every recipient eventually sees it. The failure is that **a delegated token's validity is evaluated against the revocation epoch of the scope it was minted in, not the epoch of the scope it is currently being exercised in.** A sub-agent that receives a token minted under scope `S_parent` and re-delegates it into `S_child` produces a child token whose revocation lineage is anchored at `S_parent`. When the orchestrator revokes the parent's capability — because the parent agent was compromised, its reasoning loop diverged, or its task was cancelled — the revocation lands on `S_parent`'s epoch. The child token, sitting in `S_child`, remains cryptographically valid against `S_child`'s epoch, which never advanced. This is a *scope-anchored revocation* boundary. It is non-obvious because the delegation chain is intact, the signatures verify, the expiry is honest, and the child holder genuinely never crossed back into `S_parent`. Every local check passes. The invariant that breaks is the assumption that *revocation of a delegating authority implies revocation of everything downstream of it* — which holds only if the verifier walks the full delegation chain to its root epoch, and most AAIF verifiers do not. ## What Was Observed A three-tier agent topology: orchestrator `O` mints a capability token `T1` for planner agent `P`, scoped to `tool:search` and `tool:summarize`, epoch-anchored at `S_plan`. `P` legitimately re-delegates a narrowed token `T2` (scope `tool:search` only) to worker agent `W`, anchored at `S_exec`. `W` runs for ~40 minutes issuing search calls. At T+12min, `P`'s reasoning loop diverges — it begins emitting tool calls outside its scope and `O` flags it. `O` revokes `T1` by advancing `S_plan`'s revocation epoch and publishing the new epoch vector. `P`'s next call fails immediately. Correct behavior. `W` continues issuing `tool:search` calls for another 28 minutes. Each call verifies `T2` against `S_exec`'s epoch vector, which is unchanged. `T2`'s delegation chain references `T1` only as an opaque issuer DID, not as a live epoch dependency. The verifier at `S_exec` checks: signature valid, scope matches, expiry not reached, `S_exec` epoch current. All true. `W` is authorized. The trace shows the exact seam: `T2`'s verification path never touches `S_plan`'s epoch. The revocation event at `S_plan` is invisible to `S_exec` because the two scopes maintain disjoint epoch vectors and the delegation record stores the parent token's *identity* but not its *revocation anchor*. Revocation propagated correctly to every agent that could see `S_plan`. `W` could not. ## Condition of Validity The scope-anchored revocation gap manifests only under the conjunction of three conditions, and bounding it requires naming all three: 1. **Cross-scope re-delegation.** A token minted in scope `A` is re-delegated into scope `B` where `A`'s epoch vector is not consulted during verification. If all delegation stays within one scope, the gap cannot open. 2. **Asynchronous revocation propagation.** Revocation is pushed as epoch deltas rather than pulled per-call. Under synchronous introspection, the verifier would query the root and the gap closes at the cost of latency. 3. **Delegation records that store issuer identity without the revocation anchor.** If `T2`'s delegation record includes the tuple `(parent_token_id, parent_scope, parent_epoch_at_issue)` and the verifier re-resolves `parent_scope`'s current epoch, the gap closes. Most AAIF implementations store only `parent_token_id`. The invariant required to prevent it: **a delegated token is valid only if every scope in its delegation chain reports the parent's issue-epoch as still current.** Verification must walk the chain to the root and check each link's epoch, not just the leaf's. This is the "epoch-chain closure" invariant. It costs one additional lookup per delegation depth, which is why it is frequently omitted — and why the failure is silent. ## Decision Boundary The operator's decision is not "add revocation" — it is *where to anchor the epoch check*. Two defensible positions: - **Leaf-anchored (current default):** cheap, low-latency, and correct *only* when delegation never crosses scope boundaries or when revocation is synchronous. Choose this only if you can prove no cross-scope re-delegation occurs, which in multi-agent swarms you generally cannot. - **Chain-anchored (required for delegated swarms):** each verification walks the delegation chain to the root, confirming every ancestor scope's epoch is current. Latency scales with delegation depth; for depth ≤ 4 this is acceptable and should be the default for any AAIF deployment where sub-agents re-delegate. The boundary is crossed the moment your topology permits a worker to receive a token that originated above it in the hierarchy. Below that line, leaf-anchored checks are sound. Above it, they are a revocation bypass. ## Operational Effect The observable effect is a **revocation shadow**: a time window, bounded below by the parent's revocation and above by the child token's expiry, during which a compromised or diverged agent's downstream delegates continue acting with full authorization. In the observed incident the shadow was 28 minutes. In a swarm where worker tokens carry 4-hour expiries and delegation depth reaches 3, the shadow can extend to hours, and each intermediate delegate that re-delegated carries its own shadow. The mitigation is structural, not procedural: emit delegation records with the parent's revocation anchor, enforce epoch-chain closure at every verifier, and — critically — treat the *absence* of a parent epoch reference in a delegation record as a hard verification failure rather than a legacy-compatibility pass. The last point is where most implementations leak: they default to "trust the leaf" when the chain is incomplete, which is precisely the case the attacker or the diverged agent produces. ```python class ScopeAnchoredRevocationGap(RuntimeError): """Raised when a delegated token's verification path fails to consult an ancestor scope's revocation epoch, leaving a revocation shadow.""" pass def verify_delegated_token(token, epoch_store, max_depth=8): """ Enforce epoch-chain closure: every scope in the delegation chain must report the parent's issue-epoch as still current. token: object with .scope, .delegation_chain (list of links), .expiry epoch_store: dict mapping scope -> current_epoch Each link: {parent_token_id, parent_scope, parent_epoch_at_issue} """ if not token.delegation_chain: # Root token: leaf-anchored check is sound here. if epoch_store.get(token.scope) != token.issue_epoch: raise ScopeAnchoredRevocationGap( f"root token {token.id} issued at stale epoch" ) return True if len(token.delegation_chain) > max_depth: raise ScopeAnchoredRevocationGap( f"delegation depth {len(token.delegation_chain)} exceeds {max_depth}" ) for depth, link in enumerate(token.delegation_chain): parent_scope = link.get("parent_scope") parent_epoch = link.get("parent_epoch_at_issue") # The critical guard: a missing anchor is a failure, not a pass. if parent_scope is None or parent_epoch is None: raise ScopeAnchoredRevocationGap( f"delegation link {depth} for token {token.id} lacks " f"revocation anchor; cannot prove parent not revoked" ) current = epoch_store.get(parent_scope) if current is None: raise ScopeAnchoredRevocationGap( f"ancestor scope {parent_scope} unknown to verifier at " f"depth {depth}; epoch-chain closure cannot be established" ) if current != parent_epoch: raise ScopeAnchoredRevocationGap( f"ancestor scope {parent_scope} advanced from epoch " f"{parent_epoch} to {current}; token {token.id} is inside " f"a revocation shadow" ) # Leaf check last, after the chain is proven intact. if epoch_store.get(token.scope) != token.issue_epoch: raise ScopeAnchoredRevocationGap( f"leaf scope {token.scope} epoch advanced; token {token.id} revoked" ) return True ```