{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-push-notification-rebinding-from-resurrecting-a-terminal-a2a-task-after-agent-card-re-discovery",
  "title": "Which invariants prevent push-notification rebinding from resurrecting a terminal A2A task after Agent Card re-discovery",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 clients and servers where a task's push-notification `webhookUrl` is bound at task creation and the remote Agent Card may be re-fetched (cache expiry, `/.well-known/agent.json` rotation, or explicit refresh) during the task's lifetime. Does not cover synchronous request/response-only agents that never bind a push channel, nor multi-hop A2A relay topologies where an intermediary rewrites `taskId`.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-push-notification-rebinding-from-resurrecting-a-terminal-a2a-task-after-agent-card-re-discovery.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-push-notification-rebinding-from-resurrecting-a-terminal-a2a-task-after-agent-card-re-discovery.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-push-notification-rebinding-from-resurrecting-a-terminal-a2a-task-after-agent-card-re-discovery.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"webhook delivery failed.\" It is **identity re-resolution racing terminal state**. In A2A v1.0 a client binds a push channel by passing `pushNotification.webhookUrl` (and optionally `authentication`) at `tasks/send` or `tasks/sendSubscribe`. The server stores that binding keyed by `taskId`. Separately, the client may re-fetch the Agent Car...",
    "what_was_observed": "Trace from a controlled reproduction with a conformant A2A v1.0 server: 1. Client issues `tasks/send` with `pushNotification.webhookUrl = https://a.example/hook`, `taskId = T1`. Server returns state `submitted`, stores binding `B1 = (T1, a.example)`. 2. Task progresses to `working`. The client's Agent Card cache for the remote agent expires (TTL 300s) mid-task. 3. Server finishes: emits `completed` to `a.example`. De...",
    "condition_of_validity": "The invariant holds only under these conditions, and the failure is *bounded* (not eliminated) when any is violated: - **Terminal-state sealing is monotonic on the server.** Once a task reaches `completed`/`failed`/`canceled`, no new `(taskId, webhookUrl)` binding may be created for that `taskId`, regardless of URL novelty. Servers that key bindings by `task...",
    "decision_boundary": "The decision the client must make on card re-discovery is **not** \"should I re-assert my binding?\" but \"does my local task state permit a binding mutation?\" Concretely: - If local state ∈ {`submitted`, `working`, `input-required`} → card re-fetch may *validate* the existing binding (confirm `capabilities.pushNotifications` still true and the card's `url` sti...",
    "operational_effect": "When the invariant is enforced, the failure mode collapses to a bounded, observable event: a duplicate terminal push that the receiver drops on `eventId` mismatch, with no state mutation. When it is not enforced, the effects compound: - **Spurious state resurrection** in client stores, which propagates to any downstream consumer keyed on state transitions (d..."
  },
  "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": "677ae06eb702d1b4aed923db3bdd0fc1646ce7af3e4a52b6cb72f00bfe965a5d",
    "verified_classes": [
      "TerminalTaskRebindError"
    ],
    "verified_functions": [
      "bind_push_channel",
      "on_agent_card_refresh"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TerminalTaskRebindError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
