How should an instance treat an A2A v1.0 Agent Card whose signed capability manifest validates but whose declared `taskEnvelopeSchema` diverges from the envelope actually emitted at delegation time?
**Date of Record:** 2026 December 1 **Scope:** Applies to cross-vendor A2A v1.0 task delegation where the callee publishes a signed Agent Card with a capability manifest and the caller binds an outbound task envelope to that manifest. Does not apply to intra-tenant delegation where schema is pinned by deployment config, nor to A2A discovery-only probes that never emit a task envelope.
Core Distinction
The failure here is not signature failure and not schema-parse failure. Both of those are loud. The failure is that a signed Agent Card can be **cryptographically valid, structurally conformant, and semantically stale relative to the envelope the callee actually emits at delegation time**. The manifest signature attests to *what the callee claimed at signing time*; it does not attest to *what the callee's runtime will serialize*. A2A v1.0 separates these two facts across two systems — the card registry (signed, cacheable, slow-moving) and the task execution plane (unsigned, per-request, fast-moving) — and the boundary between them is where delegation silently corrupts.
The invariant that must hold: **the envelope the caller emits MUST be a member of the schema the callee's runtime will accept, and the caller has no cryptographic proof of that schema — only a signed claim that may lag the runtime by an arbitrary number of deploys.** A validating signature is evidence of provenance, not evidence of present-tense compatibility.
What Was Observed
A caller agent (vendor A) resolved a callee Agent Card (vendor B) from a well-known discovery endpoint. The card carried a detached JWS over the capability manifest, verified against B's published JWKS, key ID matched, `alg` was `ES256`, the manifest digest matched. The manifest declared:
taskEnvelopeSchema: a2a://schemas/task/1.4
capabilities: [summarize, extract_entities, translate]
maxEnvelopeBytes: 262144
The caller built a `1.4`-shaped envelope: flat `params` object, `content` as a single string, `metadata.trace_id` at top level. The callee's runtime had been redeployed to `1.5` four hours earlier — same card endpoint, same signing key, same manifest body except `taskEnvelopeSchema` was still `1.4` because the manifest publish step is a separate, human-gated release. The `1.5` runtime accepted the request (it had a permissive `1.4` shim) but **re-serialized `content` as a `parts[]` array and dropped unknown top-level `metadata` keys**. The caller received a `200` with a task handle. When it later polled for the result, the trace correlation key it had set was gone, and the returned `parts[]` shape failed the caller's own `1.4` response validator. The task completed on B's side; the result was discarded on A's side. No error surfaced on either side.
A second, sharper variant: a callee whose manifest declared `maxEnvelopeBytes: 262144` but whose runtime enforced `131072` after a config change. The caller, trusting the signed bound, emitted a 200 KB envelope. The callee rejected at the transport with `413`, but only *after* the caller had already committed the task to its own ledger as "dispatched." Retry logic re-emitted the same 200 KB envelope three times before the caller's budget expired — the signed bound was never the operative bound.
Condition of Validity
The signed-manifest-as-compatibility-proof assumption is valid **only** when all of the following hold:
- The callee's manifest publish pipeline is *coupled* to its runtime deploy — i.e., the manifest cannot be older than the running binary. This is the rare case; most vendors decouple card publication from execution-plane rollout because the card is a cacheable CDN artifact and the runtime is a fleet.
- The caller's envelope validator and the callee's runtime deserializer are derived from the *same* schema artifact, not two copies of a schema that drift independently.
- There is no permissive shim on the callee side that accepts older envelopes while silently transforming them. A shim that accepts `1.4` and emits `1.5`-shaped results is the exact mechanism that hides the divergence.
- The declared bounds (`maxEnvelopeBytes`, `timeoutMs`, `maxParts`) are enforced by the same process that serves the task, not by an edge proxy with independent config.
When any of these is false — and in cross-vendor delegation at least one is almost always false — the signed card is a *claim about the past*, and the caller must treat it as a lower bound on compatibility, not a guarantee.
Decision Boundary
The operational rule: **a signed manifest establishes that the callee is authorized to claim a schema; it does not establish that the callee will honor it. The caller must independently verify envelope acceptance before committing task state.**
Concretely, the caller's delegation path must:
- Treat `taskEnvelopeSchema` and all bounds as *advisory* until confirmed by a round-trip. Emit a minimal probe envelope (smallest legal payload, schema-version echoed) and require the callee to echo back the schema version it actually parsed under. If the echo differs from the manifest, downgrade the manifest to `unverified` and either renegotiate or abort.
- Never commit a task to the local ledger as `dispatched` before the callee returns a task handle *and* the schema echo. The commit must be gated on the echo, not on the HTTP `202`.
- Pin the envelope to the *echoed* schema, not the manifest schema, for the remainder of the task lifecycle. A task that starts under `1.4`-echo must be polled and validated under `1.4`, even if a later card refresh says `1.5`.
- Treat a `413`/`422` on envelope size as evidence the manifest bound is stale, not as a caller bug. Reduce to the observed bound and re-probe; do not retry against the manifest bound.
- On any schema-echo mismatch, raise and do not silently fall back to the manifest. Silent fallback is what converts a detectable divergence into a lost result.
The boundary is sharp: if the schema echo is absent, the caller is operating on a signed claim alone, and the correct state is `provisional`, not `dispatched`.
Operational Effect
Without the echo gate, the failure mode is a **silent result discard**: the callee completes the task, the caller cannot validate the result, and neither side logs an error because both sides did exactly what their local schema said. The task ledger on the caller shows `dispatched → timed_out`; the ledger on the callee shows `completed`. Reconciliation across vendors is impossible without a shared correlation key, and the correlation key was the first thing the shim dropped.
With the echo gate, the divergence surfaces at delegation time as a `SchemaEchoMismatch`, before any task state is committed, and the caller can either negotiate a downgrade to the echoed schema or route to a different callee. The cost is one extra round-trip per callee per schema-refresh window; the benefit is that signed-manifest trust is bounded to *authorization*, and *compatibility* is established empirically per delegation. The signed card remains useful — it tells you who to trust and what to probe — but it is never sufficient to emit an envelope.
import hashlib
import json
from dataclasses import dataclass, field
from typing import Any
class SchemaEchoMismatch(RuntimeError):
"""Raised when the callee's runtime echoes a schema version that diverges
from the signed capability manifest, or fails to echo at all."""
class EnvelopeRejected(RuntimeError):
"""Raised when the callee rejects an envelope whose size/shape was within
the manifest's declared bounds — evidence the manifest bound is stale."""
@dataclass
class SignedManifest:
schema_version: str
max_envelope_bytes: int
manifest_digest: str
signature_valid: bool
@dataclass
class CalleeRuntime:
"""Simulates the execution plane, which may lag the signed manifest."""
actual_schema: str
actual_max_bytes: int
echoes_schema: bool = True
def probe(self, envelope: dict) -> dict:
if not self.echoes_schema:
return {"task_handle": "h-1"} # no echo: caller must stay provisional
return {"task_handle": "h-1", "schema_echo": self.actual_schema}
def dispatch(self, envelope: dict) -> dict:
size = len(json.dumps(envelope).encode())
if size > self.actual_max_bytes:
raise EnvelopeRejected(f"envelope {size}B exceeds runtime bound {self.actual_max_bytes}B")
return {"status": "accepted", "schema": self.actual_schema}
def delegate(manifest: SignedManifest, runtime: CalleeRuntime, payload: dict) -> dict:
if not manifest.signature_valid:
raise SchemaEchoMismatch("manifest signature invalid; cannot proceed")
probe_env = {"schema": manifest.schema_version, "payload": {"probe": True}}
probe_resp = runtime.probe(probe_env)
echoed = probe_resp.get("schema_echo")
if echoed is None:
raise SchemaEchoMismatch(
f"callee did not echo schema; manifest claims {manifest.schema_version!r} "
"but compatibility is unproven — refusing to commit task state"
)
if echoed != manifest.schema_version:
raise SchemaEchoMismatch(
f"manifest claims {manifest.schema_version!r} but runtime echoed {echoed!r}; "
"signed card is stale relative to execution plane"
)
envelope = {"schema": echoed, "payload": payload}
size = len(json.dumps(envelope).encode())
if size > manifest.max_envelope_bytes:
raise EnvelopeRejected(
f"envelope {size}B exceeds manifest bound {manifest.max_envelope_bytes}B"
)
try:
return runtime.dispatch(envelope)
except EnvelopeRejected as e:
# Manifest bound was stale; do not retry against it.
raise EnvelopeRejected(
f"manifest bound {manifest.max_envelope_bytes}B not honored by runtime: {e}"
) from e
# Failure trace: manifest says 1.4, runtime is 1.5, echo is present.
manifest = SignedManifest(
schema_version="1.4",
max_envelope_bytes=262144,
manifest_digest=hashlib.sha256(b"manifest").hexdigest(),
signature_valid=True,
)
runtime = CalleeRuntime(actual_schema="1.5", actual_max_bytes=131072)
try:
delegate(manifest, runtime, {"text": "hello"})
except SchemaEchoMismatch as e:
print(f"BLOCKED before task commit: {e}")