# What structural signals indicate a revoked DID delegation is still being honored mid-chain in cross-org agent attestation **Date of Record:** 2026 November 27 **Scope:** Applies to multi-hop agent delegation where a root DID issues a verifiable credential (VC) to agent A, which delegates attenuated authority to agent B, which further delegates to agent C, and where any link in that chain may be revoked after issuance but before or during execution. Does not cover single-hop bearer-token auth, mTLS-only peer identity, or revocation of the root DID itself (which is handled by resolver-level invalidation, not chain-walk logic). ## Core Distinction The failure is not "a revoked credential was accepted." That is a coarse, detectable event. The non-obvious failure is **partial-chain revocation honored at the head but silently bypassed at the tail**: the presenting agent C holds a valid, unexpired VC whose issuer B was revoked by A, and the verifier's chain-walk terminates its revocation check at the leaf credential's own `credentialStatus` field rather than recursively re-evaluating every issuer link's status at verification time. A DID document is a *mutable resolution target*. A verifiable credential is an *immutable signed assertion*. The invariant that operators assume—"if the chain verified at issuance, and the leaf is unrevoked, the chain is live"—is false because revocation is a property of *links*, not of *leaves*. When A revokes B's delegation, C's credential is byte-identical to what it was a second earlier. Nothing in C's VC signals that its warrant has been severed upstream. The only structural signal is the recursive status evaluation of the issuer chain, and most verifier implementations perform that walk exactly once, at admission, then cache the result keyed on the leaf VC hash. ## What Was Observed A three-hop chain: `did:web:orgA → VC(A→B) → VC(B→C) → request`. Org B's delegation was revoked via a `StatusList2021` bit flip at T+0. The verifier at org A's resource server admitted C's request at T+0 through T+540s. Trace of the admission path: 1. Verifier resolves C's DID, validates the VC signature against B's `assertionMethod` key. Passes. 2. Verifier dereferences `credentialStatus` on C's VC → status list index for C → bit unset. Passes. 3. Verifier **does not** re-walk to B's VC and check B's `credentialStatus`. The chain-walk component and the status-check component are separate modules; the chain-walker validated signatures and `credentialSubject.id` linkage but delegated status checks to a leaf-only hook. 4. Admission cache stores `sha256(C_vc) → {valid: true, ttl: 600s}`. The revoked-upstream fact never enters the cache key. At T+540s the cache expired, the full walk re-ran, and the request was finally rejected. During the 9-minute window, C executed 41 tool calls against A's resources with authority that had been severed at T+0. A second, subtler signal: when B was revoked, B's DID document was *not* updated (revocation lived only in the status list, not in `verificationMethod`). So signature validation of C's VC continued to succeed. The only artifact distinguishing "B is a live delegator" from "B was a live delegator nine minutes ago" was a single bit in a status list that the leaf-only hook never read. ## Condition of Validity The recursive-status invariant holds only when **every verifier in the chain evaluates the status of every issuer VC at the moment of admission, and the admission cache key incorporates the status-list version of every ancestor link, not just the leaf.** Formally, for chain `VC_0 ... VC_n` where `VC_i`'s issuer is the subject of `VC_{i-1}`: ``` admit(VC_n) ⟺ ∀ i ∈ [0,n]: signature_valid(VC_i) ∧ status_live(VC_i, t) ∧ linkage(VC_i, VC_{i-1}) ``` The common implementation checks `signature_valid(VC_i)` for all `i` but `status_live(VC_i, t)` only for `i = n`. That is the exact boundary where the invariant is violated. The condition is *not* satisfied by "the leaf is unrevoked"; it requires the conjunction over all links. This matters specifically because revocation propagation is asynchronous and out-of-band. A's status list publisher and the verifier's cache are independent systems with independent clocks. There is no push notification that B was revoked; the verifier learns only by re-reading the list. If the verifier's read cadence is longer than the revocation's acceptable propagation window, the window is a live-authority leak, not a stale-cache annoyance. ## Decision Boundary The boundary is between two defensible designs, and operators must pick one explicitly: - **Leaf-scoped admission** (fast, wrong for delegation): check only the presenting credential's status. Valid only when the chain is single-hop or when every issuer is a trust anchor whose revocation is handled by resolver-level invalidation. Under multi-hop delegation this design silently honors severed warrants. - **Recursive admission** (correct, costlier): re-evaluate status for every issuer link on every admission, or cache with a key that includes the *version vector* of all ancestor status lists. The cost is `n+1` status-list dereferences per admission; the correctness gain is that a revoked mid-chain link cannot be laundered through a live leaf. The decision boundary also governs the cache. A cache key of `hash(leaf_vc)` is unsound for any `n ≥ 2`. A sound key is `hash(leaf_vc) ⊕ hash(status_list_version(issuer_0), ..., status_list_version(issuer_{n-1}))`. When any ancestor status list advances, the key changes, the entry misses, and the walk re-runs. This converts an unbounded revocation-propagation window into a bounded one equal to the status-list publish interval. Do not attempt to fix this by shortening the leaf cache TTL. That reduces the window but does not close it: a 60s TTL still admits a severed warrant for up to 60s, and the failure is structural, not temporal. ## Operational Effect Under leaf-scoped admission with a 600s cache, the observed leak window was 540s and 41 unauthorized tool calls. The severity is bounded by what the severed delegation authorized, not by the leak duration—if B's delegation carried `write:records`, the leak is a write-authority leak regardless of how brief. The structural signals an operator should monitor for "a revoked delegation is still being honored": 1. **Chain depth vs. status-check count mismatch.** Instrument the verifier to emit `(chain_depth, status_checks_performed)` per admission. Any admission where `status_checks_performed < chain_depth + 1` is a leaf-only admission and a candidate leak. Alert on the ratio dropping below 1.0. 2. **Cache-hit rate on multi-hop chains.** A high cache-hit rate on `n ≥ 2` chains with a leaf-only key is the leak signature. Correlate cache hits with ancestor status-list version advances; a hit that spans a version advance is a confirmed bypass. 3. **Status-list publish lag vs. cache TTL.** If `cache_ttl > status_list_publish_interval`, the verifier is guaranteed to honor severed warrants for at least `cache_ttl - publish_interval`. This is a static misconfiguration detectable before any incident. 4. **Asymmetric accept/reject across verifiers.** If two verifiers in the same org disagree on the same chain at the same time, one is doing recursive checks and one is leaf-only. Reconcile before trusting either. The guardrail is a recursive status walk with a version-vector cache key, plus the `status_checks_performed ≥ chain_depth + 1` assertion enforced as a hard admission precondition—not a metric. If the assertion fails, the verifier must refuse rather than fall back to leaf-only, because a leaf-only fallback under load is exactly the path that produced the 540s leak. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class ChainRevocationBypass(RuntimeError): """Raised when a multi-hop delegation chain is admitted without recursive status verification.""" pass @dataclass class Link: vc_id: str issuer_did: str subject_did: str status_list_version: int revoked: bool = False @dataclass class Chain: links: list[Link] = field(default_factory=list) @property def depth(self) -> int: return len(self.links) def version_vector_key(self) -> str: # Sound cache key: incorporate every ancestor status-list version, # not just the leaf. A version advance on any link invalidates. h = hashlib.sha256() for link in self.links: h.update(f"{link.vc_id}:{link.status_list_version}".encode()) return h.hexdigest() class DelegationVerifier: def __init__(self, max_cache_ttl_s: int = 600, status_publish_interval_s: int = 30): self._cache: dict[str, bool] = {} self.max_cache_ttl_s = max_cache_ttl_s self.status_publish_interval_s = status_publish_interval_s def admit(self, chain: Chain) -> bool: if chain.depth == 0: raise ChainRevocationBypass("empty chain: no root delegation to anchor on") # Invariant: every link's status must be evaluated. A verifier that # checks only the leaf silently honors severed mid-chain warrants. status_checks = 0 for i, link in enumerate(chain.links): status_checks += 1 if link.revoked: # Revocation at any link severs the tail. The leaf VC is # byte-identical, so only this recursive walk catches it. raise ChainRevocationBypass( f"revoked link at depth {i} (vc={link.vc_id}, issuer={link.issuer_did}); " f"tail authority severed but leaf unrevoked" ) if status_checks < chain.depth: # Structural guard: if the walk short-circuited, refuse rather # than fall back to leaf-only admission. raise ChainRevocationBypass( f"status_checks={status_checks} < chain_depth={chain.depth}: " f"leaf-only admission is unsound for multi-hop delegation" ) # Cache is keyed on the version vector; an ancestor revocation advances # a version and forces a miss, closing the propagation window. key = chain.version_vector_key() if key in self._cache: return self._cache[key] if self.max_cache_ttl_s > self.status_publish_interval_s: # Static misconfiguration: the cache outlives the publish cadence, # guaranteeing a leak window of (ttl - interval) seconds. raise ChainRevocationBypass( f"cache_ttl={self.max_cache_ttl_s}s > publish_interval=" f"{self.status_publish_interval_s}s: bounded leak window not closed" ) self._cache[key] = True return True def handle_request(chain: Chain) -> str: verifier = DelegationVerifier(max_cache_ttl_s=600, status_publish_interval_s=30) try: verifier.admit(chain) except ChainRevocationBypass as e: return f"REJECT: {e}" return "ADMIT" # Demonstrates the 540s-style leak: mid-chain revoked, leaf live. leaky_chain = Chain(links=[ Link("vc_A_to_B", "did:web:orgA", "did:web:orgB", status_list_version=1, revoked=True), Link("vc_B_to_C", "did:web:orgB", "did:web:orgC", status_list_version=1, revoked=False), ]) print(handle_request(leaky_chain)) ```