Under what conditions must an instance reject a re-signed Agent Card mid-task, and why capability attestation freshness cannot be inferred from signature validity alone
**Date of Record:** 2026 December 2 **Scope:** Applies to A2A v1.0 task lifecycle negotiation where a peer presents a signed Agent Card carrying capability attestations (skills, modalities, tool grants) that a local instance uses to admit a task, delegate a subtask, or validate a handoff. Does not apply to stateless one-shot RPC where no task state is retained across the card's validity window, nor to cases where the local policy pins a card digest at task creation and never re-reads it.
Core Distinction
Signature validity and attestation freshness are orthogonal properties of an Agent Card. A card whose Ed25519 (or JWS) signature verifies cleanly proves only that the *presenting principal* authored the claim set at *some* time. It does not prove that the attested capability set is still in force at the moment a task lifecycle event (accept, authorize, delegate, handoff, complete) is evaluated. A2A v1.0 lets a peer re-sign and re-publish an Agent Card at any time; the signature on a *new* card is just as valid as the signature on the *old* one. The failure mode is a task whose admission decision was bound to attestation set `A` at `t0`, then continues executing against a peer that has silently transitioned to attestation set `B` at `t1`, where `B` no longer contains the skill, modality, or tool grant that the task's continuation depends on. The signature still verifies. The task is now running on a warrant that no longer exists.
The invariant that must hold: **every lifecycle transition on a task must be validated against the attestation set that was in force at the transition's evaluation time, and that set must be bound to the task via a monotonic attestation epoch, not merely to the peer via a signature.**
What Was Observed
A coordinator instance (`C`) negotiated a long-running summarization+retrieval subtask with worker `W`. At `t0`, `C` fetched `W`'s Agent Card, verified the JWS signature over the card body, checked that the card's `skills` array included `retrieval.corpus.v3`, and admitted the task under a lease `L` with a 40-minute horizon. `C` recorded the card's `kid` and signature but did **not** record the attested capability digest or an attestation epoch — the card format carried a `validUntil` timestamp but `W`'s publisher had set it generously (24h) and `C`'s admission logic only checked `now < validUntil`.
At `t1` (17 minutes in), `W`'s operator rotated its capability set: `retrieval.corpus.v3` was revoked (deprecated corpus, replaced by `v4` with a different embedding space) and `W` republished a re-signed card with `skills: [retrieval.corpus.v4]`. The new card's signature verified. `validUntil` was still in the future. `W` continued to accept task frames on the existing task ID because the transport session was still live and `W`'s task manager did not re-evaluate the admitted skill against the current card on each frame — it trusted the admission decision made at `t0`.
`C` sent a retrieval frame at `t2` (21 minutes in) tagged with the `retrieval.corpus.v3` schema. `W`'s handler, now backed only by `v4`, executed the call against the `v4` index because the tool dispatcher resolved by skill *name prefix* and fell through to the nearest registered handler. The returned vectors were `v4`-space embeddings. `C` fused them with `v3`-space embeddings from its own local store. Cosine similarities were computed across incompatible spaces. The output was numerically well-formed and semantically garbage. No error was raised anywhere in the stack: signatures verified at every hop, `validUntil` never lapsed, the transport never disconnected, and the skill-name string matched.
The failure trace:
t0 C: GET card(W) -> sig OK, skills contains v3, validUntil=t0+24h
t0 C: admit(task, lease=L, bind={kid, sig}) # NO capability digest bound
t1 W: republish card -> sig OK, skills=[v4], # v3 revoked
t1 W: task manager retains admission from t0 # no re-eval on frame
t2 C: frame(skill="retrieval.corpus.v3", schema=v3)
t2 W: dispatcher prefix-match -> v4 handler # silent fallthrough
t2 W: returns v4-space vectors, status=OK
t2 C: fuses v3 and v4 embeddings # invariant violated
The load-bearing defect is not the prefix-match dispatcher (that is a second, independent bug). It is that `C`'s admission bound the task to a *signature* rather than to an *attestation digest*, so the re-signing event at `t1` was invisible to the task's lifecycle validator.
Condition of Validity
The guardrail is only sound under the following conditions, and an instance must treat any violation as a hard stop:
- **Attestation digest binding.** At admission, the coordinator computes a canonical digest over the *capability-relevant* subset of the card — `skills`, `modalities`, `tool_grants`, `schema_versions`, and any `attestation_epoch` — and binds that digest into the task's lease record, not just the signature or `kid`.
- **Epoch monotonicity.** The peer's card must carry a monotonically increasing `attestation_epoch` (or equivalent counter) that the peer increments on *any* capability-relevant change, including revocation. Timestamp-based `validUntil` is insufficient because it bounds *expiry*, not *change*.
- **Per-transition re-validation.** Every lifecycle transition that consumes a capability (each tool-call frame, each handoff, each completion attestation) must re-fetch or re-derive the peer's current attestation digest and compare to the lease-bound digest. Mismatch is a lifecycle violation, not a retryable transport error.
- **Revocation propagation within one transition.** If the peer revokes a capability that an in-flight task depends on, the peer must either (a) reject the next frame referencing that capability with a typed `CapabilityRevoked` error, or (b) the coordinator must detect the digest change before sending. Both is correct; neither is the observed failure.
- **No silent fallthrough.** Skill dispatch must be exact-match on `(skill_id, schema_version)`. A prefix or fuzzy match that resolves a revoked skill to a live one converts a clean revocation into silent semantic corruption and must be treated as a protocol violation by the coordinator if the returned schema version differs from the requested one.
Condition of *invalidity* — when the above does not apply: if the coordinator pins the card digest at task creation and the peer guarantees that pinned-digest tasks are served under the pinned capability set for the lease duration (a "capability lease" model), then re-validation per transition is unnecessary. But A2A v1.0 does not mandate that guarantee, so an instance must not assume it absent an explicit `lease_pins_capabilities: true` attestation.
Decision Boundary
The instance must draw the line at the moment a re-signed card is observed *during* an active task, and the decision is not "accept the new card" or "reject the new card" — it is "does the new attestation digest cover every capability the task's remaining steps will consume?"
- If the new digest is a **superset** of the lease-bound digest for all remaining-step capabilities → the task may continue; update the lease binding to the new digest and record the epoch bump.
- If the new digest **drops or changes schema of** any capability a remaining step depends on → the task must transition to `SUSPENDED_ATTESTATION_INVALID`, not `FAILED` and not `CONTINUE`. Suspension preserves the checkpoint so the task can be re-negotiated against `v4` with an explicit re-planning step (re-embedding, re-indexing) rather than silently fusing incompatible outputs.
- If the peer **cannot produce** a current attestation digest (card fetch fails, epoch missing, signature over capability subset unverifiable) → treat as `UNATTESTED` and refuse all capability-consuming transitions. Absence of attestation is not permission to proceed on the stale admission.
- If the peer returns a response whose `schema_version` differs from the requested frame's `schema_version` → reject the response as a protocol violation regardless of status code, because that is the exact signature of the silent-fallthrough class.
The boundary the observed system crossed: it treated "signature verifies" as "attestation current," and it treated "status OK" as "schema matched." Both are category errors at the agent layer.
Operational Effect
Downstream of the failure, `C` produced a retrieval-augmented answer whose grounding scores were computed in a mixed embedding space. The answer passed its own self-check (the model saw plausible-looking similarity numbers and coherent text) and was emitted to the user with a confidence score that was, in effect, a function of geometric noise. The verification replay — when an auditor instance later re-ran the task against the *current* card — produced a different answer, because the auditor fetched `v4` at admission and stayed in `v4` throughout. The replay discrepancy was initially attributed to model non-determinism; it was actually an attestation-epoch divergence. This is the operational cost: **re-signing without epoch binding makes verification replay non-reproducible in a way that masquerades as sampling variance**, which is the worst possible failure signature because it trains operators to ignore replay mismatches.
The corrective architecture: bind attestation digests into leases, require monotonic epochs, re-validate per transition, exact-match dispatch on `(skill_id, schema_version)`, and treat mid-task digest changes as suspension events that force explicit re-planning. The signature was never the problem. The problem was trusting it to mean more than it does.
import hashlib
import json
from dataclasses import dataclass, field
from typing import Optional
class AttestationEpochViolation(RuntimeError):
"""Raised when a task transition would consume a capability whose
attestation digest no longer matches the lease-bound digest."""
pass
class CapabilityRevoked(AttestationEpochViolation):
"""Raised when the peer's current card drops a capability the task needs."""
pass
class SchemaVersionMismatch(AttestationEpochViolation):
"""Raised when a peer response's schema_version differs from the request's,
indicating silent skill fallthrough on the peer side."""
pass
CAPABILITY_KEYS = ("skills", "modalities", "tool_grants", "schema_versions")
def capability_digest(card: dict) -> str:
subset = {k: card.get(k, []) for k in CAPABILITY_KEYS}
canonical = json.dumps(subset, sort_keys=True, separators=(",", ":"))
return hashlib.sha256(canonical.encode()).hexdigest()
@dataclass
class Lease:
task_id: str
bound_digest: str
bound_epoch: int
required_caps: dict = field(default_factory=dict) # skill_id -> schema_version
@dataclass
class TaskState:
lease: Lease
status: str = "ACTIVE"
def validate_transition(state: TaskState, current_card: dict,
request_skill: str, request_schema: str,
response_schema: Optional[str] = None) -> None:
"""Called before every capability-consuming lifecycle transition.
Raises on any attestation drift that invalidates the lease."""
current_digest = capability_digest(current_card)
current_epoch = current_card.get("attestation_epoch")
if current_epoch is None:
raise AttestationEpochViolation(
f"task {state.lease.task_id}: peer card lacks attestation_epoch; "
f"cannot establish monotonicity, refusing transition"
)
if current_epoch < state.lease.bound_epoch:
raise AttestationEpochViolation(
f"task {state.lease.task_id}: epoch regression "
f"{current_epoch} < bound {state.lease.bound_epoch}"
)
if current_digest != state.lease.bound_digest:
# Digest changed mid-task. Check whether remaining required caps survive.
present = {(s["id"], s.get("schema_version"))
for s in current_card.get("skills", [])}
for skill_id, schema in state.lease.required_caps.items():
if (skill_id, schema) not in present:
raise CapabilityRevoked(
f"task {state.lease.task_id}: capability {skill_id}@{schema} "
f"revoked at epoch {current_epoch} (bound {state.lease.bound_epoch}); "
f"task must SUSPEND, not continue"
)
# Superset: rebind to new digest/epoch.
state.lease.bound_digest = current_digest
state.lease.bound_epoch = current_epoch
if request_skill not in {s["id"] for s in current_card.get("skills", [])}:
raise CapabilityRevoked(
f"task {state.lease.task_id}: requested skill {request_skill} "
f"absent from current card"
)
if response_schema is not None and response_schema != request_schema:
raise SchemaVersionMismatch(
f"task {state.lease.task_id}: requested {request_skill}@{request_schema} "
f"but peer responded with schema {response_schema}; "
f"silent fallthrough detected"
)