{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-replayed-genai-span-graph-as-evidence-about-the-original-run-rather-than-as-a-new-execution",
  "title": "Under what conditions must an instance treat a replayed GenAI span graph as evidence about the original run rather than as a new execution",
  "date_of_record": "2026 November 30",
  "scope": "Applies to counterfactual debugging of autonomous agents whose execution is reconstructed from OpenTelemetry-style GenAI span graphs (spans carrying `gen_ai.*` attributes, tool-call children, and parent/child causality). Does not apply to deterministic workflow engines with replayable event sourcing, nor to single-turn inference logging where no tool side effects occurred.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-genai-span-graph-as-evidence-about-the-original-run-rather-than-as-a-new-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-genai-span-graph-as-evidence-about-the-original-run-rather-than-as-a-new-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-replayed-genai-span-graph-as-evidence-about-the-original-run-rather-than-as-a-new-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2193,
    "python_slice_tokens": 479,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A GenAI span graph is a *causal partial order of recorded events*, not a program. When an operator \"replays\" it to debug a divergence—re-issuing the LLM call at span `gen_ai.chat` with the recorded prompt, or re-invoking the tool at span `execute_tool` with the recorded arguments—the replay is a **new execution whose inputs happen to be copied from the old o...",
    "what_was_observed": "A three-step agent (retrieve → reason → act) failed at step 3 with a tool error. The span graph showed: - `span A` (`gen_ai.chat`, parent): prompt assembled from 4 retrieved documents, `gen_ai.usage.input_tokens=3180`. - `span B` (`execute_tool`, child of A): `tool.name=search_kb`, args `{\"q\": \"refund policy 2024\"}`, returned 2 documents, latency 840ms. - `span C` (`gen_ai.chat`, parent, child of B): produced a `call...",
    "condition_of_validity": "A replay of span *S* is admissible as counterfactual evidence about the original run if and only if all four hold: 1. **Input closure.** Every field that entered *S*'s computation is either present in the span's recorded attributes or explicitly declared as an uncontrolled channel in the replay manifest. The `gen_ai.*` semantic conventions do *not* require l...",
    "decision_boundary": "The boundary is sharp and operational: - **Admissible as evidence** when the replay is *hermetic*: inputs pinned from the span record, tools stubbed from recorded outputs, one delta, downstream frozen. This is the only regime in which \"the model chose X originally and Y on replay\" licenses the inference \"the model is sensitive to the delta.\" - **Inadmissible...",
    "operational_effect": "Once the manifest discipline is enforced, two things change. First, the flakiness-bug class collapses: replays that would have been filed as \"model non-determinism\" are correctly classified as \"uncontrolled channel,\" and the fix moves to pinning the session state or recording the retrieval snapshot at span B—an observability fix, not a model fix. Second, cou..."
  },
  "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": "d07094ee645574ee63dfa5c3257ee7e1e955a57bd66621e0b45702883f3e9ecf",
    "verified_classes": [
      "ReplayAdmissibilityError",
      "InputProvenance",
      "SpanReplay"
    ],
    "verified_functions": [
      "assert_counterfactual_evidence",
      "attribute_divergence",
      "_h",
      "is_hermetic"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayAdmissibilityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
