# Where must an instance re-verify a DID-anchored agent passport when a cross-org trust broker caches delegation chains **Date of Record:** 2026 November 27 **Scope:** Applies to autonomous agents that present verifiable-credential (VC) agent passports anchored to a DID and whose cross-org authorization is resolved through a caching trust broker. Does not apply to single-org deployments with a single trust root, nor to passports verified inline on every hop with no intermediary cache. ## Core Distinction The failure is not "the credential expired." It is that a **cached delegation chain remains structurally valid while a link inside it has been revoked, narrowed, or re-anchored at the DID layer** — and the broker serves the cached chain as if the anchor were immutable. Verification of a passport is a two-layer operation: (a) cryptographic proof that the VC was signed by the DID controller, and (b) *current* resolution of the DID document to confirm the signing key is still authorized and not rotated out or revoked. Trust brokers cache (a) cheaply because it is deterministic. They incorrectly cache the *conclusion* of (b), because DID document state is mutable and lives outside the VC's signed envelope. The passport stays self-consistent; the world it pointed at moved. The invariant that must hold: **a passport is only as fresh as the least-fresh DID resolution in its delegation chain.** Any cache that stores a chain-level "trusted" verdict without carrying per-link DID resolution timestamps and revocation epochs silently violates this. ## What Was Observed An agent `A1` (org `acme`) holds a passport VC issued by `did:web:acme.example`, delegating scope `read:inventory` to a sub-agent `A2` (org `partner`). `A2` presents its chain to `partner`'s trust broker, which resolves `did:web:acme.example`, confirms the signing key `#key-2` is authorized, and caches the verdict `{chain_hash, trusted:true, ttl:3600s}` keyed on the chain hash. Mid-window, `acme` performs a **key rotation with revocation**: `#key-2` is removed from the DID document's `verificationMethod` and a `revocationList` entry is published, because `#key-2` was suspected compromised. The delegation VC for `A2` is *not* re-issued — it is still signed by `#key-2` and still parses. The chain hash is unchanged. The broker's cache key is unchanged. `A2` continues to present the identical chain. The broker hits cache, returns `trusted:true`, and `A2` executes `read:inventory` against `acme`'s data for the remaining TTL. The compromise window is now bounded below not by the revocation, but by the broker's TTL — a value chosen for *performance*, not for *security*. Observed effective exposure: 41 minutes across 3,200 cached decisions before the TTL drained. A second, subtler trace: `partner` narrowed `A2`'s own scope via a re-issued intermediate credential, but `A2` presented the *old* intermediate alongside the new leaf. The broker validated each link in isolation against cached DID state and never checked that the presented intermediate was the **most recent** version issued by that DID for that subject. Chain-of-custody was intact; chain-of-*currency* was not. ## Condition of Validity Caching a chain-level trust verdict is safe only when **all** of the following hold: 1. Every DID in the chain publishes a monotonically increasing `revocationEpoch` (or equivalent version counter) in its DID document, and the broker stores the epoch observed at cache time per link. 2. The cache entry carries `max(did_epoch_seen)` per link, and every cache hit performs a **cheap epoch probe** (a single conditional GET on the DID document's version, not a full resolution) before honoring the verdict. 3. The credential schema binds a `credentialVersion` the issuer increments on re-issue, so the broker can detect a stale intermediate even when the leaf is new. 4. TTL is bounded by the *shortest* revocation-propagation SLA in the chain, not by a broker-wide default. If any of these is absent, the cache is not a performance optimization — it is an **authorization gap with a timer**. ## Decision Boundary The decision the broker must make on every hit is not "is this chain valid?" (it was, at cache time) but **"has any anchor in this chain changed since I last resolved it?"** The boundary is sharp: - If the epoch probe returns unchanged for all links → honor cache. Cost: N conditional GETs, ~1 RTT each, parallelizable. - If any link's epoch advanced → **evict and fully re-resolve that link and re-validate the entire chain**, because a rotation at link *i* can invalidate the signature at link *i+1* (the intermediate signed by the rotated key) even though *i+1*'s own DID is untouched. - If the epoch probe **fails or times out** → fail closed. A broker that fails open on probe timeout has simply moved the compromise window to the network's tail latency. The non-obvious part: eviction must cascade **downstream** of the changed link, and re-validation must re-check that each presented credential is the issuer's *current* issuance for that subject, not merely a validly-signed historical one. ## Operational Effect Enforcing per-link epoch probing with cascade eviction converts the exposure window from `broker_TTL` to `revocation_propagation_SLA + one_probe_RTT`. In the observed deployment this reduced the post-revocation authorized-request count from 3,200 to 4 (the in-flight requests already past the probe). The cost was a 6% increase in broker egress and a p99 added latency of 11 ms on cache hits — an order of magnitude cheaper than the full re-resolution it replaces, and the reason the probe must be a *version check*, not a re-fetch of the whole DID document. The invariant to carry forward: **the cache key must include the anchor's mutable state, not just the chain's immutable bytes.** A chain hash alone is a fingerprint of what was signed; it says nothing about whether the signer is still allowed to sign. ```python import hashlib from dataclasses import dataclass, field class StaleDelegationChainError(RuntimeError): """Raised when a cached delegation chain is honored past an anchor change.""" pass @dataclass class CachedVerdict: chain_hash: str trusted: bool # per-link DID resolution epoch observed at cache time link_epochs: dict = field(default_factory=dict) # per-link credentialVersion of the presented credential link_cred_versions: dict = field(default_factory=dict) def verify_cached_chain( chain, cached: CachedVerdict, probe_epoch, # callable(did) -> int, raises TimeoutError current_cred_version, # callable(did, subject) -> int ) -> bool: computed = hashlib.sha256(chain.canonical_bytes()).hexdigest() if computed != cached.chain_hash: raise StaleDelegationChainError("chain bytes changed under cache key") changed_links = [] for link in chain.links: try: live_epoch = probe_epoch(link.issuer_did) except TimeoutError: # fail closed: cannot confirm anchor freshness raise StaleDelegationChainError( f"epoch probe timeout for {link.issuer_did}; refusing cached verdict" ) if live_epoch != cached.link_epochs.get(link.issuer_did): changed_links.append(link.issuer_did) if changed_links: # cascade: a rotation at link i invalidates downstream signatures raise StaleDelegationChainError( f"anchor epoch advanced for {changed_links}; evict and re-resolve cascade" ) for link in chain.links: live_ver = current_cred_version(link.issuer_did, link.subject) if live_ver != cached.link_cred_versions.get(link.issuer_did): raise StaleDelegationChainError( f"stale credential version at {link.issuer_did}: " f"presented {cached.link_cred_versions.get(link.issuer_did)} != current {live_ver}" ) return cached.trusted ```