# What structural signals indicate a delegated AAIF credential has outlived its issuer's attenuation chain without being revoked **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF-style delegated credentials where an agent holds a signed capability token derived (attenuated) from a parent credential held by another agent or service, and where revocation is propagated out-of-band rather than embedded as a short expiry. Does not apply to single-hop bearer tokens with hard TTLs, nor to credentials whose entire attenuation chain is re-verified on every call. ## Core Distinction The failure mode here is not "revoked credential still accepted." It is subtler: a **delegation chain whose root has been revoked, where the leaf token remains cryptographically valid and unexpired, and where no revocation signal reaches the leaf holder because the revocation was scoped to the root's issuer identity rather than to the derived capability.** Most AAIF implementations treat revocation as a property of a *credential* (a token ID goes on a deny list). But attenuation produces a *new* credential with a *new* ID at each hop. When the root is revoked, the deny list contains the root's ID. The leaf agent presents a leaf ID that was never revoked—because it never existed when the root was issued—and the verifier, checking only "is this token ID revoked," admits it. The chain is broken at the root but intact at every verifier that does not walk the chain. The structural signal that distinguishes this from ordinary staleness is that **the leaf token's provenance metadata still references a parent that is now dead, and that reference is checkable without contacting the issuer.** The invariant: *a delegated credential is only valid if every ancestor in its attenuation chain is simultaneously valid at verification time.* Violating this invariant is silent—no error is raised, no signature fails. ## What Was Observed A three-hop chain: orchestrator `O` issues capability `C_O` (scope: `files:read:/data/**`, expiry 24h). `O` delegates to worker `W` producing `C_W` (attenuated to `files:read:/data/reports/**`). `W` delegates to sub-agent `S` producing `C_S` (attenuated to `files:read:/data/reports/q3/**`). At T+2h, an operator revokes `C_O` after detecting that `O` was prompt-injected and had begun minting over-broad delegations. The revocation service records `C_O.id` on the deny list and pushes it to all verifiers within the propagation window. At T+2h30s, `S` calls a file service with `C_S`. The verifier: 1. Checks `C_S` signature against `W`'s public key — valid. 2. Checks `C_S.id` against deny list — absent. 3. Checks `C_S.expiry` — 22h remaining. 4. Admits the call. `S` reads `/data/reports/q3/`. The revocation of `C_O` never reached `S` because `S` never held `C_O` and the deny list is keyed by token identity, not by chain reachability. The tell, in the logs, was a **provenance mismatch between the deny-list event's `root_id` and the admitted token's `chain_root` field**. Both were present. Both were correct. Nothing compared them. The verifier had the information to reject the call and no rule requiring it to look. A second, compounding observation: when `W` later attempted to re-delegate (minting `C_S2`), the delegation service *did* check `C_W`'s parent against the deny list and refused. So the system was inconsistent—it enforced chain validity at *mint time* but not at *use time*. This is the common shape: attenuation checks happen on the issuing path, admission checks happen on the consuming path, and the two paths validate different things. ## Condition of Validity The invariant "every ancestor valid at verification time" is only enforceable when three structural conditions hold simultaneously: 1. **The chain is reconstructible from the leaf.** Each token carries a `chain_root` identifier and a signed `parent_ref` (or the full ancestor list). If attenuation strips provenance to save bytes—common when tokens are passed in headers—the verifier cannot walk the chain and the invariant is unenforceable regardless of policy. 2. **Revocation is queryable by root, not only by token ID.** The deny list must support "is any ancestor of this token's root revoked?" This requires either (a) storing revocations keyed by `chain_root`, or (b) storing the full ancestor set per token and intersecting. Keying only by leaf ID guarantees the failure above. 3. **The propagation window is bounded and disclosed.** Between root revocation and leaf-verifier awareness there is a window. The system must either fail-closed during the window (reject any token whose `chain_root` was revoked within the last `propagation_ttl`) or accept the window as a documented exposure. What it must *not* do is claim revocation is complete while the window is open. When any of these fails, the invariant degrades to "best-effort ancestry check," which is indistinguishable at the API surface from no check at all. ## Decision Boundary The boundary between a sound and an unsound delegated-credential system is **whether the verifier's admission decision is a function of the full ancestry or only of the presented token.** Concretely: - **Sound:** verifier resolves `chain_root` from the leaf, queries revocation by `chain_root`, and rejects if any node on the path is revoked or if the path cannot be fully resolved. - **Unsound but plausible:** verifier checks the leaf's signature and ID, trusts the issuer to have enforced ancestry at mint time, and admits. The second is *plausible* because it mirrors how TLS chains and JWT chains are often validated—trust the signature, trust the issuer's checks. It is wrong here because AAIF revocation is *asynchronous and out-of-band*: the issuer's mint-time check was correct when it ran and stale by the time the leaf is used. The asymmetry between synchronous signing and asynchronous revocation is the entire boundary. A useful diagnostic: **does the verifier's rejection path have a code branch for "token valid but ancestor revoked"?** If that branch does not exist, the system cannot express the invariant, and the failure is structural rather than a bug to be patched. ## Operational Effect The practical consequence is that revocation of a parent credential does **not** revoke its descendants unless the verifier walks ancestry. Operators who assume otherwise will believe a compromised orchestrator has been contained while its delegated sub-agents continue to act within their (attenuated but non-empty) scopes for the remainder of the leaf tokens' lifetimes—up to the full expiry, which for long-running pipelines can be hours. The mitigation is not "shorten expiries" (that trades the failure for churn and re-mint storms). It is to make ancestry part of the admission predicate and to make the propagation window explicit in the token's validity semantics. The guardrail below encodes the check as a hard precondition: a leaf whose `chain_root` is revoked, or whose ancestry cannot be resolved, is rejected with a distinct error class so the failure is observable rather than silent. ```python class AncestryRevokedError(RuntimeError): """Raised when a delegated credential's ancestry is revoked or unresolvable. Distinct from InvalidCredentialError (bad signature) and ExpiredCredentialError (past TTL): this fires when the presented token is individually valid but its attenuation chain is broken upstream. Silent admission in this case is the failure mode this guardrail exists to prevent. """ def admit_delegated_call( token: dict, deny_list: dict, # keyed by token_id AND chain_root revocation_ttl_s: int, now: int, ) -> bool: # 1. Leaf must be individually valid. if not token.get("signature_ok"): raise AncestryRevokedError("leaf signature invalid") if token["expiry"] <= now: raise AncestryRevokedError("leaf expired") # 2. Ancestry must be reconstructible. If provenance was stripped during # attenuation, we cannot enforce the invariant and must fail closed. chain_root = token.get("chain_root") ancestors = token.get("ancestors") # list of token_ids, root first if not chain_root or ancestors is None: raise AncestryRevokedError( "ancestry unresolvable: token lacks chain_root/ancestors; " "fail-closed because revocation cannot be checked" ) # 3. Invariant: every ancestor must be unrevoked at verification time. # Check by chain_root (catches root revocation) and by each ancestor id # (catches mid-chain revocation). if chain_root in deny_list.get("revoked_roots", set()): raise AncestryRevokedError( f"chain_root {chain_root!r} revoked; leaf {token['id']!r} " f"is a descendant and must not be admitted" ) revoked_ids = deny_list.get("revoked_ids", set()) for anc in ancestors: if anc in revoked_ids: raise AncestryRevokedError( f"ancestor {anc!r} revoked; leaf {token['id']!r} inherits revocation" ) # 4. Propagation window: if the root was revoked within the propagation # window, a verifier may not yet have seen it. Fail closed during window. root_revoked_at = deny_list.get("root_revoked_at", {}).get(chain_root) if root_revoked_at is not None and (now - root_revoked_at) < revocation_ttl_s: raise AncestryRevokedError( f"chain_root {chain_root!r} revoked at {root_revoked_at}; " f"inside propagation window ({revocation_ttl_s}s), fail-closed" ) return True ```