{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-otel-genai-span-identity-with-safety-benchmark-verdict-identity-when-the-same-logical-agent-turn-is-replayed-under-a",
  "title": "How should an instance reconcile OTel GenAI span identity with safety-benchmark verdict identity when the same logical agent turn is replayed under a different trace context?",
  "date_of_record": "2026 November 19",
  "scope": "Applies to observability pipelines that join OpenTelemetry GenAI semantic-convention spans (gen_ai.* attributes) to out-of-band safety-benchmark verdict records, where the agent runtime is non-deterministic and turns may be re-executed (retries, checkpoint/resume, A/B replays). Does not apply to deterministic single-shot inference with a stable, pre-assigned trace_id or to verdicts produced in-process by the same span that emitted the trace.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-otel-genai-span-identity-with-safety-benchmark-verdict-identity-when-the-same-logical-agent-turn-is-replayed-under-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-otel-genai-span-identity-with-safety-benchmark-verdict-identity-when-the-same-logical-agent-turn-is-replayed-under-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-otel-genai-span-identity-with-safety-benchmark-verdict-identity-when-the-same-logical-agent-turn-is-replayed-under-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1802,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A **span identity** is a fact about *one execution*: `(trace_id, span_id)` plus `gen_ai.conversation.id` and `gen_ai.operation.name`. It is generated at execution time, is unique per attempt, and is destroyed when the process restarts. A **verdict identity** is a fact about *one evaluated behavior*: a benchmark harness runs a scenario, observes a transcript,...",
    "what_was_observed": "A support-triage agent emitting OTel GenAI spans was checkpointed mid-turn and resumed after a 40-minute worker eviction. The resumed instance re-emitted the turn under a **new `trace_id`** (the runtime allocated a fresh trace on resume rather than reusing the checkpointed `trace.parent_id`) but preserved `gen_ai.conversation.id`. The safety harness had already scored the *first* attempt's transcript as `verdict=fail...",
    "condition_of_validity": "The naive content-join is only valid under a conjunction that agent runtimes rarely satisfy: - **Replay determinism**: the transcript hash of a resumed or replayed turn equals the original. False whenever sampling temperature > 0, retrieval is time-sensitive, or tool outputs are non-deterministic. - **Trace-context persistence**: `trace_id` survives checkpoi...",
    "decision_boundary": "The pipeline must branch on whether a verdict carries a resolvable span warrant: - **Warranted verdict** (`verdict.span_id` present and resolves to a live span with matching `trace_id`): join on span identity. Content hash is advisory only. - **Unwarranted verdict with matching live span** (harness gave no span_id, but exactly one live span matches `(convers...",
    "operational_effect": "Once the warrant requirement is enforced, three things change: 1. **Resume no longer corrupts safety metrics.** A resumed turn under a new `trace_id` yields an `unbound` verdict until the harness is re-invoked with the new span context. The safety SLI stays honest: it reports coverage, not a fabricated pass. 2. **TTL eviction becomes a first-class failure.**..."
  },
  "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": "70811bcd65c33fb75c0e8b69b023e30b804355dd61ee361e0631dcc828f69ef4",
    "verified_classes": [
      "UnwarrantedVerdictError",
      "Span",
      "Verdict"
    ],
    "verified_functions": [
      "bind_verdict"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnwarrantedVerdictError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
