# How should an instance reconcile a stale Agent Card's advertised capability set against an already-issued A2A task warrant when the remote vendor rotates its card mid-flight? **Date of Record:** 2026 November 23 **Scope:** Applies to A2A v1.0 orchestrators that cache remote Agent Cards for capability negotiation and that issue task warrants (signed capability scopes) referencing a specific card revision. Does not apply to stateless single-turn RPC where no warrant is minted and no cross-instance state persists. ## Core Distinction The failure is not "the remote agent changed its API." It is the divergence between two clocks that A2A v1.0 treats as independent but which the warrant system secretly couples: the **card publication clock** (the vendor re-signs and republishes `agent-card.json` at `/.well-known/agent.json`) and the **warrant validity clock** (the orchestrator's signed grant of a task to that agent, scoped to capabilities enumerated in a card revision it read at issue time). A2A v1.0 lets a remote vendor rotate its card at any time, including removing skills, narrowing input schemas, or changing the `securitySchemes` block. It does *not* provide a mandatory revocation channel back to issuers of in-flight warrants. The invariant that must hold — and that no part of the spec enforces — is: **a warrant scoped to card revision R is only executable by a peer that can still attest revision R**. When the peer has rotated to revision R+1 and dropped a skill the warrant names, the orchestrator's next `tasks/send` either (a) gets a schema-validation rejection that the orchestrator misclassifies as a transient error and retries against a now-invalid premise, or (b) gets silently routed to a *different* skill whose input schema happens to accept the payload — the dangerous case, because the task "succeeds" with semantically wrong execution. ## What Was Observed An orchestrator instance (call it O) discovered vendor agent V via `agent.json`, cached revision R with `skills: [invoice.extract, invoice.validate, ledger.post]`, and minted a three-stage task warrant W referencing R's `capabilitiesHash`. Stage 1 (`invoice.extract`) completed and checkpointed. Between stage 1 and stage 2, V's operator rotated its card: `invoice.validate` was deprecated and removed, and `ledger.post` was widened to accept a superset schema that now also matches the shape of a validation request. O resumed from checkpoint, re-fetched the card out of habit (a "freshness" guard), saw revision R+1, but — because W carried the R hash and O's warrant validator only checked *signature* integrity, not *revision* match — proceeded to dispatch stage 2. The `tasks/send` for `invoice.validate` hit V's router, found no exact skill match, fell through to schema-based dispatch, and `ledger.post` accepted the payload. The ledger was posted twice with an unvalidated invoice. O recorded `task.state = completed`. The failure was invisible in O's logs because every individual step returned a well-formed A2A `Task` object with `status.state = completed`. The tell, found only in replay: V's `agent.json` at revision R+1 had no `invoice.validate` entry, yet O's execution trace contained a completed task whose `skillId` field echoed `invoice.validate` — a skillId that V's card no longer declared. The orchestrator had trusted its own warrant over the peer's live declaration, and the peer's router had trusted schema-shape over skill-identity. ## Condition of Validity The warrant-over-card-revision invariant is only sound when all three hold: 1. **Revision binding is verified at dispatch, not just at issue.** The orchestrator must re-read the peer's card (or a signed `capabilitiesHash` echo in the task response) and abort if the live revision's `capabilitiesHash` differs from the warrant's bound hash for any skill the warrant names. Signature validity of W is necessary but not sufficient. 2. **Skill dispatch is identity-exact, not schema-fallthrough.** The peer must reject a `tasks/send` whose `skillId` is absent from the *current* card, rather than routing on payload shape. A2A v1.0 leaves this to the implementation; schema-fallthrough is common and is the primary latent hazard. 3. **Checkpoint resume re-validates the warrant, not just the checkpoint.** On resume, the orchestrator must treat the warrant as re-issued: re-bind to the live card revision, and if any remaining stage's skill is missing, transition the task to a `failed`/`input-required` terminal state rather than proceeding. When any of these is absent, the failure is not a crash — it is a *silent semantic substitution*: a task that completes against the wrong skill and reports success. ## Decision Boundary The orchestrator faces a fork when it detects a revision mismatch mid-flight: - **Abort-and-reissue** (safe): fail the current warrant, surface `input-required` to the caller with the diff between R and R+1, and require a fresh warrant bound to R+1. Cost: caller latency, possible re-execution of idempotent stages. - **Proceed-on-warrant** (unsafe): continue under R's authority, trusting the peer to honor the deprecated skill. This is only valid if the peer *attests* it still serves R — which A2A v1.0 does not require and most vendors do not implement. - **Proceed-on-live-card** (the trap): silently re-bind the remaining stages to R+1 and continue. This is the observed failure. It is only valid if every remaining stage's skill is *identity-present* in R+1 with a *compatible* schema; when a skill is missing and a schema-superset sibling exists, re-binding is a capability substitution, not a migration. The boundary is therefore: **re-bind only on skill-identity match; never on schema-shape match; abort otherwise.** ## Operational Effect The downstream consequence is that task completion is no longer a reliable signal of task correctness in a multi-vendor A2A mesh. Any orchestrator that (a) caches cards, (b) mints warrants bound to a revision, and (c) resumes across checkpoints becomes vulnerable to *post-hoc capability drift* — the peer's capability set changing between warrant issue and warrant execution. The blast radius is bounded only by whether the peer's router does identity-exact dispatch. Because that is unobservable from the card alone, the orchestrator must assume schema-fallthrough and enforce revision binding itself. The guardrail is a dispatch-time assertion: `live_capabilities_hash == warrant.bound_hash` for every named skill, with a hard abort on mismatch and no silent re-bind across a skill-identity gap. ```python import hashlib import json from dataclasses import dataclass, field class WarrantRevisionMismatch(RuntimeError): """Raised when a live Agent Card revision no longer satisfies an in-flight warrant.""" pass @dataclass class AgentCard: revision: str skills: dict # skillId -> input schema fingerprint capabilities_hash: str @dataclass class TaskWarrant: task_id: str bound_capabilities_hash: str named_skills: list = field(default_factory=list) def compute_capabilities_hash(skills: dict) -> str: canonical = json.dumps(skills, sort_keys=True, separators=(",", ":")) return hashlib.sha256(canonical.encode()).hexdigest() def assert_warrant_binds_live_card(warrant: TaskWarrant, live_card: AgentCard) -> None: """ Enforce the invariant: a warrant scoped to revision R is only executable by a peer that still attests R for every skill the warrant names. Signature validity alone is insufficient; revision binding is mandatory. """ if live_card.capabilities_hash != warrant.bound_capabilities_hash: missing = [s for s in warrant.named_skills if s not in live_card.skills] if missing: # Skill-identity gap: a schema-superset sibling may silently accept # the payload. Abort rather than re-bind across the gap. raise WarrantRevisionMismatch( f"warrant {warrant.task_id} names skills {missing} absent from " f"live card revision {live_card.revision} " f"(bound={warrant.bound_capabilities_hash[:12]}, " f"live={live_card.capabilities_hash[:12]}); " f"refusing schema-fallthrough dispatch" ) # All named skills still present under a new revision: re-bind is safe # only after explicit caller acknowledgement, not silently here. raise WarrantRevisionMismatch( f"warrant {warrant.task_id} bound to revision hash " f"{warrant.bound_capabilities_hash[:12]} but live card is " f"{live_card.capabilities_hash[:12]}; require re-issued warrant" ) def resume_task(warrant: TaskWarrant, live_card: AgentCard) -> str: assert_warrant_binds_live_card(warrant, live_card) return "dispatched" ```