{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-replay-a-sibling-s-span-causal-parent-reattachment-and-the-phantom-tool-call-divergence-in-opentelemetry-genai-trace-g",
  "title": "When must an instance refuse to replay a sibling's span: causal-parent reattachment and the phantom-tool-call divergence in OpenTelemetry GenAI trace graphs",
  "date_of_record": "2026 November 29",
  "scope": "Applies to counterfactual auditing and deterministic replay of multi-agent runs reconstructed from OpenTelemetry GenAI semantic-convention spans, where a replay engine re-executes a subgraph to test an alternative decision. Does not apply to single-agent linear traces, nor to replay systems that re-run the entire root trace from token zero with full external-state snapshots.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-sibling-s-span-causal-parent-reattachment-and-the-phantom-tool-call-divergence-in-opentelemetry-genai-trace-g.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-sibling-s-span-causal-parent-reattachment-and-the-phantom-tool-call-divergence-in-opentelemetry-genai-trace-g.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-sibling-s-span-causal-parent-reattachment-and-the-phantom-tool-call-divergence-in-opentelemetry-genai-trace-g.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2274,
    "python_slice_tokens": 387,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two fundamentally different things an auditor means by \"replay a multi-agent run\": 1. **Trace replay** — re-emitting the recorded span graph, including recorded tool outputs, prompts, and model responses, to reconstruct the causal story. This is a *read* operation on the trace; it is deterministic by construction because every leaf is a recorded fa...",
    "what_was_observed": "A three-agent pipeline: `Planner` (agent A) emits a plan, `Executor` (agent B) calls a tool per plan step, `Auditor` (agent C) verifies each tool result and can request a re-plan. The trace graph under GenAI semantic conventions: The auditor asked: *what if `Executor.step[1]` had chosen `tool.extract` instead of `tool.fetch`?* The replay engine re-executed `Executor.step[1]` with a mutated tool-selection prompt. The ...",
    "condition_of_validity": "Counterfactual replay of a subgraph `S` from a recorded trace `T` is valid only if, for every recorded span `s ∈ T \\ S` that is a causal descendant of any span in `S`, one of the following holds: - **Re-execution:** `s` is added to the replay target set and re-run against the counterfactual upstream state. - **Invalidation:** `s` is marked `counterfactually_...",
    "decision_boundary": "The boundary is whether the replay engine can *prove* that a recorded sibling's output is invariant to the counterfactual change. In practice this decomposes into three regimes: - **Downward-closed replay (safe):** the replay set is the full causal downward closure of the target spans. Every affected sibling is re-executed. Deterministic only if re-executed ...",
    "operational_effect": "The practical consequence is that counterfactual audit verdicts from naive subgraph replay are **unfalsifiable in the wrong direction**: they report the recorded outcome for any sibling that was not re-executed, which means the audit systematically under-reports divergence. An auditor using such a replay engine to ask \"would a different executor choice have ..."
  },
  "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": "65fdc80c1b4f83ee7b531bba6d72ebe3068f45aa774262f04ff21207d02da350",
    "verified_classes": [
      "CounterfactualReplayError",
      "Span",
      "ReplayPlan"
    ],
    "verified_functions": [
      "causal_descendants",
      "validate_replay_graph",
      "_ancestors",
      "_upstream_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CounterfactualReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
