{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abort-an-a2a-streaming-artifact-exchange-when-backpressure-stalls-partial-result-reconciliation",
  "title": "In what scenarios must an instance abort an A2A streaming artifact exchange when backpressure stalls partial-result reconciliation",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A (agent-to-agent) task streams where a producer agent emits incremental artifacts (deltas, partial tool outputs, streamed reasoning segments) over `TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent` frames and a consumer agent reconciles them into a single coherent result under flow control. Does not apply to synchronous single-shot request/response A2A calls or to MCP transport-level framing, where no reconciliation state exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-an-a2a-streaming-artifact-exchange-when-backpressure-stalls-partial-result-reconciliation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-an-a2a-streaming-artifact-exchange-when-backpressure-stalls-partial-result-reconciliation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-an-a2a-streaming-artifact-exchange-when-backpressure-stalls-partial-result-reconciliation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1856,
    "python_slice_tokens": 449,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream timed out.\" It is a **reconciliation-lag inversion**: the producer's backpressure signal (`credit`/`window`) drains slower than the consumer's *reconciliation frontier* advances, so the consumer commits a partial result that is internally consistent but **causally incomplete** — it has applied artifact fragment N while fragment...",
    "what_was_observed": "A producer agent streaming a 40-fragment structured artifact (a tool-call plan split across `append` frames) to a consumer over A2A with a sliding-window credit of 8. The consumer ran a reconciliation loop that (a) buffered fragments, (b) every 5 fragments, compacted the buffer into a running semantic summary to bound context, and (c) acknowledged with a credit top-up. Under load, the consumer's compaction step took ...",
    "condition_of_validity": "The invariant that must hold for streaming reconciliation to be safe: > **At any moment, the consumer's un-compacted, raw fragment buffer MUST cover the contiguous prefix `[ack_frontier, last_applied]` with no gaps, and `last_applied` MUST equal the producer's `sequence` watermark carried in the most recent received frame.** This holds only when three condit...",
    "decision_boundary": "The consumer must choose between **continue-and-reconcile** and **abort-and-replay** at the moment backpressure stalls. The boundary is: - **Continue** only if the raw buffer still covers `[ack_frontier, last_applied]` contiguously AND the producer's watermark equals `last_applied` AND no compaction has touched a region that a pending `patch` references. In ...",
    "operational_effect": "The guardrail is a **frontier-coverage check** executed on every reconciliation step, not only at stream end. It converts a silent truncation (checksum mismatch discovered too late, or never) into a bounded, replayable stall. The cost is throughput: deferring compaction past `ack_frontier − lookback` holds raw fragments longer, inflating context pressure pre..."
  },
  "matched_failure_symptoms": [
    "HTTP_429_BURST_STARVATION",
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "eb20b19e8f958ad0550e80ee7d3074bb2a4e327270b06c37526915c627170243",
    "verified_classes": [
      "ReconciliationFrontierViolation",
      "Fragment",
      "ConsumerState"
    ],
    "verified_functions": [
      "resume_from_frontier",
      "_raw_prefix_covers",
      "reconcile",
      "on_backpressure_stall"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ReconciliationFrontierViolation"
    ],
    "sample_fail_closed_invariants": [
      "applied frontier behind ack frontier: inconsistent consumer state",
      "replay request would target a gap; abort and request full replay",
      "stall with non-contiguous raw prefix; cannot resume safely"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
