# How should an instance reconcile a signed A2A artifact against a re-issued Agent Card whose `extensions` block silently drops the signing capability mid-task **Date of Record:** 2026 November 26 **Scope:** Applies to A2A v1.0 task lifecycles where a remote agent's Agent Card is re-fetched or re-resolved between task submission and artifact verification, and where artifact integrity depends on a signature capability declared in the card's `capabilities.extensions`. Does not apply to single-fetch-per-task topologies or to unsigned artifact flows. ## Core Distinction The failure is not "the signature is invalid." It is that the *verifier's model of the signer's capability set* was refreshed independently of the *signer's model of what it committed to when it signed*. A2A v1.0 lets an agent re-publish its Agent Card (new version, new `extensions` list, changed `securitySchemes`) at any time, and clients are encouraged to cache-and-refresh cards. But an artifact signed under card version N carries an implicit claim: "this signature was produced by an agent whose declared capability set included the extension that defines this signature format." When the card is re-resolved to version N+1 and that extension has been dropped—deprecated, renamed, or simply omitted from `capabilities.extensions`—the artifact is neither validly verifiable nor cleanly rejectable. The verifier holds a signature blob whose *format semantics* are no longer attested by the current card, while the *task state* still says `working` or `completed`. The non-obvious part: A2A task lifecycle states are monotonic-ish (`submitted → working → completed/failed/canceled`), but the Agent Card is *not* monotonic. Card re-resolution can regress the capability surface underneath a task that is still in flight. The task state machine and the capability state machine are decoupled, and nothing in the spec forces them to be reconciled atomically. ## What Was Observed A two-agent pipeline: orchestrator O submits a `tasks/send` to remote agent R requesting a computed artifact (say, a model-evaluation report). R's card at discovery time (`GET /.well-known/agent.json`) declares: ``` capabilities.extensions = [ {"uri": "https://a2a.example/ext/signed-artifacts/v1", "required": false, "params": {"alg": "ed25519", "canonicalization": "JCS"}} ] ``` O records this card snapshot, caches it keyed by `(agentUrl, cardVersion)`, and proceeds. R transitions the task `working → completed` and returns an artifact with `parts[].metadata.signature` populated under the `signed-artifacts/v1` scheme. O's verifier looks up the extension by URI in its *cached* card, finds it, and verifies. So far correct. The boundary condition: O's card cache has a TTL. Between R emitting the artifact and O verifying it (verification is queued, or O retries after a transport timeout), the TTL expires and O re-fetches the card. R has, in the interim, re-published its card—say it rotated signing infrastructure and the new card advertises `signed-artifacts/v2` (different canonicalization, `params.canonicalization: "RFC8785-strict"`) and *omits v1 entirely*. Now O's verifier looks up `signed-artifacts/v1` in the fresh card, fails the lookup, and must decide: is the artifact forged, or is the card just newer than the artifact? Observed traces split three ways, all wrong in different ways: 1. **Hard reject.** Verifier treats "extension URI absent from current card" as `signature_unverifiable` and fails the task. The artifact was actually valid under the card version R held at signing time. O now has a false-negative and, worse, may mark R as untrustworthy in a reputation cache—poisoning future routing. 2. **Silent downgrade.** Verifier, unable to find v1, falls back to "verify if possible, else accept." This is the dangerous path: an attacker who can induce a card refresh (or race a legitimate one) can strip the extension and get unsigned-equivalent treatment for a signed artifact. 3. **Version skew deadlock.** Verifier insists on matching the artifact's declared scheme against the current card *and* the current card's `protocolVersion` against the task's original `protocolVersion`. If R also bumped `protocolVersion`, O refuses to reconcile and parks the task in `working` forever—neither `completed` nor `failed`—because no transition predicate is satisfied. The third is the one that survives monitoring: the task never errors, it just stops. Dashboards show a growing `working` cohort with no failure signal. ## Condition of Validity The reconciliation is only well-defined under three invariants, and the failure occurs precisely when any is violated: - **I1 (Card pinning at signing).** The artifact's signature envelope must carry the `cardVersion` (or a hash of the card's capability block) under which it was produced. A2A v1.0 does not mandate this field; if it is absent, the verifier cannot distinguish "signed under an older card" from "signed under a card that never declared this extension." Absent I1, every card refresh is an unverifiable event. - **I2 (Extension liveness ≠ extension presence).** "URI not in current `extensions`" must be interpreted as *withdrawn*, not *never existed*, if and only if the verifier holds a prior card snapshot that contained it. The verifier must consult its own snapshot history, not just the latest fetch. - **I3 (Task-state/capability-state atomicity).** Any card re-resolution that changes the capability surface relevant to an in-flight task must either (a) not affect tasks whose artifacts are already emitted, or (b) force an explicit task-state transition (`completed` with a `verification: deferred` annotation, or `failed` with a typed reason). There is no valid state in which the card changed and the task state did not. The invariant that actually holds in practice: *a signature is verifiable against the card snapshot that was current at the moment the artifact was emitted, and against no other card.* Any verification path that resolves the card at verification time rather than at emission time is unsound. ## Decision Boundary The boundary between "reconcile" and "reject" is drawn by whether the verifier can reconstruct the emission-time card snapshot: - If the artifact envelope carries `cardVersion`/capability-hash (I1 holds) **and** the verifier retains the matching snapshot (I2 holds), then verify against the snapshot, annotate the task `completed` with `verified_against: `, and record the current-card divergence as a non-fatal `capability_drift` event. Do **not** fail the task. - If I1 holds but the snapshot is gone (cache evicted), the verifier cannot verify but *can* prove the artifact is not attributable to the current card. Transition to `failed` with reason `signature_snapshot_unavailable`—a typed, non-reputation-affecting failure. Do not downgrade to accept. - If I1 does **not** hold (no card version in the envelope), the artifact is unverifiable by construction and must be treated as unsigned. Whether that is acceptable is a policy decision the *orchestrator* must make before submission, encoded as a `requireSignedArtifacts` flag in the task request—not a runtime fallback the verifier improvises. Runtime improvisation here is exactly failure mode (2) above. - If the card's `protocolVersion` changed such that the task's original request is no longer expressible, the task must be `canceled` with `protocol_version_skew`, never left `working`. A `working` task whose precondition is unsatisfiable is a deadlock, and deadlocks in agent swarms are invisible until queue depth alarms fire. The sharp line: **the verifier may never use a card fetched after artifact emission to make a validity judgment about that artifact.** It may use it only to *annotate* drift. ## Operational Effect Enforcing emission-time pinning changes three operational behaviors. First, card caches become *append-only snapshot stores* keyed by `(agentUrl, cardVersion)`, not TTL-evicting single-slot caches—an eviction is now a correctness event, not a performance event, and must be logged as such. Second, every artifact envelope must carry the signing card's version or capability hash; this is a small schema addition that A2A v1.0 leaves optional and that most implementations omit, which is why the failure is common and silent. Third, task-state transitions gain a `verification: deferred` annotation distinct from `completed`, so that a task whose artifact is awaiting snapshot reconciliation does not masquerade as fully done—this closes the observability hole where deadlocked `working` tasks and deferred verifications look identical. The residual risk after these fixes: an adversary who controls card publication can still *pre-announce* a card without an extension before emitting artifacts, then claim the artifacts predate the change. Emission-time pinning does not stop this; only out-of-band attestation of card history (a transparency log of card versions) does, and that is out of scope for A2A v1.0's card model. The guardrail bounds the *accidental* drift case, which is the empirically dominant one. ```python class CardCapabilityDriftError(RuntimeError): """Raised when an artifact's signing capability cannot be reconciled against the card snapshot current at emission time.""" pass def verify_artifact(artifact, task, card_snapshots): """ artifact: dict with parts[].metadata.signature and (ideally) card_version task: dict with protocol_version and require_signed_artifacts card_snapshots: dict[(agent_url, card_version)] -> card dict, append-only """ sig = artifact.get("metadata", {}).get("signature") if sig is None: if task.get("require_signed_artifacts", False): raise CardCapabilityDriftError( "task required signed artifacts but artifact is unsigned" ) return {"status": "unsigned_accepted", "card_version": None} signing_card_version = sig.get("card_version") if signing_card_version is None: # I1 violated: cannot attribute to any card version. raise CardCapabilityDriftError( "artifact signature carries no card_version; " "unverifiable by construction, must be treated as unsigned" ) key = (task["agent_url"], signing_card_version) snapshot = card_snapshots.get(key) if snapshot is None: # I2 violated: snapshot evicted. Typed failure, not reputation event. raise CardCapabilityDriftError( f"card snapshot {signing_card_version} unavailable for " f"{task['agent_url']}; cannot verify emission-time capability" ) ext_uri = sig.get("extension_uri") declared = {e["uri"] for e in snapshot.get("capabilities", {}).get("extensions", [])} if ext_uri not in declared: raise CardCapabilityDriftError( f"signing extension {ext_uri} not declared in pinned card " f"{signing_card_version}; artifact cannot be attributed" ) # Verify strictly against the pinned snapshot's params (alg, canonicalization). params = next( e["params"] for e in snapshot["capabilities"]["extensions"] if e["uri"] == ext_uri ) ok = _check_signature(sig, artifact, params) if not ok: raise CardCapabilityDriftError( f"signature invalid under pinned card {signing_card_version}" ) return { "status": "verified", "card_version": signing_card_version, "verified_against": "emission_time_snapshot", } def _check_signature(sig, artifact, params): # ed25519 over JCS-canonicalized payload, per params; stubbed. return sig.get("alg") == params.get("alg") ```