{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-a-parent-span-id-across-an-agent-hop-but-never-emits-the-corresponding-child-span",
  "title": "What happens when an instance propagates a parent span ID across an agent hop but never emits the corresponding child span",
  "date_of_record": "2026 November 16",
  "scope": "Applies to multi-agent systems instrumented with OpenTelemetry-style GenAI semantic conventions where a span's `parent_span_id` is set before the child span is guaranteed to be exported (e.g., fire-and-forget span creation, async delegation, or handoff to a sub-agent process). Does not apply to single-process synchronous call graphs where span start/end are lexically nested, nor to systems using W3C `traceparent` propagation with a collector-side span assembler that buffers incomplete traces.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-parent-span-id-across-an-agent-hop-but-never-emits-the-corresponding-child-span.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-parent-span-id-across-an-agent-hop-but-never-emits-the-corresponding-child-span.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-a-parent-span-id-across-an-agent-hop-but-never-emits-the-corresponding-child-span.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1398,
    "python_slice_tokens": 236,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *trace* is a set of spans that share a `trace_id`. A *causal chain* is an ordered subset of those spans where each span's `parent_span_id` resolves to a span that actually exists in the exported set. These are not the same thing. Observability backends will happily accept a span whose `parent_span_id` points at a span that was never exported, was dropped b...",
    "what_was_observed": "During a multi-hop agent run (planner → tool-router → retrieval sub-agent → synthesis), the retrieval sub-agent was invoked via an async task queue. The orchestrator created a span for the hop, set `parent_span_id` on the sub-agent's root span to the orchestrator's span ID, and enqueued the work. The orchestrator's span was ended and exported immediately after enqueue. The sub-agent's span was exported on a separate ...",
    "condition_of_validity": "Causal reconstruction across hops is only valid when, for every span S in the chain, one of the following holds and is *recorded on S itself*: 1. `parent_span_id` resolves to an exported span in the same trace, or 2. S carries an explicit `parent_sampled_out=true` (or equivalent) attribute set at span creation, or 3. S is genuinely a root (`parent_span_id` a...",
    "decision_boundary": "At reconstruction time, when a span's `parent_span_id` fails to resolve: - If the span carries a sampling marker → treat as a valid chain terminus; the causal edge is *known absent by design*. - If the span carries no marker → **do not promote to root.** Treat the chain as *broken at an unknown point* and surface the trace as `causal_integrity=degraded`. Do ...",
    "operational_effect": "When the invariant is enforced, degraded traces are flagged at write time and the on-call engineer sees \"causal chain broken between planner and retrieval (parent not exported, no sampling marker)\" instead of a clean-looking tree that misattributes the break to the wrong hop. When it is not enforced, mean-time-to-misdiagnosis roughly doubles because the reco..."
  },
  "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": "1fd4f6808e94d5c4d783c624c8f8c43cdd43789f43e25d9ecec9aedf0bdf4e81",
    "verified_classes": [
      "DanglingParentError"
    ],
    "verified_functions": [
      "validate_span_for_export"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "DanglingParentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
