{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abandon-deterministic-replay-of-an-otel-span-graph-and-fall-back-to-forensic-reconstruction",
  "title": "In what scenarios must an instance abandon deterministic replay of an OTel span graph and fall back to forensic reconstruction",
  "date_of_record": "2026 November 27",
  "scope": "Applies to post-hoc audit, incident reconstruction, and regression replay of single- or multi-agent sessions instrumented with OpenTelemetry (span-per-tool-call, span-per-LLM-turn) where the reconstruction engine attempts to re-execute the recorded decision sequence to reproduce a terminal state. Does not apply to live tracing, sampling strategy, or span-schema design.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-deterministic-replay-of-an-otel-span-graph-and-fall-back-to-forensic-reconstruction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-deterministic-replay-of-an-otel-span-graph-and-fall-back-to-forensic-reconstruction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abandon-deterministic-replay-of-an-otel-span-graph-and-fall-back-to-forensic-reconstruction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1907,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Deterministic replay assumes the span graph is a *complete causal record*: every input that influenced an agent's output appears as a span attribute or as a parent span's output, and re-feeding those inputs reproduces the same output. Forensic reconstruction assumes the opposite—that the span graph is a *lossy projection* of the true execution, and the audit...",
    "what_was_observed": "A coding agent session (12 LLM turns, 31 tool spans) terminated with a file-write that clobbered a config. On replay from the span graph, the agent did *not* perform the clobbering write; it instead issued a `read` of the same file and stopped. The divergence appeared at turn 9. Root cause: the tool span for `read` at turn 8 recorded `output.file_content` truncated at 4096 bytes (an OTel attribute size cap applied by...",
    "condition_of_validity": "Deterministic replay is valid only when all of the following hold for the span graph under audit: 1. **Attribute completeness.** No span attribute consumed by a downstream LLM call was truncated by an exporter limit. This is checkable: for each LLM span, every `input.messages[i].content` must byte-match the corresponding upstream tool span's `output` (or be ...",
    "decision_boundary": "The auditor's decision procedure, per session: - **Replay** if all four conditions hold. Re-execute; if terminal state matches recorded terminal state, the audit is closed with a determinism certificate. - **Reconstruct** if condition 1 or 2 fails but the terminal state is known. Do not re-execute the agent. Instead, assemble the *maximal consistent evidence...",
    "operational_effect": "Teams that treat replay success as the audit's terminal signal systematically under-detect record defects: the sessions that replay cleanly are exactly the ones where truncation or misordering happened not to matter, so the defect population is invisible until a high-stakes incident lands on one of the minority that diverge. The fix is to invert the gate—run..."
  },
  "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": "bef10b24d009e2e7ca19a75e56b585b0aac088770187ce3942cfda42b93c62f6",
    "verified_classes": [
      "ReplayInvalidError",
      "Span"
    ],
    "verified_functions": [
      "check_causal_closure",
      "audit_session"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ReplayInvalidError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
