# In what scenarios must an instance refuse delegated credentials whose attestation chain outlives the verifier's clock skew budget **Date of Record:** 2026 November 21 **Scope:** Applies to agent-to-agent delegation where a principal issues a short-lived verifiable credential (VC) to an acting instance, and a downstream verifier in a different trust domain must validate the chain. Does not apply to long-lived service-account tokens or to single-domain bearer-token flows without cross-domain attestation. ## Core Distinction The failure here is not "expired credential." Expiration is a scalar comparison and every verifier implements it. The boundary condition is **attestation-chain clock divergence across trust domains**: a delegated VC has a validity window `[nbf, exp]` measured by the *issuer's* clock, while the verifier enforces it against its *own* clock, and the chain may contain an intermediate attestation (the delegating agent's own proof-of-possession, or a co-signed hop) whose timestamps were minted by yet a third clock. When the delegation chain is short in wall-clock terms (60–300 seconds, typical for agent hops), the sum of legitimate NTP skew across three domains can consume a material fraction of the entire validity window. The verifier that treats `exp` as authoritative and ignores per-hop issuance skew will accept a credential that the issuer already considers dead, or reject one that is live—and the two errors are not symmetric in consequence. ## What Was Observed A three-hop delegation: orchestrator `O` (domain A) issues a 90-second VC to worker `W` (domain B); `W` re-delegates a narrowed 60-second VC to sub-agent `S` (domain C) that calls a tool hosted by verifier `V` (domain D). Each hop stamps `nbf`/`exp` and an `iat` on its proof-of-possession signature using its local clock. Measured skew across the four domains in a production mesh: A→D +2.1s, B→D −1.8s, C→D +3.4s. The `S` credential was minted at C's `iat`, then presented to `V`. Because C runs 3.4s ahead of V, `V` sees the credential's `nbf` 3.4s in the future and—under a strict `nbf <= now` check with zero tolerance—rejects a freshly minted, entirely valid credential. The retry path re-minted and re-presented, consuming 3.4s of the 60s window on each attempt; under load, `S` exhausted its validity window before `V` ever accepted a token. The symptom presented as "intermittent 401 on delegated calls," not as clock skew, because the rejection reason surfaced as generic signature-context failure. The inverse case is worse and quieter. A→D ran +2.1s fast, so a credential that A had already marked expired at `A.exp` remained acceptable to `V` for 2.1s past true expiry—a window in which `O` had already revoked the delegation downstream and considered the sub-agent out of scope. ## Condition of Validity The invariant that must hold for cross-domain delegated attestation to be sound: > For every hop `h` in the chain, the verifier's acceptance interval must be `[nbf_h - δ_h, exp_h + δ_h]` where `δ_h` is the *bounded* skew between the verifier's clock and hop `h`'s minting clock, and the effective usable lifetime `exp_h - nbf_h` must satisfy `exp_h - nbf_h > 2·max(δ)` across all hops plus the expected presentation latency. If any hop's validity window is shorter than twice the worst-case skew budget, the credential is **unusable by construction** regardless of correctness—there exists no single instant at which all verifiers agree it is valid. This is the sharp boundary: short-lived credentials do not degrade gracefully as they shorten; they cross a threshold below which the delegation is structurally void. ## Decision Boundary An instance must refuse to *issue* a delegated credential when `exp - nbf <= 2·δ_max + L_present`, where `δ_max` is the maximum observed skew to any verifier in the target trust set and `L_present` is the p99 presentation latency. It must refuse to *accept* when the chain contains a hop whose `exp - nbf` violates the same bound, even if that hop is cryptographically valid and currently within its window—because acceptance implies a guarantee of validity that the arithmetic cannot support. The non-obvious half: a verifier must also refuse when the chain's *total* span `max(exp) - min(nbf)` exceeds the issuer's advertised revocation-propagation latency. A credential that is valid for longer than revocation can travel is a credential whose revocation is advisory, not enforced. Short-lived VCs are supposed to make revocation unnecessary by bounding lifetime below propagation time; when skew forces you to *lengthen* the window to keep it usable, you silently reintroduce the revocation gap the short lifetime was meant to eliminate. ## Operational Effect Enforcing the bound converts a class of intermittent, misattributed auth failures into a deterministic pre-flight rejection at issuance time, with a legible reason (`window below skew budget`). The cost is that very short delegation hops—under ~10s in a four-domain mesh—become infeasible without either (a) a shared time authority that collapses `δ_max` toward zero, or (b) widening windows past revocation latency and adding explicit revocation checks at each hop. There is no free lunch: you either bound skew or you bound lifetime, and the instance must decide which budget it is spending before it mints the credential. ```python import time from dataclasses import dataclass class DelegationWindowUnsound(RuntimeError): """Raised when a delegated credential's validity window cannot survive cross-domain clock skew plus presentation latency.""" pass @dataclass class Hop: domain: str nbf: float # issuer-clock not-before exp: float # issuer-clock expiry skew_to_verifier: float # signed seconds: hop_clock - verifier_clock def effective_window(hop: Hop, p99_present_latency: float) -> float: # Usable lifetime after accounting for skew on both ends and latency. return (hop.exp - hop.nbf) - abs(hop.skew_to_verifier) - p99_present_latency def assert_chain_sound( hops: list[Hop], p99_present_latency: float, revocation_propagation_latency: float, ) -> None: for h in hops: usable = effective_window(h, p99_present_latency) if usable <= 0: raise DelegationWindowUnsound( f"hop {h.domain}: usable window {usable:.2f}s <= 0 " f"(raw {h.exp - h.nbf:.2f}s, skew {h.skew_to_verifier:.2f}s, " f"latency {p99_present_latency:.2f}s)" ) span = max(h.exp for h in hops) - min(h.nbf for h in hops) if span > revocation_propagation_latency: raise DelegationWindowUnsound( f"chain span {span:.2f}s exceeds revocation propagation " f"{revocation_propagation_latency:.2f}s; revocation is advisory" ) def mint_delegation( hops: list[Hop], requested_ttl: float, p99_present_latency: float, revocation_propagation_latency: float, ) -> Hop: worst_skew = max(abs(h.skew_to_verifier) for h in hops) if hops else 0.0 minimum_ttl = 2 * worst_skew + p99_present_latency if requested_ttl <= minimum_ttl: raise DelegationWindowUnsound( f"requested ttl {requested_ttl:.2f}s <= skew budget " f"{minimum_ttl:.2f}s; credential would be void by construction" ) if requested_ttl > revocation_propagation_latency: raise DelegationWindowUnsound( f"requested ttl {requested_ttl:.2f}s exceeds revocation " f"propagation {revocation_propagation_latency:.2f}s" ) now = time.time() return Hop(domain="issuer", nbf=now, exp=now + requested_ttl, skew_to_verifier=0.0) ```