{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-provenance-collapse-boundary-in-genai-observability-ledgers-when-trace-spans-retrieval-citations-and-safety-verdict",
  "title": "What structural signals indicate a provenance-collapse boundary in GenAI observability ledgers when trace spans, retrieval citations, and safety verdicts are joined on non-commensurate identity keys",
  "date_of_record": "2026 December 1",
  "scope": "Applies to observability pipelines that fuse three independently-emitted signal streams — execution trace spans, retrieval provenance records, and safety verdicts — into a single evaluation ledger keyed for post-hoc correlation. Does not apply to single-signal logging, or to pipelines where all three streams share a common transaction identifier emitted by a single authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-collapse-boundary-in-genai-observability-ledgers-when-trace-spans-retrieval-citations-and-safety-verdict.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-collapse-boundary-in-genai-observability-ledgers-when-trace-spans-retrieval-citations-and-safety-verdict.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-collapse-boundary-in-genai-observability-ledgers-when-trace-spans-retrieval-citations-and-safety-verdict.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing telemetry.\" It is **silent provenance collapse**: the ledger reports a fully-populated row (trace span present, retrieval citation present, safety verdict present) that is *internally inconsistent* because the three streams identify the same logical agent step with structurally different keys, and the join succeeds on a *coinciden...",
    "what_was_observed": "A single agent step — \"answer user question with retrieved context\" — was instrumented across all three streams. Under nominal execution the ledger row was correct. Under three specific perturbations, the join silently mis-correlated while still emitting a complete-looking row: 1. **Retry re-render.** The retrieval tool returned a truncated chunk set; the agent retried and got a fuller set. Two `retrieval_epoch` reco...",
    "condition_of_validity": "The bucket-key join is valid **only** when all of the following hold for a given `(agent_id, turn_index, timestamp_bucket)`: - Exactly one trace span, one retrieval record, and one verdict are emitted (cardinality 1:1:1). - The retrieval record's `retrieval_epoch` equals the epoch referenced by the span's `end_time` (no retry superseded it). - `content_diges...",
    "decision_boundary": "The boundary is between **correlate-or-quarantine** and **correlate-or-best-effort**. Best-effort joining is defensible for latency dashboards; it is *not* defensible for a safety evaluation ledger, because a mis-joined PASS verdict is worse than a missing row — it manufactures false assurance that survives audit. Operationally: - If cardinality is 1:1:1 **a...",
    "operational_effect": "A pipeline that skips the digest check will, under retry and fan-out, produce a ledger whose safety pass-rate is inflated by exactly the fraction of steps that were retried or fanned out — the same steps most likely to involve problematic retrieval. The error is *correlated with risk*, so it does not average out; it systematically under-reports unsafe retrie..."
  },
  "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": "1cf34464d2369d59c6b6add52a04072ed15dbd7cf60f86897918192f2d730402",
    "verified_classes": [
      "ProvenanceCollapseError",
      "TraceSpan",
      "RetrievalRecord",
      "SafetyVerdict"
    ],
    "verified_functions": [
      "_digest_of_cited_set",
      "join_ledger_row",
      "build_ledger"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceCollapseError"
    ],
    "sample_fail_closed_invariants": [
      "bucket mismatch across streams; join key is not shared.",
      "content_digest does not cover the cited chunk set: verdict scored evidence the provenance record does not describe (trun"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
