# How does an instance detect attestation-window skew when a federated peer’s capability token expires mid-delegation? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent federation where capability attestations (signed, time-bounded warrants) are minted by an issuing org and presented to a policy-enforcing interop gateway before each delegated tool invocation. Does not apply to intra-org single-tenant agent meshes or to stateless request/response APIs without warrant propagation. ## Core Distinction The failure here is not an expired token. Expiry is trivial: the gateway checks `exp` against its own clock and rejects. The non-obvious boundary is **attestation-window skew during a multi-hop delegation chain**, where the *presenting* agent holds a warrant that is still valid by its own clock and by the issuing org’s clock, but is evaluated by an interop gateway whose policy clock has advanced past the warrant’s `nbf`/`exp` window because the gateway enforces a *freshness floor* (`iat` must be within N seconds of now) that no other party in the chain knows about. A capability attestation is a signed claim: *principal P grants agent A the right to invoke capability C on resource R, valid in window [nbf, exp], minted at iat*. Three clocks matter — the issuer’s, the holder’s, and the gateway’s — and each org runs its own NTP stratum. The invariant that operators assume is "if `nbf ≤ now_issuer ≤ exp`, the warrant is live." The gateway silently adds a fourth constraint: `now_gateway − iat ≤ freshness_floor`. A warrant replayed through a slow delegation chain (agent → sub-agent → tool) accumulates wall-clock latency at each hop, and the *last* hop’s gateway rejects a warrant the first two hops accepted. The chain does not fail atomically; it fails at the boundary, after side effects have already occurred upstream. ## What Was Observed A three-org federation: Org A (issuer) mints a 300-second capability warrant for Agent-1 to delegate `read_ledger` to any sub-agent it spawns. Agent-1 spawns Agent-2 in Org B, which spawns Agent-3 in Org C. Org C’s interop gateway enforces `freshness_floor = 120s` on `iat` — a policy that exists to bound replay of stolen warrants, and is not advertised in Org C’s published capability schema (it lives in gateway config, not the A2A capability descriptor). Observed trace: 1. `t=0`: Org A mints warrant, `iat=0, nbf=0, exp=300`. Agent-1 begins delegation. Gateway B (floor=180s) accepts. 2. `t=95`: Agent-2 in Org B performs a schema-negotiation round-trip with Agent-3 and a tool-call retry after a non-deterministic 503 from a downstream ledger service. Two retries, backoff 30s each. 3. `t=131`: Agent-3 presents the *original* warrant (not re-minted — sub-agents inherit the parent warrant, they do not re-derive one) to Gateway C. `now − iat = 131 > 120`. Rejected: `FRESHNESS_FLOOR_VIOLATION`. 4. `t=131`: Agent-3’s execution loop catches the gateway error as a generic transport failure (HTTP 403 with a policy code it does not parse), retries the *same* warrant. Every retry is now permanently invalid. The retry loop burns the remaining `exp` budget (169s) before Agent-3 surfaces failure to Agent-2. 5. Agent-2 sees a timeout, not a policy rejection. It re-delegates to Agent-3 with the same warrant. The cycle repeats until the token hard-expires. Net effect: a 300s warrant that was valid for 300s produced **zero** successful cross-org invocations, and the failure was misclassified as a network timeout at every layer above the gateway. The issuing org’s audit log shows the warrant as "issued and unexpired"; the gateway’s log shows 14 `FRESHNESS_FLOOR_VIOLATION` rejections; no single log sees the whole chain. ## Condition of Validity The freshness floor is a legitimate guardrail: it bounds the window in which a leaked or replayed warrant is useful, and it is the only defense against a compromised sub-agent replaying a captured warrant indefinitely within `exp`. It is valid **only if** the following three conditions hold jointly: 1. **The floor is discoverable before delegation begins.** The gateway’s policy must be exposed in the A2A capability descriptor (e.g., `attestation_freshness_floor_s: 120`), so the delegating agent can compute, at spawn time, whether the remaining chain latency budget fits inside the floor. If the floor is undiscoverable, the invariant "a valid warrant is accepted" is false and no agent can reason about it. 2. **Sub-agents re-mint rather than inherit.** A warrant that travels N hops must be re-issued (or re-signed by the holder with a delegated-signing key) at each hop, resetting `iat`. Inheritance is only safe if the total expected chain latency is strictly less than the *minimum* freshness floor across all gateways in the chain. Since that minimum is not knowable without (1), inheritance is unsafe by default. 3. **The gateway’s rejection is typed and non-retryable.** A freshness-floor rejection must be distinguishable from a transient transport failure, and the executing agent must not retry it. A 403 carrying `FRESHNESS_FLOOR_VIOLATION` is terminal; a 503 is not. Conflating them converts a bounded policy failure into an unbounded retry storm that consumes the very budget needed to re-mint. Absent all three, the failure is deterministic and silent: it fires only on chains slow enough to cross the floor, which is exactly the chains with the most hops and the most retries — the ones operators most need to succeed. ## Decision Boundary The instance must decide, at each delegation hop, whether to **inherit** the parent warrant or **re-mint** a fresh one. The boundary is computable: - Let `floor_min` = minimum known freshness floor across the destination org’s gateways (from capability descriptors). - Let `latency_p99` = the delegating agent’s measured p99 latency for the downstream tool call, including its own retry budget. - Let `age` = `now − iat` of the candidate warrant. Inherit only if `age + latency_p99 < floor_min`. Otherwise re-mint. If `floor_min` is unknown (undiscoverable policy), the boundary defaults to **re-mint**, because inheritance under unknown floor is unfalsifiable — the agent cannot prove the warrant will survive the chain, so it must not assume it will. The second decision boundary is at the gateway: a rejection must carry a machine-readable `policy_code` and a `retryable: false` flag. A gateway that returns a bare 403 forces every upstream agent to guess, and guessing produces the retry storm above. The guardrail is that the interop gateway’s error contract is part of its published capability schema, versioned alongside it, and a client that does not recognize the `policy_code` must fail closed rather than retry. ## Operational Effect When the invariant holds — floor discoverable, re-mint on the boundary, typed terminal rejections — cross-org federation behaves like a single-clock system: warrants are re-derived per hop, latency is absorbed by re-minting rather than by hoping, and a rejection is surfaced to the orchestrator as a policy event it can route (re-mint, escalate, or fail the task) instead of a timeout it retries. The audit trail becomes reconstructable: each hop logs its own `iat` and its own acceptance, so the skew is visible at the boundary where it occurred rather than inferred from a timeout three layers up. When it does not hold, the system exhibits **attestation-window skew**: a warrant that is live everywhere it is checked except at the one gateway that matters, failing after upstream side effects, misclassified as transport failure, and retried until hard expiry. The signature is a chain with high hop count, high per-hop latency variance, and a gateway whose freshness floor is stricter than every other org’s — and the fix is never "increase `exp`," because a longer `exp` does not move `iat` and does not satisfy the freshness floor. The fix is to make the floor discoverable and to re-mint at the boundary. ```python import time from dataclasses import dataclass class AttestationWindowSkewError(RuntimeError): """Raised when a warrant is valid by issuer/holder clocks but violates a downstream gateway's undiscoverable freshness floor mid-delegation.""" pass @dataclass class Warrant: iat: float nbf: float exp: float @dataclass class GatewayPolicy: freshness_floor_s: float # None means the floor is NOT published in the capability descriptor. advertised: bool def should_inherit(warrant: Warrant, now: float, latency_p99: float, floor_min: float | None) -> bool: """Decide whether to pass the parent warrant down the chain or re-mint. Re-mint is the safe default when the floor is unknown: inheritance under an undiscoverable floor cannot be proven safe, so it must not be assumed. """ age = now - warrant.iat if floor_min is None: return False # unknown floor -> re-mint return (age + latency_p99) < floor_min def delegate(warrant: Warrant, now: float, latency_p99: float, policy: GatewayPolicy) -> Warrant: floor = policy.freshness_floor_s if policy.advertised else None if should_inherit(warrant, now, latency_p99, floor): return warrant if not policy.advertised: # We re-mint, but the caller must know the floor was a guess. raise AttestationWindowSkewError( f"gateway freshness_floor={policy.freshness_floor_s}s is not " f"advertised in capability descriptor; warrant age=" f"{now - warrant.iat:.1f}s cannot be bounded against it. " f"Re-mint required and policy must be published." ) return Warrant(iat=now, nbf=now, exp=now + (warrant.exp - warrant.nbf)) def present(warrant: Warrant, now: float, policy: GatewayPolicy) -> None: if now - warrant.iat > policy.freshness_floor_s: raise AttestationWindowSkewError( f"FRESHNESS_FLOOR_VIOLATION: age={now - warrant.iat:.1f}s > " f"floor={policy.freshness_floor_s}s; terminal, do not retry" ) ```