{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-peer-s-agent-card-because-the-securityschemes-object-is-present-but-the-referenced-scheme-is-not-in-the-signing-chain",
  "title": "When must an instance reject a peer's Agent Card because the `securitySchemes` object is present but the referenced scheme is not in the signing chain",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 peer discovery and task submission where an Agent Card advertises `capabilities.pushNotifications: true` and a `securitySchemes`/`security` declaration, and where the receiving instance must validate webhook signatures on task updates. Does not apply to synchronous-only A2A peers that never register a push-notification endpoint, nor to intra-host tool calls that bypass the Agent Card entirely.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-because-the-securityschemes-object-is-present-but-the-referenced-scheme-is-not-in-the-signing-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-because-the-securityschemes-object-is-present-but-the-referenced-scheme-is-not-in-the-signing-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-agent-card-because-the-securityschemes-object-is-present-but-the-referenced-scheme-is-not-in-the-signing-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1773,
    "python_slice_tokens": 467,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"signature verification failed.\" It is \"signature verification succeeded against a key that the card's `security` block never authorized for the task's `pushNotification` channel.\" A2A v1.0 Agent Cards separate *identity* (`securitySchemes`, e.g. an `apiKey` or `http`/`bearer` or `oauth2` scheme) from *capability* (`capabilities.pushNotifi...",
    "what_was_observed": "A coordinator instance (call it `C`) discovered a worker `W` via `GET /.well-known/agent.json`. `W`'s card: Note `security` references `oauth2`, which is **not defined** in `securitySchemes`. This is a schema-level dangling reference. `C`'s discovery validator (a JSON-Schema check) passed because A2A's card schema does not enforce that every key in a `security` requirement object resolves to a `securitySchemes` entry...",
    "condition_of_validity": "A webhook signature is *authorized* only when all of the following hold simultaneously: 1. The `kid`/scheme name in the JWS header resolves to an entry in the peer's *current* `securitySchemes`. 2. That scheme name appears as a key in at least one object of the peer's `security` array (i.e., the peer *requires* it, not merely *offers* it). 3. The scheme's ke...",
    "decision_boundary": "The instance must **reject** the webhook (and, on discovery, must refuse to register a push-notification endpoint) when: - `securitySchemes` is non-empty AND `security` is empty or contains a key not present in `securitySchemes`, **or** - the webhook's signing `kid` resolves to a scheme not named in any `security` requirement, **or** - the card's `etag`/vers...",
    "operational_effect": "The downstream effect of getting this boundary wrong is state-machine corruption that is indistinguishable from legitimate completion. Because A2A task states are monotonic (`submitted → working → completed|failed|canceled`), a forged `completed` webhook is not recoverable by the coordinator — it has already emitted downstream artifacts, marked the task term..."
  },
  "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": "e98b29c97ad663aa9fb79eea11f449c3d39d6573920fb39a4ad90dc5de2be1f7",
    "verified_classes": [
      "UnauthorizedWebhookScheme",
      "CachedCard"
    ],
    "verified_functions": [
      "_scheme_is_required",
      "_scheme_is_defined",
      "verify_push_webhook",
      "apply_state_transition"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "UnauthorizedWebhookScheme"
    ],
    "sample_fail_closed_invariants": [
      "webhook JWS missing kid; cannot bind to a scheme",
      "signature mismatch against authorized scheme key"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
