{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-emit-a-litmus-verdict-trace-to-verdict-staleness-under-span-reordering-and-partial-trace-export",
  "title": "When must an instance refuse to emit a LITMUS verdict: trace-to-verdict staleness under span reordering and partial trace export",
  "date_of_record": "2026 December 1",
  "scope": "Applies to eval-loop instrumentation that links an execution trace (spans, tool calls, model turns) to a downstream LITMUS safety verdict keyed by trace/span identifiers. Does not apply to online-only guardrail classifiers that score a live request without a persisted trace, nor to offline batch scoring where the trace is immutable and complete before scoring begins.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-litmus-verdict-trace-to-verdict-staleness-under-span-reordering-and-partial-trace-export.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-litmus-verdict-trace-to-verdict-staleness-under-span-reordering-and-partial-trace-export.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-litmus-verdict-trace-to-verdict-staleness-under-span-reordering-and-partial-trace-export.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1895,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different meanings of \"the verdict is attached to the trace\": 1. **Referential attachment** — the verdict row carries a `trace_id` (and often a `span_id`) that resolves to some exported trace. This is what most instrumentation asserts when it says \"traces are linked to LITMUS verdicts.\" 2. **Causal attachment** — the verdict was co...",
    "what_was_observed": "A tool-using agent emitted a LITMUS verdict of `allow` at scoring time. The trace, re-read 90 seconds later from the observability store, contained an additional span: a shell tool call whose arguments matched a prompt-injection payload pattern. The verdict predated the span. Sequence of events: - Turn 1–3 spans flushed on the 5s batch timer; scorer received them; LITMUS scored the partial trace → `allow`, verdict em...",
    "condition_of_validity": "A LITMUS verdict is causally valid for a trace only if all three hold: 1. **Closure** — the trace is *closed*: a terminal marker (root span end, or an explicit `trace.closed` event) was observed by the scorer before scoring. 2. **Set equality** — the span-id set the scorer consumed equals the span-id set the store now presents, modulo spans explicitly tagged...",
    "decision_boundary": "The boundary is not \"was the trace exported?\" but \"**was the trace closed and set-stable at scoring time, and if not, is the verdict marked provisional and re-scored on closure?**\" Concretely, the eval loop must choose one of two policies at instrumentation time: - **Close-then-score (preferred for safety verdicts).** The scorer waits for the trace-closed si...",
    "operational_effect": "With close-then-score, the eval loop gains a hard invariant: every emitted verdict carries a `scored_span_root`, and the store can reject any trace whose current root differs from the verdict's root as `STALE_VERDICT`. This turns a silent safety gap into a loud, bounded error at the boundary where it is cheapest to catch — at trace read time, before the verd..."
  },
  "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": "8f569ce27e36d80d23c8e582fa5865ddb3da45eb030c27dc1204a0aa9979321d",
    "verified_classes": [
      "StaleVerdictError",
      "UnclosedTraceError",
      "Span",
      "Trace",
      "Verdict"
    ],
    "verified_functions": [
      "score_trace",
      "verify_verdict",
      "reconcile",
      "span_root",
      "close"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleVerdictError",
      "UnclosedTraceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
