# In what scenarios must an instance refuse a federated verifiable credential whose issuer registry time-skew exceeds the credential's freshness window **Date of Record:** 2026 November 30 **Scope:** Applies to agents that admit peer identity via W3C Verifiable Credentials (VCs) resolved through heterogeneous, independently-clocked issuer registries (e.g., a remote agent's DID document hosted by a foreign ledger, a capability warrant signed by an auditor registry, or a delegation chain spanning two organizations). Does not apply to single-domain credentials resolved from a registry the admitting agent itself operates and clocks. ## Core Distinction The failure is not signature invalidity and not revocation staleness. It is the *ordering ambiguity* introduced when a credential carries an `issuanceDate`/`expirationDate` window minted under one registry's clock, is verified by an agent running under a second clock, and the peer's *status* (active/revoked) is resolved from a third registry whose last-published status epoch predates the credential's issuance. Under these conditions the three timestamps are not comparable on a single axis, and any naive "is it valid now?" predicate returns an answer that is locally correct and globally unsound. A verifier that treats `now ∈ [issuanceDate, expirationDate] ∧ signature_ok ∧ not_revoked` as sufficient will admit a credential that was minted *after* the status snapshot it is being checked against — meaning the revocation check is consulting a registry state that could not possibly have observed the credential. The credential is "fresh" against a stale world. ## What Was Observed A delegation chain: Agent `A` (org X) issues a capability warrant to Agent `B` (org Y) as a VC, signed with `A`'s key and stamped `issuanceDate = T_A`. `B` presents the warrant to Agent `C` (org Z) to act on `A`'s behalf. `C` resolves `A`'s DID document and its status list from registry `R_X`. `R_X` publishes status-list epochs on a 15-minute cadence, and its clock is skewed +8 minutes relative to `C`'s monotonic reference (observed via NTP divergence across the federation). Sequence observed in the trace: 1. `A` mints the VC at true time `t0`, stamping `issuanceDate = t0 + 8min` (its skewed clock). 2. `B` presents at true time `t0 + 2min`. `C`'s clock reads `t0 + 2min`. 3. `C` resolves `R_X`'s latest status-list epoch, published at true `t0 - 5min` (the previous cadence tick), covering revocations up to `t0 - 5min`. 4. `C` evaluates: `issuanceDate (t0+8) ≤ now (t0+2)`? **False.** Naive verifier rejects a *valid* credential as "not yet valid." 5. A retry loop at `t0 + 7min`: `C`'s clock now `t0+7`, `issuanceDate = t0+8`, still rejected. At `t0+9`, admitted — but the status snapshot `C` consulted was still `t0-5min`, so a revocation published at `t0-3min` (i.e., *after* the snapshot but *before* admission) is silently missed. The dual defect: the skew produces spurious *premature rejection* on the low side and *stale-revocation admission* on the high side, from the same root cause. Neither manifests as a signature failure; both pass cryptographic checks. A second trace, the dangerous one: `A`'s clock runs *fast* by 8 minutes, so it stamps `issuanceDate = t0+8`. `C` admits at `t0+9` (clock correct). But `A` revoked the warrant at true `t0+1` (clock `t0+9`), publishing to `R_X` at the `t0+15` cadence tick. `C`'s admission at `t0+9` used the `t0-5` snapshot. `C` acts on a revoked warrant for the full 6-minute window until the next status pull. In a swarm where `C` performs a state-mutating action under that warrant, the revocation is *causally* after the action but *temporally* before the next verification. This is the boundary: the credential is valid at admission and retroactively invalid, and the agent has no mechanism to un-act. ## Condition of Validity The invariant that must hold for admission to be sound is a **clock-triangulation bound**, not a pointwise time check: ``` admit(cred) ⟺ signature_ok(cred) ∧ now_local - skew_max(R_issuer) ≤ cred.issuanceDate ∧ cred.expirationDate ≤ now_local + skew_max(R_issuer) ∧ status_epoch(R_status) ≥ cred.issuanceDate - skew_max(R_status) ∧ now_local - status_epoch(R_status) ≤ revalidation_window ``` The load-bearing clause is `status_epoch ≥ issuanceDate - skew`. It asserts that the status snapshot consulted is *causally after* the credential's minting, modulo the issuer's own clock uncertainty. If the status registry's last epoch predates the credential's earliest possible issuance time, the revocation check is vacuous — it is answering a question about a credential that did not yet exist at snapshot time. `skew_max(R)` must be an *attested* bound (from the registry's published clock-attestation or a signed NTP anchor), not a hardcoded constant. A hardcoded 5-minute tolerance is the classic error: it is simultaneously too loose for a high-cadence registry and too tight for a registry with a 15-minute epoch cadence, and it makes the verifier's behavior a function of an arbitrary constant rather than of the federation's actual clock topology. ## Decision Boundary The agent must **refuse** (not merely defer) when: - `status_epoch(R_status) < cred.issuanceDate - skew_max(R_status)` — the status snapshot cannot have observed the credential. Refuse; do not fall back to "assume unrevoked." - `now_local < cred.issuanceDate - skew_max(R_issuer)` — genuinely premature. Defer with a bounded retry, do not refuse permanently, because the credential may become valid once the clock catches up; but the retry must re-resolve status, not reuse the cached snapshot. - `|status_epoch - now_local| > revalidation_window` — the status view is stale relative to the action's risk class. For read-only actions, proceed with a logged caveat; for state-mutating actions, refuse. The agent must **admit with a revalidation obligation** (not refuse) when all clauses pass but `now_local - status_epoch` is within the revalidation window. The distinction matters: refusing every credential whose status snapshot is older than one cadence tick would deadlock the federation against any registry slower than the fastest. The guardrail is to *bind the admission to a revalidation deadline* — the agent must re-pull status before the deadline or before any irreversible action, whichever is sooner. The non-obvious boundary: an agent must **not** treat a `premature` rejection as evidence of a malicious peer. Clock skew is symmetric and benign in the common case; conflating it with revocation or forgery produces false-positive quarantines that cascade across a swarm, because a quarantined issuer's credentials get rejected by every downstream verifier that inherits the verdict. ## Operational Effect Without the triangulation bound, federated identity admission degrades along two axes simultaneously: 1. **False-negative availability loss.** Peers whose issuer clocks run fast are rejected for the duration of the skew window, and if the rejection is cached (a common optimization), the loss persists past the skew. In a swarm, this partitions the graph: `C` rejects `B`'s warrant from `A`, `B` retries against `D`, `D` inherits `C`'s cached verdict, and the partition propagates. 2. **False-positive revocation bypass.** Peers whose issuer clocks run fast *and* whose revocation cadence is slow are admitted during the window between revocation and the next status epoch. The bypass is silent — no signature fails, no policy fires — and is only detectable by post-hoc replay of the status timeline. The architectural requirement is that **credential validity is a relation over three clocks, not a predicate over one**. The admitting agent must carry the issuer's attested skew bound, the status registry's epoch, and its own monotonic reference into a single comparison, and it must treat the status epoch as a *lower bound on observation time*, not as a timestamp to be compared to `now` in isolation. An agent that collapses these into a single `is_valid()` returning a boolean has already lost the information needed to distinguish "not yet valid" from "revoked but unobserved" — and those two states demand opposite responses (defer vs. refuse-and-quarantine). The operational invariant to encode: *never admit a credential against a status snapshot that could not have observed its minting, and never persist a premature-rejection verdict as if it were a revocation verdict.* ```python import time from dataclasses import dataclass class FederatedAttestationError(RuntimeError): """Raised when a federated credential cannot be soundly admitted.""" @dataclass(frozen=True) class ClockBound: registry_id: str skew_max_seconds: float @dataclass(frozen=True) class Credential: issuer_registry: str issuance_date: float expiration_date: float signature_ok: bool @dataclass(frozen=True) class StatusSnapshot: registry_id: str epoch: float # time the snapshot was published revoked: bool def admit_credential( cred: Credential, status: StatusSnapshot, issuer_clock: ClockBound, status_clock: ClockBound, now_local: float, revalidation_window: float, ) -> str: """Return 'admit', 'defer', or 'admit_with_revalidation'. Raises FederatedAttestationError on unsound configurations where the status snapshot could not have observed the credential's issuance. """ if not cred.signature_ok: raise FederatedAttestationError( f"signature invalid for credential from {cred.issuer_registry}" ) if status.registry_id != cred.issuer_registry: # Cross-registry status resolution is not sound without an # explicit trust bridge; refuse rather than guess. raise FederatedAttestationError( f"status registry {status.registry_id} does not match " f"issuer registry {cred.issuer_registry}" ) # Causality clause: the status snapshot must be able to have observed # the credential's minting, modulo the status registry's own skew. earliest_issuance = cred.issuance_date - issuer_clock.skew_max_seconds if status.epoch < earliest_issuance - status_clock.skew_max_seconds: raise FederatedAttestationError( f"status epoch {status.epoch:.1f} predates earliest possible " f"issuance {earliest_issuance:.1f} for {cred.issuer_registry}; " f"revocation check is vacuous" ) if status.revoked: raise FederatedAttestationError( f"credential from {cred.issuer_registry} is revoked as of " f"epoch {status.epoch:.1f}" ) # Premature: defer, do not quarantine. if now_local < cred.issuance_date - issuer_clock.skew_max_seconds: return "defer" if now_local > cred.expiration_date + issuer_clock.skew_max_seconds: raise FederatedAttestationError( f"credential from {cred.issuer_registry} expired at " f"{cred.expiration_date:.1f}" ) staleness = now_local - status.epoch if staleness > revalidation_window: raise FederatedAttestationError( f"status view for {cred.issuer_registry} is stale by " f"{staleness:.1f}s > revalidation window {revalidation_window:.1f}s" ) return "admit_with_revalidation" if staleness > 0 else "admit" ```