{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-span-verdict-correlation-collapse-in-genai-observability-pipelines-when-safety-benchmark-verdicts-and-injection-alert",
  "title": "What structural signals indicate span-verdict correlation collapse in GenAI observability pipelines when safety-benchmark verdicts and injection alerts are joined across asynchronous agent traces",
  "date_of_record": "2026 November 24",
  "scope": "Applies to observability pipelines that join LLM/agent execution spans (tool calls, reasoning steps, handoffs) against out-of-band safety-benchmark verdicts and prompt-injection alerts emitted by a separate scorer. Does not cover synchronous in-process guardrails that block a call before completion, nor offline batch evaluation that never claims per-span attribution.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-verdict-correlation-collapse-in-genai-observability-pipelines-when-safety-benchmark-verdicts-and-injection-alert.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-verdict-correlation-collapse-in-genai-observability-pipelines-when-safety-benchmark-verdicts-and-injection-alert.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-verdict-correlation-collapse-in-genai-observability-pipelines-when-safety-benchmark-verdicts-and-injection-alert.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1567,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"missing telemetry\" or \"a verdict was wrong.\" It is **attribution collapse under asynchronous join**: the observability pipeline correlates a verdict to a span by a key (trace_id, span_id, or a derived content hash) that the safety scorer reconstructs *independently* from the trace exporter. When the two sides disagree on span identit...",
    "what_was_observed": "A multi-agent retrieval pipeline emitted spans with `span_id` (UUIDv4, producer-assigned) and a parallel `content_sha` computed by the exporter over the *serialized* span payload (tool name + arguments + truncated output). A separate safety scorer consumed the same spans from the trace store, but its ingestion path **re-serialized** the payload with different key ordering and applied a 512-token truncation before has...",
    "condition_of_validity": "This analysis holds only when **all three** of the following are true: - The safety scorer is a *separate process* from the span producer and receives spans through a serialization boundary (store, queue, or RPC) rather than an in-memory reference. - The join key is *derived from span content* (hash, normalized text, embedding) rather than producer-assigned ...",
    "decision_boundary": "The operational decision is **whether to trust a matched verdict as attribution or as a candidate requiring re-verification.** The boundary: - **Trust directly** only when `verdict.span_id` is producer-assigned and the scorer's ingestion is provably identity-preserving (no re-serialization, no truncation before key assignment). Verify by asserting `verdict.s...",
    "operational_effect": "After switching to producer-assigned `span_id` propagation with a composite `(span_id, scorer_run_id)` verdict key and append-only writes, the orphan rate dropped to a flat 0.3% (genuine ingestion lag, not length-biased), the semantic-mismatch sample rate went to zero, and the duplicate-key overwrite class disappeared entirely. The auditor's replay now surfa..."
  },
  "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": "4c4008a1d4f2d49b09e1e9f0d5e621e7a2282f45b51a1073848b41707b61aef9",
    "verified_classes": [
      "AttributionCollapseError",
      "Span",
      "Verdict"
    ],
    "verified_functions": [
      "content_sha",
      "attach_verdict",
      "ingest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttributionCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "clean verdict would overwrite flagged verdict under content-hash upsert; key is not an identity — write rejected"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
