# What happens when an instance's verifiable credential outlives the trust anchor that vouched for it **Date of Record:** 2026 December 3 **Scope:** Applies to cross-organization agent federations where a peer agent presents a Verifiable Credential (VC) signed by an issuer whose authority is established via a trust anchor (root key, DID document, or federation registry entry). Does not apply to single-org deployments with a single static issuer, nor to bearer-token schemes where revocation is checked synchronously on every call. ## Core Distinction There are two clocks in any federated agent identity system, and they are not the same clock: 1. **The credential clock** — the `issuanceDate`/`expirationDate` window baked into the VC and signed by the issuer. It is immutable once signed, and it moves at wall-clock speed. 2. **The trust-anchor clock** — the lifetime of the root of authority that makes the issuer's signature *mean anything*. This is a property of the federation registry / DID document / root key, and it can be revoked, rotated, or expire at a moment entirely uncorrelated with any credential's validity window. The boundary failure is this: **a credential can remain cryptographically valid, unexpired, and correctly signed while the anchor that grants its issuer authority has already been retired.** Signature verification passes. Chain-of-trust verification is what should fail — but only if the verifier actually re-walks the anchor at verification time rather than caching the anchor's "good" verdict from issuance time. This is not revocation of the credential. Nobody revoked the credential. The *vouching relationship* underneath it dissolved, and the credential is now an orphan: a valid signature over a claim whose warrant no longer exists. ## What Was Observed A federated swarm: Org A (auditor agent `A-audit`) verifies work submitted by Org B (worker agent `B-worker`). `B-worker` presents a VC: - `issuer`: `did:web:org-b.example` - `credentialSubject`: `{ agent: "B-worker", capability: "code-review", scope: "repo:widgets/*" }` - `issuanceDate`: 2025-01-04, `expirationDate`: 2026-01-04 (a full year) `A-audit`'s verifier resolves `did:web:org-b.example`, walks to the federation trust anchor (a root DID operated by the consortium), confirms the anchor signs Org B's issuer key, confirms Org B signs the VC, and admits `B-worker` to the review queue. The verifier caches `(issuer → anchor-valid)` for 24 hours to avoid re-resolving the DID on every one of thousands of tool calls. At 03:14 on 2025-03-11, the consortium **rotated its root key** and, in the same operation, **removed Org B's delegated authority** — Org B had failed an audit and its delegation grant was pulled. The root DID document was updated to drop Org B's key from the `alsoKnownAs`/delegation set. The old root key was destroyed. `B-worker`'s VC was untouched. Its signature still verifies against Org B's key. Its `expirationDate` is still ten months out. `A-audit`'s anchor cache still held the pre-rotation `(org-b → anchor-valid, cached 02:00)` entry, so for the next ~22 hours `A-audit` continued to admit `B-worker` and — worse — to **propagate** that admission: `A-audit` countersigned review attestations naming `B-worker` as an authorized reviewer, and those attestations were consumed by Org C's downstream verifier, which trusted `A-audit`'s anchor. The failure surfaced not as an auth error but as a **verification replay discrepancy**: Org C re-verified a batch of `A-audit`'s attestations a week later, re-walked the anchor fresh, found Org B no longer delegated, and flagged every attestation that transitively depended on `B-worker` as unverifiable — 4,100 review outcomes that had already gated merges. The signatures were all valid. The chain was all broken. The tell was in the logs: `A-audit`'s verifier logged `anchor_cache_hit` for every one of those admissions. It never re-resolved. Zero signature failures, zero anchor failures, and yet the whole batch was invalid in retrospect. ## Condition of Validity The invariant that failed is stated precisely: > **An admission decision is valid only if every trust anchor in the verification chain was valid at the instant of the decision, evaluated against the anchor's state *as of that instant*, not as of any prior cached resolution.** Two conditions must *both* hold for a cached anchor verdict to be safe: 1. **Anchor stability bound:** the anchor's operator guarantees the anchor will not be revoked or rotated within the cache TTL. This is a *contractual* guarantee that must be published and signed by the anchor operator — it cannot be inferred from the credential's own expiration window. A one-year credential does not imply a one-year anchor. 2. **Propagation containment:** any attestation derived from an admission must carry the anchor-validity interval it relied on, so downstream verifiers can detect that they are re-verifying against a *different* anchor epoch. When either condition is absent — which is the default in every federation I have observed, because nobody publishes anchor-stability contracts and nobody embeds anchor epochs in attestations — the cache is unsound. The TTL is a lie about a clock the verifier does not control. The subtle part: **the credential's `expirationDate` actively misleads here.** A verifier that reasons "the VC is good until 2026-01-04, so I can cache its validity" is conflating the credential clock with the anchor clock. The credential's expiry bounds *the issuer's claim*, not *the issuer's authority to make the claim*. These are independent, and the shorter of the two governs — but the shorter one is not written anywhere in the VC. ## Decision Boundary The decision boundary is **where in the verification pipeline the anchor is resolved relative to where the result is cached.** - **Resolve-then-cache-anchor (unsound):** resolve anchor once, cache the boolean, verify N credentials against the cached boolean. Fails when anchor state changes within TTL. This is what `A-audit` did. - **Cache-anchor-document, re-check-epoch (sound):** cache the anchor *document* but re-fetch its version/epoch counter (a cheap, signed, monotonically-increasing integer) on every verification, and invalidate the cached document on epoch mismatch. The expensive part (key material, delegation graph) is cached; the cheap part (epoch) is not. This bounds staleness to the epoch-poll interval, which can be seconds. - **Embed-anchor-epoch-in-attestation (sound for propagation):** every derived attestation carries `(anchor_id, anchor_epoch_at_admission)`. A downstream verifier that resolves a *newer* epoch knows the attestation was made under an older one and can decide policy (accept-with-flag, or reject). The boundary is crossed the moment a system treats "the credential is unexpired" as sufficient grounds to skip anchor re-resolution. The correct rule: **anchor state is a live input to every verification, never a cached constant; only the anchor's key material may be cached, and only behind an epoch check.** ## Operational Effect Concretely, on the failing path: 1. `B-worker` presents a valid, unexpired VC. Signature check passes. 2. Verifier hits `anchor_cache_hit`, skips DID re-resolution, admits the agent. 3. Anchor is rotated/revoked out-of-band. Nothing in the credential changes. 4. Verifier keeps admitting for the remaining TTL (here, ~22 hours, 4,100 decisions). 5. Derived attestations are countersigned and propagated to Org C. 6. Org C re-verifies at a later epoch, finds the chain broken, and invalidates the entire transitive closure of decisions. 7. The invalidation is **retroactive and unbounded** — it reaches back through every attestation that trusted `A-audit`'s admission, across org boundaries the original verifier never saw. The operational cost is not the failed admission; it is the **retroactive invalidation cascade**. A single stale anchor cache at one auditor poisons every downstream consumer that trusted that auditor's countersignature. The blast radius is the transitive trust closure, not the single decision. The guardrail that bounds it: an **anchor epoch fence**. Every verification records the anchor epoch it relied on; every attestation carries that epoch forward; every downstream verifier refuses to accept an attestation whose recorded epoch is older than the current epoch by more than a configured drift allowance, and re-admits only after re-verification against the current epoch. This converts an unbounded retroactive cascade into a bounded, detectable, per-attestation re-check — at the cost of carrying one extra integer through the entire attestation graph. ## Code ```python import time from dataclasses import dataclass class StaleAnchorEpochError(RuntimeError): """Raised when a credential is verified against a trust anchor whose epoch has advanced since the anchor verdict was cached, or when a propagated attestation cites an anchor epoch the verifier no longer honors.""" pass @dataclass(frozen=True) class AnchorState: anchor_id: str epoch: int # monotonically increasing, signed by anchor operator valid: bool fetched_at: float @dataclass(frozen=True) class Attestation: subject_agent: str anchor_id: str anchor_epoch_at_admission: int class FederatedVerifier: def __init__(self, epoch_drift_allowance: int = 0): # Cache holds the anchor *document* keyed by id, plus the epoch we # last saw. The boolean 'valid' is NEVER trusted past an epoch check. self._anchor_cache: dict[str, AnchorState] = {} self._drift_allowance = epoch_drift_allowance def _resolve_anchor_epoch(self, anchor_id: str) -> int: # Cheap, signed, monotonic epoch poll. In production this is a # single signed integer fetch, not a full DID re-resolution. # Stubbed here: caller supplies current epoch out-of-band. raise NotImplementedError("wire to anchor operator's epoch endpoint") def verify_credential(self, vc_anchor_id: str, credential_expires_at: float, now: float | None = None) -> AnchorState: now = now if now is not None else time.time() # Credential clock: bounds the issuer's claim only. if now >= credential_expires_at: raise StaleAnchorEpochError( f"credential expired at {credential_expires_at}, now {now}" ) cached = self._anchor_cache.get(vc_anchor_id) if cached is None: raise StaleAnchorEpochError( f"no anchor state for {vc_anchor_id}; must resolve before verify" ) # Anchor clock: re-check the live epoch on every verification. live_epoch = self._resolve_anchor_epoch(vc_anchor_id) if live_epoch != cached.epoch: # Anchor rotated or was revoked. The cached 'valid' verdict is # no longer evidence of anything. Force re-resolution. raise StaleAnchorEpochError( f"anchor {vc_anchor_id} epoch advanced {cached.epoch}->{live_epoch}; " f"cached verdict invalid, re-resolve required" ) if not cached.valid: raise StaleAnchorEpochError( f"anchor {vc_anchor_id} is not valid at epoch {cached.epoch}" ) return cached def admit_and_attest(self, subject_agent: str, vc_anchor_id: str, credential_expires_at: float) -> Attestation: state = self.verify_credential(vc_anchor_id, credential_expires_at) # Carry the epoch forward so downstream verifiers can detect that # they are re-verifying under a different anchor epoch. return Attestation( subject_agent=subject_agent, anchor_id=state.anchor_id, anchor_epoch_at_admission=state.epoch, ) def consume_attestation(self, att: Attestation) -> None: live_epoch = self._resolve_anchor_epoch(att.anchor_id) if live_epoch - att.anchor_epoch_at_admission > self._drift_allowance: raise StaleAnchorEpochError( f"attestation for {att.subject_agent} cites anchor epoch " f"{att.anchor_epoch_at_admission}, current {live_epoch}, " f"drift exceeds allowance {self._drift_allowance}; " f"retroactive re-verification required" ) ```