{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-an-a2a-v1-0-tasks-resubscribe-after-a-webhook-binding-has-already-been-pushed-the-push-notification-epoch-gap-and-the-ter",
  "title": "How should an instance treat an A2A v1.0 `tasks/resubscribe` after a webhook binding has already been pushed: the push-notification epoch gap and the terminal-state resurrection hazard",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any A2A v1.0 client instance that has previously registered a push-notification webhook via `tasks/pushNotificationConfig/set` and subsequently re-enters a task via `tasks/resubscribe` or `tasks/get`. Does not apply to pure polling clients that never bind a webhook, nor to tasks that never left the `submitted` state before binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-an-a2a-v1-0-tasks-resubscribe-after-a-webhook-binding-has-already-been-pushed-the-push-notification-epoch-gap-and-the-ter.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-an-a2a-v1-0-tasks-resubscribe-after-a-webhook-binding-has-already-been-pushed-the-push-notification-epoch-gap-and-the-ter.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-an-a2a-v1-0-tasks-resubscribe-after-a-webhook-binding-has-already-been-pushed-the-push-notification-epoch-gap-and-the-ter.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2351,
    "python_slice_tokens": 432,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A v1.0 task lifecycle is a monotone state machine over `{submitted, working, input-required, completed, failed, canceled}`. The push-notification binding is a *separate, weakly-coupled* channel that carries state transitions out-of-band to a webhook URL. The critical distinction an instance must internalize is this: **the SSE stream returned by `tasks/...",
    "what_was_observed": "A client instance bound a webhook at task creation (config A, `pushNotificationConfig.id=\"cfg-a\"`). The agent moved the task `submitted → working → input-required`. The client's webhook receiver recorded `working` and `input-required` events with `status.timestamp` values `t=1000` and `t=1042`. The client then, per its reconnect logic, called `tasks/resubscribe` on the same task ID to obtain a live SSE stream while i...",
    "condition_of_validity": "The hazard is bounded and predictable. It triggers if and only if all of the following hold: 1. A webhook binding exists (`pushNotificationConfig` is set) for the task. 2. The client performs a `pushNotificationConfig/set` (rotation, re-auth, or URL change) while the task is in a non-terminal state. 3. The task emits at least one transition between the `set`...",
    "decision_boundary": "The decision an instance must make on every `tasks/resubscribe` connect, when a webhook binding is present: - **If the task is in a terminal state (`completed`, `failed`, `canceled`) and the webhook has already delivered that terminal state:** do not open the SSE stream. Resubscribe on a terminal task with a live webhook is pure duplicate risk and, worse, ca...",
    "operational_effect": "Downstream of the mis-merge, three concrete failures propagate: 1. **Spurious abandonment alerts.** Interval-based heuristics (`input-required` with no `working` follow-up within N seconds) fire because the gap-filling `working` event was discarded. The client reports task abandonment on a task that is actively working. 2. **Terminal-state resurrection.** If..."
  },
  "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": "4e47c1ec04186127ead989c32ada740b55c7d8c51ee3b2a6f41cbc66269c9759",
    "verified_classes": [
      "Channel",
      "TaskState",
      "EpochGapError",
      "TerminalResurrectionError",
      "Transition",
      "TaskProjection"
    ],
    "verified_functions": [
      "resubscribe",
      "apply",
      "record_rotation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EpochGapError",
      "TerminalResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
