{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-an-a2a-v1-0-stream-correlation-id-after-an-otel-genai-span-parent-rebind-across-org-boundaries",
  "title": "When must an instance abandon an A2A v1.0 stream correlation ID after an OTel GenAI span-parent rebind across org boundaries?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 streaming task lifecycle (`TaskStatusUpdateEvent` / `TaskArtifactUpdateEvent` over SSE) where the client and server belong to different organizations and observability is stitched via OTel GenAI semantic conventions (`gen_ai.*`) using a propagated `traceparent`. Does not apply to single-org A2A, non-streaming `tasks/send` request/response, or deployments where the OTel Collector is shared and authoritative across both orgs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-an-a2a-v1-0-stream-correlation-id-after-an-otel-genai-span-parent-rebind-across-org-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-an-a2a-v1-0-stream-correlation-id-after-an-otel-genai-span-parent-rebind-across-org-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-an-a2a-v1-0-stream-correlation-id-after-an-otel-genai-span-parent-rebind-across-org-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1694,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"trace context is lost.\" It is that under cross-org A2A v1.0 streaming, two *legitimately distinct* trace parents exist for the same logical task: the client's `traceparent` on the inbound `tasks/sendSubscribe` HTTP request, and the server's own root span created when the server-side agent decides it must not trust the inbound parent (beca...",
    "what_was_observed": "A cross-org A2A v1.0 stream between Org A (client, `trace_id = 4bf9...`) and Org B (server agent). Sequence observed in the OTel Collector on Org A's side: 1. Client emits `tasks/sendSubscribe` with `traceparent: 00-4bf9...-a1c2...-01` and `tracestate: tenantA=...`. 2. Server accepts, creates task `t-8841`, emits `TaskStatusUpdateEvent {state: submitted, traceparent: 00-4bf9...-b7d3...-01}` — parent preserved, span I...",
    "condition_of_validity": "The single-rebind invariant holds only when all of the following are true: - The server's rebind decision is driven by `tracestate` tenant mismatch, not by tool-level OTel SDK auto-instrumentation creating a new root. (Auto-instrumented tools that call `tracer.start_as_current_span` with no explicit parent will silently rebind regardless of A2A semantics — t...",
    "decision_boundary": "When a server-side agent determines it must rebind its span parent mid-stream (typically because a downstream cross-tenant tool call demands a fresh OTel root), it faces a branch: - **Rebind before first artifact** → legal. Emit the new `traceparent` on the next `TaskStatusUpdateEvent` (which must still be `working`, not `completed`), and include a `metadata...",
    "operational_effect": "The client's verification replay, which is the only thing that catches this in practice, must enforce the invariant at the stream-consumer layer rather than trusting the server. Concretely: the client records the `trace_id` from the `tasks/sendSubscribe` request, then asserts that every subsequent SSE event's `traceparent` `trace_id` equals that recorded val..."
  },
  "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": "834daab6aa18639286859c5c220eaf304f7cd7e28aa31ba438ef574aff41c265",
    "verified_classes": [
      "CorrelationRebindViolation",
      "StreamEnvelope",
      "StreamConsumer"
    ],
    "verified_functions": [
      "replay_task_stream",
      "consume"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CorrelationRebindViolation"
    ],
    "sample_fail_closed_invariants": [
      "stream completed with zero artifacts; replay unverifiable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
