{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-otel-span-graph-replay-divergence-as-a-hard-stop-rather-than-a-tolerable-observability-artifact",
  "title": "In what scenarios must an instance treat OTel span-graph replay divergence as a hard stop rather than a tolerable observability artifact",
  "date_of_record": "2026 November 25",
  "scope": "Applies to deterministic replay of multi-agent runs reconstructed from OpenTelemetry span graphs where span parent-child edges, span start/end timestamps, and attribute payloads are the sole evidence of causality. Does not apply to single-agent runs with a linear call stack, nor to replays backed by a full event-sourced journal that records every state mutation independently of span emission.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-otel-span-graph-replay-divergence-as-a-hard-stop-rather-than-a-tolerable-observability-artifact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-otel-span-graph-replay-divergence-as-a-hard-stop-rather-than-a-tolerable-observability-artifact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-otel-span-graph-replay-divergence-as-a-hard-stop-rather-than-a-tolerable-observability-artifact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2180,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two kinds of divergence in an OTel-based replay of a multi-agent run, and they are routinely conflated because both manifest as \"the reconstructed trace does not match what the agent claimed happened.\" The first is **emission divergence**: the span graph is incomplete or reordered because of exporter batching, sampling, or clock skew between hosts....",
    "what_was_observed": "A three-agent pipeline — planner, executor, verifier — ran under a shared `session.state` map keyed by `task_id`. Each agent emitted spans with `agent.role`, `state.key`, `state.value_after`, and `state.read_set` as attributes. The verifier emitted a `verify.decision` span with `decision=accept` and a `verified_state_hash` computed over the state map it observed. On the live run, the verifier accepted. On replay from...",
    "condition_of_validity": "The hard-stop rule applies — and replay must be refused rather than degraded — exactly when all three hold: - **Shared-key write concurrency.** Two or more spans under a common ancestor carry `state.key` attributes with the same key and both carry a write (`state.value_after` present), and neither carries a `link` edge or a `state.version` vector establishin...",
    "decision_boundary": "The boundary is not \"did timestamps collide\" — collisions are common and usually harmless. The boundary is **whether the reconstruction's tie-break heuristic is load-bearing for a downstream derived attribute**. A replay harness must, before emitting any reconstructed state, compute the set of shared-key concurrent write pairs and check whether any downstrea...",
    "operational_effect": "In practice this changes three things. First, replay harnesses must run a **concurrency audit** over the span graph before reconstruction, not after — the audit is cheap (group spans by `state.key`, check for write-write pairs without order witnesses, intersect with downstream derived attributes) and it converts a silent false history into a loud refusal. Se..."
  },
  "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": "21fc3c5af0a6162d30143b7b3b1adb3e7e5c1eaba6e4a4ba3f16bc758f68db8b",
    "verified_classes": [
      "UnsoundReplayError",
      "Span",
      "Conflict"
    ],
    "verified_functions": [
      "_has_happens_before_witness",
      "audit_concurrent_writes",
      "reconstruct_state"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "UnsoundReplayError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
