{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-safety-verdict-detach-from-its-otel-trace-when-the-trace-exporter-samples-the-span-that-carried-the-taint",
  "title": "Why does an instance's safety verdict detach from its OTel trace when the trace exporter samples the span that carried the taint?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that emit OpenTelemetry spans per reasoning/tool step and asynchronously join those spans to post-hoc safety-benchmark verdicts and taint-graph nodes. Does not apply to synchronous inline judges that block on the same span before export, nor to systems where the verdict store is the sole source of truth for taint.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-safety-verdict-detach-from-its-otel-trace-when-the-trace-exporter-samples-the-span-that-carried-the-taint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-safety-verdict-detach-from-its-otel-trace-when-the-trace-exporter-samples-the-span-that-carried-the-taint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-safety-verdict-detach-from-its-otel-trace-when-the-trace-exporter-samples-the-span-that-carried-the-taint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2583,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the trace recorded the violation.\" The first is *span presence*: the offending tool call or reasoning step produced a span that reached the collector. The second is *span attribution*: the verdict object — produced by a safety benchmark that runs against the agent's recorded event log minutes or hours later — carries an ide...",
    "what_was_observed": "An agent executing a multi-step retrieval-and-summarize task over untrusted documents was instrumented with OTel. The runtime used a parent-based tail sampler with a 10% head-sampling probability on non-error spans and always-on sampling for spans marked `error=true`. Tool calls that returned HTTP 200 but whose *content* constituted a prompt-injection payload were, by construction, not marked `error=true` — the trans...",
    "condition_of_validity": "The detach occurs whenever all of the following hold: 1. **Sampling is decision-deferred and content-blind.** The sampler's decision is a function of span metadata (status, attributes present at start, parent decision) and not of span *payload*. A taint-carrying span whose transport succeeded looks, to the sampler, identical to a benign one. 2. **Verdict pro...",
    "decision_boundary": "The operational decision is *where to place the identity anchor for a verdict*. Two defensible positions exist, and the choice determines which failure mode you inherit. **Anchor on span identity** (`trace_id`/`span_id` captured at verdict time). This survives retries and sampler drops *only if* the verdict producer can read the span context of the event it ...",
    "operational_effect": "With the identity anchor corrected and the sentinel node introduced, the failure surface changes shape rather than disappearing. The dashboards query now returns the CRITICAL verdict with a `coverage=UNRESOLVED` column, and the alert fires on the *unresolved* count rather than on the verdict count. The operator sees: one critical injection, one unresolved ta..."
  },
  "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": "69071277c6f8adb7458e9087153aa3af4a7bce25a61c252bd932b5b13f4124aa",
    "verified_classes": [
      "TaintJoinError",
      "SpanRef",
      "Verdict",
      "TaintGraph"
    ],
    "verified_functions": [
      "join_verdict_to_graph",
      "coverage_report",
      "resolve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintJoinError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
