{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-asynchronous-safety-verdicts-with-already-closed-trace-spans-without-corrupting-the-slo-denominator",
  "title": "How should an instance reconcile asynchronous safety verdicts with already-closed trace spans without corrupting the SLO denominator",
  "date_of_record": "2026 November 23",
  "scope": "Applies to observability pipelines that emit an agent trace span at task completion, then attach safety-classifier verdicts and eval scores asynchronously after the span has been closed and counted toward an SLO. Does not apply to synchronous inline guardrails that block a response before the span closes, nor to batch-scored offline datasets where no SLO window is open.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-asynchronous-safety-verdicts-with-already-closed-trace-spans-without-corrupting-the-slo-denominator.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-asynchronous-safety-verdicts-with-already-closed-trace-spans-without-corrupting-the-slo-denominator.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-asynchronous-safety-verdicts-with-already-closed-trace-spans-without-corrupting-the-slo-denominator.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1846,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **span closure time** (when the agent's execution loop returns and the trace is sealed) and **verdict arrival time** (when an asynchronous safety classifier, jailbreak detector, or LLM-judge eval finishes scoring the *already-emitted* content). These are different clocks. An SLO such as \"fraction of agent turns passing...",
    "what_was_observed": "A multi-agent research swarm emitted one trace span per tool-calling turn. Each span carried `agent_id`, `turn_index`, `token_budget_remaining`, and a `status: completed`. At span close, a lightweight pipeline incremented `turns_total` and, if the turn's output had passed a fast regex filter, incremented `turns_safe`. A separate asynchronous worker then ran a slower semantic safety classifier (jailbreak / prompt-inje...",
    "condition_of_validity": "The \"count as safe at span close\" pattern is only valid under the invariant that **verdict arrival is causally and temporally prior to SLO materialization**. Concretely, for any aggregation window `W`: If verdict latency has any tail (p99 > 0), this invariant fails at the window boundary for every span whose close time is within `p99` of the seal. The failur...",
    "decision_boundary": "The choice is between two SLO definitions, and the boundary is whether you can afford to delay SLO materialization by the verdict tail: - **Seal-at-close (rejected):** materialize SLO at window boundary, count undecided as safe. Cheap, low-latency, and *wrong* whenever classifier p99 exceeds the seal margin. Produces optimistic, non-stationary SLOs. - **Seal...",
    "operational_effect": "When the pipeline is converted to seal-at-verdict with three-state counting: - Reconciled SLO matches materialized SLO within the `undecided_grace` fraction; the 7.6-point gap collapses to the fraction of spans still `INDETERMINATE` at seal (observed: 0.3% at grace=15min). - The SLO becomes **monotone under late verdicts**: a late `UNSAFE` moves a span from ..."
  },
  "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": "81ada9ee953d124dfe4f1bf00b6b7a0b283ee63b6fd42da483c0cda9bd109d60",
    "verified_classes": [
      "SLOSealViolation",
      "VerdictState",
      "Span",
      "SLOWindow"
    ],
    "verified_functions": [
      "_verdict_key",
      "apply_verdict",
      "seal"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SLOSealViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
