# What happens when an instance presents a delegated credential chain whose attenuation proof outlives its parent warrant **Date of Record:** 2026 November 27 **Scope:** Applies to AAIF credential chains where an orchestrator agent mints a scoped warrant, delegates an attenuated sub-warrant to a worker instance, and the worker presents that sub-warrant after the parent warrant has been revoked, rotated, or has expired mid-execution. Does not apply to single-hop bearer tokens or to stateless capability tokens with no delegation lineage. ## Core Distinction The failure mode is not "expired token rejected." It is the asymmetric lifetime of *attenuation proofs* versus *parent warrants*. AAIF delegation is designed as a monotonic attenuation chain: each hop may only narrow scope, never widen it, and each sub-warrant carries a cryptographic proof that its scope is a strict subset of its parent's scope at mint time. That proof is a signature over the (issuer, subject, scope, parent-hash) tuple — it is *self-contained* and *verifiable without contacting the parent issuer*. This is the entire point of offline-verifiable delegation: a verifier that has never seen the root issuer can validate the chain by folding attenuation proofs down from the root. The invariant that silently breaks is: **a valid attenuation proof demonstrates that the sub-warrant was a subset of its parent *at mint time*, not that the parent is still live at *presentation time*.** A worker holding a sub-warrant with a 30-minute TTL, minted under a parent with a 5-minute TTL, can present a cryptographically impeccable chain for 25 minutes after the parent has been revoked. The verifier folds the proofs, finds them consistent, checks the sub-warrant's own `not_after`, and admits the call. ## What Was Observed An orchestrator `O` minted root warrant `W0` (scope: `tool:db.read`, TTL 300s). At t=10s it delegated `W1` to worker `A` (scope: `tool:db.read WHERE tenant=A`, TTL 1800s). `A` began a long extraction loop. At t=200s an operator revoked `W0` — a tenant isolation incident, the operator wanted the whole lineage dead. Revocation at the AAIF revocation endpoint published a CRL entry keyed on `W0`'s warrant ID. At t=240s, `A` presented `W1` to a downstream tool gateway. The gateway's verifier did the following: 1. Fetched `W1`, parsed the embedded chain `[W0_hash, W1]`. 2. Verified `W1`'s attenuation proof: `scope(W1) ⊂ scope(W0)` — signature valid. 3. Verified `W1.not_after` (t=1810s) — still live. 4. Checked the CRL for `W1`'s own ID — absent. 5. **Did not fetch the CRL for `W0`**, because the verifier's contract was "validate the presented warrant, not its ancestors." The parent warrant was represented only as a hash in the proof, and hashes are not CRL-addressable. The call was admitted. The extraction ran for another 1500 seconds against a tenant whose root authority had been revoked 20 minutes earlier. The gap between "proof valid" and "lineage live" was the entire failure. The second observation, more subtle: when the operator *did* try to revoke `W1` directly to compensate, the orchestrator had already been torn down and no longer held the signing key material to mint the revocation entry for a warrant it had delegated. AAIF revocation of a delegated warrant requires either (a) the delegating issuer signing the CRL entry, or (b) the root issuer revoking by lineage. The operator had neither handle — they had a `W0` ID and a `W1` hash, and the hash is not a revocation key. ## Condition of Validity The safe-admission invariant for a delegated AAIF chain is not "the presented warrant is valid." It is: > **Admit iff the presented warrant is valid AND every ancestor warrant in its chain is confirmed live within the verifier's freshness window, OR the chain carries a lineage-revocation-check proof stamped no older than that window.** Two structural conditions make this hard to satisfy and are the actual boundary: 1. **Ancestor liveness is not offline-verifiable.** Attenuation proofs are offline by design; liveness is inherently online. Any verifier that treats a self-contained chain as sufficient for admission is, by construction, blind to ancestor revocation. The chain's cryptographic completeness is precisely what hides the staleness. 2. **TTL monotonicity is not enforced by the protocol.** AAIF permits a sub-warrant to have a longer `not_after` than its parent — the spec treats attenuation as scope-narrowing only, not lifetime-narrowing. If sub-warrant TTL were required to be `≤ min(parent.not_after, now + max_hop_ttl)`, the exposure window would be bounded by the parent's remaining lifetime. It is not. The exposure window is `sub.not_after − parent.revoked_at`, unbounded by anything in the chain. The invariant only holds when the verifier performs an explicit lineage walk against a revocation source, with a freshness bound, and rejects on any ancestor that is unreachable *or* revoked. "Unreachable" must fail closed — an orchestrator that has been torn down cannot answer "is `W0` live?", and the correct answer to that silence is denial, not admission. ## Decision Boundary The decision boundary is the point at which a verifier chooses between *chain-local validation* and *lineage-liveness validation*. The boundary is crossed incorrectly whenever the verifier's threat model says "the issuer is trusted, so the chain is trusted" — which is true for scope integrity and false for revocation propagation. Concretely, the verifier must decide, per call: - **If the chain depth is 1** (root warrant presented directly): local validation plus CRL check on the root ID is sufficient. The root ID is CRL-addressable. - **If the chain depth > 1**: local validation is necessary but not sufficient. The verifier must resolve each ancestor hash to a warrant ID via the chain's embedded `parent_id` fields (AAIF requires these, but many verifiers ignore them because the hash is "enough"), then check each ancestor ID against the CRL with a freshness stamp. - **If any ancestor cannot be resolved to an ID** (truncated chain, hash-only reference, issuer offline): fail closed. A chain you cannot walk is a chain you cannot revoke, and an unrevokable chain must not be admitted for any scope that matters. The subtle trap: a verifier that fails closed on unresolvable ancestors will reject legitimate long-running workflows whenever the orchestrator is temporarily unreachable. The correct mitigation is not to relax the check but to *bound the exposure*: require sub-warrant TTL ≤ parent remaining TTL at mint, so that even a stale chain cannot outlive its parent by more than the verifier's freshness window. ## Operational Effect Downstream of this boundary, three effects compound: 1. **Revocation blast radius is inverted.** Operators expect revoking `W0` to kill the lineage. In practice it kills only what presents `W0` directly. Delegated descendants survive until their own TTLs expire, which is exactly the window in which a compromised worker is most dangerous — it has already been delegated authority and is mid-task. 2. **Audit trails lie by omission.** The tool gateway logs "warrant `W1` valid, chain depth 2, attenuation verified." The log does not record that `W0` was revoked 40 seconds prior, because the verifier never asked. Post-incident reconstruction sees a clean admission and concludes the revocation failed at the endpoint, when in fact it succeeded and was simply not consulted. 3. **Compensation is structurally impossible after the fact.** As observed, the operator could not mint a revocation for `W1` because revocation authority for a delegated warrant sits with the delegating issuer, and the delegating issuer (`O`) was gone. The lineage-revocation path (root revokes all descendants) must be exercised *before* teardown, which means the orchestrator must publish a lineage-revocation record for its entire delegated set as part of graceful shutdown — a step that most orchestrators skip because shutdown is treated as "stop accepting work," not "propagate death." The guardrail is therefore two-sided: verifiers must walk lineage and fail closed on unanswerable ancestors, and orchestrators must, on shutdown or on root revocation, emit a lineage-revocation record enumerating every delegated warrant ID they minted, so the CRL remains complete even after the issuer is gone. Neither side alone closes the window; the window is the gap between them. ```python class DelegatedChainLivenessError(RuntimeError): """Raised when a delegated AAIF warrant chain cannot be proven live against its ancestor lineage within the verifier's freshness window.""" pass def verify_delegated_chain(chain, crl, now, freshness_window_s): """ chain: list of warrants, root-first. Each warrant has: id, parent_id, parent_hash, not_after, attenuation_proof crl: dict warrant_id -> revoked_at (epoch seconds) Admission requires: local validity AND every ancestor live within freshness_window_s. Unresolvable or stale ancestors fail closed. """ if not chain: raise DelegatedChainLivenessError("empty chain presented") # 1. Local validity: attenuation proofs and own TTL. for i, w in enumerate(chain): if w["not_after"] <= now: raise DelegatedChainLivenessError( f"warrant {w['id']} expired at {w['not_after']}" ) if i > 0: parent = chain[i - 1] if w["parent_hash"] != parent["hash"]: raise DelegatedChainLivenessError( f"warrant {w['id']} parent_hash does not match ancestor" ) if not verify_attenuation(w["attenuation_proof"], parent, w): raise DelegatedChainLivenessError( f"warrant {w['id']} attenuation proof invalid" ) # 2. Lineage liveness: walk every ancestor, not just the leaf. for w in chain: wid = w.get("id") if wid is None: # Hash-only reference: cannot be CRL-addressable. Fail closed. raise DelegatedChainLivenessError( f"ancestor {w.get('parent_hash')} has no resolvable id; " "unrevokable chain must not be admitted" ) revoked_at = crl.get(wid) if revoked_at is not None and revoked_at <= now: raise DelegatedChainLivenessError( f"ancestor {wid} revoked at {revoked_at}; leaf admission denied" ) # 3. Freshness: the CRL snapshot must be recent enough that an # ancestor revoked since the snapshot cannot slip through. snapshot_age = now - crl.get("__snapshot_at", 0) if snapshot_age > freshness_window_s: raise DelegatedChainLivenessError( f"CRL snapshot age {snapshot_age}s exceeds freshness window " f"{freshness_window_s}s; lineage liveness unproven" ) return True def verify_attenuation(proof, parent, child): # Placeholder for the AAIF signature fold; returns bool. return proof is not None and proof.get("valid", False) ```