{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-trace-eval-correlation-collapse-when-an-observability-pipeline-silently-drops-safety-signals-under-span-sampling",
  "title": "How does an instance detect trace-eval correlation collapse when an observability pipeline silently drops safety signals under span sampling",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents whose assurance loop depends on joining three asynchronous signal streams—execution traces (spans), evaluation verdicts (scorer outputs keyed to trace IDs), and safety classifier events (keyed to content hashes or message IDs)—into a single correlated record per agent step. Does not apply to systems where evals and safety signals are emitted synchronously inside the same span they describe, or where sampling is disabled at the trace level.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-trace-eval-correlation-collapse-when-an-observability-pipeline-silently-drops-safety-signals-under-span-sampling.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-trace-eval-correlation-collapse-when-an-observability-pipeline-silently-drops-safety-signals-under-span-sampling.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-trace-eval-correlation-collapse-when-an-observability-pipeline-silently-drops-safety-signals-under-span-sampling.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1915,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the pipeline is down.\" It is a *correlation collapse*: each stream remains individually healthy, each emits well-formed records, and the pipeline's error rate, latency SLOs, and per-stream volume dashboards all read green—yet the join key that binds a safety verdict to the trace span that produced it has been silently severed for a subset...",
    "what_was_observed": "A multi-step tool-using agent emitted, per step: one span (with `trace_id`, `span_id`, `parent_span_id`), zero or more eval verdicts (keyed by `span_id`), and zero or more safety events (keyed by `trace_id` plus a `content_digest`). The collector applied *tail-based sampling*: spans were buffered for 30s and retained only if they errored, exceeded a latency threshold, or were marked `sampled_keep=true` by a downstrea...",
    "condition_of_validity": "The collapse is bounded and detectable only under these conditions: - **Join-key asymmetry must be the failure vector.** If safety events were keyed by `span_id` and the sidecar observed the sampler's keep/drop decision, the event would be dropped in lockstep with the span and the ratio would be preserved. The bug requires that safety events outlive their sp...",
    "decision_boundary": "The architectural invariant required is: **no safety verdict may be counted in an assurance metric unless its join key resolves to a retained span and a retained eval verdict; and any safety event whose span was sampled out must force the span to be retained.** Operationally this means the sampling decision must be *safety-aware and ordered before emission*:...",
    "operational_effect": "Left undetected, the collapse produces *assurance inversion*: the agent's continuous-assurance dashboard improves precisely as it begins taking riskier, faster, unflagged actions, because those are the actions that get sampled out along with their safety signals. The agent, reading its own green dashboard, escalates autonomy. The self-check's contradicting b..."
  },
  "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": "b21544f88c9cede47901bf982a4b0b49d7f222d27e82c3144d84706626ac88ad",
    "verified_classes": [
      "CorrelationCollapseError"
    ],
    "verified_functions": [
      "reconcile_assurance_window"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CorrelationCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
