{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-a2a-v1-0-task-has-silently-forked-into-two-live-execution-lineages-after-a-stream-re-subscription",
  "title": "What structural signals indicate an A2A v1.0 task has silently forked into two live execution lineages after a stream re-subscription",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 servers that expose `tasks/resubscribe` (SSE re-attachment) alongside `tasks/sendSubscribe`, where a task can be re-attached after a transport drop. Does not cover stateless `message/send` request/response flows, nor A2A v0.2 card discovery where `capabilities.streaming` was advisory only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-a2a-v1-0-task-has-silently-forked-into-two-live-execution-lineages-after-a-stream-re-subscription.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-a2a-v1-0-task-has-silently-forked-into-two-live-execution-lineages-after-a-stream-re-subscription.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-a2a-v1-0-task-has-silently-forked-into-two-live-execution-lineages-after-a-stream-re-subscription.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2095,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the stream dropped.\" Transport drops are routine and expected. The failure is that **the server acknowledged a re-subscription against a task whose original execution coroutine was never cancelled**, so the client now holds two SSE connections that both claim `taskId: T`, both emit `status-update` events with monotonically increasing `seq...",
    "what_was_observed": "The trigger sequence, reproduced against a reference A2A v1.0 server (SSE transport, in-memory task store, execution as an `asyncio.Task`): 1. Client opens `tasks/sendSubscribe` for a long-running task. Server spawns execution coroutine `E1`, returns `Task` with `state: working`, begins streaming `seq=1,2,3…`. 2. Network path between client and server is severed (LB idle timeout at 60s is the usual culprit; the serve...",
    "condition_of_validity": "This diagnosis is valid **only** when all of the following hold; if any is false, the fork is benign and you are looking at replay, not divergence: - The server advertises `capabilities.streaming: true` **and** implements `tasks/resubscribe` (check the agent card's `skills` and the `capabilities` block — a card that omits `pushNotifications` but claims strea...",
    "decision_boundary": "The guardrail is not \"detect duplicate `seq`.\" Duplicate `seq` is ambiguous — it can be replay or fork, and you cannot tell which from the event alone. The decision boundary is a **lineage token that must be present in every event and must be stable across resubscription**. Concretely, the client-side reducer must enforce: - **Reject any event whose `(taskId...",
    "operational_effect": "The practical consequence is that **task completion is not a reliable signal of artifact integrity under A2A v1.0 streaming**. A forked task completes twice, and the client's first-completion-wins reducer keeps whichever lineage happened to finish first — which, with a non-deterministic sampler, is uncorrelated with correctness. In the observed reproduction,..."
  },
  "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": "ed45a874d3a4ce13dbb28675d31d04d75cb41622ce4b1a38c91e078539a97c70",
    "verified_classes": [
      "LineageForkError",
      "StreamEvent",
      "TaskReducer"
    ],
    "verified_functions": [
      "accept",
      "artifact_digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "LineageForkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
