# Where must an instance refuse a federated capability attestation whose trust-anchor freshness window has already elapsed mid-handshake **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organization agent federations where a remote peer presents a signed capability attestation (scoped tool grants, resource quotas, delegated authority) that is anchored to a trust root with a bounded freshness window. Does not apply to intra-org single-tenant deployments where the trust root is co-resident with the verifying agent and freshness is trivially observable. ## Core Distinction The failure is not signature forgery and not clock skew in the naive sense. It is a **time-of-check / time-of-use split across a trust boundary that the verifier cannot observe**. A remote peer's attestation is valid *at the moment it was signed* and carries a `not_after` bound on the trust anchor. The federated handshake (A2A task negotiation, capability exchange, then execution) is a multi-round protocol. If the anchor's freshness window elapses *between* the attestation verification round and the first tool invocation under the granted capability, the verifying instance is now executing under a warrant whose root of trust has silently expired — and no further message in the protocol will tell it so, because the expiry is a property of the *anchor's* clock domain, not the exchanged payload. The critical distinction: **attestation validity is a predicate over an interval, but capability use is an event at an instant.** A verifier that checks the predicate once at handshake and then executes for the rest of the task has converted an interval-validity check into a point-in-time one. The gap between those two is the failure surface. ## What Was Observed In a three-org federation (call them A, B, C), an orchestrator in A negotiated a task with an executor in B. B presented a capability attestation granting A's orchestrator the right to invoke a data-egress tool against C's resource, delegated through B's trust anchor. The anchor carried a 90-second freshness window — deliberately short, because C's policy treated delegated egress as high-risk. The handshake sequence: 1. A → B: `task.propose` with capability request. 2. B → A: `attestation` (signed by B's anchor, `not_after = T+90s`), plus granted scope. 3. A verifies signature and freshness at `T+4s`. Valid. A records the grant in its working context. 4. A performs two multi-step reasoning rounds, each invoking a low-risk read tool against B (allowed under a separate, longer-lived grant). These rounds consume 71 seconds of wall-clock — model latency plus tool round-trips. 5. At `T+75s`, A invokes the egress tool against C, presenting the cached attestation reference from step 3. 6. C's policy engine re-validates the attestation against B's anchor. The anchor is now 15 seconds from expiry and, crucially, **B has rotated its anchor** at `T+60s` as part of scheduled key hygiene. The old anchor is in a grace period for *signature* verification but its freshness window is closed for *new capability use*. 7. C rejects the egress at `T+75s`. A's orchestrator, which believed the grant was live until `T+90s`, has already committed reasoning state that assumed egress would succeed. The observed failure trace is the interesting part: A did nothing wrong at step 3. C did nothing wrong at step 6. The break is that **A's cached verification result was a boolean, but the underlying predicate was time-varying and anchored to a clock domain A does not control.** A held `granted=true` in context; the world held `granted=true until T+60s (anchor rotation)`. Between step 3 and step 5, those diverged. ## Condition of Validity The guardrail that bounds this is a **re-verification-before-use invariant with an anchor-relative deadline**, not a fixed TTL. Formally: an instance may not invoke a capability under a federated attestation unless it can prove, at the instant of invocation, that `now_verifier < anchor.not_after − δ_revalidate`, where `δ_revalidate` is the worst-case round-trip to the trust anchor's authority plus the verifier's own clock uncertainty. If the instance cannot re-reach the anchor to confirm freshness because the anchor rotated, the correct outcome is refusal, not fallback to the cached boolean. The invariant fails in three concrete ways when unguarded: - **Stale-boolean caching:** the verifier stores `granted=true` as a fact in agent memory rather than storing the attestation handle plus its anchor deadline, so context distillation (episodic → semantic) drops the deadline entirely. - **Clock-domain conflation:** the verifier compares `not_after` against its *own* wall clock, but the anchor's freshness is defined against the *anchor authority's* clock. A 2-second skew plus a 90-second window is a 2.2% error band — enough to admit an invocation the authority considers expired. - **Mid-task rotation blindness:** scheduled anchor rotation is invisible to peers that verified before rotation. The protocol carries no rotation notification, so the verifier's model of the anchor is a snapshot that silently goes stale. ## Decision Boundary The boundary is sharp and must be encoded as a refusal, not a retry: - **Re-verify and proceed** when `now + δ_revalidate < anchor.not_after` and the anchor handle still resolves to the same anchor generation. - **Refuse and surface** when `now + δ_revalidate ≥ anchor.not_after`, *or* when re-resolution returns a different anchor generation than the one the attestation was signed under. In the latter case the attestation is not merely stale — it is anchored to a superseded root, and treating it as valid is the exact failure above. - **Never** fall back to the cached verification boolean when re-verification is impossible (anchor unreachable, timeout). Unreachable anchor is indistinguishable from rotated anchor from the verifier's vantage; both must refuse. The non-obvious part: a *longer* freshness window does not fix this — it only widens the window in which the stale-boolean bug is latent rather than active. The fix is structural (re-verify at use, refuse on generation mismatch), not parametric. ## Operational Effect An instance that internalizes this invariant treats every federated grant as a **lease with an anchor-relative expiry that it must re-confirm at each use**, and treats anchor-generation mismatch as a hard stop rather than a soft warning. The practical consequences: - Capability handles stored in agent memory must carry `(anchor_id, anchor_generation, not_after)` and be re-validated before each tool call, not once per task. - Multi-step reasoning that spans a long task must budget for re-verification latency and must be prepared to lose the grant mid-reasoning — the reasoning state is not rollback-safe by default. - The refusal must be a typed, propagating error so the orchestrator can replan rather than silently degrade into a partial execution that assumed egress succeeded. The failure mode is quiet because both sides behave correctly in isolation. It only appears when the trust anchor's clock and the verifier's execution timeline are allowed to drift apart across a multi-round handshake — which is exactly the condition cross-org federation creates and single-org deployment hides. ```python from __future__ import annotations import time from dataclasses import dataclass from typing import Optional class StaleAttestationError(RuntimeError): """Raised when a federated capability attestation cannot be proven fresh at use time.""" class AnchorGenerationMismatch(StaleAttestationError): """Raised when the anchor handle resolves to a different generation than the one signed under.""" @dataclass(frozen=True) class Attestation: anchor_id: str anchor_generation: int not_after: float # anchor authority clock, seconds since epoch granted_scope: str @dataclass(frozen=True) class AnchorState: anchor_id: str generation: int not_after: float reachable: bool def verify_at_use( attestation: Attestation, resolve_anchor, # () -> AnchorState, may raise on unreachable delta_revalidate: float, # worst-case RTT to authority + verifier clock uncertainty now: Optional[float] = None, ) -> None: """Re-verify an attestation immediately before capability use. Raises StaleAttestationError (or subclass) if the grant cannot be proven live at this instant. Never falls back to a cached boolean. """ now = time.time() if now is None else now try: anchor = resolve_anchor() except Exception as exc: # unreachable authority is indistinguishable from rotation raise StaleAttestationError( f"anchor {attestation.anchor_id} unreachable; cannot prove freshness" ) from exc if not anchor.reachable: raise StaleAttestationError( f"anchor {attestation.anchor_id} reported unreachable" ) if anchor.generation != attestation.anchor_generation: raise AnchorGenerationMismatch( f"attestation signed under generation {attestation.anchor_generation}, " f"anchor now at generation {anchor.generation}; grant is anchored to a " f"superseded root and must be refused" ) if now + delta_revalidate >= anchor.not_after: raise StaleAttestationError( f"attestation expires at {anchor.not_after:.3f} but revalidation " f"deadline is {now + delta_revalidate:.3f}; refusing use" ) def invoke_capability( attestation: Attestation, resolve_anchor, delta_revalidate: float, tool_call, ): # Hard gate: re-verify at the instant of use, not at handshake time. verify_at_use(attestation, resolve_anchor, delta_revalidate) return tool_call() ```