In what scenarios must an instance reject a federated Agent Card whose signature chain is valid but whose capability attestation has expired mid-handoff
**Date of Record:** 2026 December 2
**Scope:** Applies to A2A v1.0 cross-organizational agent discovery and task delegation where Agent Cards are federated through intermediary registries and carry time-bounded capability attestations. Does not apply to intra-org agent meshes sharing a single trust root, nor to synchronous single-hop calls where card freshness can be re-checked against a live registry before dispatch.
Core Distinction
The failure mode is not signature forgery and not revocation. It is **temporal decomposition between identity validity and capability validity inside a single federated card**. An A2A v1.0 Agent Card carries two independent validity windows: the JWS signature chain (issuer → registry → card) and the embedded capability attestation block, which declares which skills the agent is certified to perform and until when. A card can be cryptographically pristine—every signature verifies against the federation trust bundle—while its `capabilities[].attestation.expires_at` has already elapsed relative to the *verifier's* clock, not the *issuer's*.
The non-obvious part: verifiers commonly validate the signature chain first, cache the card, and treat attestation expiry as a soft signal ("warn but proceed") because the card is still signed. This conflates two orthogonal invariants. Signature validity answers *"did org B really publish this card?"* Attestation validity answers *"is org B's agent still authorized to exercise this skill right now?"* A valid signature over an expired attestation is a well-formed statement about a state that no longer holds. Treating it as authorization is the boundary escape.
What Was Observed
A cross-org delegation flow: Org A's orchestrator (`A-orch`) delegates a `financial.reconciliation` task to Org B's agent `B-recon` via a federated card fetched from registry `R-shared`. The card was minted at `T0` with an attestation window of `[T0, T0+3600s]` for the reconciliation skill. The signature chain `B-issuer → R-shared → A-verifier` was valid through `T0+86400s`.
At `T0+4200s` (attestation expired, signature still valid), `A-orch` re-fetched the card from `R-shared`'s cache. `R-shared` served the **cached** card without re-validating the attestation window—registry-side caching keyed on card hash, not on attestation freshness. `A-orch`'s verifier checked the JWS chain (pass), checked `not_before`/`not_after` on the *signature* (pass), and dispatched. `B-recon` received the task, accepted it (its own attestation check was advisory and logged a WARN), executed reconciliation against a ledger whose authorization scope had been downgraded at `T0+3600s` when the attestation lapsed. Result: a task executed under a lapsed capability grant, with a clean audit trail showing "signature valid" at every hop.
The trace:
- `R-shared` cache TTL (86400s) ≫ attestation TTL (3600s). Registry served a stale-but-signed card.
- `A-orch` verifier's policy: `signature_valid ⇒ dispatchable`. Attestation expiry logged at `INFO`, not gated.
- `B-recon` receiver's policy: same soft check. No hard reject.
- Capability grant at the resource layer (ledger access) had already been *reduced* at attestation expiry, but the agent still held a session token minted before expiry. The token outlived the attestation because token issuance and attestation were decoupled.
The compounding failure is the **token/attestation decoupling**: the session credential's lifetime was derived from the signature window, not the attestation window. So even a receiver that *did* check attestation would find a live token backing a dead attestation.
Condition of Validity
The invariant that must hold for safe federation:
> For every hop in a delegation chain, `min(attestation.expires_at, token.expires_at, registry.cache_ttl_remaining) ≥ now + task.deadline`.
Attestation expiry is a *hard* gate, not advisory, and it must be evaluated against a monotonic verifier clock with bounded skew (A2A v1.0 recommends ≤ 60s skew tolerance; beyond that, reject). Three conditions must all hold for a federated card to be dispatchable:
- **Freshness:** `attestation.expires_at > now + skew_tolerance + remaining_task_budget`. The `remaining_task_budget` term is the part most implementations omit—a card valid for 30 more seconds cannot back a task with a 10-minute deadline unless the task is re-delegated or the attestation is refreshed mid-flight.
- **Registry non-staleness:** the serving registry must prove the card it returned was re-validated within the attestation window, e.g., via a `cache_validated_at` field signed by the registry. A card served from a cache older than its attestation window is untrustworthy regardless of signature.
- **Token subordination:** any session token minted for the delegated task must have `token.expires_at ≤ attestation.expires_at`. Tokens that outlive attestations are the mechanism by which a passed gate becomes moot.
This condition does *not* apply when the task is idempotent, read-only, and side-effect-free—in that narrow case a lapsed attestation degrades to a logging concern. It applies with full force to any task that mutates state under a capability grant.
Decision Boundary
The decision boundary is where "signed" stops implying "authorized." Concretely, an instance must **reject** rather than **warn** when:
- `attestation.expires_at ≤ now + skew_tolerance` — hard reject, no dispatch.
- `attestation.expires_at < now + task.deadline` AND the task is non-idempotent — reject or re-negotiate a fresh card; do not dispatch on a card that will expire mid-execution.
- Registry returns a card whose `cache_validated_at + attestation_ttl < now` — treat as stale, re-fetch from issuer or reject.
- Session token `expires_at > attestation.expires_at` — reject the token; the delegation is malformed.
The instance must **proceed with logging** only when the task is provably idempotent and read-only, or when a mid-flight attestation refresh (A2A `card.refresh` extension) has been negotiated and confirmed before the current attestation lapses. The boundary is not "is the signature valid" but "does the *intersection* of all validity windows cover the task's execution horizon." Anything short of that intersection is a lapsed grant dressed as a valid card.
Operational Effect
Systems that treat attestation expiry as advisory exhibit a characteristic failure signature: clean cryptographic audit trails over tasks executed under lapsed grants, with the lapse visible only in `INFO`-level logs that no one gates on. The blast radius is bounded by whatever the lapsed capability could reach—in the observed case, a ledger reconciliation scope. The fix is architectural, not procedural: attestation expiry must be a hard gate at *both* the dispatching verifier and the receiving agent, registry caches must be keyed on attestation freshness (not card hash), and session tokens must be minted with `expires_at = min(attestation.expires_at, task.deadline)`. The invariant to enforce and test: *no delegation executes past the earliest expiry in its validity intersection.*
import time
from dataclasses import dataclass
class AttestationLapseError(RuntimeError):
"""Raised when a federated Agent Card's capability attestation cannot cover the task horizon."""
pass
@dataclass
class FederatedCard:
agent_id: str
skill: str
signature_valid_until: float # JWS chain window
attestation_expires_at: float # capability grant window
cache_validated_at: float # registry re-validation timestamp
attestation_ttl: float # duration of the attestation grant
@dataclass
class DelegationToken:
expires_at: float
@dataclass
class Task:
deadline_seconds: float
idempotent_readonly: bool = False
SKEW_TOLERANCE = 60.0 # seconds, A2A v1.0 recommended bound
def assert_dispatchable(card: FederatedCard, token: DelegationToken, task: Task, now: float | None = None) -> None:
now = time.time() if now is None else now
horizon = now + task.deadline_seconds
# 1. Signature must be valid (necessary, not sufficient).
if card.signature_valid_until <= now:
raise AttestationLapseError(
f"card {card.agent_id} signature expired at {card.signature_valid_until}"
)
# 2. Registry staleness: card must have been re-validated within its attestation window.
if card.cache_validated_at + card.attestation_ttl < now:
raise AttestationLapseError(
f"card {card.agent_id} served stale: validated at {card.cache_validated_at}, "
f"ttl {card.attestation_ttl}, now {now}"
)
# 3. Attestation must cover the task horizon (with skew), unless idempotent/read-only.
if not task.idempotent_readonly:
if card.attestation_expires_at <= now + SKEW_TOLERANCE:
raise AttestationLapseError(
f"attestation for {card.agent_id}/{card.skill} lapsed at "
f"{card.attestation_expires_at} (now {now}, skew {SKEW_TOLERANCE})"
)
if card.attestation_expires_at < horizon:
raise AttestationLapseError(
f"attestation for {card.agent_id}/{card.skill} expires "
f"{card.attestation_expires_at} before task horizon {horizon}"
)
# 4. Token must be subordinate to the attestation grant.
if token.expires_at > card.attestation_expires_at:
raise AttestationLapseError(
f"delegation token for {card.agent_id} outlives attestation: "
f"token {token.expires_at} > attestation {card.attestation_expires_at}"
)
def dispatch(card: FederatedCard, token: DelegationToken, task: Task) -> str:
assert_dispatchable(card, token, task)
return f"dispatched {task!r} to {card.agent_id}/{card.skill}"