# Why does an instance accept a federated trust anchor whose validity interval was resolved against the wrong clock epoch? **Date of Record:** 2026 November 26 **Scope:** Applies to cross-org agent federation where an agent (the *relying instance*) validates a peer's trust anchor (a signed capability warrant or identity attestation) that carries a `not_before`/`not_after` interval, and where the two organizations do not share a synchronized time source. Does not apply to intra-org federation with a single NTP stratum, nor to anchors validated purely by cryptographic possession without temporal bounds. ## Core Distinction The failure is not "expired certificate accepted." It is subtler: **the relying instance evaluates the anchor's validity interval against its own wall clock, but the anchor's interval was minted against the issuing org's clock epoch, and the two epochs have drifted across the interval boundary.** A trust anchor is not a point-in-time assertion; it is a *temporal contract* between two clocks that neither party can observe from the other side. When the clocks disagree by δ, there is a window of width δ on each edge of the validity interval where the relying instance and the issuing instance hold contradictory beliefs about whether the anchor is live. In that window, one side believes the warrant is valid and the other believes it is dead — and both are behaving correctly relative to their own clock. The invariant that actually matters is **not** "the anchor is unexpired." It is: *the relying instance and the issuing instance must agree on the interval membership of the current instant to within the tolerance the federation protocol was designed to absorb.* Clock skew is not a hygiene problem to be fixed with NTP; it is a first-class input to the trust decision that most federation protocols silently assume away. ## What Was Observed A relying agent in Org B received a capability warrant from Org A granting `tool:invoke` on a shared resource, with `not_after = 14:00:00Z` (Org A's clock). Org B's clock ran 42 seconds ahead. At Org B local 14:00:00 (Org A's 13:59:18), the relying instance rejected the warrant as expired and aborted a multi-step tool chain mid-execution. The peer auditor in Org A, replaying the same session log, saw the warrant as valid for another 42 seconds and flagged the abort as a **spurious termination** — a divergence in the verification replay, not a security event. The inverse case is the dangerous one. When the relying clock ran *behind* the issuer, the relying instance accepted a warrant for up to δ seconds after the issuer considered it revoked-by-expiry. During that window the issuing org had already rotated the underlying key material and begun rejecting signatures made with the old key. The relying instance presented a warrant that was, from the issuer's perspective, signed by a retired key — and the issuer's verifier, seeing a signature it could no longer check, fell back to a "trust the anchor's own self-assertion" path. The warrant was honored for 38 seconds past its true death. The trace that made this legible: 1. Issuer mints warrant W with interval `[t0, t1]` on issuer clock. 2. Relying instance receives W, records `received_at` on its own clock. 3. Relying instance checks `now_local ∈ [t0, t1]` — but `now_local` is offset by δ from the issuer's frame. 4. If `δ > 0` (relying ahead), relying rejects early; the tool chain aborts and the checkpointed state is now mid-transaction. 5. If `δ < 0` (relying behind), relying accepts late; the issuer's key rotation has already invalidated the signing key, and the issuer's fallback path honors the stale warrant. 6. The two sides' replay logs disagree on whether W was live at the decision instant. Neither log is wrong. The non-obvious part: **the failure is symmetric and self-concealing.** The early-reject case looks like a flaky tool call. The late-accept case looks like a successful call. Neither surfaces as a trust error in telemetry, because both instances did exactly what their local clocks told them to do. ## Condition of Validity The single-clock assumption holds only when the relying instance can bound `|δ|` below the protocol's temporal tolerance τ, where τ is the slack the federation design reserves for propagation and processing. The protocol is sound iff: ``` |δ| + processing_latency + propagation_latency < τ ``` and the anchor's interval is at least `2τ` wide. When the interval is narrow (short-lived warrants, which are increasingly common for least-privilege tool grants), `2τ` can exceed the interval itself — at which point **no** non-zero skew is tolerable and the protocol has no valid operating region. This is the boundary: short-lived federated warrants are structurally incompatible with unsynchronized clocks, regardless of how correct the signature verification is. The condition also fails silently when the issuer's fallback path (step 5 above) treats an unverifiable signature as "trust the embedded self-assertion." That fallback converts a clock-skew bug into an authentication bypass. Any federation protocol that has such a fallback has already forfeited the invariant. ## Decision Boundary The relying instance must decide, at the moment of validation, between three actions: - **Accept** — only when `now_local` is within `[t0 + τ, t1 - τ]`, i.e., strictly inside the interval with tolerance margin on both edges. This is the only region where clock skew cannot flip the verdict. - **Reject as expired/not-yet-valid** — when `now_local` is outside `[t0 - τ, t1 + τ]`. Unambiguous under any skew ≤ τ. - **Defer to issuer** — when `now_local` falls in the tolerance band `[t0 - τ, t0 + τ]` or `[t1 - τ, t1 + τ]`. In this band the relying instance *cannot* decide correctly from its own clock; it must either query the issuer's authoritative liveness endpoint or treat the warrant as untrusted for the duration of the band. The boundary is the tolerance band. Most implementations collapse it to a single point (the raw interval edge) and thereby manufacture the failure. The correct decision procedure treats the band as a distinct state requiring an out-of-band liveness check — which is exactly the state that has no representation in a naive `now < not_after` comparison. ## Operational Effect When the tolerance band is not modeled, three operational consequences follow: 1. **Mid-task abort on early-reject** leaves checkpointed agent state referencing a tool result that was never produced. The next resume attempt sees a dangling reference and either re-executes (duplicate side effect) or fails cold-start. 2. **Late-accept past key rotation** produces a warrant honored under a retired key — an audit finding that surfaces weeks later during key-rotation reconciliation, long after the session log has been compacted. 3. **Replay divergence between relying and issuing auditors** is unresolvable because both logs are internally consistent. The discrepancy is in the *frame*, not the *event*, and standard replay tooling compares events. The guardrail is to make clock skew an explicit, bounded input: stamp every warrant with the issuer's clock reading and its declared uncertainty, require the relying instance to reject when `|now_local - issuer_clock|` exceeds τ, and treat the tolerance band as a mandatory liveness-deferral state rather than a comparison edge. A federation that cannot bound δ below τ for its shortest-lived warrant does not have a trust protocol; it has a coin flip with a signature attached. ```python import time from dataclasses import dataclass class TrustAnchorClockSkewError(RuntimeError): """Raised when a federated trust anchor's validity cannot be decided under the relying instance's clock within the protocol tolerance.""" @dataclass class TrustAnchor: not_before: float # issuer-clock epoch seconds not_after: float # issuer-clock epoch seconds issuer_clock_reading: float # issuer's own clock at mint time issuer_clock_uncertainty: float # issuer's declared |delta| bound def validate_anchor( anchor: TrustAnchor, now_local: float, tolerance_tau: float, ) -> str: """ Returns 'accept', 'reject', or 'defer'. Raises TrustAnchorClockSkewError when the interval is too narrow to absorb the declared skew (no valid operating region). """ interval_width = anchor.not_after - anchor.not_before if interval_width < 2 * tolerance_tau: raise TrustAnchorClockSkewError( f"anchor interval {interval_width:.3f}s narrower than 2*tau=" f"{2 * tolerance_tau:.3f}s; no skew-tolerant operating region exists" ) # Estimate skew between relying clock and issuer clock at mint time. skew = now_local - anchor.issuer_clock_reading if abs(skew) > tolerance_tau: raise TrustAnchorClockSkewError( f"clock skew {skew:.3f}s exceeds tolerance {tolerance_tau:.3f}s; " f"validity verdict is undefined" ) # Project local now into issuer frame. now_issuer_frame = now_local - skew if now_issuer_frame < anchor.not_before - tolerance_tau: return "reject" # not yet valid under any skew <= tau if now_issuer_frame > anchor.not_after + tolerance_tau: return "reject" # expired under any skew <= tau # Tolerance bands: cannot decide locally, must defer to issuer liveness. if ( anchor.not_before - tolerance_tau <= now_issuer_frame <= anchor.not_before + tolerance_tau ): return "defer" if ( anchor.not_after - tolerance_tau <= now_issuer_frame <= anchor.not_after + tolerance_tau ): return "defer" return "accept" ```