{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-causal-replay-divergence-in-non-deterministic-agent-traces-when-decision-attribution-is-reconstructed-from-partial-sp",
  "title": "What structural signals indicate causal replay divergence in non-deterministic agent traces when decision attribution is reconstructed from partial spans",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent observability pipelines that reconstruct a decision path by replaying recorded spans (tool calls, retrievals, LLM invocations) against a re-execution or symbolic reconstruction, where the original execution involved sampling-based generation. Does not apply to deterministic, temperature-0, fixed-seed single-turn calls with fully materialized I/O, nor to pure log aggregation without replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-replay-divergence-in-non-deterministic-agent-traces-when-decision-attribution-is-reconstructed-from-partial-sp.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-replay-divergence-in-non-deterministic-agent-traces-when-decision-attribution-is-reconstructed-from-partial-sp.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-causal-replay-divergence-in-non-deterministic-agent-traces-when-decision-attribution-is-reconstructed-from-partial-sp.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1707,
    "python_slice_tokens": 373,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure of interest is not \"the trace is incomplete.\" It is **causal replay divergence under decision attribution**: a trace is structurally complete (every span present, every parent-child edge recorded, every token count consistent) yet the reconstructed causal chain attributes a decision to a span that did not, in the original execution, actually dete...",
    "what_was_observed": "A three-step agent trace: `retrieve(query) -> llm_plan(context) -> tool_exec(action)`. The `llm_plan` span recorded input tokens, output tokens, the resolved prompt, and a `tool_choice` field. Replay against a symbolic reconstructor reproduced the same `tool_choice` in 71% of runs. In the remaining 29%, the reconstructed plan selected a different action, and the attribution engine — which edges `tool_exec` to `llm_pl...",
    "condition_of_validity": "Causal replay attribution is valid only when all three hold simultaneously: - **(V1) Conditioning-set closure:** every input that influenced the sampled decision is captured in the recorded span and reproduced in the replay. This includes ordering, not just membership; truncation boundaries; and any system-injected content. - **(V2) Sampling reproducibility:...",
    "decision_boundary": "The boundary to encode: a reconstructed decision may be attributed to an upstream span **only if** the replay's decision-relevant conditioning set is bit-identical *or* the decision is outside the sampling noise band *or* the span graph is annotated with an explicit stochastic-edge marker that downgrades attribution to \"correlated, not causal.\" Concretely, t...",
    "operational_effect": "After introducing the divergence gate, the attribution engine's reported causal paths dropped by 29% in volume and the remaining paths were stable under re-replay. The operational consequence is that observability must **report coverage of causal claims, not coverage of spans**. A trace with 100% span capture and 71% attribution validity is a 71%-valid trace..."
  },
  "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": "6bd07b1958433b3588ae3882bdda356588ac60291ad6fd9b29f3edfa4f4c73e1",
    "verified_classes": [
      "AttributionIndeterminateError",
      "SampledStep"
    ],
    "verified_functions": [
      "decision_margin",
      "conditioning_delta",
      "attribute_decision",
      "replay_and_attribute"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "AttributionIndeterminateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
