Under what conditions must an instance treat a federated peer's attestation chain as expired rather than merely unverifiable, and how does clock-skew across trust anchors silently invalidate a live agent warrant

**Date of Record:** 2026 December 1 **Scope:** Applies to cross-org agent federation where an agent presents a signed attestation chain (issuer warrant → delegation → runtime attestation) to a peer in another trust domain, and the peer must decide whether to admit a tool call. Does not apply to single-domain deployments sharing one clock source, nor to purely capability-token models with no temporal validity window.

Core Distinction

The failure hinges on a distinction that federation specs usually blur: **unverifiable** and **expired** are not the same verdict, and they must not collapse into the same rejection path. An attestation that cannot be verified (signature broken, issuer key unknown, chain link missing) is a *trust* failure — the peer has no basis to believe the claim. An attestation whose validity window has closed *relative to the verifier's own clock* is a *freshness* failure — the claim was once valid but the warrant's temporal warrant has lapsed. These demand different remediation: trust failures require re-federation or key discovery; freshness failures may be curable by re-attestation with a fresh nonce.

The non-obvious boundary: **a peer cannot determine expiry from the attestation alone.** The `not_after` field is written by the issuer's clock. The verifier evaluates it against its own. If the two clocks disagree by more than the attestation's remaining lifetime, a warrant that is live at the issuer is expired at the verifier — and the reverse, a warrant the issuer considers dead is admitted by a verifier whose clock lags. The verdict is not a property of the attestation; it is a property of the *pair* (attestation, verifier clock). This is the invariant that breaks: **temporal validity is not a chain-local property but a cross-anchor relation, and no single anchor can certify it alone.**

What Was Observed

A federation between two organizations, Alpha (issuer) and Beta (verifier), running MCP-style agent handoffs. Alpha's agents carry a three-link attestation: a root warrant from Alpha's trust anchor (`valid: T0 → T0+3600s`), a delegation link to a specific agent instance, and a runtime attestation with a 300-second freshness window refreshed every 240 seconds by the agent's sidecar.

Beta's verifier ran on an NTP-synced host but with a persistent +47-second offset due to a misconfigured stratum-2 peer. Alpha's issuer clock was accurate. The freshness window was 300s, refreshed every 240s, leaving 60s of slack.

The failure trace:

  1. At issuer time `T`, Alpha signs a runtime attestation with `issued_at = T`, `not_after = T+300`. The agent's sidecar believes it has 60s of slack before refresh.
  2. Beta's verifier reads `not_after` and compares to its own clock, which is `T+47`. Effective remaining lifetime at Beta: `300 - 47 - (transit) ≈ 250s`. Still live. No alarm.
  3. The sidecar's refresh loop is delayed by a GC pause of 90 seconds (a probabilistic, non-deterministic pause — the kind LLM tool-call runtimes routinely induce). The next attestation is signed at `T+330`, `not_after = T+630`.
  4. During the gap `T+300 → T+330`, the *previous* attestation is expired at Alpha. But Beta, running 47s fast, saw it expire at `T+253` — 47 seconds *earlier* than Alpha. Beta rejected the agent's tool call at `T+253`, while the agent's sidecar still believed it had 47 seconds of validity and had not yet triggered a refresh.
  5. The agent received a "verification failed" rejection, retried with the same (still-sidecar-valid) attestation, and was rejected again. The agent's reasoning loop interpreted repeated rejection as a *trust* failure and began attempting re-federation — a catastrophic overreaction to a clock-skew freshness failure.

The inverse case was worse and went undetected for a week: a Beta verifier host with a −120s offset admitted Alpha warrants for 120 seconds *past* their issuer-side expiry, because the verifier's clock had not yet reached `not_after`. Expired warrants were being honored. No log line distinguished this from a normal admit.

Condition of Validity

The verdict "expired" is only sound under a bounded clock-skew assumption that must be **explicitly negotiated per federation link**, not assumed from NTP. The condition of validity is:

Without this, "expired" is a verdict the verifier has no authority to issue, because it is asserting a fact about the issuer's timeline using only its own clock. The invariant: **a verifier may only declare expiry when the skew bound is smaller than the observed margin between its clock and the attestation's `not_after`.**

Decision Boundary

The decision boundary is crossed when the *remaining lifetime* of an attestation at the moment of verification is less than or equal to the *declared skew bound* for that link. At that point the verifier is no longer making a freshness determination — it is making a coin-flip dressed as a determination.

Concretely, a verifier must transition from point-comparison to interval-comparison when:

remaining = not_after - verifier_clock
if remaining > max_skew:        admit (definitely live)
elif remaining < -max_skew:     reject as EXPIRED (definitely stale)
else:                           INDETERMINATE -> clock-probe required

