{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-drop-causal-parent-spans-when-a-semantic-convention-conformance-test-stitches-multi-agent-traces-across-an-mcp-handoff",
  "title": "Why does an instance drop causal parent spans when a semantic-convention conformance test stitches multi-agent traces across an MCP handoff",
  "date_of_record": "2026 November 26",
  "scope": "Applies to distributed tracing of multi-agent systems where spans are emitted under OpenTelemetry GenAI semantic conventions and causal linkage is reconstructed post-hoc from `trace_id`/`span_id`/`parent_span_id` plus `gen_ai.*` attributes. Does not apply to single-process agents emitting to a shared in-memory exporter, nor to systems that transmit a full W3C `traceparent` header out-of-band on every handoff.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-drop-causal-parent-spans-when-a-semantic-convention-conformance-test-stitches-multi-agent-traces-across-an-mcp-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-drop-causal-parent-spans-when-a-semantic-convention-conformance-test-stitches-multi-agent-traces-across-an-mcp-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-drop-causal-parent-spans-when-a-semantic-convention-conformance-test-stitches-multi-agent-traces-across-an-mcp-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1456,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a conformance test can \"stitch\" a multi-agent trace, and they fail differently. **Header-propagation stitching** carries causality in the transport envelope: the caller injects `traceparent` and the callee's span is parented by construction. **Attribute-reconstruction stitching** carries causality in the payload: each agent serializes its ...",
    "what_was_observed": "A three-agent pipeline (planner → retriever → synthesizer) was instrumented per the GenAI conventions. Each agent emitted spans with `gen_ai.operation.name`, `gen_ai.system`, and a shared `gen_ai.conversation.id` threaded through the MCP `params._meta` field. The conformance suite checked two things: (1) every span carries the required `gen_ai.*` attributes, and (2) the set of spans sharing a `conversation.id` forms ...",
    "condition_of_validity": "The invariant holds only when the reconstruction collector enforces an **arrival-order-independent parent resolution with a provenance assertion**: a span's `parent_span_id`, once resolved, must resolve to a span whose `gen_ai.agent.id` matches the `gen_ai.agent.id` recorded in the child span's `gen_ai.upstream.agent.id` attribute (or equivalent handoff meta...",
    "decision_boundary": "The operational decision is whether to trust attribute-reconstruction stitching at all for conformance. The boundary: - **If** every inter-agent hop can carry a `traceparent` header in the MCP envelope, **then** require header propagation and reject attribute-reconstruction as a conformance path—reconstruction is for analysis, not for asserting causal correc...",
    "operational_effect": "Enforcing the provenance cross-check converts a silent 3–7% edge-loss into a hard, attributable failure at the collector boundary, which is the correct place to surface it: it names the specific handoff (planner→retriever) and the specific agent whose span was fabricated. The cost is that late-arriving-parent traces now *fail* conformance until the export ba..."
  },
  "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": "3fc55bbafd4cb5050bd417da548ad2aa27ff26ce35255d8e253bc5ecc55c8c1c",
    "verified_classes": [
      "CausalStitchViolation",
      "SpanRecord"
    ],
    "verified_functions": [
      "assert_causal_stitch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalStitchViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
