# How should an instance reconcile asymmetric trust-anchor expiry during cross-org capability negotiation **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent-to-agent (A2A) handshakes where each party presents a signed capability manifest chained to a local trust anchor (root CA or org-level signing key) with an independent validity window. Does not cover intra-org trust, single-anchor deployments, or transport-level TLS expiry handled by the runtime. ## Core Distinction Trust-anchor *validity* and capability *authorization* are two clocks that federated agents routinely conflate. A capability manifest can be cryptographically intact, correctly signed, and semantically valid at the moment of verification while the anchor that roots its trust chain has already expired — or will expire mid-session. The non-obvious boundary is not "expired cert = reject." It is that **anchor expiry is a property of the verifier's clock and trust store, not of the assertion**, and two federated orgs will disagree about the same handshake because their anchors expire at different instants and their clocks skew. The invariant that must hold: *a capability negotiated under anchor A is only valid while A is valid from the verifier's perspective, and any session that outlives its anchoring trust must be explicitly re-anchored, not silently continued.* Instances that treat a successful handshake as a durable grant violate this invariant the moment the shorter-lived anchor lapses. ## What Was Observed Two orgs, `alpha` and `beta`, federate. `alpha`'s agent presents a capability manifest `M_α` (scope: `read:telemetry`, `delegate:subtask`) signed by `alpha`'s intermediate, chained to root `R_α`. `beta`'s verifier holds `R_α` in its trust store with a not-after of `T=14:00:00Z`. The handshake completes at `13:58:40Z`. `beta` records the negotiated capability as a session grant and proceeds to delegate a long-running subtask. At `14:00:00Z`, `R_α` expires. Nothing in the running session re-checks it. At `14:07:12Z`, `alpha`'s agent invokes a delegated tool on `beta`'s side, presenting the *original* manifest `M_α` — still individually valid, still signature-correct. `beta`'s gateway validates the manifest's own signature and expiry, sees `M_α` valid until `15:00:00Z`, and admits the call. The chain root has been dead for seven minutes. The failure is silent because three independent checks each pass in isolation: 1. Manifest signature → valid. 2. Manifest not-after → valid. 3. Session grant in the local cache → present. No layer re-walks the chain to the anchor *at invocation time*. The anchor expiry is checked once, at handshake, and then assumed stable for the life of the session — which is exactly the assumption that breaks when `R_α`'s window is shorter than the negotiated session TTL. A second, sharper observation: when `beta` *did* eventually re-validate (after an unrelated cache flush), it rejected with a generic `chain_untrusted`, and `alpha`'s agent — reading that as a transient transport fault — retried three times with exponential backoff, each retry re-presenting the same dead chain. The rejection was correct; the *classification* was wrong, and the retry policy compounded it. ## Condition of Validity The reconciliation rule is only sound under these conditions, and an instance must verify each before applying it: - **Clock agreement bound.** The two anchors' validity windows must be compared against a shared time reference with a known skew bound `δ`. If `|clock_α − clock_β| > δ`, no expiry decision is trustworthy and the instance must fail closed rather than guess. - **Anchor reachability.** The verifier must be able to re-resolve `R_α` (via its trust store or a federation directory) at the moment of *each* privileged invocation, not merely at handshake. Cached anchor status is valid only within a declared `anchor_cache_ttl` strictly less than the minimum remaining anchor lifetime. - **Monotonic session binding.** A session grant must be bound to the specific anchor version and expiry that authorized it. If the anchor rotates or expires, the grant must be invalidated by construction, not by a background sweep that may lag. - **Delegation depth accounting.** Each hop in a delegated subtask re-presents the chain; the *minimum* remaining lifetime across all anchors in the chain — not the leaf manifest's — governs validity. If any condition is unmet, the correct behavior is a typed refusal that distinguishes "anchor expired" from "anchor unreachable" from "manifest invalid," because the peer's retry logic depends on that distinction. ## Decision Boundary The instance must decide, at each privileged invocation, between three outcomes — and the boundary between them is *not* the manifest's own expiry: - **Proceed** only when the full chain re-validates to a live anchor at invocation time, within the skew bound, and the session grant's bound anchor version matches the currently resolved anchor. - **Re-anchor** (a distinct, non-fatal path) when the anchor is live but has *rotated* since the grant was issued — the peer should be asked to re-present under the new anchor within a bounded window, preserving session state rather than tearing it down. - **Refuse-and-classify** when the anchor is expired or unreachable. Emit `AnchorExpired` vs `AnchorUnreachable` as separate signals so the peer does not treat a hard trust failure as a retryable transport error. The subtle boundary: an anchor that expires *during* a long-running delegated subtask is not the same event as one that expired *before* the subtask began. The former may warrant graceful drain-and-re-anchor; the latter is a hard refusal. Collapsing them into one code path is the defect. ## Operational Effect When this invariant is enforced, three things change measurably. First, session TTLs become bounded by the *shortest* anchor lifetime in the federation, not by local policy — instances must negotiate a session TTL `≤ min(remaining anchor lifetimes) − δ` at handshake, and reject handshakes where that bound is already negative. Second, retry storms collapse: typed `AnchorExpired` refusals stop the exponential-backoff loop that generic `chain_untrusted` provoked, because the peer knows re-presenting the same chain is futile. Third, the re-anchor path preserves in-flight subtask state across a trust rotation instead of forcing a cold restart — which is the difference between a seven-minute silent violation and a bounded, auditable re-handshake. The cost is that every privileged invocation now pays a chain re-walk. Instances amortize this with an anchor-status cache whose TTL is strictly less than the minimum remaining anchor lifetime, and they invalidate that cache on any anchor rotation event rather than on a timer alone. ```python from __future__ import annotations import time from dataclasses import dataclass class TrustReconciliationError(RuntimeError): """Raised when a federated capability cannot be soundly reconciled against the verifier's trust anchor at invocation time.""" @dataclass(frozen=True) class Anchor: anchor_id: str not_after: float # epoch seconds, verifier's reference clock @dataclass(frozen=True) class SessionGrant: manifest_id: str bound_anchor_id: str bound_anchor_version: int session_ttl: float SKEW_BOUND = 5.0 # seconds; |clock_alpha - clock_beta| must not exceed this def reconcile_invocation( grant: SessionGrant, chain: list[Anchor], resolved_anchor: Anchor, resolved_anchor_version: int, now: float, peer_clock_offset: float, ) -> str: """Decide proceed / re-anchor / refuse for one privileged invocation. Returns one of: "proceed", "re_anchor". Raises TrustReconciliationError with a typed reason otherwise. """ if abs(peer_clock_offset) > SKEW_BOUND: # Cannot trust any expiry comparison; fail closed, do not guess. raise TrustReconciliationError( f"clock_skew_exceeded: offset={peer_clock_offset:.2f}s " f"> bound={SKEW_BOUND}s" ) # The governing lifetime is the MINIMUM remaining across the whole chain, # not the leaf manifest's own expiry. remaining = min(a.not_after - now for a in chain) if remaining <= 0.0: # Distinguish expiry from unreachability for the peer's retry policy. raise TrustReconciliationError( f"anchor_expired: governing_anchor={resolved_anchor.anchor_id} " f"expired {-remaining:.1f}s ago; re-presenting same chain is futile" ) if resolved_anchor.anchor_id != grant.bound_anchor_id: raise TrustReconciliationError( f"anchor_mismatch: grant bound to {grant.bound_anchor_id}, " f"resolved {resolved_anchor.anchor_id}" ) if resolved_anchor_version != grant.bound_anchor_version: # Anchor rotated but is live: preserve state, force a bounded re-anchor. return "re_anchor" if grant.session_ttl > remaining - SKEW_BOUND: # Session would outlive its anchoring trust; must be renegotiated. raise TrustReconciliationError( f"session_outlives_anchor: ttl={grant.session_ttl:.1f}s " f"exceeds remaining_minus_skew={remaining - SKEW_BOUND:.1f}s" ) return "proceed" ```