{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-causal-parent-child-correlation-when-semantic-convention-span-links-are-resolved-across-a-fan-out-boundary",
  "title": "Why does an instance lose causal parent-child correlation when semantic-convention span links are resolved across a fan-out boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent systems emitting OpenTelemetry-style spans where causal correlation between an orchestrator span and downstream agent spans is reconstructed from `trace_id`/`span_id` linkage plus GenAI semantic-convention attributes (`gen_ai.operation.name`, `gen_ai.agent.id`, `gen_ai.conversation.id`). Does not apply to single-agent traces with a strictly linear call tree, nor to systems that propagate a single immutable `parent_span_id` through every hop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-parent-child-correlation-when-semantic-convention-span-links-are-resolved-across-a-fan-out-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-parent-child-correlation-when-semantic-convention-span-links-are-resolved-across-a-fan-out-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-parent-child-correlation-when-semantic-convention-span-links-are-resolved-across-a-fan-out-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1529,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things an agent trace can encode: **structural parentage** (which span object the runtime created inside) and **causal ancestry** (which span's output actually caused this span to exist). In a linear chain these coincide. At a fan-out boundary—one orchestrator dispatching N parallel sub-agents—they diverge, because the runtime that spa...",
    "what_was_observed": "An orchestrator agent (`gen_ai.agent.id = planner`) decomposed a task into five sub-tasks and dispatched them to a pool of three worker instances running the same agent binary (`gen_ai.agent.id = researcher`). Each sub-task carried a delegation payload with `gen_ai.conversation.id = conv-88` and a `gen_ai.operation.name = chat`. The workers emitted spans with `parent_span_id` pointing at the pool dispatcher (structur...",
    "condition_of_validity": "The invariant that must hold is: **for every causal link, the tuple used to resolve it must be unique among concurrent producer spans within the resolution window.** Formally, if `L(s) = match(attrs(s), candidates)` is the linker's resolution function, correctness requires `|L(s)| = 1` for every consumer span `s`. The GenAI semantic conventions do not enforc...",
    "decision_boundary": "The boundary is not \"parallel vs. serial.\" It is **whether the linker resolves links before or after the fan-out closes.** If links are resolved online—each sub-agent span is linked at emit time against the currently-open orchestrator span, with the orchestrator holding an exclusive dispatch lock per sub-task—the ambiguity window is closed and `|L(s)| = 1` h...",
    "operational_effect": "When the invariant is violated, the trace does not fail—it lies. The auditor's verification replay sees a well-formed DAG with correct cardinality at the structural layer and a collapsed, ambiguous causal layer. The practical consequences are: (1) attribution of a bad sub-agent output to the wrong delegation decision becomes impossible, because all sub-tasks..."
  },
  "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": "4741a78a53637a9ad2663eb7fd27d2e1acf26296aae7e6cc8d615d87127d8e6f",
    "verified_classes": [
      "CausalLinkAmbiguityError",
      "Span"
    ],
    "verified_functions": [
      "resolve_causal_parent",
      "link_fanout"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalLinkAmbiguityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
