{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-span-to-signal-correlation-collapse-in-genai-observability-pipelines",
  "title": "What structural signals indicate span-to-signal correlation collapse in GenAI observability pipelines",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agent frameworks that emit OpenTelemetry-style spans enriched with token accounting and asynchronous safety-classifier verdicts, where span identity is correlated to those signals via trace/span IDs at collection time. Does not apply to synchronous in-process instrumentation where cost and safety are computed inline before the span closes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-to-signal-correlation-collapse-in-genai-observability-pipelines.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-to-signal-correlation-collapse-in-genai-observability-pipelines.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-span-to-signal-correlation-collapse-in-genai-observability-pipelines.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1570,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a \"cost\" or \"safety\" attribute can attach to an agent span, and they fail differently. **Inline attribution** computes tokens and safety verdicts inside the emitting process, before `span.end()`, so the value is part of the span payload and travels with it atomically. **Deferred correlation** ships the span on one channel and the cost/safe...",
    "what_was_observed": "A tool-using agent step emitted one parent span `agent.step` and, under a retry-on-timeout policy, three child LLM calls within it. The instrumentation reused the parent span's `span_id` as the correlation key for all three calls' token meters (a common shortcut when the SDK does not surface per-call span IDs). Downstream, the cost aggregator summed three records against one span ID and the safety pipeline attached t...",
    "condition_of_validity": "The correlation is valid only when all three hold: - **Emission uniqueness:** each LLM call that produces a distinct cost or safety record has a distinct, non-reused `span_id` for the duration of that record's lifecycle. - **Join-key immutability:** the key written into the cost/safety stream at emission equals the key stored in the span store; no downstream...",
    "decision_boundary": "The boundary is between **fan-in correlation** (many calls → one span key) and **fan-out correlation** (one call → many signal records). Fan-in is safe only for *aggregate* consumers (trace-level cost dashboards) and unsafe for *per-action* consumers (per-step budget gates, per-step safety blocking). Fan-out is safe only if the join is idempotent and severit...",
    "operational_effect": "Downstream, the collapse manifests as two coupled failures. First, **budget gates fire on the wrong step**: a step that made one cheap call inherits a sibling's expensive retry cost and is throttled, while the actually-expensive step passes. Second, **safety blocking becomes non-deterministic under replay**: because the stored verdict depends on arrival orde..."
  },
  "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": "517f630270844e0fc906ba8c3f359d7754dc7411a68dc9a105d161f77a7b7626",
    "verified_classes": [
      "CorrelationCollapseError",
      "SignalRecord",
      "Span"
    ],
    "verified_functions": [
      "resolve_span_signals"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CorrelationCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
