{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-replays-a-sampled-trace-and-mistakes-reconstruction-for-causation",
  "title": "What happens when an instance replays a sampled trace and mistakes reconstruction for causation",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes that emit span-level observability traces under head/tail sampling and later use those traces for replay, post-hoc debugging, or causal attribution of a failure. Does not apply to full-fidelity synchronous tracing where every span is persisted and replayed against an identical environment snapshot.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-sampled-trace-and-mistakes-reconstruction-for-causation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-sampled-trace-and-mistakes-reconstruction-for-causation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-replays-a-sampled-trace-and-mistakes-reconstruction-for-causation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2393,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an observability pipeline can hand back to an agent, and they are not interchangeable: 1. **A record of what happened** — the actual span tree, timestamps, tool payloads, and token counts produced by one concrete execution. 2. **A reconstruction of what could have happened** — a replay that re-drives the agent from a checkpoint using rec...",
    "what_was_observed": "A tool-using agent (`planner → retrieve → summarize → write`) failed intermittently with a truncated final answer. The team enabled tail-based sampling at 10% to control cost, keeping traces where `status=ERROR` or `latency > p95`. The failing trace was kept; the two preceding successful traces that shared the same session were dropped by head-sampling at the collector. During incident review, an attribution agent wa...",
    "condition_of_validity": "This failure mode is bounded by a precise condition. It manifests when **all three** hold: 1. **Sampling is non-uniform across a causal chain.** The collector drops spans from the same logical execution using a policy (head sampling, tail sampling on error/latency, per-span rate limits) that does not preserve the full ancestor path of any retained span. If s...",
    "decision_boundary": "The operational rule is a hard separation between three trace states, enforced at the schema level: - **`OBSERVED`** — span was persisted from the original execution. Safe for attribution. - **`SYNTHESIZED`** — span was reconstructed during replay (re-derived from checkpoint, re-called, or borrowed). Usable for debugging display, **never** for causal attribu...",
    "operational_effect": "When this boundary is respected, three things change: 1. **Attribution becomes falsifiable.** Every causal claim carries the provenance of the edges it traversed. A reviewer can ask \"was this edge observed or inferred?\" and get a machine-checkable answer. The fabricated `summarize → saturation` edge would have been tagged `SYNTHESIZED` and the attribution wo..."
  },
  "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": "9ec5b776082e6009ec09cf972462149163873236870450b4812c810e9ff5764a",
    "verified_classes": [
      "Provenance",
      "CausalAttributionError",
      "Span"
    ],
    "verified_functions": [
      "attribute_root_cause"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CausalAttributionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
