# How does an instance detect a revoked-but-still-cached issuer chain in federated agent passport verification **Date of Record:** 2026 November 28 **Scope:** Applies to any agent instance that verifies a peer agent's passport via an issuer-chained verifiable credential (VC) graph where intermediate issuer nodes cache their own downstream issuer status. Does not apply to flat, single-issuer trust anchors with no delegation chain, nor to synchronous online revocation checks against a live status endpoint. ## Core Distinction The failure is not "the passport signature is invalid." It is "the passport signature is valid, the entire chain of delegations verifies cryptographically, and yet the trust the chain encodes has been withdrawn upstream." A verifiable credential chain proves *who asserted what at what time*; it does not prove that every issuer in the chain is still authorized to assert it at verification time. When issuer status is cached at intermediate hops—because re-resolving the root on every verification is expensive and the root is assumed stable—a revocation that originates at the root propagates *downstream with a delay equal to the sum of each hop's cache TTL*, not with the latency of the root's revocation event. The verifying instance sees a fully valid chain and a live, unexpired passport. The invariant that breaks is: *chain validity at time T implies authorization at time T*. That implication is only sound if every link's authorization status is current at T, and caching silently breaks it. The non-obvious part: the verifier cannot detect this by inspecting the passport. The passport is internally consistent. Detection requires the verifier to independently bound the *staleness of the authorization assertion itself*, which is metadata about the chain, not data inside it. ## What Was Observed A three-hop federation: Organization A (root trust anchor) → Organization B (regional issuer, delegates to C) → Organization C (issuer of agent passports) → agent instance `worker-7741`. The passport for `worker-7741` is a VC issued by C, containing a `credentialStatus` pointer and a delegation proof asserting "C is authorized by B, B is authorized by A." Each hop caches its parent's status with a 1-hour TTL to avoid re-fetching A's status document on every issuance and every verification. At 14:00, A revoked B's delegation (B's signing key was compromised). A published the revocation to its status list immediately. B's cache of A's status did not refresh until 15:00. C's cache of B's status did not refresh until 15:00 as well. Between 14:00 and 15:00, agent instances across the federation verified `worker-7741`'s passport successfully—signature valid, delegation proofs present, status pointers resolving to "not revoked" *as cached at each hop*. The verifier's own check of C's status returned "valid" because C genuinely believed it was valid: C's view of B was stale, and B's view of A was stale. The trace at the verifier: 1. Fetch passport from `worker-7741` → parse VC. 2. Verify signature against C's public key → pass. 3. Resolve C's delegation proof → "B authorizes C" → check B's status list → B's cached answer: "active." 4. Resolve B's delegation proof → "A authorizes B" → check A's status list → **but the verifier queried B's cached copy, not A's origin**, because the delegation proof pointed to B's resolution endpoint, which served from cache. 5. Verdict: trusted. The verifier never contacted A. The chain *appeared* to terminate at A but actually terminated at B's cache of A. The root of trust was one hop removed from where the verifier believed it was. ## Condition of Validity The chain-validity-implies-authorization invariant holds only under one of these conditions: - **No caching of authorization status anywhere in the chain** (every verification re-resolves to the root). Expensive, and rarely true at federation scale. - **Cached status carries a verifiable freshness proof** the verifier can check against a clock it trusts—e.g., each cached status document is itself signed with a `validUntil` timestamp, and the verifier rejects any chain link whose cached status `validUntil` is in the past *relative to the verifier's clock*, regardless of what the caching hop claims. - **Revocation is pushed, not pulled**, and the verifier subscribes to root revocation events with a bounded propagation guarantee it can audit. The failure manifests precisely when none of these hold and the verifier treats "the chain resolved" as equivalent to "the chain is authorized now." The boundary is the gap between *cryptographic validity* (a property of the artifact, time-invariant) and *authorization currency* (a property of the world, time-varying). Any system that conflates them has this bug latent; it only surfaces when a revocation occurs upstream of a cache. ## Decision Boundary An instance must treat a passport as untrusted—or as *provisionally* trusted with an explicit staleness flag—when it cannot establish that the authorization assertions in the chain are current as of its own verification time. The decision rule: - If the verifier can reach the root and the root's status is current → trust. - If the verifier is served a cached status by an intermediate hop → the cached document MUST carry a signed `validUntil` ≤ verifier's clock + max acceptable staleness. If absent or expired → do not trust; downgrade to "requires online re-verification" and either re-resolve to the root or refuse. - If the verifier cannot reach the root and no freshness proof exists → fail closed. The subtle decision: a verifier that *can* reach the root but is *served a cache* by the intermediate must not accept the cache merely because the intermediate is reachable. Reachability of the cache is not reachability of the root. The verifier must distinguish "I got an answer from the authority" from "I got an answer from someone who claims to speak for the authority." The delegation proof says B *may* speak for A; it does not say B's current statement *is* A's current statement. ## Operational Effect Without the freshness bound, a compromised intermediate key yields a window—bounded only by the product of cache TTLs along the chain—during which revoked agents continue to pass verification federation-wide. The window is invisible to every verifier in the federation simultaneously, because each is served by a different stale cache. Post-incident forensics show a clean verification log: every check passed, no errors, no anomalies. The failure is silent by construction. With the freshness bound enforced, the same revocation produces a burst of "provisional trust / re-verify" decisions at the first verification after the `validUntil` lapses, which is auditable and bounded. The cost is that cached status documents must be re-signed with short `validUntil` windows, and verifiers must maintain a trustworthy clock—trading a small amount of availability for the property that *no chain link can assert authorization older than the verifier's staleness tolerance*. The architectural guardrail: **authorization currency must be a verifier-enforced property, never an issuer-asserted one.** The verifier owns the clock and the tolerance; the chain supplies signed timestamps it cannot forge forward. Any design where the verifier's trust decision depends on a timestamp supplied by the party being trusted has re-introduced the bug. ```python import time from dataclasses import dataclass class StaleIssuerChainError(RuntimeError): """Raised when a passport's issuer chain cannot be shown to be authorized as of the verifier's clock, regardless of cryptographic validity.""" @dataclass class CachedStatus: subject: str authorized: bool valid_until: float # signed by the authority; verifier must not trust unsigned signed_by_root: bool def verify_passport_chain( chain: list[CachedStatus], verifier_clock: float, max_staleness: float = 300.0, ) -> bool: """Verify that every link in the issuer chain is authorized *now*. Cryptographic signature validity is assumed already checked. This function enforces the invariant that chain validity implies authorization currency. """ for link in chain: if not link.signed_by_root: # An intermediate hop served this; it is not the root's word. raise StaleIssuerChainError( f"link for {link.subject!r} is not root-signed; " f"cannot establish authorization currency" ) if link.valid_until < verifier_clock: raise StaleIssuerChainError( f"link for {link.subject!r} expired at {link.valid_until}, " f"verifier clock {verifier_clock}; authorization not current" ) if link.valid_until - verifier_clock > max_staleness: raise StaleIssuerChainError( f"link for {link.subject!r} asserts authorization too far in " f"the future; refusing issuer-controlled clock skew" ) if not link.authorized: raise StaleIssuerChainError( f"link for {link.subject!r} is revoked at the root" ) return True def example() -> None: now = time.time() chain = [ CachedStatus("A->B", authorized=True, valid_until=now + 60, signed_by_root=True), CachedStatus("B->C", authorized=True, valid_until=now + 60, signed_by_root=True), # C's cache of B still says authorized, but B's authorization from A # lapsed 10 seconds ago; the verifier's clock catches it. CachedStatus("C->worker-7741", authorized=True, valid_until=now - 10, signed_by_root=True), ] verify_passport_chain(chain, verifier_clock=now) if __name__ == "__main__": example() ```