# In what scenarios must an instance treat a delegated AAIF credential as already-dead at the moment of signature verification **Date of Record:** 2026 November 29 **Scope:** Applies to any agent instance that receives a scoped, delegated AAIF credential (a warrant chain) from a parent agent and is expected to act under it across one or more tool calls, MCP requests, or peer handoffs. Does not apply to root-issued credentials held directly by the principal, nor to stateless bearer tokens with no delegation chain. ## Core Distinction The failure mode is not "expired token" and not "revoked token." It is the **revocation-visibility gap on a delegated chain**: a credential whose cryptographic signature verifies cleanly, whose `exp` claim is in the future, and whose `aud` and `scope` claims match the current request — yet which is nonetheless *already invalid* because an ancestor link in the delegation chain was revoked after the leaf was minted, and the leaf carries no synchronous channel to learn that fact. The distinction that matters operationally: **signature validity and authorization validity are different predicates, and only the first is locally decidable.** An instance that collapses them into a single `verify()` call will, under specific timing conditions, execute tool calls under authority that the principal has already withdrawn. The invariant is that *no delegated credential is ever valid in isolation*; it is valid only relative to the live status of every link between it and the root. An instance cannot check that status from the credential alone. This is non-obvious because the credential *looks* self-contained. It has a signature. It has a chain. It has an expiry. Every field an engineer would inspect says "fine." The defect is in what the credential does not contain: a proof, current as of *now*, that its ancestors remain un-revoked. ## What Was Observed A parent orchestrator agent `O` holds a root AAIF credential from principal `P` with `scope: {fs:read, net:fetch}` and `max_delegation_depth: 2`. At T0 it mints a warrant `W1` delegating `{fs:read}` to worker `A` with `exp = T0+3600` and `revocable: true`. At T1 (T0+40s) it mints `W2` delegating `{fs:read}` from `W1` to sub-worker `B`, `exp = T0+3600`, embedding `parent_id: W1`. At T2 (T0+90s) `O` revokes `W1` — because `A` began emitting anomalous tool-call patterns and `O`'s auditor flagged it. The revocation is written to the AAIF revocation list as `W1 → revoked@T2`. `O` does not, and structurally cannot, reach into `B`'s local credential store. `B` continues operating. At T3 (T0+120s) `B` presents `W2` to a resource server `R`. `R` performs the standard verification: signature chain `W2 → W1 → root(P)` all verify; `exp` unexpired; requested scope `fs:read` ⊆ `W2.scope`. `R` admits the call. `B` reads files for another 58 minutes under a warrant whose parent was revoked 90 seconds after `B` started. The observed trace, in the incident log: ``` [T2+0.0s] auditor: revoke W1 (parent=A anomaly) [T2+0.1s] revocation_list: append {id:W1, revoked_at:T2} [T3+0.0s] B -> R: present W2 (fs:read /etc/agent/config) [T3+0.0s] R.verify: chain_ok=true exp_ok=true scope_ok=true -> ADMIT [T3+0.0s] R: read /etc/agent/config -> 200 (412 bytes) ... 58 minutes of successful, unauthorized reads ... ``` The revocation list *did* contain the truth. `R` simply never consulted it, because the AAIF verification profile `R` implemented treats the chain as a self-validating artifact. The revocation record and the admission decision lived in two subsystems that never met. A second, subtler observation: when `R` *was* patched to consult the revocation list, it checked only `W2.id` and `W1.id` — but `W1`'s revocation had been recorded by `O` under `W1.id`, while `B` had re-serialized its chain with a normalized `parent_id` field that differed in case (`w1` vs `W1`). The lookup missed. The credential stayed "valid" for another full window. **Revocation is only as good as the identifier normalization across the minting, revocation, and verification sites.** ## Condition of Validity The guardrail that bounds this failure is a **chain-walk revocation check with a freshness bound**, and it is only sound under a stated condition: > A delegated credential `W_n` may be treated as authorized at time `t` **iff** every ancestor `W_i` (i = 1..n) is confirmed un-revoked as of some `t_i` with `t - t_i ≤ Δ`, where `Δ` is the verifier's declared revocation-freshness tolerance. Two consequences follow, and both are the source of the operational rules: 1. **The check must walk the whole chain, not the leaf.** Checking only `W_n.id` against the revocation list is unsound: the revocation that invalidates the leaf is, by construction, one or more links up. A leaf can be un-revoked and still dead. 2. **The check has a staleness budget `Δ`.** Revocation is not instantaneous across a distributed system; there is always a window between "principal revokes" and "verifier learns." The verifier must either (a) bound `Δ` and refuse to admit credentials whose last chain-check is older than `Δ`, or (b) use a synchronous revocation oracle per call. An instance that neither bounds `Δ` nor checks per-call is asserting a freshness it cannot prove. A third condition, easy to miss: **the chain must be presented in a form the verifier can canonicalize.** If identifiers are not normalized identically at mint, revoke, and verify, the chain-walk silently returns "no revocation found" for a revoked ancestor. Normalization is not cosmetic; it is load-bearing for the invariant. ## Decision Boundary The instance must treat a delegated credential as **already-dead at the moment of signature verification** — i.e., must refuse to proceed despite a clean signature — when any of the following hold: - **Ancestor revocation is unconfirmed and `Δ` has elapsed.** The instance's last successful chain-walk for this credential is older than the declared freshness tolerance. Signature valid, but authority unproven *now*. Refuse, re-check, or fail closed. - **The chain is truncated or un-walkable.** The credential presents a `parent_id` the verifier cannot resolve to a known ancestor (missing link, unknown issuer, depth exceeding `max_delegation_depth`). An un-walkable chain is an un-checkable chain; treat as revoked-by-default. - **Identifier normalization is ambiguous.** The presented `parent_id` differs from the revocation-record key under any plausible normalization (case, whitespace, encoding, UUID formatting). The instance cannot prove the ancestor is *not* on the revocation list; it must not assume it isn't. - **The revocation oracle is unreachable at decision time.** If the verifier cannot reach the revocation source and cannot fall back to a cached entry within `Δ`, the correct posture is fail-closed, not fail-open. A network partition is not evidence of non-revocation. Conversely, the instance may proceed when: the full chain walks to the root, every ancestor is confirmed un-revoked within `Δ` (or via a synchronous oracle at call time), identifiers canonicalize unambiguously, and the leaf's `scope`/`aud`/`exp` all hold. All five, not any four. ## Operational Effect The practical consequence is that **delegation depth is a revocation-latency multiplier.** A depth-3 chain requires the verifier to confirm three ancestors; each is an independent staleness risk, and the probability that at least one ancestor is stale grows with depth. Systems that mint deep chains for "clean separation of concerns" are, without saying so, widening the window in which a revoked grandparent's authority still flows to a grandchild. The operational rule that follows: *cap delegation depth at the minimum the task requires, and prefer re-minting a fresh shallow chain over extending an existing deep one.* Second effect: **revocation must be idempotent and identifier-stable.** Because the verifier's chain-walk depends on matching `parent_id` against revocation keys, the minting site, the revocation site, and the verification site must share one canonical identifier function. Drift here does not produce an error; it produces a silent *miss*, which is worse — the system reports "valid" while authority has been withdrawn. The guardrail is to derive all three from a single normalizer and to reject at mint time any `parent_id` that does not round-trip through it. Third effect: **the freshness bound `Δ` is a security parameter, not a performance knob.** Tightening `Δ` costs oracle round-trips; loosening it widens the post-revocation execution window. The instance must record `Δ` alongside every admission decision so that post-hoc audit can reconstruct *what the verifier believed and when*. An admission with no recorded `Δ` and no recorded chain-walk timestamp is unauditable, and an unauditable admission is indistinguishable from a forged one. ```python from dataclasses import dataclass from typing import Optional import time class StaleDelegationError(RuntimeError): """Raised when a delegated credential's signature verifies but its authority cannot be proven current: an ancestor is unconfirmed, un-walkable, ambiguously normalized, or the revocation oracle is unreachable beyond the freshness tolerance Δ.""" pass @dataclass(frozen=True) class Warrant: id: str parent_id: Optional[str] exp: float scope: frozenset def canonical_id(raw: str) -> str: # Single normalizer shared by mint, revoke, and verify sites. return raw.strip().lower() def authorize( leaf: Warrant, chain: dict[str, Warrant], # id -> Warrant, ancestors included revoked: dict[str, float], # canonical_id -> revoked_at last_chain_check: dict[str, float], # canonical_id -> timestamp delta: float, now: float, oracle_reachable: bool, ) -> bool: if leaf.exp <= now: raise StaleDelegationError(f"leaf {leaf.id} expired at {leaf.exp}") # Walk the full chain to the root. A leaf-only check is unsound: # the revoking ancestor is, by construction, one or more links up. cursor: Optional[Warrant] = leaf visited: set[str] = set() while cursor is not None: cid = canonical_id(cursor.id) if cid in visited: raise StaleDelegationError(f"cycle in delegation chain at {cid}") visited.add(cid) if cid in revoked: raise StaleDelegationError( f"ancestor {cid} revoked at {revoked[cid]}; " f"leaf {leaf.id} is already-dead despite valid signature" ) checked = last_chain_check.get(cid) if checked is None or (now - checked) > delta: if not oracle_reachable: # Fail closed: unreachable oracle is not evidence of non-revocation. raise StaleDelegationError( f"ancestor {cid} freshness unconfirmed " f"(last={checked}, delta={delta}) and oracle unreachable" ) raise StaleDelegationError( f"ancestor {cid} freshness stale (last={checked}, delta={delta}); " f"re-walk required before admission" ) if cursor.parent_id is None: break pid = canonical_id(cursor.parent_id) if pid not in chain: # Un-walkable chain == un-checkable chain == revoked-by-default. raise StaleDelegationError( f"chain truncated: parent {pid} of {cid} unresolved" ) cursor = chain[pid] return True ```