{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-a-safety-event-trace-that-arrives-after-its-parent-prompt-span-has-already-been-evicted-from-the-observability-correl",
  "title": "Where must an instance reconcile a safety-event trace that arrives after its parent prompt span has already been evicted from the observability correlator?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to GenAI observability pipelines that correlate prompt spans, tool-call spans, and asynchronous safety-classifier events by span/trace identity under bounded retention. Does not apply to synchronous inline safety gating where the classifier verdict is returned before the span closes, nor to systems with unbounded trace retention.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-safety-event-trace-that-arrives-after-its-parent-prompt-span-has-already-been-evicted-from-the-observability-correl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-safety-event-trace-that-arrives-after-its-parent-prompt-span-has-already-been-evicted-from-the-observability-correl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-safety-event-trace-that-arrives-after-its-parent-prompt-span-has-already-been-evicted-from-the-observability-correl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1777,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this failure is between *causal ordering at the agent layer* and *arrival ordering at the observability layer*. An agent emits a prompt span, dispatches a tool call, and the tool's side effect completes synchronously from the agent's perspective. The safety classifier, however, runs out-of-band: it may be a queued batch job, a se...",
    "what_was_observed": "A trace-level audit of a production pipeline (prompt spans retained 15 minutes in the hot correlator; safety classifier on a shared batch queue) surfaced the following sequence for a tool-using agent turn: 1. `prompt_span` opens at `t0`, carries `trace_id` and `span_id`, `gen_ai.prompt.hash`, model id, and token counts. 2. `tool_span` opens as a child at `t0+0.4s`, closes at `t0+2.1s` with `tool.latency_ms=1700` and ...",
    "condition_of_validity": "The invariant that must hold for correlation to be sound is: > For every safety event `e` keyed to span `s`, the correlator must be able to resolve `s` and all of `s`'s children at the moment `e` is correlated, **or** must record `e` as an explicit orphan with its own durable parent-context payload. This invariant is violated exactly when `arrival_latency(e)...",
    "decision_boundary": "When a safety event arrives and the correlator cannot resolve its parent, the pipeline faces a three-way decision that must be made *explicitly and per-event*, never by default: - **Reconstruct** if a durable correlation anchor exists and the reconstructed subtree is complete. Reconstructed traces must be marked `reconstructed=true` so downstream consumers d...",
    "operational_effect": "The observable effect of getting this wrong is a *silent negative*: traces with late safety events report zero safety events, which is semantically identical to traces that were genuinely clean. Safety dashboards undercount precisely on the traces where classifier queue depth was highest—which correlates with high agent traffic and therefore with the highest..."
  },
  "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": "02110aeb17958a2ed23a749166b6142705ad1781bbaf57b98424031949cb32bb",
    "verified_classes": [
      "OrphanedSafetyEventError",
      "CorrelationAnchor",
      "SafetyEvent",
      "Correlator"
    ],
    "verified_functions": [
      "close_span",
      "evict",
      "correlate",
      "orphan_rate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OrphanedSafetyEventError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
