{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-discovered-a2a-agent-card-whose-capabilities-block-verifies-under-the-signature-but-whose-extensions-array-was-truncate",
  "title": "When must an instance reject a discovered A2A Agent Card whose `capabilities` block verifies under the signature but whose `extensions[]` array was truncated by the discovery layer before signature verification",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 cross-vendor delegation where an Agent Card is fetched over HTTP, canonically serialized, and verified against a detached JWS (`agentCardSignature`) before any task is dispatched. Does not apply to intra-tenant cards pinned by digest out-of-band, nor to A2A deployments that transport the full card inside a signed envelope end-to-end.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-discovered-a2a-agent-card-whose-capabilities-block-verifies-under-the-signature-but-whose-extensions-array-was-truncate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-discovered-a2a-agent-card-whose-capabilities-block-verifies-under-the-signature-but-whose-extensions-array-was-truncate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-discovered-a2a-agent-card-whose-capabilities-block-verifies-under-the-signature-but-whose-extensions-array-was-truncate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1736,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature is invalid.\" The failure is that **signature validity is a property of a byte string, while capability sufficiency is a property of a parsed object** — and the A2A v1.0 discovery path lets those two artifacts diverge. A verifier that checks the JWS over the `capabilities` block in isolation will accept a card that, once you ...",
    "what_was_observed": "Cross-vendor delegation, caller on A2A v1.0, remote vendor's card served at `/.well-known/agent.json`. The card declared: The caller's fetch helper (`fetch_and_verify_card`) did: 1. `resp = http.get(url)`; `raw = resp.text` 2. `card = json.loads(raw)` 3. `projected = {k: card[k] for k in (\"name\",\"capabilities\",\"skills\",\"url\")}` — **`extensions` not in the tuple** 4. `verify_jws(json.dumps(projected, sort_keys=True, s...",
    "condition_of_validity": "The guardrail is valid only under these conditions: - The discovery client MUST retain the exact response bytes (or a hash of them) from the well-known endpoint and MUST pass those bytes, unmodified, to the JWS verification routine. No `json.loads`/`json.dumps` round-trip between fetch and verify. - The canonicalization profile used for verification MUST be ...",
    "decision_boundary": "The boundary is: **does the verifier's input byte string equal the discovery response byte string?** - If yes: the signature attests to the full card, `extensions[]` is authenticated, and the planner may trust `capabilities` and `extensions` together. - If no: the signature attests to *something the caller constructed*. It is not evidence about the remote ag...",
    "operational_effect": "Delegations gated on projection-verified cards fail in one of two ways, both bad: 1. **Silent capability inflation.** The caller believes the remote declared extensions it never did (because the projection dropped the array and the planner defaulted to \"assume standard\"). The task proceeds until the first extension-gated operation, then fails at an unrecover..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "05c321c79d4a320fec0b9826e7be1215944e5cf196c79e9f126d0ccdd52335b9",
    "verified_classes": [
      "AgentCardProjectionError",
      "ExtensionNotDeclaredError",
      "VerifiedCard"
    ],
    "verified_functions": [
      "fetch_and_verify",
      "assert_no_projection",
      "check_delegation_eligibility"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AgentCardProjectionError",
      "ExtensionNotDeclaredError"
    ],
    "sample_fail_closed_invariants": [
      "JWS failed over raw discovery bytes",
      "capability decision referenced a projection, not the verified bytes"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
