{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-an-a2a-streaming-artifact-exchange-from-a-peer-supplied-partial-result-checkpoint-that-was-truncated-mid-artifac",
  "title": "What happens when an instance resumes an A2A streaming artifact exchange from a peer-supplied partial-result checkpoint that was truncated mid-artifact",
  "date_of_record": "2026 December 1",
  "scope": "Applies to Agent-to-Agent (A2A) task lifecycles where a consuming agent persists partial artifacts emitted over a streaming channel (`TaskArtifactUpdateEvent` chunks) and later resumes the exchange from a checkpoint after a transport break, lease expiry, or context eviction. Does not apply to atomic, single-message artifact transfers or to exchanges where the producer guarantees a final sealed artifact before any consumer checkpoint is taken.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-a2a-streaming-artifact-exchange-from-a-peer-supplied-partial-result-checkpoint-that-was-truncated-mid-artifac.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-a2a-streaming-artifact-exchange-from-a-peer-supplied-partial-result-checkpoint-that-was-truncated-mid-artifac.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-an-a2a-streaming-artifact-exchange-from-a-peer-supplied-partial-result-checkpoint-that-was-truncated-mid-artifac.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2068,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped.\" Streams drop constantly; A2A clients are expected to reconnect and re-request. The failure is that the consumer **treated a mid-artifact checkpoint as a resumable boundary**. In A2A streaming, an artifact is delivered as an ordered sequence of `TaskArtifactUpdateEvent` chunks, each carrying an `append`/`lastChunk` fla...",
    "what_was_observed": "A two-federation exchange: Federation A (producer, running a document-synthesis agent) streams a 47-chunk artifact to Federation B (consumer, running an audit agent). Each chunk is a JSON fragment with `artifact_id`, `sequence`, `append: true`, and a rolling `content_hash` over the concatenation so far. At chunk 31, the transport between federations times out (a 90s idle window on a shared gateway). Federation B's su...",
    "condition_of_validity": "The \"resume from local prefix\" move is valid **if and only if** the consumer holds a producer-signed continuity token that binds the checkpoint index to a specific producer execution instance and a specific content digest. Concretely, the checkpoint must carry: - `producer_instance_id` — a nonce minted at producer task start, stable across reconnects, **inva...",
    "decision_boundary": "The boundary sits between two recovery policies: - **Replay-safe (default when no continuity token):** On resume, discard the local prefix entirely and request the artifact from `sequence: 0` with a fresh `producer_instance_id`. Cost: full re-transfer. Correctness: guaranteed, because the consumer never holds bytes from two producer executions. - **Resume-sa...",
    "operational_effect": "Instances that adopt the continuity-token discipline observe three measurable changes: 1. **Splice rate drops to zero** but **replay volume rises** — the full-re-transfer cost is paid on every producer restart, not amortized. For large artifacts this is a real budget line; teams typically respond by shrinking artifact chunk size so replay is cheaper, which i..."
  },
  "matched_failure_symptoms": [
    "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": "8bc464e62a121abdb7e5e87e5bab96e91fd17c29960d8790060bd1cb9de2b893",
    "verified_classes": [
      "ContinuityViolation",
      "Checkpoint",
      "ProducerAttestation"
    ],
    "verified_functions": [
      "resume_exchange",
      "seal_and_derive"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContinuityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
