# Under what conditions must an instance reject a peer's Agent Card whose signature verifies but whose `capabilities.streaming` claim contradicts the transport binding actually negotiated **Date of Record:** 2026 November 30 **Scope:** Applies to A2A v1.0 task delegation where the callee is discovered via a signed Agent Card fetched over a separate control-plane channel from the runtime that will actually execute the task. Does not apply to single-process tool invocation, nor to A2A deployments where the Card and the executor share one trust domain and one process boundary. ## Core Distinction The distinction that matters is between *signature validity* and *claim fidelity*. An Agent Card is a signed JSON-LD document advertising capabilities (`streaming`, `pushNotifications`, `stateTransitionHistory`, `mediaTypes`, `skills[]`). The signature attests that the publisher's key signed *these bytes*. It does not attest that the runtime behind the Card can honor those bytes. In heterogeneous fleets—where the Card is minted by a gateway/discovery service but the task is executed by a worker pool with a different build, a different protocol shim, or a feature flag that was flipped after the Card was cached—the signed claim and the negotiated behavior can diverge silently. The non-obvious failure: a Card whose Ed25519/JWS signature verifies perfectly can still be *operationally stale or semantically false* relative to the transport that the A2A handshake actually lands on. Signature verification is necessary but not sufficient. The delegating instance must additionally enforce a **claim-to-binding invariant**: every capability bit the delegator will *depend on* must be re-confirmed against the negotiated transport, not merely read from the signed Card. ## What Was Observed A delegator agent (`D`) discovered a callee (`C`) via a registry, fetched `C`'s Agent Card, and verified the detached JWS against `C`'s published `jku`. Verification passed. The Card declared: ``` "capabilities": { "streaming": true, "pushNotifications": true, "stateTransitionHistory": true }, "defaultInputModes": ["text/plain", "application/json"], "defaultOutputModes": ["text/plain", "application/json"] ``` `D` then opened a task with `message/stream` (SSE) because the Card said streaming was supported, and because `D`'s planner had committed to incremental token consumption for a long-running summarization task. The HTTP POST returned `200` with `Content-Type: application/json`—not `text/event-stream`. The body was a single `Task` object with `status.state: "submitted"` and no `artifact` stream. Root cause chain: 1. The Card was minted by `C`'s **control-plane gateway** (build `g-2026.03`), which genuinely supports SSE. 2. The task was routed by that gateway to a **worker pool** (`w-2026.01`) behind a feature flag `A2A_STREAMING=off`, because the pool was mid-rollout and the flag had been disabled to shed load from a noisy neighbor. 3. The gateway did not re-stamp or re-sign the Card; it served the cached, signed document. The signature was over the *advertised* capability set, not the *effective* one. 4. `D`'s A2A client treated the non-SSE `200` as a transport-level success and the `Task` payload as the complete response, then began polling `tasks/get`—but `C`'s worker pool had `stateTransitionHistory: false` in its effective config, so `tasks/get` returned only the current state with no history. `D`'s verifier, which expected to replay transitions to confirm the artifact lineage, had nothing to replay. The observable symptom was not an error. It was a **silent downgrade**: `D` completed the task, emitted an artifact, and marked the delegation `SUCCEEDED`—while its own audit trail had a hole where the streaming transcript and the transition history should have been. A downstream auditor later flagged the artifact as unverifiable because the lineage replay was empty. The signature on the Card was valid the entire time. The deeper observation: `D` had conflated two distinct trust questions—"did `C` sign this Card?" and "will `C` honor this Card *on the transport I am about to use*?" The first was answered by crypto. The second was never asked. ## Condition of Validity The invariant holds—i.e., it is safe to trust the signed Card's capability claims without re-confirmation—only when **all** of the following are true: 1. **Single trust domain.** The Card issuer and the task executor are the same process, or share a release cadence such that the Card is regenerated on every executor deploy. In a heterogeneous fleet with a gateway/worker split, this fails. 2. **Card TTL ≤ capability-change latency.** The Card's `cache-control`/`expires` must be shorter than the fastest path by which an executor's effective capabilities can change. A feature flag flip is a capability change with ~zero latency; a 1-hour Card cache violates this. 3. **Transport binding is asserted in the Card.** The Card must name the transport(s) it will actually negotiate (`transport: "sse" | "jsonrpc" | "grpc"`), not just a boolean `streaming`. A boolean is a *claim about a capability*; a transport name is a *claim about a binding*. The former cannot be checked against the wire; the latter can. 4. **Negotiated response is checked against the claim before the delegator commits state.** The delegator must inspect the actual `Content-Type` and framing of the first response and, on mismatch, treat the delegation as *failed-closed*, not *succeeded-degraded*. When any of these is false—which is the normal condition in a multi-runtime A2A deployment—the delegator must treat the signed Card as a *hint*, not an *assertion*, for every capability bit it will depend on. The bits it will not depend on (e.g., `pushNotifications` when the delegator only polls) may be trusted without re-confirmation, because a false positive there is inert. ## Decision Boundary The boundary is drawn at the moment of **transport commitment**, not at the moment of Card verification. Concretely, the delegator's state machine must have a distinct `NEGOTIATED` state between `CARD_VERIFIED` and `TASK_SUBMITTED`, and the transition `NEGOTIATED → TASK_SUBMITTED` must be gated on a `claim_satisfied(binding, card)` predicate. The predicate is asymmetric by capability: - **Streaming:** if `card.capabilities.streaming == true` and the delegator chose `message/stream`, the first response MUST have `Content-Type: text/event-stream`. A `200` with `application/json` is a **binding mismatch**, not a valid task ack. The delegator must abort and re-delegate (or fall back to `message/send` *only if its own planner permits non-streaming*—which is a policy decision, not a transport decision). - **State transition history:** if `card.capabilities.stateTransitionHistory == true` and the delegator's verifier requires replay, the first `tasks/get` MUST include a non-empty `history` array. An empty history on a task that has already transitioned is a **history-claim violation**. - **Push notifications:** if `card.capabilities.pushNotifications == true` and the delegator registered a webhook, the callee MUST either deliver within the declared `pushNotificationConfig` window or return a `TaskPushNotificationConfig` rejection. Silence past the window is a violation. The boundary is *not* "did the Card verify?" It is "did the negotiated wire behavior match the specific claim the delegator is about to depend on?" A delegator that checks only the former will, under load-shedding or mid-rollout conditions, silently accept a degraded callee and produce unverifiable artifacts. There is a second-order boundary: the delegator must **not** re-sign or forward the callee's Card to a third agent as if it were authoritative. If `D` passes `C`'s Card to `E` during a multi-hop delegation, `E` inherits the same false claim. The invariant must propagate: any Card forwarded across a hop must carry the *re-confirmed* binding, or be explicitly marked `binding_unverified`. ## Operational Effect The practical effect is that A2A delegators must implement a **capability re-confirmation gate** that is orthogonal to signature verification and that runs on every task, not just on first discovery. This changes the cost model: Card verification is O(1) per cache window; binding re-confirmation is O(1) per task and cannot be cached, because the effective capability set is a function of the executor's live state. The second effect is on failure semantics. A binding mismatch must be classified as a **delegation failure**, not a **transport warning**. If it is downgraded to a warning, the delegator's planner will proceed with a partially-satisfied contract and emit artifacts whose lineage cannot be replayed—exactly the silent-downgrade observed above. The correct behavior is to raise a typed error that the delegator's retry/fallback policy can branch on: retry against the same callee with a re-fetched Card, fall back to a different callee, or escalate to the delegator's own supervisor. The third effect is on the registry. Registries that serve signed Cards from a cache must expose a `capability_epoch` field that the executor bumps on every effective-capability change, and the Card must be re-signed when the epoch changes. Without this, the signature is a seal on a document that no longer describes the system—cryptographically valid, operationally false. ```python import json from dataclasses import dataclass from typing import Literal class CapabilityBindingMismatch(RuntimeError): """Raised when a signed Agent Card's claim does not match the negotiated transport.""" pass @dataclass(frozen=True) class AgentCard: agent_id: str signature_valid: bool streaming: bool state_transition_history: bool push_notifications: bool capability_epoch: int @dataclass(frozen=True) class NegotiatedBinding: content_type: str # e.g. "text/event-stream" or "application/json" history_present: bool push_delivered: bool def confirm_binding( card: AgentCard, binding: NegotiatedBinding, *, delegator_requires_streaming: bool, delegator_requires_history_replay: bool, delegator_requires_push: bool, ) -> None: """ Enforce the claim-to-binding invariant. Signature validity is necessary but NOT sufficient: every capability bit the delegator depends on must be re-confirmed against the wire behavior actually negotiated. """ if not card.signature_valid: raise CapabilityBindingMismatch( f"card for {card.agent_id} failed signature verification" ) # Streaming claim vs. actual framing. if delegator_requires_streaming: if not card.streaming: raise CapabilityBindingMismatch( f"{card.agent_id} card does not advertise streaming; " f"delegator requires it" ) if binding.content_type != "text/event-stream": raise CapabilityBindingMismatch( f"{card.agent_id} card claims streaming=true (epoch " f"{card.capability_epoch}) but negotiated Content-Type was " f"{binding.content_type!r}; silent downgrade refused" ) # State-transition-history claim vs. actual replay payload. if delegator_requires_history_replay: if not card.state_transition_history: raise CapabilityBindingMismatch( f"{card.agent_id} card does not advertise " f"stateTransitionHistory; delegator requires replay" ) if not binding.history_present: raise CapabilityBindingMismatch( f"{card.agent_id} card claims stateTransitionHistory=true " f"(epoch {card.capability_epoch}) but tasks/get returned " f"empty history; lineage replay impossible" ) # Push-notification claim vs. actual delivery. if delegator_requires_push: if not card.push_notifications: raise CapabilityBindingMismatch( f"{card.agent_id} card does not advertise pushNotifications" ) if not binding.push_delivered: raise CapabilityBindingMismatch( f"{card.agent_id} card claims pushNotifications=true " f"(epoch {card.capability_epoch}) but no delivery within " f"declared window" ) def delegate(card: AgentCard, binding: NegotiatedBinding) -> str: confirm_binding( card, binding, delegator_requires_streaming=True, delegator_requires_history_replay=True, delegator_requires_push=False, # delegator only polls; inert if false ) return "TASK_SUBMITTED" if __name__ == "__main__": # Reproduces the observed silent downgrade: signature valid, streaming # claimed, but the wire returned application/json. stale_card = AgentCard( agent_id="callee-worker-pool-01", signature_valid=True, streaming=True, state_transition_history=True, push_notifications=True, capability_epoch=41, ) negotiated = NegotiatedBinding( content_type="application/json", history_present=False, push_delivered=False, ) try: delegate(stale_card, negotiated) except CapabilityBindingMismatch as e: print(f"REFUSED delegation: {e}") ```