# In what scenarios must an instance treat a delegated-credential chain as invalid the moment a mid-chain revocation propagates out of order **Date of Record:** 2026 November 29 **Scope:** Applies to AAIF-style agent identity attestation where an acting instance presents a delegation chain (root issuer → intermediate agents → leaf executor) and revocation events for any link arrive asynchronously over a gossip/notification channel. Does not apply to single-hop, self-signed leaf credentials or to systems where revocation is checked synchronously against an authoritative root on every call. ## Core Distinction The failure is not "a revoked credential was accepted." It is subtler: **a revocation for an intermediate link arrives *after* a downstream re-delegation already consumed the pre-revocation chain state**, so the leaf executor holds a credential whose validity proof was computed against a parent that is now dead, while the leaf's own signature still verifies cleanly. The distinction that matters operationally is between *signature validity* and *chain validity*. The leaf's cryptographic attestation is intact — every `sig` verifies, every `issuer`/`subject` link is well-formed, the expiry timestamps are all in the future. A naive verifier that walks the chain and checks signatures plus expiries will accept it. But the chain is semantically dead: one of its ancestors was revoked at `t_revoke`, and the re-delegation that produced the leaf happened at `t_redelegate` where `t_revoke < t_redelegate` yet the revoking party's notification had not yet reached the re-delegating agent. The leaf is a *zombie attestation* — cryptographically alive, authoritatively dead. This is a boundary condition, not a steady-state bug. It only manifests in the window between `t_revoke` (authoritative revocation time at the issuer) and `t_deliver` (when the intermediate agent learned of it). Inside that window, delegation continues to propagate downstream, minting credentials that are born invalid. ## What Was Observed A three-tier deployment: `issuer` (root, signs intermediate certs), `planner` (intermediate agent, delegates tool-scoped execution rights to workers), `worker-7` (leaf executor). The `planner` held an intermediate credential delegated by `issuer`. On revocation of `planner`'s intermediate credential (triggered by a policy violation flagged at the issuer), the issuer broadcast a revocation record `rev(planner, t_revoke=12:00:00.000)` over the gossip channel. The gossip channel had a p99 delivery latency of 340ms and, critically, **no causal ordering guarantee relative to delegation traffic**. At `12:00:00.211`, before the revocation record reached `planner`, `planner` processed a queued delegation request from `worker-7` and issued a fresh leaf credential `leaf(worker-7, delegated_by=planner, t_redelegate=12:00:00.211)`. That leaf carried a `parent_digest` pointing at `planner`'s (now revoked) intermediate credential. At `12:00:00.402`, `worker-7` presented the leaf to a downstream resource gate. The gate walked the chain: 1. `leaf` signature valid — pass. 2. `leaf.parent_digest` → `planner` intermediate — signature valid, expiry valid — pass. 3. `planner` intermediate `parent_digest` → `issuer` root — valid — pass. 4. Revocation check: gate queried its local revocation cache, which had *also* not yet received `rev(planner)`. Cache miss on revocation → treated as "not revoked" → **accept**. The request succeeded at `12:00:00.402`. The revocation record reached the gate's cache at `12:00:00.533`. For 131ms, a fully revoked delegation chain authorized execution. Worse, `worker-7` cached the successful authorization locally and reused the leaf for subsequent calls up to its `not_after`, each time re-presenting the same zombie chain. The observed invariant violation: **the leaf credential's `t_redelegate` (12:00:00.211) is strictly greater than the ancestor's `t_revoke` (12:00:00.000), yet the leaf was minted and accepted.** Any verifier that could compare these two timestamps would reject the leaf on the spot. None did, because neither the leaf nor the verifier carried `t_revoke` — revocation time lived only in the revocation record, which was the thing that hadn't arrived. ## Condition of Validity A delegated credential chain is valid at verification time `t_verify` **if and only if**, for every link `L_i` in the chain: 1. `sig(L_i)` verifies against `L_{i-1}`'s public key (or root for `i=0`), **and** 2. `not_before(L_i) ≤ t_verify ≤ not_after(L_i)`, **and** 3. `t_redelegate(L_i) > t_revoke(L_j)` is **false** for all ancestors `L_j` where `j < i` — i.e., no link was re-delegated after any ancestor's authoritative revocation time, **and** 4. the verifier's revocation view is *causally consistent* with the issuer's at `t_verify` — meaning the verifier has received all revocation records with `t_revoke ≤ t_verify` that the issuer had emitted by `t_verify`. Condition 3 is the one the observed system lacked entirely — it never compared delegation time against ancestor revocation time. Condition 4 is the one that is *impossible to satisfy perfectly* under asynchronous gossip with no bound; it can only be bounded, not closed. The critical insight: **conditions 1 and 2 are checkable from the credential alone; conditions 3 and 4 require external, time-ordered revocation state.** A verifier that only inspects the presented chain can never enforce 3 or 4. This is the structural gap. The bounded-validity form: condition 4 is satisfiable *to within a staleness bound* `Δ` if the verifier refuses to accept any credential whose `t_redelegate` is within `Δ` of `t_verify` unless it has a fresh (within `Δ`) authoritative revocation snapshot covering `[t_verify − Δ, t_verify]`. This converts the unbounded race into a bounded one at the cost of a `Δ`-length quarantine on freshly-minted delegations. ## Decision Boundary The operational decision is: **when a verifier receives a chain and its revocation view is stale by more than `Δ`, does it fail-open (accept, risk zombie) or fail-closed (reject, risk availability)?** The boundary is drawn by comparing `t_redelegate(leaf)` against `t_freshness(revocation_view)`: - If `t_redelegate(leaf) < t_freshness(revocation_view)` — the leaf was minted before the verifier's revocation snapshot was taken, so the snapshot *covers* the leaf's delegation event. The snapshot is authoritative for this leaf. Accept if chain-valid. - If `t_redelegate(leaf) ≥ t_freshness(revocation_view)` — the leaf was minted at or after the snapshot time; the snapshot cannot speak to whether an ancestor was revoked between snapshot and `t_redelegate`. **This is the danger zone.** The verifier must either (a) block until a snapshot with `t_freshness > t_redelegate` arrives (fail-closed with bounded wait), or (b) reject (fail-closed immediately). The non-obvious part: **the decision hinges on `t_redelegate`, not on `t_verify` or on credential expiry.** A long-lived leaf minted *before* a stale snapshot is safe to accept even if the snapshot is old, because the snapshot covers the mint event. A freshly-minted leaf is dangerous *precisely because it is fresh* — it sits in the uncovered window. Freshness of the credential and freshness of the revocation view must be compared, not freshness of the credential alone. The boundary also has a delegation-depth interaction: the check must be applied at *every* link, and the binding constraint is the **maximum** `t_redelegate` across the chain (the most recent re-delegation), since that is the latest event the revocation view must cover. A leaf minted at `12:00:00.211` with a parent minted at `11:59:00` requires the revocation view to be fresh past `12:00:00.211`, not past `11:59:00`. ## Operational Effect Without the `t_redelegate` vs. `t_freshness` comparison, the system exhibits **revocation propagation lag as an authorization window**: every revoked intermediate grants its downstream delegates a `t_deliver − t_revoke` grace period during which zombie chains authorize execution. Under gossip latency spikes (the p99 tail, or a partitioned relay), this window widens from hundreds of milliseconds to seconds or minutes. The effect is silent — no error, no log line; the gate reports "authorized," and the audit trail shows a valid signature chain. The architectural guardrail required is a **delegation-time fence**: every minted credential carries `t_redelegate` (already present) and every verifier carries `t_freshness` of its revocation view (must be added). The verifier rejects any chain where `max(t_redelegate) ≥ t_freshness`. This is cheap — one timestamp comparison — and it closes the race to within `Δ` without requiring synchronous revocation checks. The second guardrail is **revocation-record monotonicity**: revocation records must be ordered by `t_revoke` at the issuer and the verifier must track the high-water mark `t_revoke_max_seen`; a snapshot is only "fresh to `t`" if it contains all records with `t_revoke ≤ t`. This prevents a late-arriving *older* revocation from being masked by a newer snapshot that skipped it (out-of-order gossip). The residual risk after both guardrails: a revocation with `t_revoke` in the future relative to the issuer's clock skew, or a leaf minted in the same millisecond as the revocation. The fence reduces the window to clock-skew granularity; it does not eliminate it. For high-assurance scopes, add a `Δ`-quarantine: refuse to honor any leaf with `t_redelegate > t_verify − Δ`, forcing a minimum `Δ` between mint and use so the revocation view has time to catch up. ```python import time from dataclasses import dataclass class ZombieAttestationError(RuntimeError): """Raised when a delegated credential was minted at/after the verifier's revocation-view freshness horizon, making ancestor revocation status undecidable for this leaf.""" pass @dataclass(frozen=True) class Link: subject: str t_redelegate: float # epoch seconds, when this link was minted not_after: float @dataclass(frozen=True) class RevocationView: t_freshness: float # epoch seconds: snapshot covers all revokes <= this revoked_subjects: frozenset def verify_chain( chain: list[Link], view: RevocationView, now: float, delta_quarantine: float = 0.0, ) -> None: # 1. structural + expiry checks (signatures assumed verified upstream) for link in chain: if link.not_after < now: raise ZombieAttestationError( f"link {link.subject} expired at {link.not_after} < {now}" ) # 2. any ancestor already known-revoked -> dead chain for link in chain: if link.subject in view.revoked_subjects: raise ZombieAttestationError( f"link {link.subject} is revoked in current view" ) # 3. delegation-time fence: the latest mint event must be covered by # the revocation snapshot, else ancestor revocations are undecidable. latest_mint = max(link.t_redelegate for link in chain) if latest_mint >= view.t_freshness: raise ZombieAttestationError( f"chain minted at {latest_mint} >= revocation freshness " f"{view.t_freshness}; ancestor revocation status undecidable " f"(zombie attestation window)" ) # 4. optional quarantine: force a minimum gap between mint and use so # the revocation view can catch up before the leaf is honored. if delta_quarantine > 0.0 and latest_mint > now - delta_quarantine: raise ZombieAttestationError( f"chain minted at {latest_mint} within quarantine " f"{delta_quarantine}s of use time {now}" ) ```