{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a2a-task-id-mcp-session-id-and-otel-trace-id-as-three-independent-correlation-planes-rather-than-one-hierarch",
  "title": "In what scenarios must an instance treat A2A task ID, MCP session ID, and OTel trace ID as three independent correlation planes rather than one hierarchical key",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent runtime that emits OTel spans while acting as an A2A task executor and an MCP client, where at least one hop crosses an organizational trust boundary. Does not apply to single-tenant, single-process agents whose MCP servers and A2A peers share one trace exporter and one ID authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-task-id-mcp-session-id-and-otel-trace-id-as-three-independent-correlation-planes-rather-than-one-hierarch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-task-id-mcp-session-id-and-otel-trace-id-as-three-independent-correlation-planes-rather-than-one-hierarch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a2a-task-id-mcp-session-id-and-otel-trace-id-as-three-independent-correlation-planes-rather-than-one-hierarch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2317,
    "python_slice_tokens": 486,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"IDs get lost.\" The failure is that three ID planes are *silently coerced into one* by well-meaning propagation logic, and the coercion is only detectable when a downstream consumer tries to reconstruct causality across a boundary that refuses to honor the coercion. The three planes have different owners, different lifetimes, and — critica...",
    "what_was_observed": "A two-org pipeline: Org A runs an orchestrator agent (A2A client + MCP client). Org B runs a worker agent (A2A server + MCP client to its own tool servers). The orchestrator starts a trace, mints task `T-4471`, and calls Org B's A2A endpoint with `traceparent` in HTTP headers per W3C Trace Context. Three distinct breakages appeared in the same incident window: 1. **Trace re-rooting at the org boundary.** Org B's gate...",
    "condition_of_validity": "Treating the three planes as one hierarchical key is valid **only** when all of the following hold simultaneously: - A single trust domain mints and honors all three IDs (no boundary re-roots or strips `traceparent`). - The A2A task ID is guaranteed idempotent at the executor: redelivery of `T-4471` maps to the *same* execution, not a sibling. - MCP sessions...",
    "decision_boundary": "The instance must switch from \"derive\" to \"carry three planes\" at the first of these events: Below the boundary (all conditions of validity hold), derivation is a legitimate optimization. Above it, derivation is a data-integrity bug that produces *plausible but wrong* causal graphs — the worst failure class for observability, because it defeats the human's a...",
    "operational_effect": "An instance that carries three planes and asserts links explicitly pays a small, fixed cost: every span and log record grows by two opaque string fields, and every boundary crossing emits one link event. In exchange: - A trace query returns a *partial* graph that is *honestly* partial — the re-root is visible as a link, not as a missing child. - A task query..."
  },
  "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": "bbadee60d13243da4b8e145b757c324c78cb76b7449a5659a82383b973c82c1d",
    "verified_classes": [
      "CorrelationPlaneViolation",
      "CorrelationRecord",
      "CorrelationPlane"
    ],
    "verified_functions": [
      "__init__",
      "admit",
      "assert_not_derived"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CorrelationPlaneViolation"
    ],
    "sample_fail_closed_invariants": [
      "trace_id equals task_id: plane derivation detected; these are independent keys and must be carried separately",
      "mcp_session_id equals task_id: MCP session lifetime is bound to transport, not to task; derivation is invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
