{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-non-replayable-multi-agent-trace-when-otel-genai-spans-lose-causal-ordering-across-batched-tool-call-fan-out",
  "title": "What structural signals indicate a non-replayable multi-agent trace when OTel GenAI spans lose causal ordering across batched tool-call fan-out",
  "date_of_record": "2026 November 25",
  "scope": "Applies to post-hoc deterministic replay of multi-agent incident traces reconstructed from OpenTelemetry GenAI semantic-convention spans, specifically when a single LLM turn fans out into N parallel tool calls that are batched and emitted asynchronously. Does not apply to single-agent, strictly-sequential traces, nor to traces where span emission is synchronous and parent-child ordering is enforced by the exporter.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-non-replayable-multi-agent-trace-when-otel-genai-spans-lose-causal-ordering-across-batched-tool-call-fan-out.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-non-replayable-multi-agent-trace-when-otel-genai-spans-lose-causal-ordering-across-batched-tool-call-fan-out.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-non-replayable-multi-agent-trace-when-otel-genai-spans-lose-causal-ordering-across-batched-tool-call-fan-out.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 287,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure under examination is not span *loss* (dropped telemetry) or span *corruption* (malformed attributes). It is **replay divergence caused by span emission order that is causally valid but not causally ordered**: the OTel collector receives child tool-call spans before their generating `gen_ai.chat` span has flushed its `gen_ai.response.tool_calls` a...",
    "what_was_observed": "A four-agent incident (planner → retriever → synthesizer → critic) produced a trace of 1,412 spans. Replay reproduced the incident's terminal state in 9 of 10 runs. The one divergent run diverged at the planner's 7th turn: a single `gen_ai.chat` span with `gen_ai.response.tool_calls` listing three `vector_search` calls. In the divergent replay, the replay engine evaluated the three `execute_tool` child spans *before*...",
    "condition_of_validity": "Replay determinism holds only when, for every parent span P with attribute A consumed by any descendant D, the reconstruction guarantees `reconstruct(A) is visible to evaluate(D)`. This is a read-after-write invariant on the reconstructed span graph, and it is *not* implied by the causal edge `D.parent_span_id == P.span_id`. It holds when: 1. Parent attribut...",
    "decision_boundary": "The boundary is: **timestamp order vs. causal-graph order diverge exactly when a parent span's end_time exceeds the start_time of its children.** For sequential single-tool turns, `parent.end_time < child.start_time` and the two orders coincide — replay is safe under either strategy. For batched fan-out with streaming response tails, `parent.end_time > child...",
    "operational_effect": "Without the guardrail, incident RCA tooling reports divergent replay branches as real agent behavior, misattributing a telemetry-batch artifact to a reasoning failure in the planner. The critic's `reject` verdict gets logged as evidence of a genuine multi-agent disagreement, and remediation effort is spent on the wrong agent. With the guardrail, the trace is..."
  },
  "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": "beb5b72e8ec5deacfd700f8eb542a508014a6346704248981375cb5cc46d87b2",
    "verified_classes": [
      "NonReplayableTraceError",
      "Span"
    ],
    "verified_functions": [
      "audit_replayability",
      "replay"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "NonReplayableTraceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
