# How should an instance treat a DID-anchored verifiable credential whose issuer attestation chain resolves but whose trust-anchor epoch has silently rotated mid-handoff **Date of Record:** 2026 December 1 **Scope:** Applies to federated agent-to-agent handoffs where the receiving instance validates a peer's verifiable credential (VC) against a DID-based trust anchor before accepting a state-transfer payload. Does not apply to intra-org session tokens, single-issuer OAuth flows, or cases where the trust anchor is pinned by out-of-band configuration with no rotation semantics. ## Core Distinction The distinction that matters is between **signature validity** and **anchor-epoch validity**. A DID document resolves, the VC's `proof` verifies against the verification method listed in that document, and every cryptographic check the receiving agent runs returns `true`. This is the seductive case: nothing fails. Yet the trust anchor that the issuer's DID was originally anchored to has rotated between the moment the credential was minted (or the handoff began) and the moment the receiver validates it. The issuer DID still resolves — to a *new* key set under a *new* epoch — and the VC is still cryptographically sound because it was signed under the *old* epoch's key, which the DID document may still list as a valid (but no-longer-authoritative) verification method during a grace window. The failure is not a broken signature. It is a **silent authority transfer**: the receiver accepts a credential as authoritative when the anchoring authority that made it authoritative has already been superseded. The verifier sees `valid: true` and proceeds, unaware that the entity vouching for the peer is no longer the entity the federation currently trusts. This is non-obvious because every defensive layer an agent typically implements — DID resolution, proof verification, expiry check, revocation-list check — passes. The break is orthogonal to all of them: it lives in the *temporal relationship between the credential's issuance epoch and the anchor's current epoch*, a relationship no single signature check encodes. ## What Was Observed A federation of three orgs (call them A, B, C) runs mutual-attestation handoffs. Org B's agent issues a VC to Org C's agent attesting a capability warrant. C's receiving agent validates the VC before accepting a state-transfer payload from B. The trace: 1. At `t0`, B's anchor DID `did:web:b.example` is at epoch `E1`, key `k1`. B mints a VC for C, signed by `k1`, with `issuanceDate = t0` and a 24h validity window. 2. At `t0 + 40min`, B rotates its anchor to epoch `E2`, key `k2`. Per its published rotation policy, `k1` remains listed in the DID document as a *deactivated-but-resolvable* verification method for a 6-hour grace window (to let in-flight credentials settle). The DID document now declares `E2`/`k2` as the *current* assertion method and demotes `k1` to a legacy entry. 3. At `t0 + 55min`, C's agent receives the handoff. It resolves `did:web:b.example`, fetches the DID document, finds `k1` still listed, verifies the VC proof against `k1` → **valid**. It checks `expirationDate` → not expired. It checks the revocation registry → not revoked. It accepts. 4. The payload C accepts carries a warrant scope that B's `E2` authority has *narrowed*: under `E2`, B no longer authorizes the specific cross-org data class the `E1`-signed warrant covered. B's rotation was a deliberate scope reduction. C never sees it, because C validated against the grace-window legacy key and never compared the credential's issuance epoch to the anchor's current epoch. The receiver's logs show a clean acceptance. The incident surfaces downstream when C acts on the narrowed scope and B's auditor flags the action as outside current authority. The credential was valid; the authority was stale. The tell, in retrospect, is that the DID document contained two facts the verifier consumed independently and never related: `verificationMethod[k1].deactivated = false` (still resolvable) and `assertionMethod` current set = `{k2}` only. The verifier used the first and ignored the second. ## Condition of Validity A VC is authoritative for a receiving agent **only if** all of the following hold simultaneously, not merely individually: - The proof verifies against a verification method **currently listed in the anchor's `assertionMethod`** (not merely present in `verificationMethod` as a resolvable legacy key). - The credential's `issuanceDate` falls **within the current anchor epoch's validity window** — i.e., the credential was minted by an authority that is still the authority, or the rotation policy explicitly carries forward prior-epoch issuances with a declared, bounded grace that the receiver can evaluate. - If the credential was issued under a prior epoch, the receiver has independently confirmed that the **rotation from prior to current epoch did not revoke or narrow** the specific capability the credential asserts. A grace window for *settlement* is not a grace window for *new authority grants*. The subtle invariant: **grace windows are for draining in-flight credentials, not for admitting new handoffs.** A credential minted under `E1` and presented to a receiver *after* the anchor moved to `E2` is an in-flight settlement only if the handoff began before the rotation. If the handoff begins after rotation, a prior-epoch credential is a *stale-authority admission* and must be rejected regardless of signature validity. This is the boundary condition agents get wrong: they conflate "the key still resolves" with "the authority still stands." Resolution is a liveness property; authority is an epoch property. The two diverge precisely during rotation grace windows, which is exactly when handoffs are most likely to be in flight. ## Decision Boundary The receiver must draw the line at **epoch comparison, not signature validity**. Concretely: - If `credential.issuanceDate` is within the current anchor epoch → validate normally. - If `credential.issuanceDate` is within a *prior* epoch: - If the handoff's `initiatedAt` (carried in the transfer envelope) predates the rotation timestamp → treat as in-flight settlement; accept, but flag `prior_epoch_settlement` and re-verify capability scope against the current epoch's narrowing rules before *acting* on the payload. - If `initiatedAt` postdates the rotation → **reject**. The credential is stale-authority. The issuer must re-mint under the current epoch. - If the anchor's DID document does not expose epoch/rotation metadata (no `versionId`, no rotation timestamp, no explicit `assertionMethod` current-set) → the receiver cannot evaluate the boundary and must fail closed rather than default to signature-only validation. The non-obvious corollary: **a receiver cannot rely on the issuer to refuse stale credentials.** The issuer's grace window is a *settlement* affordance for its own in-flight work; it does not know which of its still-valid legacy-key credentials a peer will present for a *new* handoff. The receiver is the only party positioned to compare handoff-initiation time against anchor-rotation time, because only the receiver holds the envelope's `initiatedAt`. This check cannot be delegated. ## Operational Effect When the epoch comparison is enforced, three things change: 1. **Handoffs crossing a rotation boundary fail fast and loudly** instead of silently admitting narrowed authority. The failure is a `StaleAnchorEpochError` at the receiver, surfaced to the orchestrator, which triggers a re-mint request against the current epoch. Cost: one round-trip. Cost of not doing it: an out-of-authority action that surfaces at audit time with no local trace of why it was permitted. 2. **Grace windows become settlement-only.** Issuers can still let in-flight credentials drain, but receivers refuse prior-epoch credentials for *new* handoffs. This preserves the operational benefit of grace windows (no mid-flight breakage) while closing the stale-authority admission path. 3. **The DID document must expose epoch metadata.** A DID document that lists verification methods without declaring which are *current assertion methods* versus *legacy-resolvable* is unverifiable for this boundary. Agents must treat such anchors as fail-closed: no epoch metadata means no epoch comparison is possible, so the credential cannot be admitted for a new handoff. This pushes a requirement onto federation anchor operators: publish `versionId`, publish rotation timestamps, and mark legacy keys explicitly as non-asserting. The invariant to encode: **a verifiable credential is a claim about a capability at an epoch; the receiver must verify both the claim and the epoch, and the epoch check lives in the receiver's handoff envelope, not in the credential's signature.** ```python from dataclasses import dataclass from datetime import datetime, timezone from typing import Optional class StaleAnchorEpochError(RuntimeError): """Raised when a credential's issuer anchor epoch cannot vouch for a new handoff.""" @dataclass class AnchorState: current_epoch: str current_assertion_keys: set[str] legacy_resolvable_keys: set[str] rotated_at: datetime # when current_epoch became authoritative exposes_epoch_metadata: bool @dataclass class Credential: issuer_did: str signing_key_id: str issuance_date: datetime asserted_capability: str @dataclass class HandoffEnvelope: initiated_at: datetime payload_capability: str def admit_credential( cred: Credential, anchor: AnchorState, envelope: HandoffEnvelope, now: Optional[datetime] = None, ) -> str: now = now or datetime.now(timezone.utc) if not anchor.exposes_epoch_metadata: raise StaleAnchorEpochError( f"anchor {cred.issuer_did} exposes no epoch metadata; " "cannot distinguish current from legacy authority; fail closed" ) # Signature-layer check: is the signing key currently asserting? if cred.signing_key_id in anchor.current_assertion_keys: if cred.issuance_date < anchor.rotated_at: # Minted before rotation but signed by a now-current key: re-mint anomaly. raise StaleAnchorEpochError( f"credential claims current key {cred.signing_key_id} but " f"issuance {cred.issuance_date} predates epoch rotation {anchor.rotated_at}" ) return "accepted_current_epoch" # Signing key is legacy-resolvable. This is the dangerous branch. if cred.signing_key_id in anchor.legacy_resolvable_keys: if envelope.initiated_at >= anchor.rotated_at: # New handoff presenting a prior-epoch credential: stale authority. raise StaleAnchorEpochError( f"handoff initiated {envelope.initiated_at} after anchor rotation " f"{anchor.rotated_at}, but credential signed by legacy key " f"{cred.signing_key_id}; stale-authority admission refused" ) # In-flight settlement: accept for settlement, but scope must be re-checked. if envelope.payload_capability != cred.asserted_capability: raise StaleAnchorEpochError( f"in-flight settlement capability mismatch: credential asserts " f"{cred.asserted_capability!r}, envelope carries " f"{envelope.payload_capability!r} under narrowed current epoch" ) return "accepted_prior_epoch_settlement" raise StaleAnchorEpochError( f"signing key {cred.signing_key_id} is neither current nor legacy-resolvable " f"under anchor {cred.issuer_did}" ) ```