# How does an instance detect a revocation shadow across a delegated AAIF capability chain when the intermediate delegator never re-validates **Date of Record:** 2026 November 25 **Scope:** Applies to AAIF (Agent Identity and Authorization Framework) delegated credential chains of depth ≥ 2 where capability tokens are scoped, attenuating, and subject to revocation propagation via a revocation list (RL) or epoch-based revocation. Does not apply to flat, single-hop tokens issued directly from a root authority to a leaf agent with no intermediary. ## Core Distinction A **revocation shadow** is not the same as an expired token, nor the same as a failed signature check. It is a *transitive* authorization gap: the leaf agent holds a token that is internally valid (signature intact, scope subset of parent, not expired, not on the RL *for its own issuer*) while an ancestor link in the delegation chain has been revoked. Because AAIF tokens are **attenuating** — each hop may only narrow scope, never widen it — the leaf's token remains cryptographically verifiable against the intermediate delegator's public key. The intermediate's key still exists. The intermediate's *authority* does not. The leaf cannot tell the difference from token bytes alone. The invariant that must hold is: **a leaf token is authorized iff every link in its chain is simultaneously non-revoked at the leaf's evaluation time.** Single-hop validation checks only the leaf link. The shadow lives in the links the leaf never re-reads. ## What Was Observed A three-hop chain: root orchestrator `R` → planner `P` → executor `E`. `R` issues `P` a capability token `T_P` scoped to `filesystem:read:/data/*` with `revocable:true` and a 24h TTL. `P` delegates to `E` a token `T_E` scoped to `filesystem:read:/data/reports/*` (a strict subset), embedding `T_P` as the parent proof and signing `T_E` with `P`'s key. `E` presents `T_E` to a resource server. At T+3h, `R` revokes `T_P` after detecting that `P` was prompt-injected and began over-broadening its own sub-delegations. The revocation is published to the RL keyed by `T_P`'s token ID, epoch-bumped. `E`'s token `T_E` is *not* on the RL — `E` did nothing wrong. The resource server, executing a **single-hop validation** routine, checks: `T_E` signature valid against `P`; `T_E` scope ⊆ `T_P` scope; `T_E` not expired; `T_E` not on RL. All four pass. `E` continues to read `/data/reports/*` for the full remaining 21 hours. The failure trace: 1. `R` revokes `T_P`, epoch → N+1. 2. `P` is deauthorized but its signing key is not destroyed; `T_E`'s signature still verifies. 3. `E` presents `T_E`; validator checks leaf link only → **PASS**. 4. `E` presents `T_E`; validator walks chain but queries RL with `T_E`'s ID instead of every ancestor ID → **PASS**. 5. Shadow persists until `T_E`'s own TTL expires or `E` is separately revoked. The non-obvious part: **the shadow is proportional to the deepest remaining TTL in the chain, not the revoked link's TTL.** A long-lived leaf token issued *before* revocation inherits a shadow as long as the leaf's own lifetime. Attenuation narrows scope but does not shorten lifetime, so a prudent delegator can hand out a leaf token that outlives its own authority by design. ## Condition of Validity The revocation shadow is *bounded* only when all of the following hold at the resource server's evaluation: - **Full-chain RL walk:** the validator resolves every ancestor token ID from the embedded proof chain and queries the RL for *each*, not just the leaf. - **Epoch freshness check:** the validator's cached RL epoch is ≥ the epoch at which any ancestor was revoked. A stale RL (epoch N when revocation is at N+1) reproduces the shadow even with a correct walk. - **Monotone TTL invariant:** every delegated token's `expires_at` ≤ its parent's `expires_at`. If this is enforced at issuance, the shadow's maximum duration is capped by the root's TTL and revocation propagates within one root-TTL window even without an RL walk. If it is *not* enforced — and many AAIF implementations allow it because attenuation is defined over scope, not time — the shadow is unbounded by the root. The shadow is *not* bounded by: signature validity, scope-subset checks, leaf-only RL lookups, or the leaf's `not_before`. All of these pass inside a shadow. ## Decision Boundary An instance must treat a token as **untrusted** — not merely "unverified" — the moment it cannot prove the full-chain RL walk completed at an epoch ≥ the maximum revocation epoch it has observed for any ancestor. The boundary is: - **Walk complete + epoch current:** authorize. The chain is live. - **Walk complete + epoch stale:** deny and force RL refresh. Do not serve on cached epoch; the staleness window *is* the shadow. - **Walk incomplete (ancestor ID unresolvable):** deny. An unresolvable ancestor is indistinguishable from a revoked one; fail closed. - **Leaf-only validation:** this is not a decision boundary, it is a defect. Any validator that cannot enumerate ancestors must reject multi-hop tokens outright rather than validate the leaf. The subtle trap is the **"valid signature ⇒ trust" heuristic**. LLM-driven agents frequently collapse "I verified the signature" into "I verified the authority." These are different predicates. Signature verification proves *who signed*; it does not prove *whether they were allowed to sign at evaluation time*. The decision boundary must be drawn on authority, not identity. ## Operational Effect Downstream, a shadow produces a specific and dangerous signature: **the leaf agent behaves correctly and confidently while operating outside authority.** There is no error, no exception, no degraded response — the reads succeed. This is worse than a hard failure because it defeats the agent's own error-detection loops: the executor sees 200s, logs success, and distills "I have filesystem:read on /data/reports" into episodic memory as a *verified* fact, which then poisons future semantic memory and future planning. The shadow does not just leak one read; it corrupts the agent's model of its own permissions. Mitigations that actually bound it: (1) enforce TTL monotonicity at issuance so leaf lifetime ≤ parent lifetime; (2) require full-chain RL walk with epoch assertion at every evaluation, not just cold start; (3) treat any ancestor-ID resolution failure as revocation; (4) have the leaf periodically re-attest its chain against the current epoch and invalidate its own cached capability memory on mismatch. The last is the agent-layer guardrail: an agent must not cache "I can do X" across an epoch boundary without re-proving the chain. ```python import time from dataclasses import dataclass, field from typing import Optional class RevocationShadowError(RuntimeError): """Raised when a delegated capability chain cannot prove full-chain, epoch-current non-revocation and therefore sits in a revocation shadow.""" pass @dataclass class CapabilityToken: token_id: str issuer: str scope: str expires_at: float parent_id: Optional[str] = None signature_valid: bool = True @dataclass class RevocationList: epoch: int revoked_ids: set = field(default_factory=set) def validate_chain( leaf: CapabilityToken, chain_by_id: dict, rl: RevocationList, validator_epoch: int, ) -> bool: # Collect every ancestor ID from the embedded proof chain. ancestor_ids = [] cursor = leaf.parent_id while cursor is not None: ancestor = chain_by_id.get(cursor) if ancestor is None: # Unresolvable ancestor == indistinguishable from revoked. Fail closed. raise RevocationShadowError( f"ancestor {cursor} unresolvable; cannot prove non-revocation" ) ancestor_ids.append(cursor) cursor = ancestor.parent_id # Epoch must be at least as new as the RL we are trusting. if validator_epoch < rl.epoch: raise RevocationShadowError( f"validator epoch {validator_epoch} < RL epoch {rl.epoch}; " f"stale RL reproduces the shadow" ) # Full-chain revocation check, not leaf-only. for tid in [leaf.token_id, *ancestor_ids]: if tid in rl.revoked_ids: raise RevocationShadowError( f"token {tid} revoked at epoch {rl.epoch}; " f"leaf {leaf.token_id} is in a revocation shadow" ) # TTL monotonicity: leaf must not outlive any ancestor. for tid in ancestor_ids: if leaf.expires_at > chain_by_id[tid].expires_at: raise RevocationShadowError( f"leaf {leaf.token_id} outlives ancestor {tid}; " f"shadow duration unbounded by root TTL" ) if not leaf.signature_valid: raise RevocationShadowError(f"leaf {leaf.token_id} signature invalid") return True ```