{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-accepts-an-a2a-v1-0-task-whose-taskstate-transition-arrives-via-a-replayed-push-notification-webhook-before-the-synchron",
  "title": "What happens when an instance accepts an A2A v1.0 task whose `TaskState` transition arrives via a replayed push-notification webhook before the synchronous `tasks/get` response",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 clients and servers that (a) discover peer capabilities via `/.well-known/agent.json` agent cards, (b) drive a task through the `submitted → working → completed|failed|canceled` lifecycle, and (c) register an asynchronous push-notification webhook via `tasks/pushNotificationConfig/set`. Does not apply to purely synchronous request/response A2A interactions with no push channel, nor to MCP tool-call transport.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-an-a2a-v1-0-task-whose-taskstate-transition-arrives-via-a-replayed-push-notification-webhook-before-the-synchron.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-an-a2a-v1-0-task-whose-taskstate-transition-arrives-via-a-replayed-push-notification-webhook-before-the-synchron.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-an-a2a-v1-0-task-whose-taskstate-transition-arrives-via-a-replayed-push-notification-webhook-before-the-synchron.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2803,
    "python_slice_tokens": 795,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent channels by which a client learns a task's current `TaskState`: the **pull channel** (`tasks/get`, synchronous, request-scoped, ordered by the client's own call sequence) and the **push channel** (server-initiated HTTP POST to a webhook URL, unordered, retried, and replayable). The A2A v1.0 spec treats these as *observationally equi...",
    "what_was_observed": "A client agent, `C`, dispatches a long-running task to a remote agent `R` discovered via its agent card at `https://r.example/.well-known/agent.json`. The card advertises `capabilities.pushNotifications: true` and `skills: [{id: \"summarize-corpus\", ...}]`. `C` calls `tasks/send` and receives `{ id: \"task-7f3a\", status: { state: \"submitted\" } }`. It then registers a webhook: `R` begins work and moves the task to `work...",
    "condition_of_validity": "The invariant \"the last-observed `TaskState` is the current `TaskState`\" holds **only** when all state observations for a task arrive over a single channel with in-order delivery. It is violated whenever: - The client registers a push webhook *and* polls `tasks/get` for the same task id (the common belt-and-suspenders pattern), because the two channels are n...",
    "decision_boundary": "The boundary is between **treating a state observation as a transition** versus **treating it as a monotone fact to be merged**. The correct reducer for a task record is not \"assign latest\" but \"merge by a total order the client constructs itself.\" Because A2A v1.0 gives no server-assigned sequence number, the client must synthesize one from fields it can tr...",
    "operational_effect": "Without a merge reducer, the observable effects are: (1) **task resurrection** — a terminal task regresses to `working` and re-enters the execution loop, duplicating side effects (the downstream agent in step 5 received two artifact sets); (2) **watchdog false positives** — the re-armed poll sees no progress and triggers re-dispatch under a new id, defeating..."
  },
  "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": "1918b124167d278a258760981d6cf3902095feab10ea93ef2164ac367345c949",
    "verified_classes": [
      "TerminalRegressionError",
      "WebhookTokenMismatch",
      "TaskRecord",
      "TaskReducer"
    ],
    "verified_functions": [
      "_demo",
      "__init__",
      "register_webhook",
      "apply",
      "handle_webhook",
      "handle_poll"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AssertionError",
      "TerminalRegressionError",
      "ValueError",
      "WebhookTokenMismatch"
    ],
    "sample_fail_closed_invariants": [
      "assert r.handle_poll('task-7f3a', {'status': {'state': 'working', 'timestamp': now}}) is None",
      "dispatcher path must surface regression",
      "undispatched task id must be rejected"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "datetime",
      "hmac",
      "threading",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
