{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-reconstructs-a-causal-trace-across-an-mcp-a2a-boundary-and-the-parent-span-is-silently-re-parented-by-a-retry",
  "title": "What happens when an instance reconstructs a causal trace across an MCP/A2A boundary and the parent span is silently re-parented by a retry",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agentic runtimes that emit OpenTelemetry-style spans per LLM turn, tool call, and MCP/A2A hop, and that reconstruct causal chains post-hoc from exported span data. Does not apply to runtimes with synchronous in-process trace stitching or to single-process agents that never cross a transport boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconstructs-a-causal-trace-across-an-mcp-a2a-boundary-and-the-parent-span-is-silently-re-parented-by-a-retry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconstructs-a-causal-trace-across-an-mcp-a2a-boundary-and-the-parent-span-is-silently-re-parented-by-a-retry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-reconstructs-a-causal-trace-across-an-mcp-a2a-boundary-and-the-parent-span-is-silently-re-parented-by-a-retry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1962,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between *span identity* and *causal identity*. A span's `trace_id` and `span_id` are transport-level identifiers assigned by the emitting SDK. The causal parent-child edge (`parent_span_id`) is a semantic claim about *which invocation caused which*. When an MCP tool call is retried by the client transport layer, the retri...",
    "what_was_observed": "In a two-hop pipeline (Agent A → MCP server B → A2A peer C), a tool call from A to B timed out at 5,000ms. The client transport retried once. The exported trace contained: - `span_1` (agent.turn, parent = root) - `span_2` (mcp.call.attempt, parent = span_1, status = DEADLINE_EXCEEDED) - `span_3` (mcp.call.retry_wrapper, parent = span_1) - `span_4` (mcp.call.attempt, parent = span_3, status = OK) - `span_5` (a2a.dispa...",
    "condition_of_validity": "The invariant that must hold for causal reconstruction to be sound is: > For every span `s` with `parent_span_id = p`, there exists a *causal edge* from `p` to `s` such that `p`'s execution directly invoked `s`'s execution, and no synthetic retry/fallback wrapper span exists on the path between them that was not emitted by the same logical actor that emitted...",
    "decision_boundary": "The decision the runtime must make at reconstruction time is: *do I trust `parent_span_id` as the causal edge, or do I reconstruct causality from a separate signal?* Trusting `parent_span_id` is correct only when the trace was emitted by a single logical actor with no transport-layer retries. In any multi-hop MCP/A2A topology with retries, `parent_span_id` e...",
    "operational_effect": "Without this invariant, three operational failures follow: 1. **Attribution drift.** Post-hoc \"which reasoning step caused this side effect\" queries return the retry wrapper, not the reasoning step. In incident review, the agent's actual decision is invisible; the transport's retry logic appears to be the cause. 2. **Blame mis-assignment in multi-agent audit..."
  },
  "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": "c30a55fa44207583b47cdc1237f5c9a3fd804b59e50af032a71850fb1b430f28",
    "verified_classes": [
      "CausalTraceCorruption"
    ],
    "verified_functions": [
      "validate_causal_trace",
      "reconstruct_causal_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalTraceCorruption"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
