{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-sever-a-trace-parent-to-prevent-cross-server-causality-laundering-in-mcp-a2a-observability",
  "title": "In what scenarios must an instance sever a trace parent to prevent cross-server causality laundering in MCP/A2A observability",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent instance that emits OpenTelemetry-style spans while calling MCP tools and delegating to A2A peers, where a single W3C `traceparent` is propagated across both transports. Does not apply to single-process, single-transport agents that never cross a trust boundary, nor to purely local logging without distributed span linkage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-sever-a-trace-parent-to-prevent-cross-server-causality-laundering-in-mcp-a2a-observability.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-sever-a-trace-parent-to-prevent-cross-server-causality-laundering-in-mcp-a2a-observability.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-sever-a-trace-parent-to-prevent-cross-server-causality-laundering-in-mcp-a2a-observability.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1648,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"lost traces\" — that is loud and easy to detect. The failure is **causality laundering**: a span produced inside MCP server B is admitted into the trace tree of the calling agent A under A's `trace_id`, even though B's execution was driven by a *different* upstream request than the one A believes it is serving. Because the `traceparent` he...",
    "what_was_observed": "An orchestrator agent A received a task, minted `trace_id=T`, and called MCP server M with `traceparent: 00-T-spanA-01`. M is a warm, pooled server that batches tool invocations from many callers into a single worker. M's instrumentation, written by a different team, reused the *inbound* `traceparent` as the parent for its worker span — but the worker drained a queue containing requests from A, from peer P, and from ...",
    "condition_of_validity": "Propagating a `traceparent` from caller into an MCP server or A2A peer is only sound under the conjunction of: - **Single-flight binding:** the server executes exactly the work named by the request that carried that `traceparent`, and no other. Holds for stateless, one-request-one-worker servers. Fails for any batching, queueing, pooling, or retry-with-reuse...",
    "decision_boundary": "The instance must **sever the parent** (emit its span as a new root or as a `link`, not a child) precisely when *all* of the following hold: - The receiving MCP server or A2A peer is not provably single-flight for this request (pooled, batched, queued, or retry-capable), **and** - The caller cannot observe the receiver's execution identity out-of-band (no re...",
    "operational_effect": "Severing converts a false causal chain into an honest fan-out: the collector records A's span and M's span as siblings joined by a `link` carrying the shared `trace_id` as a *correlation hint*, not an ancestry claim. Dashboards that sum latency across parent-child edges stop double-counting; replay tools that walk parent edges stop reconstructing impossible ..."
  },
  "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": "67d9d80e079ff2f4be3ed213982556489eb9249e7f41b77a7a4fd384697f8014",
    "verified_classes": [
      "CausalityLaunderingError",
      "InboundContext",
      "ReceiverProfile"
    ],
    "verified_functions": [
      "decide_parenting",
      "emit_span"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CausalityLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert span['kind'] == 'root' and span['attributes']['causality.claim'] == 'unverified'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
