{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-reject-a-valid-a2a-v1-0-push-notification-webhook-after-task-resurrection-the-taskid-vs-contextid-reattachment-invariant",
  "title": "Why does an instance reject a valid A2A v1.0 push-notification webhook after task resurrection — the `taskId`-vs-`contextId` reattachment invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 servers that emit `TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent` push notifications to a client-registered webhook, and to clients that reattach to a task after a server-side restart, `input-required` resume, or `canceled`→`working` transition. Does not cover streaming (`message/stream`) transport, which carries its own resumption semantics.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-a2a-v1-0-push-notification-webhook-after-task-resurrection-the-taskid-vs-contextid-reattachment-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-a2a-v1-0-push-notification-webhook-after-task-resurrection-the-taskid-vs-contextid-reattachment-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-reject-a-valid-a2a-v1-0-push-notification-webhook-after-task-resurrection-the-taskid-vs-contextid-reattachment-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1995,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a webhook delivery failure and not an authentication failure. It is a **notification affinity failure**: the server holds two independently-mutable identifiers per task — the immutable `taskId` and the conversation-scoped `contextId` — and A2A v1.0 permits a task to be *resumed into a new context* (e.g., after `input-required` on a server ...",
    "what_was_observed": "Trace on a two-node A2A server behind a sticky-less load balancer, task lifecycle `submitted → working → input-required → working → completed` with a server restart injected between the two `working` states: 1. Client calls `tasks/send` with `pushNotificationConfig: {url, token}` and no explicit `taskId` (it doesn't exist yet). Server mints `taskId=T1`, `contextId=C1`, persists config `{configId=P1, taskId:T1, contex...",
    "condition_of_validity": "This failure requires all of the following to hold simultaneously: - The server's push-notification dispatcher resolves configs by `contextId` as the primary key (or by `contextId` exclusively when the client supplied only `contextId` at registration). - The task lifecycle includes at least one transition that mutates `contextId` while preserving `taskId` — ...",
    "decision_boundary": "The boundary is whether the client treats `pushNotificationConfig` as **task-scoped** or **context-scoped**, and whether the server enforces that choice. - **Task-scoped (correct):** config identity is `(taskId, configId)`; `contextId` is metadata. Dispatcher resolves `taskId → configs`, then filters by `contextId` only if multiple configs exist. Resurrectio...",
    "operational_effect": "During the silent window (step 5), the client's task view diverges from the server's. Any client that gates on webhook receipt (rather than polling `tasks/get`) will hang until its own timeout, then either re-register (creating the duplicate) or abandon the task (leaving it `working` on the server until the server's own task TTL reaps it). For a task that is..."
  },
  "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": "63e22626528474db8fd065a02760873151a82e28f602f08e1353c5aff91b1644",
    "verified_classes": [
      "PushConfigAffinityError",
      "PushConfig",
      "TaskRecord",
      "Dispatcher"
    ],
    "verified_functions": [
      "register",
      "dispatch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PushConfigAffinityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
