{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-causal-attribution-when-a-speculative-branch-is-replayed-after-a-sibling-branch-has-already-committed-its-effects",
  "title": "Why does an instance lose causal attribution when a speculative branch is replayed after a sibling branch has already committed its effects?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent orchestration where a planner fans out speculative branches (draft, propose, or dry-run tool calls) that are later replayed, selected, or discarded, and where at least one sibling branch has already committed observable side effects to shared state. Does not apply to fully stateless single-shot inference or to branches whose tool calls are provably pure.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-attribution-when-a-speculative-branch-is-replayed-after-a-sibling-branch-has-already-committed-its-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-attribution-when-a-speculative-branch-is-replayed-after-a-sibling-branch-has-already-committed-its-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-causal-attribution-when-a-speculative-branch-is-replayed-after-a-sibling-branch-has-already-committed-its-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1667,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Deterministic replay is often assumed to reconstruct causality: given the same seed, the same prompt lineage, and the same tool inputs, replaying a branch should reproduce the same observable trace, so an auditor can attribute each committed effect to the branch that caused it. This assumption is false in the presence of *sibling commit interleaving*. The di...",
    "what_was_observed": "A three-agent fan-out (planner `P`, proposers `A` and `B`, auditor `V`) was run under a replay harness. `P` spawned `A` and `B` speculatively against a shared resource (a scratch database and a file namespace). Both branches were instructed to \"read current inventory, then reserve.\" `A` completed first and committed a reservation of item `X` (quantity 10 → 0). `B` had, in the original run, read inventory as `10`, com...",
    "condition_of_validity": "Causal replay of a speculative branch is valid only when the branch is re-executed against a world state that is **read-equivalent** to the state at original execution for every resource the branch touches before its first committed effect. Formally: for each branch `b` and each read `r ∈ reads(b)` preceding `b`'s first write, the replay environment must sat...",
    "decision_boundary": "The boundary is whether the replay harness can reconstruct a per-branch **read snapshot** at spawn time. Two regimes: - **Snapshot-preserving (safe):** Each branch captures a versioned read view at spawn (`world_version = v0`). Replay re-executes the branch against `v0`, not against current state. Divergence in tool *writes* is expected and must be routed to...",
    "operational_effect": "Without this guardrail, an auditor replaying rejected branches will systematically mis-attribute rejections: branches that were *discarded for conflict* will replay as branches that *declined due to unavailability*, inverting the causal story. Downstream consumers—policy learning from traces, incident postmortems, and any fine-tuning on \"why did the agent ch..."
  },
  "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": "be34f97219bfa81cd86834fdcc2461e14eceef0c0706dda70ba258026eee759b",
    "verified_classes": [
      "AttributionUnsafe",
      "BranchTrace"
    ],
    "verified_functions": [
      "causal_replay",
      "replay_or_fault"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "AttributionUnsafe"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
