# When must an instance refuse a delegated A2A task it can technically execute: capability-claim drift and the unsound delegation boundary **Date of Record:** 2026 November 29 **Scope:** Applies to A2A v1.0 task delegation where a delegating agent selects a peer from its cached Agent Card and dispatches a task based on declared `skills`/`capabilities`, without a post-delegation capability re-verification. Does not apply to statically wired, single-tenant peer registries where cards are pinned at deploy time and never mutate. ## Core Distinction The non-obvious boundary is not "can this agent execute the task" but "is the executing agent's *current* capability state still the one the delegator's cached Agent Card asserts." A2A v1.0 treats the Agent Card as a discovery artifact fetched at `/.well-known/agent.json`, and capability negotiation as a one-time match at delegation time. There is no mandatory re-attestation of skill availability between card fetch and task dispatch, and no protocol-level field that lets the executor say "I still advertise `skill X` but I am currently unable to honor its declared constraints." The failure mode is **capability-claim drift**: the executor's advertised skill surface (model version, tool bindings, context budget, auth scope) has degraded or changed since card publication, but the card still matches the delegator's routing predicate. The delegator dispatches; the executor accepts because the schema still validates; the task then fails *inside* execution, after state has been committed to a task ID that the delegator believes is healthy. The invariant that breaks is: *a successful capability negotiation must imply the executor can satisfy the skill's declared preconditions for the full duration of the task.* A2A v1.0 guarantees only point-in-time schema compatibility, not duration-bounded capability fidelity. This is distinct from ordinary tool failure. A tool returning an error is observable and recoverable. Capability-claim drift produces a *silent acceptance followed by partial execution*, which corrupts the delegator's task-state model. ## What Was Observed A three-agent topology: an orchestrator (`O`), a planning peer (`P`), and a retrieval/execution peer (`E`). `O` fetched `E`'s Agent Card at T0, which declared skill `document.extract` with `capabilities.streaming: true` and an implicit context budget of 128k tokens (encoded only in a free-text `description` field, not a machine-checkable constraint). At T1, `E` was rolled to a smaller-context model to relieve load; its card was not republished because the roll did not change the skill *name* or input/output schema. At T2, `O` delegated a 96k-token extraction task. The A2A handshake succeeded: schema match, auth scope match, `streaming: true` honored. `E` accepted the task and returned a `Task` in `working` state. At T3, `E` hit its actual 32k context ceiling, truncated the input, and completed the task with a `completed` state and a *plausible but incomplete* extraction. No error was raised. `O`'s task-state model recorded a successful delegation. Observed trace: 1. `O` → `E`: `tasks/send` with `skill: document.extract`, 96k payload. 2. `E` → `O`: `Task{state: working, id: t-4471}` — accepted, no precondition check against actual context budget. 3. `E` internally: input exceeds real budget → silent truncation → partial extraction. 4. `E` → `O`: `Task{state: completed, artifacts: [partial]}`. 5. `O` treats `t-4471` as ground truth; downstream synthesis inherits the omission. The delegation boundary is unsound because the *accept* decision at step 2 was made against a cached claim, not against live capability. The executor had no obligation—and no protocol field—to reject a task it could not fully honor. ## Condition of Validity The delegation is only sound when all of the following hold: - The Agent Card's skill declaration carries machine-checkable preconditions (context budget, required tool bindings, model class), not free-text descriptions. - The delegator re-validates those preconditions against the *task payload* before dispatch, and the executor re-validates them against its *live* state on accept. - The executor is permitted—by protocol and by contract—to return a terminal `rejected` state with a `capability_mismatch` reason rather than accepting and degrading. - Card mutations that alter preconditions trigger a version bump that invalidates caches (`card.version` participates in the routing predicate). When any of these is absent, the delegation is operating outside the condition of validity, and the delegator must treat executor `completed` states as unverified until an independent check confirms the artifact satisfies the skill's declared preconditions. ## Decision Boundary The decision boundary is the point at which an executor *can technically execute* a task but *cannot honor its declared preconditions*. The rule: - If the executor's live preconditions ⊇ task requirements → accept and execute. - If the executor's live preconditions ⊂ task requirements but the schema still validates → **reject at accept time**, do not degrade silently. - If the executor cannot determine its live preconditions (e.g., tool binding state unknown) → reject with `capability_indeterminate`; acceptance under uncertainty is the drift vector. For the delegator, the symmetric rule: a cached card is a *routing hint*, not an *execution warrant*. The warrant to trust a `completed` artifact requires either (a) a precondition-checked accept, or (b) post-hoc artifact validation against the skill's declared guarantees. Absent both, the artifact is provisional. ## Operational Effect Without the boundary, capability-claim drift produces *silent partial success*—the most expensive failure class in multi-agent systems, because it is indistinguishable from success at the protocol layer and only surfaces downstream as unexplained quality loss or contradictory synthesis. The delegator's task-state model, its episodic memory of "what `E` can do," and its routing cache all become poisoned simultaneously: it will keep delegating to `E` because `E` keeps returning `completed`. The guardrail is a two-sided precondition contract: cards must carry machine-checkable skill preconditions, executors must reject on live-precondition shortfall, and delegators must treat unverified `completed` states as provisional until artifact validation passes. This converts a silent degradation into an explicit `rejected`/`capability_mismatch` transition that the delegator can route around. ```python from dataclasses import dataclass, field from typing import Optional class CapabilityClaimDriftError(RuntimeError): """Raised when an executor accepts a task whose requirements exceed its live preconditions, or when a delegator trusts an unverified completion.""" pass @dataclass class AgentCard: skill: str card_version: int declared_context_budget: int # machine-checkable precondition declared_tool_bindings: frozenset[str] @dataclass class LiveCapability: context_budget: int tool_bindings: frozenset[str] @dataclass class DelegatedTask: task_id: str skill: str payload_tokens: int required_tools: frozenset[str] card_version_seen: int state: str = "pending" reason: Optional[str] = None def accept_task(card: AgentCard, live: LiveCapability, task: DelegatedTask) -> DelegatedTask: # 1. Card version must match what the delegator routed against. if task.card_version_seen != card.card_version: task.state = "rejected" task.reason = "stale_card_version" raise CapabilityClaimDriftError( f"task {task.task_id}: delegator routed on card v{task.card_version_seen}, " f"executor is at v{card.card_version}; renegotiate before dispatch" ) # 2. Live preconditions must dominate the task requirements. if task.payload_tokens > live.context_budget: task.state = "rejected" task.reason = "context_budget_shortfall" raise CapabilityClaimDriftError( f"task {task.task_id}: requires {task.payload_tokens} tokens, " f"live budget {live.context_budget}; refusing silent truncation" ) if not task.required_tools.issubset(live.tool_bindings): task.state = "rejected" task.reason = "tool_binding_missing" raise CapabilityClaimDriftError( f"task {task.task_id}: missing tools {task.required_tools - live.tool_bindings}" ) task.state = "working" return task def trust_completed(task: DelegatedTask, artifact_validated: bool) -> None: if task.state != "completed": raise CapabilityClaimDriftError(f"task {task.task_id} not completed") if not artifact_validated: raise CapabilityClaimDriftError( f"task {task.task_id}: completed without precondition-checked accept " f"or artifact validation; artifact is provisional, do not propagate" ) ```