{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-trace-span-whose-safety-signal-arrived-after-the-slo-window-closed",
  "title": "When must an instance quarantine a trace span whose safety signal arrived after the SLO window closed?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to observability pipelines that compute per-agent SLOs (task success, tool-error rate, policy-violation rate) by joining three asynchronous streams: execution traces (spans emitted at runtime), evaluation verdicts (emitted by an offline or shadow judge, often seconds-to-minutes later), and safety signals (emitted by a guard model or policy engine that may be delayed, retried, or reordered). Does not apply to synchronous inline scoring where the safety verdict is a precondition of the span being committed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-trace-span-whose-safety-signal-arrived-after-the-slo-window-closed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-trace-span-whose-safety-signal-arrived-after-the-slo-window-closed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-trace-span-whose-safety-signal-arrived-after-the-slo-window-closed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2076,
    "python_slice_tokens": 418,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"late data.\" It is a **window-closure race between a finalized SLO aggregate and an in-flight safety verdict on spans the aggregate already consumed**. An SLO is a *closed* reduction: `violation_rate = count(violating spans) / count(eligible spans)` over a fixed `[t0, t1)`. A safety signal is an *open* stream keyed by `trace_id`/`span_id` ...",
    "what_was_observed": "A support agent fleet ran a 5-minute SLO window (`t1 - t0 = 300s`) on `policy_violation_rate`, threshold 0.5%. Traces were emitted at request completion. The safety guard model was invoked asynchronously per span with a p99 latency of 11s but a long tail: retries on guard-model 429s pushed some verdicts to 40–190s after span emission. The reducer fired at `t1 + 5s` grace. Failure trace for one window: 1. At `t1`, 4,1...",
    "condition_of_validity": "The quarantine-and-ledger pattern is valid only when all three hold: - **Verdicts are idempotent and versioned.** Each safety signal carries `(span_id, verdict_version, verdict_ts)`. A revised verdict for the same span supersedes by version, not by arrival order. Without this, ledger replay is non-deterministic. - **The SLO window is a closed interval with a...",
    "decision_boundary": "Given a span eligible at `t1` with no verdict, decide among three actions by comparing `now - t1` against the configured `max_lateness L` and the guard's retry-exhaustion signal: The boundary is `now - t1 == L` **and** retry-exhaustion. `L` must be derived from the guard's p99.9, not its p99; setting `L = p99` guarantees ~0.1% of spans are quarantined every ...",
    "operational_effect": "After adopting quarantine-and-ledger: `policy_violation_rate` became `judged_violations / eligible_spans` with `unjudged_count` published alongside. The alerting rule gained a second clause: page if `rate > 0.5%` **or** `unjudged_count / eligible > 1%`. The retroactive-overwrite path was removed; late verdicts emit `slo_correction` events consumed by a weekl..."
  },
  "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": "4bcb20f7c7cabb28b7a9e571c33c478e5d06ba9293be02d9d5e3bdab81298f11",
    "verified_classes": [
      "SloWindowError",
      "WindowState",
      "SafetyVerdict",
      "SloWindow"
    ],
    "verified_functions": [
      "finalize",
      "apply_late_verdict",
      "violation_rate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SloWindowError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
