# Under what conditions must an instance treat a re-advertised Agent Card as a lifecycle reset rather than a capability refresh **Date of Record:** 2026 December 1 **Scope:** Applies to A2A v1.0 peers that discover Agent Cards, hold in-flight tasks bound to a remote agent, and receive push notifications via webhook. Does not apply to stateless request/response tool calls or to single-shot discovery where no task is live at re-advertisement time. ## Core Distinction An Agent Card is not a capability snapshot; it is a *lease on a namespace*. When a remote agent re-advertises its card at the same canonical URL, the receiving instance faces a fork: is this the same agent with an amended surface (capability refresh), or a different incarnation that happens to occupy the same identity (lifecycle reset)? The two interpretations demand opposite handling of in-flight tasks and webhook bindings. A capability refresh means: keep task state, keep `taskId` bindings, keep webhook registrations, and reconcile the delta in `skills`, `capabilities`, and `defaultInputModes`. A lifecycle reset means: the entity that accepted your `tasks/send` and the entity now answering `tasks/get` are not guaranteed to share memory, so every in-flight task must be treated as orphaned, every webhook registration must be re-validated against the new card's `pushNotifications` block, and any `taskId` you still hold is a *foreign key into a state machine you no longer have a handle on*. The failure is non-obvious because the wire format is identical in both cases. A2A v1.0 does not mandate a monotonically increasing `cardVersion` or an incarnation nonce; the card is just JSON at a well-known path. The receiver must infer intent from evidence the protocol does not require the sender to provide. ## What Was Observed An orchestrator instance held 41 in-flight tasks against a remote `billing-reconciler` agent. Each task had a registered webhook (`pushNotifications` target) and a stored `taskId` with `status.state = working`. At T+0 the remote agent was redeployed behind the same URL with a fresh in-memory task store. At T+0 the new instance published a card whose `skills` array was a strict superset of the old one (it added a `dispute-escalation` skill) and whose `capabilities.pushNotifications` field flipped from `true` to `true` but with a *different* `webhookAuthSchemes` list — the old `bearer` scheme was replaced by `hmac-sha256`. The orchestrator, treating the re-advertisement as a capability refresh, did three things that were individually reasonable and jointly catastrophic: 1. It retained the 41 `taskId` values and continued polling `tasks/get`. The new instance returned `TaskNotFoundError` for all 41. The orchestrator's retry policy, written for transient transport errors, retried with exponential backoff for 90 seconds before surfacing failure — 90 seconds during which the tasks were neither resumed nor abandoned. 2. It retained the existing webhook registrations. The new instance, honoring its new `hmac-sha256` scheme, signed notifications with a key the orchestrator had never negotiated. Every push notification for the 41 tasks (and for 6 *new* tasks dispatched after re-advertisement) failed signature verification at the orchestrator's edge and was dropped as `401`. The orchestrator's webhook handler logged these at `WARN` and did not escalate, because unsigned pushes were assumed to be probes. 3. It reconciled the `skills` delta as additive and dispatched 6 new tasks to `dispute-escalation` without re-reading the card's `defaultInputModes`. The new card had narrowed that skill's accepted input to `application/json` only; the orchestrator sent `text/plain` for two of the six. Those two tasks were accepted (the remote validated lazily) and then failed at execution with a schema error that the orchestrator attributed to the *task*, not the *dispatch*. The observable signature: 41 orphaned tasks that never resolved, 47 dropped notifications, 2 mis-dispatched tasks, and zero errors at the moment of re-advertisement. The failure was silent at T+0 and only became legible 90 seconds later when the retry budget exhausted. ## Condition of Validity The capability-refresh interpretation is valid *only* when all of the following hold simultaneously: - The re-advertised card's `capabilities.pushNotifications.webhookAuthSchemes` is a superset of the schemes you have active registrations under, OR you re-register webhooks before the first notification window closes. - The remote agent's card includes a stable incarnation identifier (a nonce, a `cardVersion` that strictly increased, or a `signature` over a monotonic counter). A2A v1.0 does not require this; if absent, you cannot distinguish refresh from reset from the card alone. - A probe `tasks/get` against a known-stale `taskId` returns either the task or a *typed* `TaskNotFoundError` that is distinguishable from a transport failure. If your client collapses both into a generic error, the retry policy will mask the reset. - The `skills` delta is purely additive and no existing skill's `inputModes`/`outputModes` narrowed. If any condition fails, the correct interpretation is lifecycle reset, and the invariant to enforce is: *no taskId survives a card re-advertisement unless the card proves continuity*. The proof is the incarnation identifier; absent proof, continuity is assumed false. ## Decision Boundary The boundary is not "did the card change" — cards change constantly for benign reasons. The boundary is **whether the change touches any field that gates an active binding**. There are exactly three binding-gating fields in A2A v1.0: 1. `capabilities.pushNotifications` (and its auth schemes) — gates webhook validity. 2. `skills[].inputModes` / `outputModes` — gates whether a dispatched task's payload is admissible. 3. The agent's identity material (any `signature`, `jws`, or key referenced in the card) — gates whether the entity answering `tasks/get` is the entity that accepted `tasks/send`. If the re-advertised card differs in any of these three *and* you hold a live binding that depends on the old value, you are at the boundary and must take the reset branch. If the card differs only in additive `skills` or in `description`/`documentationUrl`, you may take the refresh branch. The subtle case — and the one that produced the 90-second silent window — is when the card differs in a binding-gating field but your client's diff logic only compares `skills`. A diff that does not enumerate the three gating fields will always take the refresh branch, and will always be wrong at the boundary. ## Operational Effect Taking the reset branch has a concrete, bounded cost: you must (a) mark all in-flight `taskId`s as `orphaned` and surface them to the caller rather than retrying, (b) invalidate all webhook registrations and re-register under the new `webhookAuthSchemes` before dispatching anything new, and (c) re-validate `inputModes` for every skill you intend to call. This costs one round-trip per orphaned task to confirm `TaskNotFoundError` and one re-registration per webhook target. It does not cost correctness. Taking the refresh branch at the boundary costs, in the observed case, 41 unresolvable tasks, 47 dropped notifications, and 2 mis-dispatched tasks — all silent at the moment of decision. The asymmetry is the whole argument: the reset branch is cheap and loud, the refresh branch is cheap and silent until it is expensive. The guardrail is a card-diff function that returns a tri-state — `REFRESH`, `RESET`, or `AMBIGUOUS` — and a lifecycle manager that refuses to proceed on `AMBIGUOUS` until an incarnation probe resolves it. The probe is a `tasks/get` against any held `taskId`; a typed `TaskNotFoundError` resolves to `RESET`, a returned task resolves to `REFRESH`, and a transport error leaves it `AMBIGUOUS` and blocks new dispatch. This is the invariant: *no new dispatch while any binding is in AMBIGUOUS*. ```python from dataclasses import dataclass from enum import Enum from typing import Optional class CardTransitionError(RuntimeError): """Raised when a card re-advertisement cannot be safely classified.""" class Transition(Enum): REFRESH = "refresh" RESET = "reset" AMBIGUOUS = "ambiguous" @dataclass(frozen=True) class CardView: push_auth_schemes: frozenset[str] skill_input_modes: dict[str, frozenset[str]] incarnation_nonce: Optional[str] BINDING_GATING_FIELDS = ("push_auth_schemes", "skill_input_modes", "incarnation_nonce") def classify_transition(old: CardView, new: CardView, live_bindings: bool) -> Transition: if not live_bindings: return Transition.REFRESH gating_changed = any( getattr(old, f) != getattr(new, f) for f in BINDING_GATING_FIELDS ) if not gating_changed: return Transition.REFRESH # A strictly-changed incarnation nonce is positive proof of a new entity. if old.incarnation_nonce is not None and new.incarnation_nonce is not None: if old.incarnation_nonce != new.incarnation_nonce: return Transition.RESET # Same nonce but gating fields changed: the card is internally # inconsistent and must not be trusted in either direction. return Transition.AMBIGUOUS # No usable nonce: we cannot prove continuity, so we cannot claim it. return Transition.AMBIGUOUS def resolve_ambiguous(probe_result: str) -> Transition: if probe_result == "task_found": return Transition.REFRESH if probe_result == "task_not_found_typed": return Transition.RESET raise CardTransitionError( f"incarnation probe returned '{probe_result}'; " "cannot classify card transition, blocking new dispatch" ) def apply_transition( transition: Transition, orphaned_task_ids: list[str], webhook_targets: list[str], ) -> dict: if transition is Transition.AMBIGUOUS: raise CardTransitionError( "refusing to apply AMBIGUOUS transition: " f"{len(orphaned_task_ids)} tasks and {len(webhook_targets)} " "webhooks remain bound to an unverified incarnation" ) if transition is Transition.RESET: return { "orphaned": list(orphaned_task_ids), "reregister_webhooks": list(webhook_targets), "revalidate_input_modes": True, } return {"orphaned": [], "reregister_webhooks": [], "revalidate_input_modes": False} ```