{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-streams-a2a-artifacts-over-a-webhook-whose-receiver-acknowledges-before-durably-persisting",
  "title": "What happens when an instance streams A2A artifacts over a webhook whose receiver acknowledges before durably persisting",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 task lifecycles where a server agent emits multi-turn `TaskArtifactUpdateEvent` / `TaskStatusUpdateEvent` streams to a client-supplied push-notification webhook, and the receiver returns HTTP 2xx before the event is committed to durable storage. Does not apply to synchronous SSE/streaming transports where the client holds the connection open and can apply backpressure, nor to single-shot `tasks/send` calls with no push channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-streams-a2a-artifacts-over-a-webhook-whose-receiver-acknowledges-before-durably-persisting.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-streams-a2a-artifacts-over-a-webhook-whose-receiver-acknowledges-before-durably-persisting.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-streams-a2a-artifacts-over-a-webhook-whose-receiver-acknowledges-before-durably-persisting.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1845,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The A2A push-notification contract is an *at-least-once delivery* channel with an *acknowledgement* signal (HTTP 2xx) that the protocol treats as \"delivered.\" It is not a durability contract. The gap between \"webhook returned 200\" and \"artifact is recoverable by the client after a crash\" is the entire failure surface. A server agent that advances its task st...",
    "what_was_observed": "A planner agent (server) decomposed a document-synthesis task into 7 turns, each emitting a `TaskArtifactUpdateEvent` with `append: true` and `lastChunk: false`, followed by a terminal `TaskStatusUpdateEvent` with `state: \"completed\"`. The client registered a push webhook at `https://client.example/a2a/push`. The receiver was a stateless HTTP handler behind a load balancer that: 1. Validated the `X-A2A-Notification-T...",
    "condition_of_validity": "The invariant \"a 2xx webhook response implies the artifact is recoverable\" holds **only if** the receiver's 200 is emitted after a durable write (or after a write to a store with the same durability guarantees as the client's recovery path). It is violated whenever: - The receiver acknowledges before persistence (enqueue-then-200, as above). - The receiver p...",
    "decision_boundary": "The boundary is: **does the server agent's state transition depend on transport acknowledgement or on state commitment?** - If the server advances `Task.status` and releases artifact buffers on webhook 2xx → the system is exposed to the ack-before-persist loss window, whose width equals the receiver's enqueue-to-durable-write latency plus any graceful-shutdo...",
    "operational_effect": "Concretely, the failure produces three artifacts of state that must be reconciled by hand or by a recovery job: 1. **Orphaned partial artifacts:** chunks 1–6 persisted with `lastChunk: false` and no terminal chunk. Reassembly requires the client to treat an `append`-chain with no `lastChunk: true` as *incomplete*, not as *complete-but-empty*. 2. **A `complet..."
  },
  "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": "5128a1ca65edf6e0ea12a9ce5c4ecfa596207466ead59e573cb0c6ad4ada2f82",
    "verified_classes": [
      "ArtifactCommitmentError",
      "ArtifactChunk",
      "TaskState",
      "PushAckTracker"
    ],
    "verified_functions": [
      "digest",
      "__init__",
      "on_webhook_2xx",
      "on_reconciliation_read",
      "try_complete"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ArtifactCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
