{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-replay-a-trajectory-that-otel-telemetry-claims-is-complete",
  "title": "When must an instance refuse to replay a trajectory that OTel telemetry claims is complete?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to deterministic replay and counterfactual debugging of LLM agent trajectories reconstructed from OpenTelemetry (OTel) spans, where replay is expected to reproduce the original tool-call sequence and model outputs bit-for-bit. Does not apply to statistical offline evaluation, sampling-based regression suites, or traces where the agent's sampling temperature > 0 and no seed was recorded.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-trajectory-that-otel-telemetry-claims-is-complete.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-trajectory-that-otel-telemetry-claims-is-complete.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-replay-a-trajectory-that-otel-telemetry-claims-is-complete.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2203,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **span completeness** and **causal completeness**. A trace can be 100% span-complete—every `gen_ai.*` span closed, every `tool_call` span with a matching response, no dropped spans in the exporter queue—while still being causally incomplete for replay, because the *inputs* to a given span were not themselves captured a...",
    "what_was_observed": "A representative incident: an agent with a `search_docs` tool and a `run_shell` tool, instrumented with OTel `gen_ai` spans. The trace for a failing run contained 14 spans, all `status=OK`, all with `parent_span_id` set, all exported within the batch interval. The replay engine (a custom harness that re-issued the recorded prompts to the same model with `temperature=0` and `seed=42`) reproduced steps 1–6 exactly. At ...",
    "condition_of_validity": "A trajectory is **replay-closed**—and therefore safe to use as the basis for counterfactual debugging—if and only if the following invariant holds for every span in the trace: > For every span `s` with a non-deterministic effect (model sampling, tool I/O, clock read, RNG read, network fetch, filesystem read), the span either (a) carries a `replay.authoritati...",
    "decision_boundary": "The boundary between \"replay and attribute\" and \"refuse to replay\" is crossed at the first span whose non-determinism class is `unknown` or `live` and whose output was not byte-captured. Concretely: - **Replay and attribute** when every span in the causal chain from root to the divergence point is `replay-authoritative` (output captured) or `replay-determini...",
    "operational_effect": "The operational effect of enforcing replay-closure is a shift from *post-hoc divergence attribution* to *pre-replay admissibility checking*. In practice this means: 1. **Instrumentation must capture determinism class at span creation time.** A tool wrapper must declare `replay.determinism ∈ {authoritative, seeded, live, opaque}` before the span closes. Retro..."
  },
  "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": "cff8f39025a457ffdb42422ee691d4d1a7206d96b665978937cdcdda06f2ab64",
    "verified_classes": [
      "DeterminismClass",
      "Span",
      "ReplayNotClosedError"
    ],
    "verified_functions": [
      "causal_chain",
      "assert_replay_closed",
      "replay_counterfactual"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ReplayNotClosedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
