# Which invariants prevent stale attenuation from resurrecting revoked capabilities in delegated agent chains **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent authorization where a root principal issues a capability, agents delegate attenuated sub-capabilities to peer agents, and revocation may arrive at any node in the chain. Does not apply to single-process, single-issuer token models with no delegation, or to systems where every call is re-authorized against a live root-of-trust. ## Core Distinction A capability token carries two independent facts: *what it grants* (the attenuation set — scopes, resource bounds, expiry) and *whether it is still live* (revocation status). In a single-hop system these are reconciled at verification time by a single check against the issuer. In a delegation chain `A → B → C → D`, they decouple: attenuation is a *monotone* function computed forward along the chain (each hop can only narrow, never widen, the grant), while revocation is a *non-monotone* event that can originate at any upstream node and must propagate downstream. The failure mode is not that revocation is missed — it is that a downstream agent, holding a validly attenuated token whose signature chain still verifies, treats *cryptographic validity* as *authorizational liveness*. Attenuation proves the token was legitimately derived; it proves nothing about whether a parent in that derivation has since been revoked. A token that is narrower than a revoked ancestor is still revoked, but its signature check succeeds and its scope check succeeds, so the only thing standing between it and execution is an explicit ancestor-revocation invariant. ## What Was Observed A three-hop delegation was issued: `root → orchestrator → retrieval-agent → summarizer`. The orchestrator attenuated `documents:read` down to `documents:read:shard-7` with a 900s TTL and handed the token to the retrieval agent, which further narrowed it to `documents:read:shard-7:page<=40` for the summarizer. At T+120s the root revoked the orchestrator's grant after a policy violation. The revocation was published to the orchestrator's revocation list and to a shared CRL endpoint. The summarizer, however, validated its token against the *retrieval agent's* issuer key and the *retrieval agent's* revocation list — neither of which contained the root's revocation, because the revocation had not been propagated down the chain. The summarizer's verification returned `valid: true, scope_ok: true, chain_depth: 3, signature_chain: OK`. It executed 14 retrieval calls over the next 40 seconds against a capability the root had revoked two minutes earlier. The trace showed the exact transition: at T+120 the root's grant flipped `live → revoked`. At T+121 the orchestrator's local state flipped to `revoked`. At T+122 the retrieval agent's state was still `live` (it had not polled). At T+123 the summarizer's state was still `live` (it validated against the retrieval agent, which was itself stale). The chain was *locally consistent at every hop* and *globally revoked at the root*. Each hop's check passed because each hop checked the wrong authority: it checked its immediate parent's liveness, not the root's liveness along the full ancestor path. A second observation compounded it: the summarizer's token had a *narrower* scope than the revoked grant. An operator reviewing the incident initially classified it as benign ("it only read 14 pages of shard-7, within the narrowed scope") — which is precisely the trap. Attenuation narrowness is not a revocation substitute. The narrowed scope was a subset of a grant that no longer existed. ## Condition of Validity The invariant that must hold is: **a delegated capability is live iff every ancestor in its issuance chain is live at the time of use, evaluated against the root's authority, not the immediate issuer's.** Formally, for a token `T` with chain `T_0 (root) → T_1 → ... → T_n = T`, `live(T) = ∧_{i=0..n} live(T_i)`, and each `live(T_i)` must be resolved against `T_0`'s revocation authority. Three conditions make this hold: 1. **Ancestor-complete revocation lookup.** Verification must resolve liveness for the *entire* chain, not just `T_{n-1}`. A token's own revocation list is necessary but not sufficient. 2. **Revocation freshness bound.** Each hop's cached liveness must carry a `max_staleness` bound; a chain whose any-hop liveness is older than the bound is treated as `indeterminate`, not `live`. Fail-closed on staleness. 3. **Attenuation is not a liveness signal.** The verifier must never short-circuit ancestor checks because `scope(T) ⊆ scope(T_{n-1})`. Narrowness is orthogonal to liveness. The invariant fails the moment any hop validates against its immediate issuer's authority instead of the root's, or the moment staleness is treated as liveness rather than as indeterminate. ## Decision Boundary The boundary is between *cryptographic chain verification* and *authorizational liveness resolution*. These are separate passes and must not be collapsed: - **Pass 1 (crypto):** Does the signature chain from `T_0` to `T_n` verify, and is each hop's attenuation a valid subset of its parent? This is a pure function of the token bytes. It can be cached indefinitely. - **Pass 2 (liveness):** Is every `T_i` in the chain still live per `T_0`'s authority, with freshness ≤ `max_staleness`? This is a function of external mutable state and must be re-resolved at each use (or within the freshness bound). The failure occurs when an implementation treats Pass 1 success as authorization and defers or skips Pass 2. The decision rule for the verifier: **if Pass 2 cannot be completed for the full ancestor set within the freshness bound, deny.** `indeterminate ≠ live`. A hop that cannot reach the root's revocation authority must fail closed, not fall back to its cached `live` state. A corollary boundary: revocation propagation must be *push-or-poll with a bounded interval*, and the bound must be strictly less than the token TTL. If `max_staleness ≥ TTL`, a revoked ancestor can remain exploitable for the full token lifetime. The safe relation is `max_staleness < TTL / k` for some margin `k > 1`. ## Operational Effect When the invariant is enforced, the summarizer's verification at T+123 returns `indeterminate` (its cached view of the root is 3s stale and it cannot confirm `T_0` liveness), the call is denied, and the 14 unauthorized retrievals never occur. The cost is a revocation-authority round-trip per use or a bounded-staleness cache with fail-closed semantics — measurable latency, but bounded. When the invariant is absent, as observed, the system exhibits *silent authorization resurrection*: revoked capabilities continue to execute through attenuated descendants for the duration of the propagation lag, and the executions are indistinguishable from authorized ones in the audit log because every local check passed. The blast radius is bounded by the attenuated scope, which is exactly why it evades detection — the narrowness that makes the breach small also makes it look legitimate. The audit trail shows `valid: true` at every hop; only a cross-chain reconstruction against the root's revocation timeline reveals the gap. The guardrail is a verifier that refuses to return `live` for any chain where an ancestor's liveness is not freshly confirmed against the root, and that treats attenuation as a scope computation only — never as evidence of liveness. ```python from dataclasses import dataclass, field from enum import Enum from typing import Optional class RevocationIndeterminateError(RuntimeError): """Raised when ancestor liveness cannot be confirmed within the freshness bound.""" pass class CapabilityResurrectedError(RuntimeError): """Raised when an attenuated token's ancestor is revoked but the token still verifies.""" pass class Liveness(Enum): LIVE = "live" REVOKED = "revoked" INDETERMINATE = "indeterminate" @dataclass class Token: token_id: str parent_id: Optional[str] scope: frozenset ttl_s: int issued_at: int @dataclass class RevocationView: """A node's cached view of a given token's liveness and its age.""" status: Liveness observed_at: int authority: str # which issuer this view is authoritative for @dataclass class ChainVerifier: max_staleness_s: int root_authority: str # map token_id -> RevocationView as known to this node views: dict = field(default_factory=dict) def _resolve_ancestor_liveness(self, token: Token, now: int) -> Liveness: view = self.views.get(token.token_id) if view is None: return Liveness.INDETERMINATE if view.authority != self.root_authority: # validated against the wrong authority (immediate issuer, not root) return Liveness.INDETERMINATE if now - view.observed_at > self.max_staleness_s: return Liveness.INDETERMINATE return view.status def verify_chain(self, chain: list, now: int) -> None: # Pass 1: crypto/attenuation is assumed already verified by caller. # Pass 2: full ancestor liveness against root authority. for token in chain: status = self._resolve_ancestor_liveness(token, now) if status is Liveness.REVOKED: raise CapabilityResurrectedError( f"token {token.token_id} has revoked ancestor " f"{token.parent_id}; attenuation does not restore liveness" ) if status is Liveness.INDETERMINATE: raise RevocationIndeterminateError( f"cannot confirm liveness of {token.token_id} against " f"{self.root_authority} within {self.max_staleness_s}s; failing closed" ) def authorize(chain: list, verifier: ChainVerifier, now: int) -> bool: verifier.verify_chain(chain, now) return True ```