{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-causal-linkage-between-a-safety-verdict-and-the-reasoning-span-that-produced-it-when-traces-are-sampled-independently-of-eva",
  "title": "Why does an instance lose causal linkage between a safety verdict and the reasoning span that produced it when traces are sampled independently of evals",
  "date_of_record": "2026 December 1",
  "scope": "Applies to production GenAI observability pipelines that emit reasoning traces (spans), run asynchronous evals/scorers, and attach safety verdicts (classifier hits, guardrail blocks, red-team flags) to those traces. Does not apply to synchronous inline guardrails that block within the request path, nor to single-span systems with no cross-signal join.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-linkage-between-a-safety-verdict-and-the-reasoning-span-that-produced-it-when-traces-are-sampled-independently-of-eva.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-linkage-between-a-safety-verdict-and-the-reasoning-span-that-produced-it-when-traces-are-sampled-independently-of-eva.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-linkage-between-a-safety-verdict-and-the-reasoning-span-that-produced-it-when-traces-are-sampled-independently-of-eva.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1980,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing telemetry\" and not \"eval nondeterminism.\" It is **join-key divergence between three independently-sampled signal streams that share a logical request but not a physical identifier.** A trace is sampled by the tracing SDK (head-based, at span creation). An eval is scheduled by the eval worker (tail-based, on completion, often sampl...",
    "what_was_observed": "A production pipeline over a 72-hour window. Three streams: - **Trace stream:** head-sampled at 10% by the OTEL SDK; `trace_id` is a 128-bit W3C value generated at the root span. - **Eval stream:** tail-sampled at 100% of completed requests, scored asynchronously, keyed by the application's `request_id` (a UUIDv4 minted by the API gateway), with `trace_id` attached *only if* the eval worker could recover it from the ...",
    "condition_of_validity": "The invariant that must hold for cross-signal correlation to be sound: > For every safety verdict `v` with evidence set `E(v)` (the exact tokens/output the classifier scored), there exists exactly one reasoning span `s` such that `E(v) ⊆ output(s)` and `parent(s) = root(request(v))`, and the join is established by a **single identifier minted before any stre...",
    "decision_boundary": "The operational choice is not \"sample more\" or \"sample less.\" It is **where the join key is minted relative to the first sampling decision.** - **Sound:** mint `correlation_id` at gateway ingress → inject into OTEL baggage → eval worker reads from baggage → guardrail reads from baggage. Sampling decisions downstream cannot break the join because the key pred...",
    "operational_effect": "The observable consequence is **safety-signal misattribution that survives audit.** Because the pipeline reports a high correlation rate, downstream consumers — incident review, red-team triage, model-release gates — treat the attached verdicts as ground truth. A `BLOCK` verdict on the wrong trace causes two failures at once: the true offending request is ne..."
  },
  "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": "63d1070ff614f572df503afead2f91da074b73582aa99c6dc543aac7909d0927",
    "verified_classes": [
      "CorrelationContinuityError",
      "Verdict",
      "Span"
    ],
    "verified_functions": [
      "bind_verdict_to_span",
      "correlate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CorrelationContinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
