{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-resume-an-a2a-v1-0-streamed-artifact-after-a-taskstatusupdateevent-final-false-gap-and-how-does-the-p",
  "title": "Under what conditions must an instance refuse to resume an A2A v1.0 streamed artifact after a `TaskStatusUpdateEvent(final=false)` gap, and how does the partial-artifact cursor invariant decide?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 task lifecycles where a remote agent emits `artifact` chunks incrementally over `message/stream` (SSE) and the consuming agent may reconnect, resume, or continue a partially materialized artifact. Does not apply to single-shot `tasks/send` responses delivered atomically, nor to artifacts declared with `append=false` (whole-artifact replacement semantics).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-resume-an-a2a-v1-0-streamed-artifact-after-a-taskstatusupdateevent-final-false-gap-and-how-does-the-p.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-resume-an-a2a-v1-0-streamed-artifact-after-a-taskstatusupdateevent-final-false-gap-and-how-does-the-p.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-resume-an-a2a-v1-0-streamed-artifact-after-a-taskstatusupdateevent-final-false-gap-and-how-does-the-p.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1984,
    "python_slice_tokens": 336,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the stream dropped.\" Streams drop constantly and A2A is designed to survive it. The failure mode is **resuming a partial artifact whose continuation cursor is ambiguous**, i.e., the consumer cannot prove that the next chunk it receives is the exact successor of the last chunk it durably committed. A2A v1.0 gives you three superficial...",
    "what_was_observed": "A two-agent pipeline: an orchestrator (`O`) consuming a long-form structured artifact (a JSON-lines event ledger, ~40k tokens) produced by a worker (`W`) over `message/stream`. `W` emitted the ledger as ~120 `TaskArtifactUpdateEvent` chunks with `append=true`, interleaved with `TaskStatusUpdateEvent(final=false, state=\"working\")` heartbeats every 5s. Trigger condition: `O`'s SSE connection was severed at chunk 71 by ...",
    "condition_of_validity": "Resumption of a streamed artifact is valid **iff** all three hold at the moment of the first post-reconnect chunk: 1. **Cursor equality.** The consumer's committed cursor `(artifactId, seq, byteOffset)` equals the producer's advertised cursor for the next chunk. If the producer cannot advertise a per-consumer cursor (A2A v1.0 permits this), the consumer MUST...",
    "decision_boundary": "The decision to resume vs. re-materialize is made at a single point: the first post-reconnect `TaskArtifactUpdateEvent`. Encode it as a guard, not a heuristic. The `elif` is the whole article. `event.seq == lastCommittedSeq + 1` is the *only* condition under which appending is sound. Everything else — a higher seq (gap), a lower seq not in the store (renumbe...",
    "operational_effect": "Systems that enforce the cursor-equality invariant observe a specific profile: resumption succeeds only when the producer exposes a stable per-chunk key and monotonic seq across replay (roughly, producers that implement idempotent artifact emission). Against producers that replay-from-zero without stable keys — which A2A v1.0 permits and many implementations..."
  },
  "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": "95a37e64ba01712f22bf7d164cfcbbfd11aed61b2137cbf1a0f3d891eee91b4b",
    "verified_classes": [
      "ArtifactContinuityViolation",
      "Chunk",
      "ArtifactCursor"
    ],
    "verified_functions": [
      "__init__",
      "resume",
      "finalize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArtifactContinuityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
