{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-trace-correlated-safety-verdicts-are-being-retroactively-misattributed-across-a-resumed-agent-run",
  "title": "How does an instance detect when trace-correlated safety verdicts are being retroactively misattributed across a resumed agent run",
  "date_of_record": "2026 December 1",
  "scope": "Applies to observability pipelines that join asynchronous safety-classifier verdicts back onto agent spans by a run/span identifier after the agent has checkpointed and resumed. Does not apply to synchronous inline moderation where the verdict is produced within the same span lifetime, nor to purely offline batch scoring that never feeds back into execution control.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-trace-correlated-safety-verdicts-are-being-retroactively-misattributed-across-a-resumed-agent-run.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-trace-correlated-safety-verdicts-are-being-retroactively-misattributed-across-a-resumed-agent-run.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-trace-correlated-safety-verdicts-are-being-retroactively-misattributed-across-a-resumed-agent-run.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1721,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the safety classifier was wrong.\" It is that the *correlation key* used to attach a late-arriving verdict to a span is not stable across a checkpoint/resume boundary, so a verdict computed against one execution attempt is written onto a different attempt's span. The observability layer reports a clean, causally consistent trace; the safet...",
    "what_was_observed": "An agent run `R` executes attempt `A1`, emits spans `s1..s40`, then blocks on a long tool call and checkpoints. The orchestrator's resume logic re-materializes the run as attempt `A2` with a *reused* `run_id` but a fresh `attempt_id`, and — critically — span IDs are generated deterministically from `(run_id, step_index)` rather than from `(attempt_id, step_index)`. Step indices restart at 0 on resume because the chec...",
    "condition_of_validity": "The invariant that must hold for a verdict-to-span join to be sound is: > A verdict `v` may be attributed to span `s` only if `v.computed_at ≥ s.start_time` **and** `v.attempt_id == s.attempt_id`, where `attempt_id` is unique per materialization of the run and is carried on both the span and the verdict's input envelope. The failure occurs precisely when *bo...",
    "decision_boundary": "The correlator must decide, per verdict, between three outcomes, and the boundary between them is the timestamp/attempt check: - **Accept** the join when `attempt_id` matches and `computed_at ≥ start_time`. The verdict is causally eligible for this span. - **Quarantine** the join when `attempt_id` matches but `computed_at < start_time` — a clock-skew or back...",
    "operational_effect": "After enforcing the attempt-scoped join, two measurable shifts appear. First, re-classification rate jumps — expected, and it is the *signal* that the pipeline is now honest about which verdicts were computed against which attempt. Second, and more importantly, the \"classifier is noisy\" complaints from incident responders stop, because flags now land on span..."
  },
  "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": "2b9c3880d67ece203ddb07c6c5b0fb3e20d1c8e27e32a014d435f93ee05c23ff",
    "verified_classes": [
      "VerdictAttributionError",
      "Span",
      "Verdict"
    ],
    "verified_functions": [
      "attribute_verdict",
      "correlate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "VerdictAttributionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
