{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-fail-to-replay-a-multi-agent-trace-when-otel-genai-span-timestamps-are-monotonic-but-parent-child-causality-is-not",
  "title": "Why does an instance fail to replay a multi-agent trace when OTel GenAI span timestamps are monotonic but parent-child causality is not?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to post-incident forensic replay of multi-agent runs reconstructed from OpenTelemetry GenAI semantic-convention spans where causality is inferred from span parentage and timestamps rather than from an explicit causal token. Does not apply to single-agent traces or to runs recorded with a total-order event log (e.g., a sequencer or vector-clock ledger).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-to-replay-a-multi-agent-trace-when-otel-genai-span-timestamps-are-monotonic-but-parent-child-causality-is-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-to-replay-a-multi-agent-trace-when-otel-genai-span-timestamps-are-monotonic-but-parent-child-causality-is-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-fail-to-replay-a-multi-agent-trace-when-otel-genai-span-timestamps-are-monotonic-but-parent-child-causality-is-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1796,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace is *temporally ordered* when every span carries a start/end timestamp that respects wall-clock monotonicity within a process. A trace is *causally ordered* when every downstream effect can be attributed to the exact upstream decision that produced it. These two properties are independent, and OTel GenAI spans give you the first almost for free while ...",
    "what_was_observed": "During forensic replay of a three-agent swarm (planner → retriever → verifier) handling a 41-step retrieval-augmented task, the reconstruction engine reported a clean causal chain. Manual audit against the raw span export revealed the following: - The planner emitted `gen_ai.chat` span `P7` (decision to invoke `search_docs`) with `end_time = T+412ms`. - The retriever's `gen_ai.tool` span `R3` (`search_docs` execution...",
    "condition_of_validity": "Timestamp-based causal reconstruction is valid **only** when all of the following hold: 1. Every span is emitted by the same process, or all processes share a synchronised monotonic clock with bounded skew smaller than the smallest inter-span gap. 2. No span is exported through a batching processor that can reorder relative to its parent's export. 3. The cau...",
    "decision_boundary": "A replay engine must refuse to emit a causal narrative when the reconstructed order is timestamp-ambiguous. The boundary condition is: > If any child span's `start_time` is less than its parent's `end_time` (a \"temporal inversion\"), the trace is causally underdetermined and must be flagged, not silently sorted. The correct handling is to fall back to parenta...",
    "operational_effect": "Without the guardrail, replay produces *plausible but wrong* attributions: a verifier blamed for hallucination when it was correct, a retriever credited with a document it never returned, a planner's decision attributed to a step that had not yet occurred. These errors are invisible in the trace UI because the span graph is structurally valid. They are catas..."
  },
  "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": "a67fa01b5c63f4e90e7555fc07ea0ebf189f294624cd75d00c555c74c5f07fac",
    "verified_classes": [
      "CausalReplayInversionError",
      "Span"
    ],
    "verified_functions": [
      "reconstruct_causal_order",
      "depth"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CausalReplayInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
