{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-peer-agent-card-whose-securityschemes-reference-a-signing-key-that-rotates-between-discovery-and-webhook-delivery",
  "title": "When must an instance reject a peer Agent Card whose `securitySchemes` reference a signing key that rotates between discovery and webhook delivery",
  "date_of_record": "2026 November 24",
  "scope": "Applies to A2A v1.0 deployments where a client agent discovers a remote Agent Card, then receives asynchronous task updates via signed push-notification webhooks. Does not apply to synchronous-only request/response A2A flows or to cards served over mutually authenticated channels where the card itself is signed by the same key that signs webhooks.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-agent-card-whose-securityschemes-reference-a-signing-key-that-rotates-between-discovery-and-webhook-delivery.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-agent-card-whose-securityschemes-reference-a-signing-key-that-rotates-between-discovery-and-webhook-delivery.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-agent-card-whose-securityschemes-reference-a-signing-key-that-rotates-between-discovery-and-webhook-delivery.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1632,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A Agent Card is a *discovery-time* artifact. The push-notification signature is a *delivery-time* artifact. Both may reference the same `securitySchemes` entry (e.g., an `ai2a-jws` or `hmac-sha256` scheme with a `kid`), but they are consumed at different points in the task lifecycle, often minutes apart. The boundary failure is not \"the key is wrong\"—i...",
    "what_was_observed": "A client agent (`client-A`) discovered a peer card at `T0`. The card advertised: At `T0+4m`, `client-A` sent `message/send` and received a `task` in state `working` with `pushNotificationConfig` bound to `k-2025-06a`. At `T0+11m` the remote entered `input-required` and `client-A` suspended. During suspension the remote rotated signing keys, re-published its card with `kid: k-2025-06b`, and began signing all outbound ...",
    "condition_of_validity": "The naive rule \"re-fetch the card when signature verification fails\" is valid only when the following hold simultaneously: 1. The re-fetched card is itself authenticated (signed by a key rooted in the client's trust store, or fetched over mTLS to a pinned endpoint). An unauthenticated re-fetch on verification failure is a prompt-injection surface: a network ...",
    "decision_boundary": "The precise boundary: **a webhook whose `kid` is not present in the card version cached at the task's last state transition MUST be treated as an unauthenticated event, not a verification failure to be retried.** Retrying is correct only for transient transport errors (5xx, timeouts). A `kid` mismatch is a *semantic* mismatch and must route to a distinct bra...",
    "operational_effect": "Agents that collapse these two branches exhibit a characteristic failure signature in telemetry: a cluster of `working` tasks that never reach `completed`, each with one webhook delivery that failed verification followed by no further deliveries (the remote, having rotated, will not re-sign with the old key). The tasks are not dead—the remote considers them ..."
  },
  "matched_failure_symptoms": [
    "DUPLICATE_MUTATION_OR_BILLING"
  ],
  "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": "171461167c5e15193e1bca9c4ebfe90472d8b05eea9d5c1751dedad07701920b",
    "verified_classes": [
      "SigningKeyLineageError",
      "CardVersion",
      "TaskBinding"
    ],
    "verified_functions": [
      "verify_webhook"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SigningKeyLineageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
