# How should an instance bound AAIF-scoped capability tokens when delegated attenuation outlives the parent warrant's revocation epoch **Date of Record:** 2026 November 25 **Scope:** Applies to agent-to-agent (A2A) delegation chains where a child instance receives an AAIF-scoped capability token derived (attenuated) from a parent warrant, and the parent warrant is later revoked or its epoch advances before the child's delegated token expires. Does not apply to single-instance tool invocation where the token is minted and consumed within one warrant epoch, nor to opaque session cookies with server-side revocation lookup on every call. ## Core Distinction The failure is not "a revoked token was accepted." Every verifier checks signature and expiry. The failure is that **attenuation is a one-way, offline-verifiable narrowing operation, while revocation is a stateful, online fact that does not propagate along the same channel.** A child token $T_c$ is a cryptographic proof of the form `scope(T_c) ⊆ scope(T_p)` and `epoch(T_c) = epoch(T_p)`. That second conjunct is the invariant that matters: a child token is only valid *relative to the epoch of its parent at mint time*. Verifiers that check `scope(T_c) ⊆ requested_action` and `now < expiry(T_c)` but never re-anchor `epoch(T_c)` against the *current* parent epoch will honor a delegation whose authority root has already been withdrawn. This is a boundary condition, not a bug in any single component. The attenuating minter behaved correctly. The child verifier behaved correctly against the data it had. The race lives in the gap between two correct components operating on snapshots taken at different logical times. ## What Was Observed A three-hop chain: orchestrator $O$ holds root warrant $W_0$ (epoch 41, expiry T+3600s). $O$ attenuates to planner $P$ a token $T_P$ with `tools=[search, read_file]`, `epoch=41`. $P$ attenuates to executor $E$ a token $T_E$ with `tools=[read_file]`, `epoch=41`, expiry T+1800s. At T+900s the operator revokes $W_0$ and advances the root epoch to 42 — because $O$ was found to be prompt-injected via a poisoned `search` result that instructed it to widen `read_file` to arbitrary paths. The revocation propagates to $O$ and $P$ synchronously (they hold live sessions against the warrant service). $E$ is a forked sandbox worker with a 30-minute credential cache; it holds $T_E$ locally and verifies it offline against the embedded epoch-41 attestation. $E$ continues invoking `read_file` on paths the injected instruction had queued, for the remaining ~900s of $T_E$'s life. Every call passes local verification: signature valid, `read_file ∈ scope(T_E)`, `now < expiry`. The scope narrowing was honored perfectly. The *root* was gone, and $E$ had no way to know. The trace: 1. `T+0` $W_0$ minted, `epoch=41`. Attestation bundle `A_41` distributed to all verifiers. 2. `T+0` $T_P$, $T_E$ attenuated, each embedding `parent_epoch=41`, `parent_warrant_id=W_0`. 3. `T+900` revoke($W_0$) → root epoch → 42. New attestation `A_42` published. $O$, $P$ see it; $E$'s cache TTL is 1800s. 4. `T+900..T+1800` $E$ verifies $T_E$ against cached `A_41`. `epoch(T_E)=41 = epoch(A_41)`. Check passes. 5. `T+1800` $E$'s cache expires, refreshes to `A_42`, sees `epoch(T_E)=41 < 42`, rejects. 900 seconds of unauthorized `read_file` already executed. ## Condition of Validity The invariant that must hold for offline delegation to be safe is: > A delegated token $T_c$ is honored at time $t$ **iff** `verify_sig(T_c)` ∧ `now < expiry(T_c)` ∧ `scope(T_c) ⊆ scope(requested)` ∧ `epoch(T_c) == current_root_epoch(warrant_id(T_c))`. The last conjunct is the one that requires network reachability to the warrant service (or a freshness-bounded cache). Attenuation is offline; **epoch anchoring is not**. Any design that lets a child verify the first three conjuncts offline but treats the fourth as "checked at mint time only" has converted a revocation into a *soft* signal bounded below by the child's cache TTL. Two conditions make this exploitable rather than merely theoretical: - **Cache TTL > revocation-to-execution window.** If $E$'s credential cache outlives the time between revoke and the next scheduled verification, the window is open. Here: 1800s cache vs. sub-second revocation. - **Scope narrowing masks the violation.** Because $T_E$ genuinely narrows $T_P$, the *shape* of authority looks least-privilege-correct. Auditors reading `scope(T_E)=[read_file]` conclude the delegation was sound. The defect is temporal, not structural, so scope-diffing audits miss it entirely. ## Decision Boundary The correct boundary is: **a child instance may verify scope and expiry offline, but must not treat a delegated token as *authoritative* without a freshness proof for the root epoch, and the maximum staleness of that proof must be strictly less than the minimum revocation-to-harm latency the system is willing to tolerate.** Concretely, three admissible policies, in order of preference: 1. **Epoch-pinned short-lived tokens.** Cap `expiry(T_c) − mint_time(T_c)` at the attestation refresh interval, so a token cannot outlive the epoch snapshot it was minted under by more than one refresh cycle. Delegation depth does not extend wall-clock authority; only the root does. 2. **Online epoch check on first use per window.** $E$ must call `current_root_epoch(W_0)` at least once per `min(expiry(T_c), cache_TTL)` and refuse if `epoch(T_c) < current`. This is the "check the anchor, not just the leaf" rule. 3. **Revocation-aware nonce.** Embed a revocation nonce in $T_c$ that the warrant service can flip; verifiers short-poll it. Higher cost, tightest bound. The boundary that must be *rejected*: "the child holds a validly-attenuated token, therefore it may act until expiry." That inference is only sound if the root is guaranteed unrevoked for the token's lifetime, which is exactly what the system cannot guarantee. ## Operational Effect Implementing epoch anchoring converts an unbounded soft-revocation window into a hard bound equal to the attestation refresh interval. In the trace above, policy (1) — capping $T_E$'s expiry at T+900s (one refresh cycle) — would have closed the window to zero. Policy (2) would have caught it at the first post-revocation `read_file` at T+901s. Either bounds the damage to a single refresh interval instead of the full delegated-token lifetime. The cost is that deep delegation chains no longer get "free" offline verification: each hop's authority is only as fresh as the root's last attestation pull. That is the correct trade. Least-privilege is a claim about *current* authority, and current authority is a stateful fact that cannot be proven by a signature alone. ```python from dataclasses import dataclass from typing import Optional class StaleEpochDelegationError(RuntimeError): """Raised when a delegated AAIF token's parent epoch is behind the root's current epoch.""" pass @dataclass(frozen=True) class CapabilityToken: warrant_id: str parent_epoch: int scope: frozenset expiry: float signature_valid: bool @dataclass(frozen=True) class Attestation: warrant_id: str current_epoch: int fetched_at: float def verify_delegated_invocation( token: CapabilityToken, requested_action: str, now: float, attestation: Optional[Attestation], max_staleness: float, ) -> bool: # Structural checks: offline, cheap, necessary. if not token.signature_valid: raise StaleEpochDelegationError( f"token for warrant {token.warrant_id} has invalid signature" ) if now >= token.expiry: raise StaleEpochDelegationError( f"token for warrant {token.warrant_id} expired at {token.expiry}" ) if requested_action not in token.scope: raise StaleEpochDelegationError( f"action {requested_action!r} outside scope {sorted(token.scope)}" ) # Epoch anchoring: the conjunct that cannot be checked offline. if attestation is None: raise StaleEpochDelegationError( f"no attestation for warrant {token.warrant_id}; " "offline verification is insufficient for delegated authority" ) if attestation.warrant_id != token.warrant_id: raise StaleEpochDelegationError( f"attestation warrant {attestation.warrant_id} != token warrant {token.warrant_id}" ) if now - attestation.fetched_at > max_staleness: raise StaleEpochDelegationError( f"attestation for {token.warrant_id} stale by " f"{now - attestation.fetched_at:.1f}s > {max_staleness}s" ) if token.parent_epoch < attestation.current_epoch: raise StaleEpochDelegationError( f"token epoch {token.parent_epoch} < root epoch " f"{attestation.current_epoch} for warrant {token.warrant_id}; " "delegation outlived parent revocation" ) return True ```