{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-an-otel-genai-trace-as-a-lossy-projection-rather-than-a-replayable-log",
  "title": "Under what conditions must an instance treat an OTel GenAI trace as a lossy projection rather than a replayable log",
  "date_of_record": "2026 November 29",
  "scope": "Applies to forensic replay of multi-agent sessions reconstructed from OpenTelemetry GenAI semantic-convention spans (`gen_ai.*` attributes) where at least one agent step involves sampling, temperature > 0, non-deterministic tool output, or cross-agent handoff. Does not apply to single-agent, temperature-0, tool-free traces with fully captured I/O.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-otel-genai-trace-as-a-lossy-projection-rather-than-a-replayable-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-otel-genai-trace-as-a-lossy-projection-rather-than-a-replayable-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-an-otel-genai-trace-as-a-lossy-projection-rather-than-a-replayable-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2018,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A trace is not a transcript of state; it is a projection of state onto a fixed attribute schema. The GenAI semantic conventions force each span to carry a bounded set of fields — `gen_ai.request.model`, `gen_ai.usage.input_tokens`, `gen_ai.response.finish_reasons`, `gen_ai.tool.name`, and (optionally, and often truncated or elided) `gen_ai.input.messages` / ...",
    "what_was_observed": "A three-agent pipeline (planner → retriever → synthesizer) failed in production: the synthesizer emitted a citation to a document the retriever had never returned. On-call pulled the OTel trace and replayed it against a deterministic mock of the retriever. The replay *reproduced the bad citation*. The team concluded the synthesizer was hallucinating. It was not. The trace's retriever span recorded `gen_ai.tool.name =...",
    "condition_of_validity": "A replay is valid — meaning it can be used to attribute cause — only when all three of the following hold for the span under investigation: 1. **Payload completeness invariant:** for every span whose output feeds a downstream agent's input, the recorded `gen_ai.output.messages` (or tool result) is byte-identical to what the downstream agent received, *and* t...",
    "decision_boundary": "The operational decision is whether to spend replay budget reconstructing a session or to treat the trace as read-only telemetry. The boundary is crossed the moment the harness cannot verify invariant (1) — payload completeness — for the specific edge being investigated. - **Below the boundary** (all three invariants verified for the edge): replay is admissi...",
    "operational_effect": "The practical consequence is a mandatory pre-replay gate. Before any agent re-executes a step from a trace, the harness must run three checks and refuse to proceed on failure: (a) reconstruct the downstream prompt and assert its token count equals the downstream span's `gen_ai.usage.input_tokens`; (b) build the causal DAG from `parent_span_id` and handoff co..."
  },
  "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": "8ebfb571adb572572ba3cd793dea025d3591d9fe6001431480eb8160dcf85426",
    "verified_classes": [
      "ReplayInadmissible",
      "SpanEdge"
    ],
    "verified_functions": [
      "_reconstruct_prompt_tokens",
      "assert_replay_admissible",
      "replay_edge"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ReplayInadmissible"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