The subtle trap: the indeterminate band is *widest exactly when the attestation is about to expire*, which is precisely when a busy agent is most likely to be mid-tool-call and least able to tolerate a clock-probe round trip. So the boundary condition coincides with the worst-case latency point. A federation that refreshes every 240s with a 300s window and a 60s skew bound has an indeterminate band of 120s — 40% of the attestation's life is spent in a state where the verifier cannot soundly decide. This is the operational failure: the band is not a rare edge, it is the steady state near refresh.

The guardrail is to size the refresh interval so that the indeterminate band is *never entered during normal operation*: `refresh_interval + max_skew < validity_window`. With `refresh=240`, `skew=60`, `window=300`, this inequality fails (240+60=300, not < 300). The configuration was unsound at handshake time, before any agent ever ran. No amount of NTP discipline fixes it; the federation parameters themselves were invalid.

Operational Effect

The operational consequence is a class of failures that are *misattributed*. Clock-skew freshness rejections present to the agent as verification failures, and agents — being probabilistic reasoners — classify them by surface similarity to trust failures. The observed agent attempted re-federation because "verification failed" is lexically closer to "trust broken" than to "warrant stale." This is an error-compounding path: a freshness failure triggers a trust-remediation action, which triggers key re-discovery, which triggers a new handshake, which may itself fail under load, and the agent's reasoning loop burns its token budget on a problem that a 47-second clock correction would have resolved.

The second-order effect is silent over-admission. A lagging verifier clock admits expired warrants with no distinguishing log line. The only way to detect this is to log the *signed* issuer timestamp alongside the verifier's local decision time and compute the delta distribution offline. Federations that log only "admit/reject" cannot see the skew at all — the failure is invisible until an expired warrant is used in an incident and the timeline is reconstructed.

The architectural invariant required: **every admit/reject decision must carry a signed, issuer-timestamped freshness proof, and the verifier must record the skew delta it observed.** A verdict without the delta is unauditable. The federation handshake must reject configurations where `refresh_interval + max_skew >= validity_window`, because such a link is guaranteed to enter the indeterminate band under normal operation and will produce misattributed failures the moment any sidecar pauses.

import time
from dataclasses import dataclass


class FederationFreshnessError(RuntimeError):
    """Raised when a verifier cannot soundly decide freshness of a federated attestation."""
    pass


@dataclass
class Attestation:
    issuer: str
    issued_at: float
    not_after: float
    signature_valid: bool


@dataclass
class FederationLink:
    peer: str
    max_skew: float          # declared at handshake, e.g. 60s
    validity_window: float   # e.g. 300s
    refresh_interval: float  # e.g. 240s


def validate_link_config(link: FederationLink) -> None:
    # Soundness precondition: the indeterminate band must never be entered
    # during normal operation. If refresh + skew >= window, the link is
    # unsound at handshake time, before any agent runs.
    if link.refresh_interval + link.max_skew >= link.validity_window:
        raise FederationFreshnessError(
            f"unsound federation link {link.peer}: "
            f"refresh({link.refresh_interval}) + skew({link.max_skew}) "
            f">= window({link.validity_window}); indeterminate band is steady-state"
        )


def verify_freshness(
    att: Attestation,
    link: FederationLink,
    verifier_clock: float,
    clock_probe=None,
) -> str:
    if not att.signature_valid:
        raise FederationFreshnessError(
            f"attestation from {att.issuer} is UNVERIFIABLE (trust failure, not freshness)"
        )

    remaining = att.not_after - verifier_clock

    if remaining > link.max_skew:
        return "ADMIT"                      # definitely live
    if remaining < -link.max_skew:
        return "REJECT_EXPIRED"             # definitely stale

    # Indeterminate band: verifier cannot soundly decide using its own clock.
    # Must not be classified as a trust failure. Requires a signed clock probe.
    if clock_probe is None:
        raise FederationFreshnessError(
            f"attestation from {att.issuer} INDETERMINATE: remaining={remaining:.1f}s "
            f"within skew bound ±{link.max_skew}s; refusing to misclassify as trust failure"
        )

    issuer_now = clock_probe(att.issuer)    # signed round-trip, returns issuer time
    observed_skew = abs(issuer_now - verifier_clock)
    if observed_skew > link.max_skew:
        raise FederationFreshnessError(
            f"observed skew {observed_skew:.1f}s exceeds declared bound "
            f"{link.max_skew}s for {att.issuer}; link must be renegotiated"
        )

    # With measured skew, re-decide against the issuer's timeline.
    issuer_remaining = att.not_after - issuer_now
    if issuer_remaining <= 0:
        return "REJECT_EXPIRED"
    return "ADMIT"


# --- observed incident replay ---
link = FederationLink(peer="alpha", max_skew=60.0, validity_window=300.0, refresh_interval=240.0)
validate_link_config(link)  # raises: 240 + 60 >= 300, link unsound at handshake