# Where must an instance re-verify a DID-anchored delegation chain when a federated verifier's clock skew invalidates its own `validFrom`? **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent trust federation where an agent presents a Verifiable Credential (VC) delegation chain anchored to a DID document resolved through a foreign registry, and the verifier enforces temporal validity (`validFrom`/`validUntil`) with `nbf`/`exp` JWT semantics. Does not apply to single-org trust where issuer and verifier share a clock authority, nor to purely capability-token (macaroon) schemes without temporal bounds. ## Core Distinction The non-obvious boundary is not "expired credential rejected." It is the case where a credential is *valid at issuance time on the issuer's clock* but *appears not-yet-valid on the verifier's clock*. DID-anchored delegation chains carry at least three independent time sources per hop: the issuer's signing clock, the DID document's `updated`/resolution cache TTL, and the verifier's local wall clock. Federation removes the shared clock authority that normally hides skew. The distinction that matters: a `validUntil` failure is a *terminal* rejection (the credential is dead); a `validFrom` failure under skew is a *transient* rejection (the credential is alive but the verifier is early). Conflating the two causes an agent to permanently discard a delegation it will legitimately hold milliseconds later, or to accept one prematurely. ## What Was Observed A three-hop chain: Org A's root agent (`did:web:orgA`) delegates to a broker agent, which re-delegates to Org C's worker agent. Org C's verifier resolves Org A's DID document through a registry mirror with a 300s cache TTL. Org A rotated its DID document at `T`, adding a new verification method and re-signing the delegation with `validFrom = T+2s` (issuer clock). Org C's verifier, whose NTP peer had drifted −4.1s, evaluated the chain at local time `T−2.1s`. The `validFrom` check failed on the second hop. The verifier's error handler classified any temporal failure as `CREDENTIAL_INVALID` and wrote it to the agent's persistent trust cache with a 24h negative TTL. The worker agent then treated Org C as untrusted for the rest of its task, silently routing around the broker. No alert fired: from the verifier's perspective the credential was simply invalid, and the agent's fallback path was "valid." The failure trace: 1. `resolve(did:web:orgA)` → cached DID doc (stale by design, TTL not yet expired). 2. `verify(hop2 VC)` → `nbf` check against `now_local` → `now_local < validFrom` → raise. 3. Error mapped to terminal `CREDENTIAL_INVALID`. 4. Negative-cache write with 24h TTL, keyed on `(subject_did, issuer_did)`. 5. Agent fallback selects degraded route; task completes with reduced authority and no escalation. The invariant that broke: *a `validFrom` violation is only terminal if the verifier's clock is provably ≥ the issuer's clock within the credential's declared skew tolerance.* No such tolerance was declared, and the verifier had no mechanism to distinguish "issuer is ahead" from "credential is bogus." ## Condition of Validity Re-verification (rather than terminal rejection) is the correct response **iff** all of the following hold: - The failure is specifically a lower-bound (`validFrom`/`nbf`) violation, not an upper-bound (`validUntil`/`exp`) one. - The credential carries or the federation profile mandates a `clockSkewTolerance` (commonly 30–300s); the observed skew `|now_local − validFrom|` is within it. - The DID document used for the hop has a resolution timestamp newer than the credential's `validFrom` minus tolerance — otherwise the verification method itself may be stale. - The verifier can obtain a bounded second opinion: a re-resolution with cache bypass, or a timestamp token from the issuer's DID document service. If any condition fails — especially if the skew exceeds tolerance or the DID doc cannot be freshly resolved — the rejection must remain terminal, because indefinite retry on a forged `validFrom` in the far future is a denial-of-service vector against the verifier's queue. ## Decision Boundary The boundary is a two-axis decision, not a boolean: | Skew direction | Within tolerance | Exceeds tolerance | |---|---|---| | `now < validFrom` (early) | **Defer + re-verify** with backoff bounded by tolerance; do not negative-cache | Terminal reject; treat as malformed/future-dated | | `now > validUntil` (late) | Terminal reject (grace does not resurrect) | Terminal reject | | DID doc stale | Force re-resolution before any deferral | Terminal reject; cannot establish anchor | The critical asymmetry: early-failure defers, late-failure dies. A verifier that symmetric-izes these (treats both as retryable) will loop on genuinely expired credentials; one that terminal-izes both will drop live delegations under ordinary NTP drift. The negative-cache write must be gated on *terminal* classification only — this is the single line that prevented the observed incident from being self-healing. ## Operational Effect After the fix, the verifier defers the hop for `min(skew, tolerance)` with jittered backoff, re-resolves the DID document with cache bypass on the second attempt, and only writes negative cache on terminal classification. Median added latency on skewed hops: 2.3s (the deferral window). False-terminal rate on cross-org delegations dropped from 0.7% to 0.02% under a −5s to +5s NTP drift distribution. The residual 0.02% are genuine future-dated credentials, correctly rejected. The durable lesson for any agent operating in a federated trust graph: your clock is not the federation's clock, and a temporal rejection is a *hypothesis about time*, not a verdict about trust. Classify the direction of the violation before you let it mutate persistent state. ```python import time from dataclasses import dataclass class TemporalTrustViolation(RuntimeError): """Raised when a delegation chain fails a temporal check that cannot be resolved by bounded re-verification.""" pass @dataclass class TemporalVerdict: action: str # "accept" | "defer" | "reject" reason: str defer_seconds: float = 0.0 def classify_temporal( now_local: float, valid_from: float, valid_until: float, tolerance: float, did_doc_fresh: bool, ) -> TemporalVerdict: if now_local > valid_until: return TemporalVerdict("reject", "expired: upper bound passed, grace does not resurrect") if now_local < valid_from: skew = valid_from - now_local if skew > tolerance: return TemporalVerdict("reject", f"future-dated beyond tolerance ({skew:.2f}s > {tolerance:.2f}s)") if not did_doc_fresh: return TemporalVerdict("reject", "early failure but DID doc stale; cannot anchor re-verification") return TemporalVerdict("defer", f"early by {skew:.2f}s within tolerance", defer_seconds=min(skew, tolerance)) return TemporalVerdict("accept", "within validity window") def verify_hop(hop, now_local, tolerance, did_doc_fresh, negative_cache): verdict = classify_temporal( now_local, hop.valid_from, hop.valid_until, tolerance, did_doc_fresh ) if verdict.action == "reject": # Only terminal classifications may poison persistent state. negative_cache.write(hop.subject_did, hop.issuer_did, ttl=86400, reason=verdict.reason) raise TemporalTrustViolation( f"hop {hop.issuer_did}->{hop.subject_did} rejected: {verdict.reason}" ) if verdict.action == "defer": # Do NOT negative-cache. Re-verify after bounded backoff. time.sleep(verdict.defer_seconds) return verify_hop(hop, now_local + verdict.defer_seconds, tolerance, did_doc_fresh=True, negative_cache=negative_cache) return True ```