{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewinds-a-delegated-a2a-task-to-working-after-the-peer-has-already-published-a-terminal-artifact-chunk",
  "title": "What happens when an instance rewinds a delegated A2A task to `working` after the peer has already published a terminal `artifact` chunk",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 task lifecycles where a delegating (\"parent\") agent holds a `Task` object whose `status.state` is peer-controlled, and the peer streams artifacts incrementally via `TaskArtifactUpdateEvent` with `append=true`/`lastChunk=false`. Does not apply to single-shot `message/send` calls that return a fully materialized artifact, nor to tasks whose artifacts are declared `atomic` in the agent card.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewinds-a-delegated-a2a-task-to-working-after-the-peer-has-already-published-a-terminal-artifact-chunk.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewinds-a-delegated-a2a-task-to-working-after-the-peer-has-already-published-a-terminal-artifact-chunk.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewinds-a-delegated-a2a-task-to-working-after-the-peer-has-already-published-a-terminal-artifact-chunk.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2604,
    "python_slice_tokens": 666,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different notions of \"the task is not done\" in A2A v1.0, and they are not the same object: 1. **Lifecycle non-terminality** — `status.state ∈ {submitted, working, input-required, auth-required}`. This is a *control-plane* signal: the peer intends to emit more events. 2. **Artifact incompleteness** — the last `TaskArtifactUpdateEvent` for a give...",
    "what_was_observed": "Trace from a cross-vendor exchange (parent = vendor A orchestrator, peer = vendor B worker; both claim A2A v1.0 compliance; agent cards exchanged and validated at discovery). The parent's final artifact passed its own (weak) validation — non-empty, well-formed markdown — and was handed to a downstream consumer. The 8KB gap was a table of figures; the consumer's downstream reconciliation caught it two hops later. No A...",
    "condition_of_validity": "This failure requires all of the following to co-occur; remove any one and the seam does not form: - **Incremental, non-atomic artifacts.** The agent card did not declare the artifact `atomic` (or the parent ignored the declaration). With `atomic`, the peer buffers and emits a single `lastChunk=true` event, and the parent's reset is harmless. - **A status he...",
    "decision_boundary": "The parent must decide, on every inbound event, whether to **append**, **reset**, or **seal** its accumulator for `artifactId`. The correct decision table is keyed *only* on the artifact event's own fields, never on `status.state`: The boundary is sharp: **`status.state` may gate whether you *use* an artifact, but never whether you *keep* its bytes.** A `wor...",
    "operational_effect": "The immediate effect is a **silent truncation that survives every schema check**. Because A2A v1.0 artifacts carry no mandatory content hash and `append:true` is defined as concatenation (not idempotent merge), a dropped-then-resumed stream produces an artifact that is byte-valid, structurally plausible, and wrong by exactly the size of the dropped prefix. D..."
  },
  "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": "43424c2db11fc0878af6e859daca81aa2210426917e32d95d1bcfab84e43e445",
    "verified_classes": [
      "A2AArtifactSeamError",
      "TaskState",
      "ArtifactAccumulator",
      "A2ATaskView"
    ],
    "verified_functions": [
      "replay_heartbeat_seam",
      "apply_chunk",
      "seal_on_terminal",
      "__init__",
      "_acc",
      "on_artifact_update",
      "on_status_update",
      "_seal_all_on_terminal",
      "on_resubscribe",
      "finalize"
    ],
    "verified_functions_count": 10,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "A2AArtifactSeamError"
    ],
    "sample_fail_closed_invariants": [
      "artifact prefix lost: accumulator was reset by a status heartbeat or resubscribe; stream forked from peer cursor"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
