# What structural signals indicate a signed Agent Card has been re-bound to a weaker capability manifest between discovery and task acceptance **Date of Record:** 2026 November 29 **Scope:** Applies to A2A v1.0 discovery flows where an orchestrator fetches a signed Agent Card, negotiates a task lifecycle, and a remote agent's advertised capability manifest may change between the discovery fetch and the task-acceptance handshake. Does not cover unsigned cards, static in-process agents, or transport-layer failures (TLS, DNS) that occur before any card is parsed. ## Core Distinction The failure mode is not "the signature is invalid." A signature that fails verification is the easy case: you reject and move on. The hard case is a **validly signed card whose signed payload describes a weaker capability set than the one your planner already committed to.** A2A v1.0 lets an agent serve a card with a `capabilities` block and a `signature` over that block; the signature binds the *content*, not the *version lineage*. Between your discovery fetch at `t0` and the task-acceptance negotiation at `t1`, the remote agent can legitimately re-sign a card that drops or narrows a capability (rolling deploy, feature flag flip, quota-driven degradation, or a compromised signing key used to mint a *downgraded* but internally consistent card). Every signature check passes. The planner's plan, however, was built against `t0` capabilities and is now unsound. The distinction that matters operationally: **signature validity is a per-fetch property; capability continuity is a cross-fetch invariant.** A2A v1.0 requires the former and leaves the latter to the caller. That gap is the boundary. ## What Was Observed An orchestrator discovered a remote "data-analyzer" agent card at `t0`: ``` capabilities: { "streaming": true, "tool_invocation": ["sql_execute", "csv_parse", "python_eval"], "max_task_duration_s": 600 } signature: { alg: "ed25519", key_id: "da-prod-7", sig: "..." } # verifies ``` The planner selected a multi-step plan: fetch CSV → `csv_parse` → `python_eval` for aggregation → `sql_execute` to persist. At `t1` (task negotiation), the orchestrator sent `tasks/send` with a `capability_requirements` echo of the three tools. The remote returned a task-acceptance envelope referencing a card whose `capabilities.tool_invocation` was now `["sql_execute", "csv_parse"]` — `python_eval` had been dropped by a feature flag — but the envelope's `card_signature` was a *fresh, valid* signature from `key_id: "da-prod-7"`. The orchestrator, having verified only the `t1` signature against the `t1` payload, accepted the task. At step 3 the remote rejected `python_eval` invocation with `-32601 Method not found`, the plan had no fallback, and the task deadlocked in `working` until `max_task_duration_s` expired. The signal that was missed: the `t1` card's `signature.key_id` matched, but the **signed `capabilities` digest differed from the `t0` digest the plan was compiled against**, and the task-acceptance envelope carried no `capability_digest` binding back to the discovery card. The orchestrator had a valid signature over the wrong manifest. ## Condition of Validity The invariant only holds — and the guardrail only needs to fire — under these conditions, all of which must be true: 1. The orchestrator compiles a plan that **statically references** a capability (tool name, streaming flag, duration bound) discovered from card `C0`. 2. Task negotiation at `t1` returns a card `C1` (inline or by reference) rather than reusing `C0`. 3. `C1.signature` verifies against `C1.payload` under a trusted `key_id`. 4. `digest(C0.capabilities) != digest(C1.capabilities)`. When all four hold, you are in the re-binding window. If (2) is false — the remote echoes `C0` byte-for-byte — no re-binding occurred. If (3) is false, this is a plain forgery and the standard signature check already caught it. If (4) is false, the manifest is unchanged and the plan is sound. The dangerous quadrant is exactly (3 ∧ 4): **a cryptographically valid downgrade.** The condition is *not* satisfied by cards that merely add capabilities (superset), because the plan's referenced tools still exist; it is satisfied specifically by drops and narrowings of capabilities the plan already committed to. ## Decision Boundary The boundary is a single comparison the orchestrator must perform before emitting `tasks/send`: - Compute `D0 = H(canonicalize(C0.capabilities))` at discovery, store it in the plan's immutable preamble. - On receiving `C1` at negotiation, compute `D1 = H(canonicalize(C1.capabilities))`. - Require `C1.signature` to verify over `C1` **and** require the acceptance envelope to carry a `discovery_digest` field equal to `D0`. - If `D0 == D1`: proceed. - If `D0 != D1` **and** `C1.capabilities` is a strict superset of `C0.capabilities`: proceed, but log a manifest-drift event (plan remains sound). - If `D0 != D1` **and** any capability referenced by the plan is absent or narrowed in `C1`: **do not send the task.** Re-plan against `C1` or abort. The subtlety: a valid signature is *necessary but not sufficient*. The decision boundary is not "does the signature verify" but "does the signed manifest still cover every capability the plan statically depends on." A2A v1.0's `card_signature` field does not carry a lineage pointer, so the binding must be reconstructed by the caller via the `discovery_digest` echo. If the remote does not echo `discovery_digest`, treat `D1` as unbound and re-plan defensively rather than trusting the fresh signature. ## Operational Effect Without the digest binding, the orchestrator's failure is silent and late: the plan compiles, the task is accepted, and the capability gap surfaces only when a specific tool is invoked mid-plan — producing error-compounding across subsequent steps and, in the observed case, a `working`-state deadlock that consumed the full 600s budget. With the binding enforced, the failure is loud and early: the orchestrator rejects the negotiation at `t1` with a capability-continuity violation, re-plans against `C1`, and never enters a plan that references a vanished tool. The invariant to hold: **a signed capability manifest is only as trustworthy as the digest that binds it to the plan that consumed it.** Signature verification answers "who said this"; the digest binding answers "is this the same thing I planned against." A2A v1.0 gives you the first and requires you to construct the second. ```python import hashlib import json from dataclasses import dataclass from typing import Any class CapabilityContinuityError(RuntimeError): """Raised when a re-signed card weakens a capability the plan depends on.""" @dataclass(frozen=True) class SignedCard: capabilities: dict[str, Any] key_id: str signature: bytes def canonical_digest(self) -> str: payload = json.dumps(self.capabilities, sort_keys=True, separators=(",", ":")) return hashlib.sha256(payload.encode()).hexdigest() def verify_signature(card: SignedCard, trusted_keys: dict[str, bytes]) -> bool: # Placeholder for ed25519 verify; returns True iff key is trusted and sig matches. return card.key_id in trusted_keys and bool(card.signature) def _referenced_capabilities(plan: dict[str, Any]) -> set[str]: return set(plan.get("required_tools", [])) def negotiate_task( plan: dict[str, Any], discovery_card: SignedCard, acceptance_card: SignedCard, acceptance_envelope: dict[str, Any], trusted_keys: dict[str, bytes], ) -> None: d0 = discovery_card.canonical_digest() d1 = acceptance_card.canonical_digest() if not verify_signature(acceptance_card, trusted_keys): raise CapabilityContinuityError( f"acceptance card signature invalid for key_id={acceptance_card.key_id}" ) echoed = acceptance_envelope.get("discovery_digest") if echoed is None: raise CapabilityContinuityError( "acceptance envelope missing discovery_digest; cannot bind C1 to plan preamble" ) if echoed != d0: raise CapabilityContinuityError( f"discovery_digest mismatch: plan bound to {d0[:12]}, envelope echoes {echoed[:12]}" ) if d0 != d1: required = _referenced_capabilities(plan) available = set(acceptance_card.capabilities.get("tool_invocation", [])) missing = required - available if missing: raise CapabilityContinuityError( f"validly re-signed card dropped plan-required capabilities: {sorted(missing)}" ) # Plan is sound against the acceptance card; safe to emit tasks/send. ```