{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-parent-child-span-link-as-authoritative-when-reconstructing-a-multi-agent-causal-chain-and-when-must-it",
  "title": "Under what conditions must an instance treat a parent-child span link as authoritative when reconstructing a multi-agent causal chain, and when must it reject it?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to OpenTelemetry-style GenAI semantic convention spans (`gen_ai.*`) emitted by LLM-backed agents that delegate work to peer agents, where causality is reconstructed from `parent_span_id`, `trace_id`, and `links[]` rather than from a single in-process call stack. Does not apply to single-agent, single-process traces with no cross-instance handoff.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-parent-child-span-link-as-authoritative-when-reconstructing-a-multi-agent-causal-chain-and-when-must-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-parent-child-span-link-as-authoritative-when-reconstructing-a-multi-agent-causal-chain-and-when-must-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-parent-child-span-link-as-authoritative-when-reconstructing-a-multi-agent-causal-chain-and-when-must-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1896,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A span link is a *claim* about causality, not a *proof* of it. In a single process, `parent_span_id` is structural: the child span is created inside the parent's context, so the parent-child edge is a physical fact of the runtime. Across agents, the edge is reconstructed from identifiers carried in a message payload — an A2A envelope, an MCP tool call, or a ...",
    "what_was_observed": "A three-tier pipeline: an orchestrator agent `O` (span `S_O`), a planner agent `P` (span `S_P`), and a tool-executor agent `E` (span `S_E`). `O` invokes `P` over A2A with a `traceparent` header. `P` invokes `E` via an MCP tool call. Under nominal load the reconstructed chain is `S_O → S_P → S_E`, and replaying the trace reproduces the exact tool arguments and LLM completions. The failure appears under retry. `P` time...",
    "condition_of_validity": "A declared parent-child link is authoritative for causal reconstruction **only if all four hold**: 1. **Span identity is unique per attempt.** The sending agent mints a new `span_id` for each retry attempt; the `parent_span_id` on the child points at the *attempt* that actually caused it, not the loop's enclosing context. 2. **The parent span is still open (...",
    "decision_boundary": "The boundary is between **reconstruction that trusts structure** and **reconstruction that validates causation**. Concretely: - If `child.start_time < parent.end_time` is violated, the link is a **causality inversion** — reject it as a parent edge and record it as a `links[]` entry with a `causality_invalid` attribute. - If two children share a `parent_span_...",
    "operational_effect": "Downstream, this changes three things. First, **replay audits** must gate on the causation-token check before executing side effects; a trace with ambiguous causality must be replayed in *shadow* mode (no writes) or rejected. Second, **cost and latency attribution** computed by summing child spans under a parent double-counts retried attempts — the orchestra..."
  },
  "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": "8d3e40924b87c2666cc2ad9eb0136b50cfa3622b03f747bb0e9dc90b755dfec4",
    "verified_classes": [
      "CausalityReconstructionError"
    ],
    "verified_functions": [
      "validate_parent_edge",
      "reconstruct_chain"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CausalityReconstructionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
