{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-attributes-a-litmus-safety-verdict-to-the-wrong-otel-span-after-a-retried-tool-call",
  "title": "What happens when an instance attributes a LITMUS safety verdict to the wrong OTel span after a retried tool call",
  "date_of_record": "2026 December 1",
  "scope": "Applies to runtime observability pipelines that merge LITMUS-style safety verdicts (per-invocation policy evaluations emitted asynchronously by a separate evaluator) with OpenTelemetry GenAI traces (span trees emitted by the agent runtime). Does not apply to synchronous in-process guardrails that block before emission, nor to verdicts keyed by content hash rather than span identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attributes-a-litmus-safety-verdict-to-the-wrong-otel-span-after-a-retried-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attributes-a-litmus-safety-verdict-to-the-wrong-otel-span-after-a-retried-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attributes-a-litmus-safety-verdict-to-the-wrong-otel-span-after-a-retried-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1740,
    "python_slice_tokens": 367,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the thing a verdict is about\": the *invocation* (a logical unit of model or tool execution the evaluator judged) and the *span* (the OTel record the runtime emitted for it). LITMUS verdicts are produced out-of-band by an evaluator that observes request/response payloads; OTel spans are produced in-band by the runtime. The m...",
    "what_was_observed": "A tool-calling agent issued a `search_documents` call. The runtime emitted span `S1` (span_id `0xA1`, request_id `req-77`). The tool returned a timeout at t+1.2s. The runtime's retry policy re-issued the call as span `S2` (span_id `0xB2`, same `request_id=req-77`, since the logical request was unchanged). `S2` succeeded at t+2.0s and the agent continued to completion. The LITMUS evaluator, running asynchronously, had...",
    "condition_of_validity": "The merge is only correct when the following conjunction holds: 1. **Verdict keying is span-scoped, not request-scoped.** The evaluator must receive the exact `span_id` of the payload it inspected, and the merge must key on `(trace_id, span_id)`. If the evaluator can only see `request_id`, the merge is undefined under retry. 2. **Attempt identity is immutabl...",
    "decision_boundary": "The operational choice is whether a late or ambiguous verdict should be (a) attached anyway, (b) quarantined, or (c) dropped. The boundary: - **Attach** only when `(trace_id, span_id)` matches an existing span *and* the verdict's payload hash equals the span's recorded request hash. This is the only case where attribution is provable. - **Quarantine** (emit ...",
    "operational_effect": "Downstream consumers inherit the misattribution and amplify it. Replay-based auditors that reconstruct \"did the agent proceed after a BLOCK?\" read the stamped span and conclude the agent violated policy on the retry path — flagging a safe execution. Conversely, an unsafe retry whose verdict landed on the pre-retry span reads as compliant. Safety dashboards t..."
  },
  "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": "f94dcd5432c246b2e9def024a738bf9773bd241ec73feda2e113793ff08f9ab3",
    "verified_classes": [
      "VerdictAttributionError",
      "Span",
      "Verdict",
      "Correlator"
    ],
    "verified_functions": [
      "register",
      "attach"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "VerdictAttributionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
