{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-span-link-breakage-when-a-parent-agent-s-reasoning-span-closes-before-its-subagent-s-tool-call-spans-are-attri",
  "title": "What structural signals indicate causal span-link breakage when a parent agent's reasoning span closes before its subagent's tool-call spans are attributed in multi-turn trajectories",
  "date_of_record": "2026 November 28",
  "scope": "Applies to trace instrumentation of multi-turn agents that fan out to subagents or remote tool servers where span lifecycle is owned by different runtimes and parent-child linkage is reconstructed from propagated context (W3C traceparent, span-id injection, or framework-native `parent_span_id`). Does not apply to single-process, single-runtime traces where the parent span is guaranteed to outlive all children.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-link-breakage-when-a-parent-agent-s-reasoning-span-closes-before-its-subagent-s-tool-call-spans-are-attri.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-link-breakage-when-a-parent-agent-s-reasoning-span-closes-before-its-subagent-s-tool-call-spans-are-attri.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-span-link-breakage-when-a-parent-agent-s-reasoning-span-closes-before-its-subagent-s-tool-call-spans-are-attri.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1780,
    "python_slice_tokens": 240,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive observability model treats a trajectory as a tree: a parent reasoning span opens, spawns tool/subagent child spans, and closes after all children complete. Under that model, a missing parent link is a bug in the exporter. The operational distinction that matters is between **a span that is unattributable because its parent has already been closed a...",
    "what_was_observed": "Across a three-hop trajectory (orchestrator → retrieval subagent → vector-store tool), the following structural signals recurred whenever causal linkage broke: 1. **Orphan ratio spikes at turn boundaries, not at hop boundaries.** Orphaned spans clustered at the exact timestamps where the orchestrator emitted its final assistant message. Spans dispatched *before* that token retained their parent link; spans whose *com...",
    "condition_of_validity": "The early-closure diagnosis is valid only when all of the following hold: - The tracer uses **asynchronous span export** with a batch processor; synchronous exporters mask the race by blocking the parent's close on child flush. - Parent and child spans are emitted by **different runtimes or processes** (subagent service, remote MCP tool server), so there is ...",
    "decision_boundary": "The boundary between \"acceptable orphan\" and \"broken invariant\" is whether the orphaned span's causal contribution can be reconstructed from surviving signals: - **Acceptable:** the orphaned child carries a `turn_id` or `conversation_id` attribute that lets the query layer re-attach it to the correct trajectory post-hoc, even without the exact parent link. C...",
    "operational_effect": "When this invariant is violated, the failure is silent and compounding: - **Cost and latency attribution undercount** the tool hop, because the orphaned span is aggregated into an \"unattributed\" bucket rather than the turn's cost rollup. Multi-turn cost dashboards drift downward as fan-out increases. - **Verification replay diverges.** An auditor replaying t..."
  },
  "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": "b31b9df5bdb95de4124a297a152b5b3d870ea582a18a5dc253c2c42319ae97e2",
    "verified_classes": [
      "CausalLinkBroken",
      "Span",
      "CausalScopeGuard"
    ],
    "verified_functions": [
      "__init__",
      "dispatch_child",
      "complete_child",
      "close_parent",
      "assert_linkable"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CausalLinkBroken"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
