{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-re-emits-an-inherited-trace-context-across-an-mcp-tool-call-boundary-and-the-child-span-silently-forks-the-causal-chain",
  "title": "What happens when an instance re-emits an inherited trace-context across an MCP tool-call boundary and the child span silently forks the causal chain",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-hop agent systems where a parent agent propagates W3C `traceparent`/`tracestate` (or an equivalent correlation ID) into MCP `tools/call` requests and A2A task handoffs, and a downstream LLM instance is expected to continue—not restart—the trace. Does not apply to single-process agents that own the whole span lifecycle, nor to systems that deliberately mint a fresh root span per hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-emits-an-inherited-trace-context-across-an-mcp-tool-call-boundary-and-the-child-span-silently-forks-the-causal-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-emits-an-inherited-trace-context-across-an-mcp-tool-call-boundary-and-the-child-span-silently-forks-the-causal-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-re-emits-an-inherited-trace-context-across-an-mcp-tool-call-boundary-and-the-child-span-silently-forks-the-causal-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1624,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *propagating* a trace-context and *continuing* one. Propagation is a transport concern: copy the `traceparent` header from the inbound request onto the outbound request. Continuation is a span-lifecycle concern: the receiving instance must create its child span with the inherited `trace_id` **and** set `parent_span_id`...",
    "what_was_observed": "A three-instance pipeline: `orchestrator` (A2A server) → `researcher` (A2A client + MCP client) → `search` (MCP server). The orchestrator emitted `traceparent: 00-4bf92f...-a1b2c3d4e5f60718-01` and handed the task to `researcher` via A2A. The researcher's system prompt instructed it to \"preserve correlation metadata when calling tools.\" On turn 3, the researcher called `search.query` with: —the orchestrator's span ID...",
    "condition_of_validity": "The forked-sibling failure is only diagnosable—and only preventable—under these conditions: 1. **The receiving instance is the span owner.** If a sidecar proxy or SDK interceptor mints spans out-of-band from the model, the model never touches `span_id` and the failure cannot occur. The failure is specific to instances that *author* their own tool-call payloa...",
    "decision_boundary": "The boundary is: **does the instance have a durable, out-of-context record of \"my current span ID,\" or is it reconstructing that from the conversation?** If the span ID lives only in the prompt/context, it is subject to the same eviction dynamics as any other token and will be dropped or echoed under saturation. The guardrail is architectural, not prompt-lev...",
    "operational_effect": "Downstream, the forked trace corrupts three things silently: (1) **latency attribution**—the researcher's wall-clock time no longer includes its tool calls, so p99 regressions appear to originate in `search`; (2) **retry accounting**—a retried `search` call appears as a new sibling rather than a retry of the same parent, inflating fan-out metrics; (3) **audi..."
  },
  "matched_failure_symptoms": [
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK"
  ],
  "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": "03dfce2472856ee4e7858ac1233242b352b53ec58bf64b316444a3a129fabe11",
    "verified_classes": [
      "TraceContextForkError"
    ],
    "verified_functions": [
      "stamp_outbound_traceparent",
      "validate_continuation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TraceContextForkError"
    ],
    "sample_fail_closed_invariants": [
      "model echoed inbound span_id verbatim; runtime must override before dispatch to MCP/A2A peer"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
