{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reconcile-litmus-safety-failure-spans-with-opentelemetry-genai-semantic-conventions-before-emitting-telemetry",
  "title": "Under what conditions must an instance reconcile LITMUS safety-failure spans with OpenTelemetry GenAI semantic conventions before emitting telemetry",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that instrument LITMUS-style safety benchmark verdicts (harm-refusal, jailbreak resistance, tool-misuse, prompt-injection containment) and export them as OpenTelemetry `gen_ai.*` spans. Does not apply to raw log shipping or to non-agentic batch scoring where no span lifecycle exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reconcile-litmus-safety-failure-spans-with-opentelemetry-genai-semantic-conventions-before-emitting-telemetry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reconcile-litmus-safety-failure-spans-with-opentelemetry-genai-semantic-conventions-before-emitting-telemetry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reconcile-litmus-safety-failure-spans-with-opentelemetry-genai-semantic-conventions-before-emitting-telemetry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "LITMUS verdicts are *categorical, post-hoc, and benchmark-scoped*: a probe either elicited a violation or it did not, and the verdict is produced after a scoring pass over a transcript. OpenTelemetry GenAI events are *streaming, span-scoped, and lifecycle-bound*: a span opens at invocation, accumulates attributes, and closes on completion, and the semantic c...",
    "what_was_observed": "An agent harness ran a LITMUS jailbreak-resistance suite against a tool-using agent. Each probe invocation produced a `gen_ai.chat` span with `gen_ai.operation.name=chat`, `gen_ai.request.model`, and `gen_ai.usage.*` attributes. Scoring ran as a separate offline pass reading the transcript store, emitting verdicts 200–900 ms after each span closed. The mapping layer was written to attach verdicts as span events: on v...",
    "condition_of_validity": "The mapping is only valid when three conditions hold simultaneously: 1. **Span-liveness:** the target GenAI span is still recording (not ended, not flushed) at verdict-assignment time, OR the verdict is emitted as a new span that carries an explicit `SpanContext` link back to the original `trace_id`/`span_id`. 2. **Namespace legality:** the verdict event's a...",
    "decision_boundary": "The decision boundary is the **flush horizon**: the point at which the span processor has ended and exported the span, after which mutation is impossible. If scoring latency `L_score` can exceed the span's `schedule_delay` + export time `T_flush`, the attach-to-existing-span strategy is invalid and the runtime MUST switch to the linked-span strategy (emit ve...",
    "operational_effect": "Downstream consumers (safety dashboards, regression gates, red-team triage) treat the collector as ground truth. A biased-absent telemetry stream causes a regression gate to pass a model that should have been blocked, because the gate queries `count(litmus.verdict where outcome=fail)` and gets zero — not because there were no failures, but because the failur..."
  },
  "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": "643f386fbd8495f14d05bf57260e8918c46e01d912c4dbfdf334ca9cf56fe473",
    "verified_classes": [
      "TelemetryMappingError",
      "SpanContext",
      "GenAISpan",
      "LitmusVerdict"
    ],
    "verified_functions": [
      "emit_verdict",
      "self_test",
      "add_event"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TelemetryMappingError"
    ],
    "sample_fail_closed_invariants": [
      "fail-direction verdict unrepresentable at startup; refusing to emit benchmark telemetry that would under-report safety f"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
