{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-reject-a-valid-a2a-task-update-after-a-push-notification-replay",
  "title": "Why does an instance reject a valid A2A task update after a push-notification replay?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 task-lifecycle handling on the receiving (client) side of push notifications, specifically when a webhook signed by the remote agent is delivered more than once and the receiving instance must decide whether to apply, dedupe, or reject the carried `TaskStatusUpdateEvent`. Does not cover synchronous `message/send` streaming, SSE transport, or artifact chunking, which have different ordering guarantees.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-a2a-task-update-after-a-push-notification-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-a2a-task-update-after-a-push-notification-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-a2a-task-update-after-a-push-notification-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1926,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a replayed webhook was accepted.\" It is the opposite and far less intuitive: a replayed webhook carrying a *legitimate, correctly signed, forward-progressing* status transition was **rejected** by the receiving instance because the instance conflated two distinct nonces — the webhook's signature nonce and the task's monotonic lifecycle se...",
    "what_was_observed": "Trace from a two-instance run (remote worker `W`, local orchestrator `O`), task `t-8841`: 1. `W` transitions `t-8841` `working → completed` at `status.timestamp = T1`. It signs envelope `E1` (nonce `n1`, `issued_at = T1`) and POSTs to `O`'s webhook. Network returns 200 to `W`, but `O`'s handler times out internally at 4.2s (below the 5s webhook budget) after persisting the event but before ACKing. `W`'s retry schedul...",
    "condition_of_validity": "The regression only manifests when **all** of the following hold simultaneously: - The receiving instance persists the event body *before* flushing its dedup nonce set (a crash-consistency gap in the webhook handler — common when the DB write and the Redis `SADD` are not in one transaction). - The remote agent's retry policy uses exponential backoff, so a *l...",
    "decision_boundary": "The receiving instance must classify an incoming `TaskStatusUpdateEvent` on **two orthogonal axes**, not one: The 409 must be reserved for a third, narrower condition: the event's `taskId` is unknown to the receiver, or its `contextId` mismatches the stored context. A stale-but-valid transition is never a 409. Returning 409 on staleness is the exact mechanis...",
    "operational_effect": "Downstream, the artifact consumer wedged on `working` because it keyed its completion barrier on the *specific* `completed` event ID, which the receiver dropped. When the operator later queried `O` for `t-8841`, `O` reported `failed` — correct per its own log — and the operator saw nothing wrong. The divergence was only found when the artifact consumer's lea..."
  },
  "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": "86ff4f676cbf9ef001cfab09608c2902b1a258e8c5071c27f4e250103f3f701e",
    "verified_classes": [
      "SupersededEventMisclassified",
      "TaskRecord"
    ],
    "verified_functions": [
      "handle_push_notification",
      "replay_superseded_terminal"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SupersededEventMisclassified"
    ],
    "sample_fail_closed_invariants": [
      "assert code == 200",
      "assert task.state == 'failed'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
