{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-causal-parentage-when-genai-semantic-convention-spans-cross-an-agent-hop-boundary",
  "title": "Why does an instance lose causal parentage when GenAI semantic-convention spans cross an agent hop boundary",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems that propagate W3C trace context and emit OpenTelemetry GenAI semantic-convention spans (`gen_ai.*`) across MCP/A2A/tool-call hops. Does not apply to single-process agent loops where the span tree is constructed in one runtime, nor to pure logging pipelines that do not reconstruct causality from span parentage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-parentage-when-genai-semantic-convention-spans-cross-an-agent-hop-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-parentage-when-genai-semantic-convention-spans-cross-an-agent-hop-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-parentage-when-genai-semantic-convention-spans-cross-an-agent-hop-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1281,
    "python_slice_tokens": 149,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace context is *transport state*; a GenAI span's causal parentage is *semantic state*. The bug is not that the `traceparent` header is dropped — it usually is not. The bug is that the receiving agent, on hop N+1, opens a **new root span** (or re-parents to an unrelated span) because the GenAI semantic conventions define span kinds by *operation* (`gen_ai...",
    "what_was_observed": "A supervisor agent (`gen_ai.agent.invoke`, span `A`) dispatches a subtask to a worker via A2A. The worker emits `gen_ai.agent.invoke` (`B`) and, inside it, `gen_ai.chat` (`C`) and `gen_ai.tool.execution` (`D`). The trace export shows `A.trace_id == B.trace_id == C.trace_id == D.trace_id`, but `B.parent_span_id` is a 16-zero value — a new root — and `D.parent_span_id` correctly points to `C`. The A2A handler had extra...",
    "condition_of_validity": "The invariant holds only when the following are all true: (1) the hop is instrumented with GenAI semantic conventions that emit `gen_ai.agent.invoke` / `gen_ai.chat` / `gen_ai.tool.execution` as distinct span kinds; (2) the callee creates its span with an explicit parent context derived from the extracted `traceparent`, not from ambient context; (3) the extr...",
    "decision_boundary": "The boundary is between *trace-id continuity* and *parent-edge continuity*. A system may legitimately have trace-id continuity with broken parent edges (the failure above) or parent-edge continuity with trace-id divergence (if a sampler forks traces). The operational decision: **assert on parent-edge reachability, not trace-id equality.** A reconstruction is...",
    "operational_effect": "Without the guardrail, incident response loses the ability to attribute a downstream tool failure to the originating prompt: the trace UI shows a healthy, complete trace, but the causal chain is a forest. Error-compounding analysis across hops (did hop 2's bad retrieval cause hop 3's wrong tool call?) becomes impossible because hop 2 and hop 3 are not connec..."
  },
  "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": "89a339396e3f53c50238492b9f5b4576628818a724e304fa0db72734947bedaa",
    "verified_classes": [
      "HopParentageError"
    ],
    "verified_functions": [
      "validate_hop_parentage"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HopParentageError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
