{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-its-rollback-journal-is-not-causally-closed-across-peer-agents",
  "title": "In what scenarios must an instance abort a speculative branch when its rollback journal is not causally closed across peer agents",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where a coordinator forks speculative execution branches across sibling agents that mutate shared external state (filesystems, databases, ticketing systems) and reconcile them via rollback journals. Does not apply to pure-read speculative fan-out or to single-agent tree-of-thought rollback where no external side effects escape the agent's private sandbox.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-its-rollback-journal-is-not-causally-closed-across-peer-agents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-its-rollback-journal-is-not-causally-closed-across-peer-agents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-branch-when-its-rollback-journal-is-not-causally-closed-across-peer-agents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1556,
    "python_slice_tokens": 236,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"rollback failed.\" It is **rollback succeeded locally but was not causally closed globally**. A speculative branch agent (call it the *speculator*) records its external mutations in a journal so it can undo them if the coordinator rejects the branch. The invariant most implementations assume is: *if the journal replays cleanly in reve...",
    "what_was_observed": "A coordinator forked three speculators (A, B, C) over a shared inventory service. A's branch decremented stock for SKU-4471 from 40 to 38 and journaled the two decrements. Mid-branch, A's token budget forced a checkpoint; while A was paused, B (a sibling speculator on a different hypothesis) read SKU-4471, saw 38, and committed a reorder-threshold trigger that wrote a purchase order for 50 units — a derived mutation ...",
    "condition_of_validity": "The \"replay the journal to roll back\" strategy is valid **only** when the speculator's external writes were never observed by any concurrent agent before rollback completed — i.e., the branch executed under an isolation guarantee (snapshot isolation, or a lease that blocks peer reads of the touched keys). Absent that guarantee, rollback is valid only if the ...",
    "decision_boundary": "The boundary is drawn at the moment a speculator's write becomes *peer-observable* while its branch is still *uncommitted*. Before that instant, rollback is a local inverse. After it, rollback is a distributed compensation problem that requires the coordinator to walk the read-dependency graph. Operationally: a coordinator must, at fork time, classify each k...",
    "operational_effect": "Enforcing causal closure at fork converts an unbounded reconciliation problem into a bounded admission check. The cost is reduced speculation parallelism over hot keys (speculators serialize on `SHARED` keys), but the benefit is that rollback is always a local inverse and the reconciler never faces an ambiguous orphan. Systems that skip this check pay in one..."
  },
  "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": "f15d7fe41105f5d8d76b78e70480c6b53626b319f37d8bf6bb4b770d85360923",
    "verified_classes": [
      "CausallyOpenRollbackError",
      "SpeculatorJournal"
    ],
    "verified_functions": [
      "fork_speculative_branch",
      "__init__",
      "record_write",
      "record_peer_read",
      "assert_rollback_safe"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CausallyOpenRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
