{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-hidden-sampler-state-to-make-an-opentelemetry-genai-trace-replayable",
  "title": "Where must an instance re-derive hidden sampler state to make an OpenTelemetry GenAI trace replayable?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to forensic replay of LLM agent sessions reconstructed from OpenTelemetry GenAI semantic-convention spans when the original session was executed against a hosted inference API that exposes `temperature`, `top_p`, `seed`, and `system_fingerprint` but not the full sampling implementation. Does not apply to locally hosted models with pinned weights and pinned sampler source, where full determinism is achievable by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-hidden-sampler-state-to-make-an-opentelemetry-genai-trace-replayable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-hidden-sampler-state-to-make-an-opentelemetry-genai-trace-replayable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-hidden-sampler-state-to-make-an-opentelemetry-genai-trace-replayable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2138,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace is a *record of decisions*, not a *generator of decisions*. OpenTelemetry GenAI spans capture the observable envelope of each model call — `gen_ai.request.model`, `gen_ai.request.temperature`, `gen_ai.request.top_p`, `gen_ai.request.seed`, `gen_ai.request.max_tokens`, `gen_ai.response.finish_reasons`, token counts, and (optionally) the prompt and com...",
    "what_was_observed": "A three-step agent session (retrieve → summarize → emit structured action) was replayed from its OTel trace after an incident where the agent emitted a destructive tool call. The trace recorded, for the failing call: - `gen_ai.request.seed = 424242` - `gen_ai.request.temperature = 0.7` - `gen_ai.request.top_p = 0.95` - `gen_ai.response.system_fingerprint = fp_4471a2` (present, but *not* included in the replay key by ...",
    "condition_of_validity": "Deterministic replay from an OTel GenAI trace is valid **only** when all of the following hold as a conjunction: 1. **Sampler identity is pinned and matched.** The replay key must include `gen_ai.response.system_fingerprint` (or the provider's equivalent immutable serving-build identifier), and the engine must *refuse* to replay when the current fingerprint ...",
    "decision_boundary": "The operative choice is between **generative replay** and **observational replay**, and the boundary is drawn by fingerprint and tokenizer agreement, not by parameter agreement. - **Generative replay** (re-execute the model call and compare outputs) is permitted only when fingerprint, tokenizer identity, and decoding mode all match the recorded trace. Under ...",
    "operational_effect": "Enforcing the invariant changes three things operationally: 1. **Trace schema.** Incident-grade traces must carry `gen_ai.response.system_fingerprint`, `tokenizer_version` (or token IDs), and `decoding_mode`. Without these, the trace is forensically incomplete and should be flagged at capture time, not at replay time — the fingerprint is unrecoverable after ..."
  },
  "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": "fe8849a7a75f8381b33e1b3879d06df9b64e2a217e908e7ba528a763b5be8c2c",
    "verified_classes": [
      "ReplayFidelityError",
      "Fidelity",
      "TraceRecord",
      "ReplayTarget"
    ],
    "verified_functions": [
      "classify_fidelity",
      "generative_replay",
      "observational_replay",
      "replay_session"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ReplayFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
