# What structural signals indicate that a delegated capability token has silently outlived its delegation warrant in an AAIF agent chain **Date of Record:** 2026 November 24 **Scope:** Applies to multi-hop AAIF agent delegation chains where a parent agent mints a capability-scoped, workload-bound token for a child agent and that child re-delegates downstream. Does not cover single-hop direct-mint cases or tokens issued by a human principal to a root agent, where warrant and token lifetimes are minted in the same transaction. ## Core Distinction The distinction that matters here is between **token validity** and **warrant validity**. A capability token is a signed, self-describing artifact: it carries an issuer, a subject workload identity, a scope, and an `exp` claim. A delegation warrant is the *authority* of the delegating agent to have minted that token at all—derived from the parent's own scope, its own warrant, and the delegation policy in force at mint time. These two lifetimes are independent, and the AAIF stack validates them in different places: the token's signature and `exp` are checked at the resource boundary (the verifier), while the warrant is checked (if at all) at mint time by the issuing agent. The failure mode is that a token can remain cryptographically valid and unexpired while the warrant that justified its existence has been revoked, narrowed, or never actually covered the scope it claims. Because the resource verifier only sees the token, it has no structural signal that the warrant underneath has changed. The token becomes an orphan: a valid credential with no live authority behind it. ## What Was Observed A three-hop chain: orchestrator `O` → planner `P` → executor `E` → tool `T`. `O` holds a root warrant scoped to `repo:read, repo:write, deploy:staging`. At t0 it mints a delegated token for `P` with scope `repo:read, repo:write` and a warrant reference `warrant://O/P/7f3a`, `exp` = t0 + 4h. `P` at t1 mints a token for `E` scoped to `repo:write`, warrant `warrant://P/E/91bc`, `exp` = t1 + 2h. `E` at t2 mints a token for `T` scoped to `repo:write` on branch `feature/x`, `exp` = t2 + 30m. At t0 + 90m, the human operator revokes `O`'s `deploy:staging` scope and narrows `repo:write` to `repo:read` on the production repository. The AAIF revocation event propagates to `O`'s warrant store. It does **not** propagate to the tokens already minted downstream, because those tokens are bearer credentials with embedded scope—they do not carry a live-checkable pointer to the parent warrant, only an opaque reference string that the verifier never dereferences. At t2 + 20m, `E`'s token for `T` is still unexpired, still signature-valid, and still claims `repo:write`. `T` accepts it and pushes to the production repository. The verifier at `T` did exactly what it was configured to do: verify signature, check `exp`, check subject workload identity binding, check scope claim. Every check passed. The write was unauthorized by the live warrant graph. The structural signal that this had happened was not an error at `T`. It was a **divergence between the token's `scope` claim and the current effective scope of the warrant reference it names**—detectable only by a component that dereferences the warrant chain, which the resource verifier is not. In post-hoc audit, the warrant `warrant://P/E/91bc` was found to resolve to a scope of `repo:read` as of t0 + 90m, contradicting the `repo:write` claim in `E`'s token. The token was internally consistent and externally wrong. ## Condition of Validity The invariant that must hold for a delegated capability token to be trustworthy is: > For every live token `tk` with warrant reference `wr`, the scope claim in `tk` must be a subset of the *current* effective scope of `wr`, evaluated at verification time—not at mint time. This is a stronger condition than the AAIF baseline, which only requires scope-subset at mint time. The baseline is sufficient only under one of two assumptions: (a) warrants are immutable and irrevocable for their lifetime, or (b) every token carries a short enough `exp` that the revocation propagation window is bounded by token lifetime. In practice neither holds. Warrants are narrowed by operators, and token `exp` is set by the minting agent—which, being a probabilistic planner, tends to set generous expiries to avoid mid-task expiry failures. The two failure incentives compound: agents lengthen token lifetimes precisely to avoid one failure mode, and thereby widen the orphan window for another. The condition is *valid* (i.e., the token can be trusted without dereferencing) only when the token's `exp` is strictly less than the minimum revocation-propagation latency of the warrant graph, and the warrant is guaranteed not to be narrowed within that window. Absent that guarantee, the token is a cached authority claim, and cached authority claims require either invalidation-on-change or bounded staleness. ## Decision Boundary The boundary is the choice of **where the warrant is checked**. There are three placements, and each has a distinct failure signature: 1. **Mint-time only (AAIF baseline).** Cheap, no verifier dependency on the warrant store. Fails open under revocation: the orphan window equals the token's remaining `exp`. Observed signature: post-hoc audit shows token scope ⊄ current warrant scope, with no error at the resource. 2. **Verify-time dereference.** The resource verifier resolves `wr` on every request. Correct, but couples every tool call to warrant-store availability and latency, and makes the resource a participant in the authority graph it was supposed to be outside of. Failure signature: verifier outage becomes a full-chain availability outage; and a malicious or compromised warrant store can retroactively widen scope. 3. **Bounded-staleness with revocation epoch.** The token embeds a `warrant_epoch` claim—a monotonic counter incremented on any warrant mutation. The verifier holds a cached epoch watermark and rejects any token whose `warrant_epoch` is below the watermark. This bounds staleness to the watermark refresh interval without a per-request dereference. Failure signature: tokens minted just before a revocation carry the stale epoch and are rejected at the next watermark refresh—a *correct* rejection, but one that arrives up to one refresh interval late. The decision boundary is therefore: **if the resource cannot tolerate a stale-authority window, it must carry an epoch claim and a watermark; if it can, it must bound token `exp` to the propagation latency.** There is no configuration in which a long-lived token with mint-time-only warrant checking is safe. The failure is silent by construction. ## Operational Effect The downstream effect is that revocation in an AAIF chain is **not a single event but a propagation frontier** that moves at the speed of the slowest token lifetime in the chain. A revocation at the root does not stop work at the leaves; it stops *new minting* at the leaves. Every token already in flight continues to authorize its claimed scope until `exp`. In the observed case, the frontier took 30 minutes to reach `T`—the residual lifetime of `E`'s token—during which a narrowed warrant was over-honored. The operational guardrail is to treat token `exp` as a *security parameter*, not a convenience parameter. The minting agent must not choose `exp`; the delegation policy must impose it as `min(remaining_warrant_lifetime, revocation_propagation_bound)`. An agent that sets its own token lifetime will, under task-pressure, set it too long—this is a predictable consequence of optimizing for task completion over authority hygiene. The epoch claim closes the residual gap by making stale tokens structurally detectable rather than merely stale. ## Code The following validator implements the epoch-watermark check and raises on the orphan condition. It is written to be embedded in a resource verifier that holds a cached watermark and a warrant-scope resolver. ```python import time from dataclasses import dataclass from typing import Callable class OrphanedWarrantError(RuntimeError): """Raised when a token's scope claim exceeds the live warrant's effective scope, or when the token's warrant_epoch is below the verifier's revocation watermark.""" pass @dataclass class CapabilityToken: subject: str scope: frozenset[str] warrant_ref: str warrant_epoch: int exp: float class EpochWatermarkVerifier: def __init__( self, resolve_warrant_scope: Callable[[str], frozenset[str]], watermark: int, clock: Callable[[], float] = time.time, ) -> None: self._resolve = resolve_warrant_scope self._watermark = watermark self._clock = clock def verify(self, tk: CapabilityToken) -> None: now = self._clock() if now >= tk.exp: raise OrphanedWarrantError( f"token for {tk.subject} expired at {tk.exp:.0f}, now {now:.0f}" ) # Silent-orphan guard: token was minted before the last known revocation. if tk.warrant_epoch < self._watermark: raise OrphanedWarrantError( f"token epoch {tk.warrant_epoch} < watermark {self._watermark}; " f"warrant {tk.warrant_ref} may have been narrowed since mint" ) # Scope-subset against LIVE warrant scope, not mint-time scope. live_scope = self._resolve(tk.warrant_ref) excess = tk.scope - live_scope if excess: raise OrphanedWarrantError( f"token for {tk.subject} claims scope {sorted(excess)} not present in " f"live warrant {tk.warrant_ref} (live scope: {sorted(live_scope)})" ) ```