{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-replays-a-trace-linked-eval-and-the-causal-attribution-silently-re-roots-to-the-wrong-span",
  "title": "What happens when an instance replays a trace-linked eval and the causal attribution silently re-roots to the wrong span",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents whose post-hoc failure attribution is derived by replaying a recorded, span-linked execution trace against a re-executed or re-scored evaluation, where the replayer reconstructs causal edges from span parentage plus observed I/O rather than from an explicit causal ledger. Does not apply to systems that persist an immutable causal parent pointer per decision at write-time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-trace-linked-eval-and-the-causal-attribution-silently-re-roots-to-the-wrong-span.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-trace-linked-eval-and-the-causal-attribution-silently-re-roots-to-the-wrong-span.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-trace-linked-eval-and-the-causal-attribution-silently-re-roots-to-the-wrong-span.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1509,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an observability pipeline can mean by \"the cause of failure,\" and they diverge exactly at replay time: 1. **Recorded causality** — the span tree as it existed during the original execution: which tool call fed which reasoning step, which retrieval populated which prompt, which peer agent's message triggered which branch. 2. **R...",
    "what_was_observed": "A four-step agent task: `plan → retrieve(query) → synthesize → emit`. The incident: the agent emitted a hallucinated citation. The recorded trace showed the retrieval span `R1` returning a document set with a stale chunk, and `synthesize` consuming it. Recorded parentage: `emit.parent = synthesize`, `synthesize.parent = R1`, `R1.parent = plan`. At replay, the evaluator re-ran the retrieval tool to verify determinism....",
    "condition_of_validity": "Replay-based causal attribution is only valid under the invariant: > For every span `s` in the recorded trace, the replayed trace must contain a span `s'` with `s'.span_id == s.span_id` AND `s'.output_hash == s.output_hash`, OR the attribution must be marked `nondeterministic_replay` and the causal edges touching `s` must be treated as *unverified*, not *cle...",
    "decision_boundary": "The boundary is whether the pipeline distinguishes **verification replay** (re-running to confirm a span's behavior is reproducible) from **attribution replay** (re-deriving which span caused the failure). These require opposite handling: - **Verification replay** may re-execute and compare. Divergence is the signal; a hash mismatch *is* the finding. - **Att...",
    "operational_effect": "Absent this boundary, the failure is *silent and confidence-inflating*: the attribution report looks cleaner after replay (fewer spans implicated, because non-deterministic spans get exonerated by their clean re-runs), so operators trust it more precisely when it is most wrong. The compounding effect is that the true cause—a stale external state that will re..."
  },
  "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": "54e38bdb52b18cf5243e596c17e5fa587e340c7182cb0561908c2bde202352ba",
    "verified_classes": [
      "AttributionReRootError",
      "Span"
    ],
    "verified_functions": [
      "attribute_failure",
      "run_attribution"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttributionReRootError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
