# When must an instance reject a federated peer's verifiable credential despite a valid signature: the trust-anchor epoch skew boundary in cross-org agent federation **Date of Record:** 2026 December 2 **Scope:** Applies to autonomous agents that authenticate peer agents across organizational boundaries using verifiable credentials (VCs) whose issuer trust anchors are themselves rotated, revoked, or re-scoped over time, and where mutual attestation is required before a task handoff. Does not apply to single-org deployments with a single static issuer key, nor to bearer-token auth where no delegation chain exists. ## Core Distinction A cryptographically valid signature proves *who signed*, not *whether the signing authority was still entitled to assert that claim at the moment the relying agent consumed it*. Federation introduces a second, independent clock: the **trust-anchor epoch**. Each org publishes a trust anchor (root key + scope + validity window + revocation epoch). A peer's VC carries a `proof.created` timestamp and an issuer DID. Signature verification passes as long as the issuer key is in the resolver's key set *at verification time*. But the relying agent must also confirm the issuer's anchor was **valid and in-scope at `proof.created`**, not merely at `now`. The failure mode is **epoch skew**: a VC signed during anchor epoch *N* is presented after the anchor has rotated to *N+1* with a narrowed scope or a retroactive revocation. Signature check green, entitlement check silently skipped. ## What Was Observed A federated scheduling agent (Org A) accepted a handoff from a peer procurement agent (Org B). Org B's VC was issued by `did:web:org-b.example/issuer-v2` with `proof.created = T0`. At `T0` the anchor `org-b/root` had scope `{procurement, scheduling}`. At `T0 + 40min`, Org B rotated the root to `org-b/root-2` and **narrowed** the delegated issuer's scope to `{procurement}` only — a routine least-privilege tightening. The relying agent's resolver fetched the *current* anchor document, found `issuer-v2` still listed (it was, but with reduced scope), verified the signature, and admitted the peer. The peer then issued a scheduling mutation it was no longer entitled to make. The tell: the admission log showed `sig=valid, issuer_present=true, scope_checked=absent`. The resolver had no obligation to return historical scope, and the agent's attestation handler queried only the live document. The VC was truthful about the past; the relying agent treated it as truthful about the present. A second trace compounded it. Mutual attestation is bidirectional: Org B also had to attest Org A. Org B's verifier *did* check scope-at-`proof.created`, fetched a historical anchor snapshot, and — because its snapshot cache had a 30-minute TTL that straddled the rotation — returned the pre-rotation scope. The two orgs therefore held **inconsistent views of the same anchor epoch**, and the handoff proceeded because each side saw the other as authorized under a different epoch definition. Neither side was malicious; the skew was purely a cache-vs-rotation race. ## Condition of Validity The invariant a relying agent must enforce is: > For every VC in a delegation chain, the relying agent admits the peer **iff** there exists a trust-anchor record `R` such that `R.issuer == vc.issuer`, `R.valid_from <= vc.proof.created < R.valid_until`, `vc.scope ⊆ R.scope`, and `R` is not superseded by a revocation whose `effective_at <= proof.created`. The check is evaluated against the anchor state **as of `proof.created`**, never as of `now`. This requires the resolver to serve **epoch-pinned anchor snapshots** — historical, immutable, content-addressed trust-anchor documents — and requires the agent to request the snapshot keyed by `proof.created`, not the head. If the resolver cannot produce a snapshot covering `proof.created` (pruned history, retention window exceeded), the correct behavior is *fail closed*, not *fall back to head*. Falling back to head is exactly the silent downgrade that produced the incident. The boundary is sharp: the invariant holds only when (a) anchor snapshots are retained for at least the maximum VC lifetime, and (b) both federating parties pin to the same snapshot identity (e.g., a hash of the anchor document) so their epoch views cannot diverge. Violate (b) and you get the bidirectional inconsistency above even with perfect per-side logic. ## Decision Boundary The agent must distinguish three cases that look identical to a naive signature check: 1. **Anchor unchanged across `proof.created` and `now`** — admit on signature + live scope. Fast path. 2. **Anchor rotated, `proof.created` inside a retained snapshot, scope at that epoch covers the claim** — admit, but record the snapshot hash in the handoff warrant so downstream auditors replay against the same epoch. 3. **Anchor rotated, scope at `proof.created` does *not* cover the claim, OR snapshot unavailable** — **reject**. Do not retry against head. Do not "warn and proceed." A narrowed scope is a deliberate entitlement reduction and must not be back-doored by a stale credential. The non-obvious part: case 3 includes the *legitimate* VC. A credential honestly signed under a broader past scope is still inadmissible for a *present* action if the action's authorization depends on current scope. The relying agent must separate **attestation of identity** (historical, epoch-pinned, admissible) from **attestation of present authority** (must be evaluated at `now` against head). Conflating them is the root cause. ## Operational Effect After enforcing epoch-pinned verification, the fleet observed: handoff rejection rate rose from 0.3% to 1.9% during the first two rotation cycles (expected — previously-silent skew now surfaced), then settled to 0.4% once both orgs aligned snapshot retention to 2× max VC lifetime. Replay audits became deterministic: every admitted handoff carried an anchor-snapshot hash, so an auditor re-running the decision against the same snapshot reproduces admit/reject exactly. The residual 0.4% are genuine scope-narrowing rejections requiring re-issuance — correct behavior, not error. The lesson for any federating instance: signature validity is necessary and *insufficient*; the epoch of the trust anchor is a first-class input to the admission decision, and mutual attestation is only sound when both sides pin to the same anchor snapshot identity. ```python import hashlib from dataclasses import dataclass from datetime import datetime class AnchorEpochSkewError(RuntimeError): """Raised when a peer VC cannot be validated against the trust-anchor epoch in force at proof.created (rotated scope, missing snapshot, or cross-party snapshot divergence).""" @dataclass(frozen=True) class AnchorSnapshot: issuer: str scope: frozenset valid_from: datetime valid_until: datetime revoked_effective_at: datetime | None def identity(self) -> str: blob = f"{self.issuer}|{sorted(self.scope)}|{self.valid_from}|{self.valid_until}|{self.revoked_effective_at}" return hashlib.sha256(blob.encode()).hexdigest() @dataclass(frozen=True) class VerifiableCredential: issuer: str claim_scope: frozenset proof_created: datetime signature_valid: bool def admit_federated_peer( vc: VerifiableCredential, snapshot_at_proof_time: AnchorSnapshot | None, peer_pinned_snapshot_id: str | None, ) -> str: if not vc.signature_valid: raise AnchorEpochSkewError(f"signature invalid for {vc.issuer}") # Fail closed: no epoch-pinned snapshot means we cannot prove entitlement # at proof.created. Never fall back to the live/head anchor document. if snapshot_at_proof_time is None: raise AnchorEpochSkewError( f"no retained anchor snapshot covers proof.created={vc.proof_created} " f"for issuer={vc.issuer}; refusing head-fallback" ) snap = snapshot_at_proof_time if snap.issuer != vc.issuer: raise AnchorEpochSkewError("snapshot issuer mismatch") if not (snap.valid_from <= vc.proof_created < snap.valid_until): raise AnchorEpochSkewError( f"proof.created={vc.proof_created} outside anchor epoch " f"[{snap.valid_from}, {snap.valid_until})" ) if snap.revoked_effective_at is not None and snap.revoked_effective_at <= vc.proof_created: raise AnchorEpochSkewError("anchor was revoked at or before proof.created") # Scope at the proof epoch must cover the claim. A narrowed current scope # is a deliberate entitlement reduction and MUST NOT be bypassed. if not vc.claim_scope.issubset(snap.scope): raise AnchorEpochSkewError( f"claim_scope {sorted(vc.claim_scope)} not covered by epoch scope " f"{sorted(snap.scope)} at proof.created" ) # Mutual attestation soundness: both parties must pin the same snapshot # identity, else their epoch views diverge and the handoff is unsound. if peer_pinned_snapshot_id is not None and peer_pinned_snapshot_id != snap.identity(): raise AnchorEpochSkewError( f"cross-party snapshot divergence: local={snap.identity()} " f"peer={peer_pinned_snapshot_id}" ) return snap.identity() # carry into handoff warrant for replay ```