# How should an instance treat a stale Agent Card's `capabilities` bitmap as a lying contract during A2A delegation **Date of Record:** 2026 November 22 **Scope:** Applies to A2A v1.0 task delegation where the delegating instance resolves a peer Agent Card from a cache or registry and then issues a `tasks/send` against the declared `skills` and `capabilities`. Does not cover same-process tool calls or MCP-only tool invocation, where capability negotiation is synchronous and per-call. ## Core Distinction The failure is not "the remote agent is down" and it is not "schema validation rejected the payload." Both of those are loud. The failure is that an Agent Card is a *self-asserted, time-decaying advertisement*, and A2A v1.0 delegation semantics treat the card's `capabilities` and `skills` entries as if they were an immutable contract for the duration of the task. They are not. A card fetched at delegation time `t0` describes a remote agent configuration that may have been redeployed, had a skill disabled, or had its model swapped between `t0` and the moment the delegated task actually executes at `t0 + Δ`. The sharp mechanism: **the delegated task is accepted with a `submitted`/`working` state transition even when the remote no longer implements the requested skill**, because A2A task acceptance is decoupled from skill resolution. The remote's task handler admits the envelope (the envelope only validates against the *generic* task schema, not the skill-specific payload schema), then fails or silently degrades *inside* its own reasoning loop. The delegating instance sees `working`, holds the task open, and burns its own token budget waiting on a peer that is reasoning about a capability it does not have. The invariant that must hold: *a card's skill declaration is only trustworthy within a bounded freshness window, and task acceptance is not evidence of skill availability.* Delegation must bind the request to a verified skill resolution, not to card presence. ## What Was Observed A delegating instance (`orch-1`) resolved `peer-finance-agent`'s card from a local registry cache with `last_fetched = t0 - 41m`. The card declared `skills: [{id: "reconcile_ledger", inputModes: ["application/json"]}]` and `capabilities.streaming: true`. `orch-1` issued `tasks/send` with a `reconcile_ledger` payload. The remote returned a task object with `status.state = "working"` and a valid `taskId`. `orch-1` entered its wait loop, polling `tasks/get` every 2s, capped at 180s. At `t0 + 90s` the remote's task transitioned to `failed` with a generic `status.message`: `"unsupported operation"`. The remote had been redeployed 30 minutes earlier with `reconcile_ledger` removed from its card and its handler replaced by a fallback that accepts any task envelope and fails at dispatch. The remote's *new* card (which `orch-1` never refetched) no longer listed the skill. The observable cost: 90 seconds of wall-clock, ~14k tokens of `orch-1`'s own reasoning spent constructing and re-validating the payload, and a downstream planner that had already committed a dependent subtask on the assumption that `reconcile_ledger` would return structured output. The failure surfaced as a *timeout-shaped* error, not a *capability-shaped* error, so `orch-1`'s retry policy classified it as transient and retried twice against the same dead skill before giving up. The key non-obvious observation: **the remote's `working` state was not a lie about progress — it was a lie about capability.** The remote genuinely entered `working` because its generic envelope handler accepted the task. Skill resolution happened later, inside the handler, where it could only fail, not reject. ## Condition of Validity The "card is a contract" assumption holds only when all three of the following are true: 1. **Freshness:** the card was fetched within the remote's advertised redeploy cadence. If the remote publishes no `card.ttl` or redeploy signal, no freshness bound exists and the assumption is void. 2. **Skill-scoped acceptance:** the remote's task handler validates the *skill-specific* payload schema at `tasks/send` time, not at dispatch time. A2A v1.0 permits either; only the former gives you a capability-shaped rejection. 3. **No silent skill substitution:** the remote does not replace a removed skill with a permissive fallback handler. Many do, because a permissive handler keeps the task queue from erroring on unknown envelopes. When any of these is false, the card is an *advertisement*, not a contract, and delegation must treat acceptance as provisional. The delegating instance must carry its own skill-resolution check rather than inferring resolution from `working`. ## Decision Boundary The boundary is between **delegating on card presence** and **delegating on verified skill resolution**. The decision rule: - If the card is within freshness window AND the remote's `tasks/send` response echoes a skill-resolution acknowledgment (a `skillId` in the task metadata, or a capability-shaped rejection path), delegate directly and treat `working` as progress. - If the card is stale OR the remote does not echo skill resolution, the delegating instance must issue a **capability probe** as a separate, cheap, bounded task *before* committing the real payload — or must structure the delegation so that a skill-miss is distinguishable from a timeout. - If neither is possible, the delegating instance must not commit dependent subtasks on the assumption of skill availability; it must gate downstream planning on the first successful structured output, not on task acceptance. The boundary is crossed the moment a delegating instance schedules a dependent subtask on the strength of a `working` state alone. That is the exact point where a stale card's lie propagates into the delegator's own plan. ## Operational Effect Concretely, an instance that respects the boundary does three things differently: 1. **Refetches the card at delegation time, not at planning time.** The card used to *plan* a subtask is not the card used to *delegate* it. The gap between planning and delegation is where redeploys land. 2. **Classifies `failed` with `"unsupported operation"` as a capability error, not a transient error.** This changes the retry policy: no retry against the same peer, immediate re-resolution of the card, and a planner-visible signal that the skill is gone. A timeout-shaped error would have triggered two useless retries. 3. **Treats the remote's `working` state as evidence of envelope acceptance only.** It does not advance its own plan state machine on `working`; it advances on the first structured artifact or on a skill-resolution acknowledgment. This bounds the blast radius of a stale card to a single task, not a dependent subtree. The invariant to encode: *a card's skill set is a cacheable advertisement with a mandatory freshness bound; a task's `working` state is not a capability confirmation.* Delegation that violates this invariant converts a remote redeploy into a delegator-side timeout storm and a planner-side false commitment. ```python class StaleAgentCardDelegationError(RuntimeError): """Raised when delegation proceeds against a card whose skill declaration is stale or unverified at send time.""" pass class AgentCard: def __init__(self, peer_id, skills, fetched_at, ttl_seconds): self.peer_id = peer_id self.skills = set(skills) self.fetched_at = fetched_at self.ttl_seconds = ttl_seconds def is_fresh(self, now): return (now - self.fetched_at) <= self.ttl_seconds def declares(self, skill_id): return skill_id in self.skills def delegate_task(card, skill_id, payload, now, remote_echoes_skill_resolution): # Invariant: never delegate on card presence alone when the card # is stale or the remote does not echo skill resolution. if not card.is_fresh(now): if not remote_echoes_skill_resolution: raise StaleAgentCardDelegationError( f"card for {card.peer_id} is stale " f"(age={(now - card.fetched_at)}s > ttl={card.ttl_seconds}s) " f"and remote does not echo skill resolution; " f"refusing to delegate {skill_id} on advertisement alone" ) if not card.declares(skill_id): raise StaleAgentCardDelegationError( f"card for {card.peer_id} does not declare skill {skill_id}; " f"refusing to send" ) # Acceptance is provisional: caller must NOT advance its plan on # 'working' unless remote_echoes_skill_resolution is True. return { "peer_id": card.peer_id, "skill_id": skill_id, "payload": payload, "acceptance_is_provisional": not remote_echoes_skill_resolution, } ```