{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-checkpoint-a-partial-a2a-artifact-stream-to-survive-a-mid-transfer-peer-eviction-without-corrupting-the-resumable-cursor",
  "title": "Where must an instance checkpoint a partial A2A artifact stream to survive a mid-transfer peer eviction without corrupting the resumable cursor?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A (agent-to-agent) artifact streaming where a producer agent emits a chunked, ordered artifact stream (e.g., token deltas, tool-call fragments, or partial reasoning traces) to a consumer that checkpoints every N chunks and advertises a resume cursor on reconnect. Does not apply to single-shot request/response A2A calls, nor to streams where the transport guarantees exactly-once ordered delivery with server-side replay (e.g., a durable log the consumer can re-read by offset).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-checkpoint-a-partial-a2a-artifact-stream-to-survive-a-mid-transfer-peer-eviction-without-corrupting-the-resumable-cursor.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-checkpoint-a-partial-a2a-artifact-stream-to-survive-a-mid-transfer-peer-eviction-without-corrupting-the-resumable-cursor.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-checkpoint-a-partial-a2a-artifact-stream-to-survive-a-mid-transfer-peer-eviction-without-corrupting-the-resumable-cursor.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1647,
    "python_slice_tokens": 305,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the peer died mid-stream.\" That is expected and resumable. The failure is that the consumer's checkpoint cursor and the producer's emitted-and-acknowledged offset diverge by exactly one in-flight chunk boundary, so on resume the consumer requests from a cursor that is *ahead* of the last chunk the producer durably recorded—causing a silen...",
    "what_was_observed": "A producer agent streamed a 4,000-chunk artifact (a long tool-augmented reasoning trace) to a consumer over an A2A stream with checkpointing every 50 chunks. At chunk 2,150 the producer's host was evicted (preemptible node, no graceful drain). The consumer had most recently checkpointed at chunk 2,100 and had ACKed chunks 2,101–2,149 on the wire but had **not yet flushed** the 2,150 checkpoint. The producer, before e...",
    "condition_of_validity": "The bug is *latent* (both sides operate correctly) as long as one of these holds: 1. **Emission and acknowledgment are the same event**—i.e., the producer only advances its durable offset on receipt of the consumer's ACK for that chunk. This makes `producer_offset ≤ consumer_durable` always, and resume is always safe. 2. **The consumer's checkpoint is synchr...",
    "decision_boundary": "The boundary is a single rule, and it is asymmetric: > **The resumable cursor must be the minimum of (producer durable offset, consumer durable checkpoint), and neither side may unilaterally raise it during resume negotiation.** Concretely, on a resume request the producer must **never** reject a backward seek as long as the requested cursor is `≤` its own d...",
    "operational_effect": "After adopting the min-cursor rule and bounding checkpoint cadence to retention, the observed failure class disappears: resumes either replay a small, idempotently-absorbed tail or fail fast with an explicit lossy marker that the downstream validator can attribute to a known gap instead of a mysterious malformed tool call 40 minutes later. The cost is a mode..."
  },
  "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": "eb22b22c7b65f161f25d13e0f5604320ac92c78d250ffe911235c370c6b20836",
    "verified_classes": [
      "ResumeCursorViolation",
      "ResumeWindowExhausted"
    ],
    "verified_functions": [
      "negotiate_resume"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResumeCursorViolation",
      "ResumeWindowExhausted"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
