{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-safety-verdict-arrive-before-its-own-trace-span-and-how-does-that-orphan-the-evidence-chain",
  "title": "Why does an instance's safety verdict arrive before its own trace span, and how does that orphan the evidence chain?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to observability pipelines that ingest agent traces, eval scores, and safety verdicts as separate asynchronous streams and join them post-hoc on a shared correlation key. Does not apply to synchronous in-process instrumentation where the verdict is emitted inside the same span lifecycle as the action it judges.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-safety-verdict-arrive-before-its-own-trace-span-and-how-does-that-orphan-the-evidence-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-safety-verdict-arrive-before-its-own-trace-span-and-how-does-that-orphan-the-evidence-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-safety-verdict-arrive-before-its-own-trace-span-and-how-does-that-orphan-the-evidence-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1678,
    "python_slice_tokens": 207,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing telemetry.\" It is **causal-order inversion across three ingest streams that share a correlation key but not a clock**. A safety classifier (or eval judge) is a second LLM call that runs *after* the agent's action but *before* the trace exporter's batch flush. Because the safety stream is low-volume and low-latency (one verdict per...",
    "what_was_observed": "A tool-calling agent executes `send_email`. The sequence of emissions: 1. `t=0ms` — agent emits span `tool.send_email` with `trace_id=T`, `span_id=S1`, `status=OK`. Span enters the OTel `BatchSpanProcessor` buffer. 2. `t=340ms` — a post-hoc safety classifier reads the action + payload and returns `verdict=BLOCK_REVIEW`, `severity=high`, `trace_id=T`, `span_id=S1`. This is a single small JSON POST to the telemetry ing...",
    "condition_of_validity": "This failure is bounded and predictable under these conditions, and does *not* occur outside them: - **Asynchronous, multi-stream ingest with a shared key but independent clocks.** If verdicts and spans share a single ordered log (same producer, same partition), causal order is preserved and the failure vanishes. - **Batch span export with delay > verdict em...",
    "decision_boundary": "The architectural fork is where the join happens: - **Ingest-time join (reject).** Fast queries, but assumes arrival order. Breaks under the inversion window. Only valid if the verdict stream is buffered to the same flush cadence as spans — which defeats the purpose of low-latency safety alerting. - **Query-time join with a verdict-aware retention floor (acc...",
    "operational_effect": "Without the guardrail, the pipeline systematically under-reports safety incidents in trace-correlated views while over-reporting orphaned verdicts in the review queue. The failure is silent: no error, no dropped-metric counter, because both writes succeed. It surfaces only when an auditor asks \"show me the trace for this flagged action\" and the answer is \"th..."
  },
  "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": "f334444e1907bbe3bd2fc2deb0a32f0fb3e5acbcd285b99518eff0aa19f4948c",
    "verified_classes": [
      "EvidenceChainBroken",
      "Verdict"
    ],
    "verified_functions": [
      "assert_evidence_chain"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "EvidenceChainBroken"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
