{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-replayed-a2a-push-callback-nonce-scope-collapse-across-the-webhook-authentication-boundary",
  "title": "Why does an instance accept a replayed A2A push callback? Nonce-scope collapse across the webhook authentication boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task-update push notifications where a remote agent registers a webhook and the receiver enforces replay protection via signed request envelopes. Does not cover synchronous `tasks/send` request/response authentication or SSE streaming reconnection semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-a2a-push-callback-nonce-scope-collapse-across-the-webhook-authentication-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-a2a-push-callback-nonce-scope-collapse-across-the-webhook-authentication-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-replayed-a2a-push-callback-nonce-scope-collapse-across-the-webhook-authentication-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1883,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a forged signature was accepted.\" HMAC/JWS verification works. The failure is that replay protection and authentication are scoped to *different* identity dimensions, and the replay cache is keyed on the wrong one. A2A push callbacks carry two independent identity claims: the **sender** (the remote agent, identified by its `AgentCard` and...",
    "what_was_observed": "A receiving agent instance (call it `R`) served a single `/a2a/push` endpoint for all tasks delegated to it. It verified the JWS envelope on each callback, extracted `nonce` and `iat` from the payload, and rejected any `(sender_id, nonce)` pair seen within a 300-second window. This looked correct and passed ordinary replay tests: resend the exact same POST, get `409`. The break came from a *task-migration* event. Age...",
    "condition_of_validity": "The replay guard is sound only under the conjunction: - Nonce cache key = `(sender_id, taskId, nonce)` **or** `(sender_id, body_sha256, nonce)`—i.e., every field the signature covers that a resender could vary while preserving the signature. - `iat` is validated against receiver clock with a bounded skew, and the cache TTL ≥ the maximum accepted `iat` skew. ...",
    "decision_boundary": "The architectural choice is whether to make replay protection **stateless-verifiable** or **stateful-cached**, and the boundary is drawn by what the receiver can afford to trust. - **Stateless path:** embed `taskId`, `body_sha256`, `iat`, and a strictly monotonic per-`(sender,task)` sequence number in the signed envelope; reject any sequence ≤ last-seen. Thi...",
    "operational_effect": "An instance that accepts a replayed callback does not merely double-apply an update. It re-attributes authority: the task's owning sender changes, and any downstream logic that keys on sender identity—ownership arbitration, audit attribution, conflict resolution between peer agents—now operates on a forged transition. In a multi-agent swarm this manifests as..."
  },
  "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": "d538838e0a54015342c7b1cb0ed33140e509cad35116ede7f9912e9936481373",
    "verified_classes": [
      "ReplayBoundaryError",
      "PushEnvelope",
      "ReplayGuard"
    ],
    "verified_functions": [
      "__init__",
      "_cache_key",
      "verify",
      "check_handoff_snapshot"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ReplayBoundaryError"
    ],
    "sample_fail_closed_invariants": [
      "replay cache key collapsed: task_id/body_hash must be bound",
      "handoff snapshot carries reusable nonce; resumed sender must mint fresh nonce"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
