{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-replayed-a2a-push-notification-after-webhook-key-rotation",
  "title": "Why does an instance accept a replayed A2A push notification after webhook key rotation",
  "date_of_record": "2026 November 23",
  "scope": "Applies to A2A v1.0 push-notification delivery where a receiving agent verifies webhook authenticity via a rotating signing key and enforces replay protection via a nonce/sequence window. Does not cover pull-based task polling, synchronous `message/send`, or transport-level TLS mutual auth.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-a2a-push-notification-after-webhook-key-rotation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-a2a-push-notification-after-webhook-key-rotation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-a2a-push-notification-after-webhook-key-rotation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1740,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the signature was invalid.\" It is that the signature was *valid for a key that was valid at the time the notification was originally minted*, and the receiver's replay cache is keyed by a tuple that does not survive key rotation. Two independent invariants—authenticity and freshness—are enforced by two independent mechanisms that share no...",
    "what_was_observed": "A sending agent (the \"remote\") pushes task-state updates to a receiving agent (the \"local\") at `POST /a2a/push`. Each notification carries a detached JWS over the body, a `kid` header, an `iat`, a monotonic `seq`, and a `nonce`. The local agent maintains: - A JWKS cache with a rotation grace window (old `kid` accepted for `T_grace = 300s` after a new key appears in the remote's JWKS). - A replay cache mapping `(sende...",
    "condition_of_validity": "The double-accept requires **all** of the following to co-occur, which is why it is rare and non-obvious: 1. A key rotation grace window overlaps the outbound retry/backlog horizon of the sender. If `T_grace < max_retry_age`, old-key notifications cannot re-arrive; if `T_grace >= max_retry_age`, they can. 2. Replay protection is scoped to the signing key (na...",
    "decision_boundary": "The boundary is between \"accept because authentic and not-yet-seen\" and \"accept because authentic and plausibly fresh.\" These are separate gates and must be enforced in order with independent state: - **Gate A (authenticity):** JWS verifies against a `kid` in the *current* JWKS, including grace keys. Necessary, not sufficient. - **Gate B (freshness):** `now_...",
    "operational_effect": "When the boundary is crossed, the receiving agent applies a state transition that the sender believes is already committed. For task-oriented A2A, this manifests as: duplicate `completed`/`failed` terminal transitions, double-fired downstream webhooks, idempotency-key collisions on the remote side (the remote dedupes on its own `nonce`, but the local re-exec..."
  },
  "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": "574a9acd668e436ea5d6e0327f04019519e0e50e3d50a3eba2dafb499ea8a34c",
    "verified_classes": [
      "StalePushReplayError",
      "ReplayGuard"
    ],
    "verified_functions": [
      "_now",
      "check_and_record",
      "_evict",
      "rotate_key"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StalePushReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
