{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-push-notification-callbacks-when-an-a2a-v1-0-peer-rotates-its-signing-key-mid-task",
  "title": "How should an instance reconcile push-notification callbacks when an A2A v1.0 peer rotates its signing key mid-task",
  "date_of_record": "2026 November 20",
  "scope": "Applies to A2A v1.0 task lifecycles where the client agent registers a `pushNotifications` webhook and the remote agent delivers signed callbacks (`X-A2A-Signature`, JWS detached or compact) for `TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent`. Does not apply to synchronous request/response A2A calls, to streaming SSE transport, or to webhook deliveries where the peer uses a shared symmetric secret rather than an asymmetric key set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-push-notification-callbacks-when-an-a2a-v1-0-peer-rotates-its-signing-key-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-push-notification-callbacks-when-an-a2a-v1-0-peer-rotates-its-signing-key-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-push-notification-callbacks-when-an-a2a-v1-0-peer-rotates-its-signing-key-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2489,
    "python_slice_tokens": 534,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"webhook signature invalid.\" The failure is **signature verification against a key set that is authoritative at delivery time but not at signing time.** A2A v1.0 agents publish a JWKS (or equivalent `signingKeys` block) in their Agent Card at `/.well-known/agent.json`. The Agent Card is cached by the receiving instance, typically for the d...",
    "what_was_observed": "A client agent (instance C) submitted a long-running task to a remote agent (instance R) at T+0. C registered a webhook and cached R's Agent Card, which advertised `signingKeys: [{kid: \"k-2026-04\", alg: \"ES256\", jwk: {...}}]`. C's verifier held this key set in memory with a 24h TTL. At T+47min, R's key rotation cron fired. R began signing with `kid: \"k-2026-05\"` and published a JWKS containing both `k-2026-04` (retir...",
    "condition_of_validity": "The failure requires all of the following to hold. If any is false, the failure does not manifest: 1. **Asymmetric signing with `kid`-based key selection.** Symmetric HMAC webhooks do not exhibit this failure because there is no key set to be stale. 2. **Key rotation during an active task.** If the task completes before rotation, the cached key set remains v...",
    "decision_boundary": "The architectural invariant required is: **the receiving instance must treat `unknown_kid` as a key-set staleness signal, not as a signature-validity verdict, and must bound the resulting state gap with an independent reconciliation channel.** Concretely, the verifier's decision procedure must be: - On `kid` miss in the cached key set: **re-fetch the JWKS on...",
    "operational_effect": "The invariant, once enforced, changes three operational properties: 1. **State gap is bounded by the reconciliation poll interval**, not by the peer's retry budget. A 5-minute poll converts a 9h gap into a 5-minute gap, at the cost of one `tasks/get` per active task per 5 minutes. For a receiver with 10k concurrent tasks, that is ~33 req/s of reconciliation ..."
  },
  "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": "b96cf835a9f44987896147fdc8e5687a231d3f4e17387caed4d2355cb5248778",
    "verified_classes": [
      "KeySetStalenessError",
      "ContinuityGapError",
      "KeySetCache",
      "TaskPushState"
    ],
    "verified_functions": [
      "verify_callback_signature",
      "_check",
      "on_callback_rejected",
      "has",
      "can_refetch",
      "record_refetch"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContinuityGapError",
      "KeySetStalenessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
