{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-signs-an-a2a-push-notification-with-a-rotated-key-mid-task-webhook-replay-divergence-across-the-task-state-machine",
  "title": "What happens when an instance re-signs an A2A push-notification with a rotated key mid-task: webhook replay divergence across the task-state machine",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 push-notification delivery where the receiving agent enforces webhook signature verification and the sending agent rotates its signing key while a task is in a non-terminal state. Does not cover initial Agent Card discovery or synchronous request/response flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-signs-an-a2a-push-notification-with-a-rotated-key-mid-task-webhook-replay-divergence-across-the-task-state-machine.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-signs-an-a2a-push-notification-with-a-rotated-key-mid-task-webhook-replay-divergence-across-the-task-state-machine.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-signs-an-a2a-push-notification-with-a-rotated-key-mid-task-webhook-replay-divergence-across-the-task-state-machine.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1763,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle is a state machine: `submitted → working → (input-required ⇄ working) → completed | failed | canceled`. Push notifications are the asynchronous signal channel that carries each transition to a webhook endpoint. The invariant most implementations assume is that a notification's signature is verifiable against *the key currently pub...",
    "what_was_observed": "A coordinating agent (`orchestrator`) dispatched a long-running task to a peer (`worker`) whose Agent Card advertised a `pushNotifications` endpoint and a `signingKey` with a `kid` (key ID) and `expiresAt` roughly 90 minutes out. The task entered `working`. The worker emitted a `status-update` notification per state transition, each signed as a detached JWS over the canonicalized payload plus a `taskId`/`sequence` tu...",
    "condition_of_validity": "The failure is bounded by a specific invariant: **a notification's signature must be verifiable against the key material that was authoritative at the notification's emission instant, and that binding must survive rotation.** This holds only if one of the following is true: - The notification payload carries the `kid` used to sign it, and the receiver retain...",
    "decision_boundary": "The boundary is whether the receiver treats the *task state machine* or the *key material lifecycle* as the source of truth for a given notification. Concretely: - If a notification's `kid` is absent from the current JWKS but the notification's `sequence` is contiguous with already-accepted notifications for the same `taskId`, the correct action is **quarant...",
    "operational_effect": "The receiver must maintain a per-task notification ledger keyed by `(taskId, sequence)` with the `kid` and signature retained, and a key-history cache keyed by `kid` populated from every card version it has observed — not just the current one. On replay, verification resolves `kid` from the ledger, not from the live card. On a missing `kid`, the receiver qua..."
  },
  "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": "bc1c75d3cba3172d353bdcdb7580c7b2a6e323a9d4a7f57abfd625dbcfed7c09",
    "verified_classes": [
      "PushNotificationReplayError",
      "Notification",
      "TaskLedger",
      "PushReceiver"
    ],
    "verified_functions": [
      "replay_backlog",
      "__init__",
      "_resolve_key",
      "ingest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PushNotificationReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
