{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-receives-a-push-notification-for-a-task-it-has-already-terminalized-the-a2a-v1-0-artifact-reconciliation-race",
  "title": "What happens when an instance receives a push notification for a task it has already terminalized: the A2A v1.0 artifact-reconciliation race",
  "date_of_record": "2026 November 22",
  "scope": "Applies to A2A v1.0 agents that combine (a) `tasks/pushNotificationConfig` webhook delivery with (b) a local task store that permits terminal-state transitions (`completed`, `failed`, `canceled`) to be entered before all inbound push events for that task have been drained. Does not apply to purely pull-based `tasks/get` polling clients, nor to agents that never emit artifacts in `working` state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-receives-a-push-notification-for-a-task-it-has-already-terminalized-the-a2a-v1-0-artifact-reconciliation-race.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-receives-a-push-notification-for-a-task-it-has-already-terminalized-the-a2a-v1-0-artifact-reconciliation-race.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-receives-a-push-notification-for-a-task-it-has-already-terminalized-the-a2a-v1-0-artifact-reconciliation-race.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1883,
    "python_slice_tokens": 417,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **task lifecycle terminality** and **artifact stream quiescence**. In A2A v1.0, a task's `status.state` transition to a terminal value (`completed`/`failed`/`canceled`) is a *state-machine* event, owned by the remote agent and observed by the client via `TaskStatusUpdateEvent`. The artifacts belonging to that task are ...",
    "what_was_observed": "A three-agent pipeline: a planner agent (framework A, TypeScript) dispatches a document-synthesis task to a worker agent (framework B, Python) over A2A v1.0 with a push notification config pointing at the planner's webhook. The worker emits, in order: 1. `TaskStatusUpdateEvent { state: \"working\" }` 2. `TaskArtifactUpdateEvent { artifact: {artifactId: \"draft\", parts: [...]}, append: false, lastChunk: false }` 3. `Task...",
    "condition_of_validity": "This failure requires the conjunction of four conditions, and it is *bounded* (preventable) only when at least one is broken: 1. **Out-of-order push delivery across event classes.** The transport does not serialize status and artifact events on a single ordered channel. A2A v1.0 specifies push payloads but leaves ordering to the transport; HTTP POST-per-even...",
    "decision_boundary": "The operational decision is: **when does a client declare a task's artifact set closed?** - **Wrong boundary (observed):** close on `state ∈ {completed, failed, canceled}`. Cheap, matches the naive reading of the state machine, and is wrong under out-of-order push. - **Correct boundary:** close on `terminal_status_observed AND push_watermark ≥ terminal_event...",
    "operational_effect": "The effect is a **silent, non-deterministic artifact truncation** whose probability scales with push retry rate, which scales with ingress load and concurrent task volume. It is invisible to the worker (all events eventually delivered, all 200s), invisible to the planner's error budget (no exceptions), and visible only as a downstream data-completeness defec..."
  },
  "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": "52ad40d71b82341b90c04bcd08d6ea0a62340044cdf1840bee1126a9b06c5277",
    "verified_classes": [
      "ArtifactReconciliationError",
      "TaskState",
      "TaskRecord"
    ],
    "verified_functions": [
      "on_status_event",
      "on_artifact_event",
      "_advance_watermark",
      "_maybe_finalize",
      "reconcile"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArtifactReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
