{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-replays-a-swarm-execution-from-otel-spans-and-the-causal-order-collapses-under-concurrent-partial-batch-emission",
  "title": "What happens when an instance replays a swarm execution from OTel spans and the causal order collapses under concurrent partial-batch emission",
  "date_of_record": "2026 November 20",
  "scope": "Applies to forensic reconstruction and deterministic replay of multi-agent executions instrumented with OpenTelemetry spans, where spans are emitted asynchronously and batched per-agent. Does not apply to single-agent traces with a single span emitter, nor to synchronous in-process instrumentation where span export is ordered by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-swarm-execution-from-otel-spans-and-the-causal-order-collapses-under-concurrent-partial-batch-emission.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-swarm-execution-from-otel-spans-and-the-causal-order-collapses-under-concurrent-partial-batch-emission.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-swarm-execution-from-otel-spans-and-the-causal-order-collapses-under-concurrent-partial-batch-emission.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2727,
    "python_slice_tokens": 475,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"order\" in a multi-agent trace, and confusing them is the root of every replay failure described here: - **Wall-clock order** — the timestamp on `span.start_time_unix_nano`. This is what the collector sorts by. It is *emitter-local* and *skew-contaminated*: each agent process stamps spans against its own monotonic clock, cor...",
    "what_was_observed": "A three-agent swarm (planner → executor → auditor) ran a task that terminated with a spurious verification failure: the auditor rejected a result the executor had actually produced correctly. The team pulled the OTel spans from the collector backend and replayed them to find the reasoning divergence. The replay showed the auditor's `verify_result` span *starting before* the executor's `produce_result` span had ended....",
    "condition_of_validity": "The invariant \"sort by causal order, not timestamp\" is *necessary* but not *sufficient*. It holds only under these conditions, each of which is a place the reconstruction can silently degrade: 1. **Every cross-agent causal edge is materialized as a span link or parent reference.** If agent A invokes agent B via a message that does not propagate `trace_id`/`s...",
    "decision_boundary": "The boundary is sharp and can be stated as a predicate the replay engine must evaluate before emitting any ordering assertion: Where `skew_bound` is the maximum |clock_offset| observed between the two spans' emitting services over the trace's epoch, derived from *paired* spans (a parent-child pair where the child's start must be ≥ the parent's start gives a ...",
    "operational_effect": "The downstream consequences are asymmetric and easy to miss: - **False forensic conclusions.** The team spent two days debugging a \"stale artifact\" bug in the auditor that did not exist. The replay's timestamp-sorted reconstruction was internally consistent, cited specific spans, and was wrong. Forensic reconstructions that violate happens-before are *more* ..."
  },
  "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": "476730f86532c4427e990a768c48a2b9adaae2d37117eea523a53d1037e8ec73",
    "verified_classes": [
      "ReplayOrderingError",
      "Order",
      "Span",
      "Trace"
    ],
    "verified_functions": [
      "assert_replayable",
      "happens_before",
      "order_pair"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayOrderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
