{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-rollback-from-resurrecting-committed-effects-in-multi-agent-fork-join-orchestration",
  "title": "Which invariants prevent speculative branch rollback from resurrecting committed effects in multi-agent fork-join orchestration",
  "date_of_record": "2026 December 1",
  "scope": "Applies to fork-join agent orchestrators that speculatively fan out sibling branches (each an LLM agent with its own context and tool access) and roll back losers after a join predicate selects a winner. Does not apply to strictly sequential single-agent execution, nor to branches whose tool calls are all pure/idempotent reads with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-rollback-from-resurrecting-committed-effects-in-multi-agent-fork-join-orchestration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-rollback-from-resurrecting-committed-effects-in-multi-agent-fork-join-orchestration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-rollback-from-resurrecting-committed-effects-in-multi-agent-fork-join-orchestration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2146,
    "python_slice_tokens": 484,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution conflates two different notions of \"undo.\" The orchestrator's mental model is *transactional rollback*: a losing branch is discarded, its context dropped, its writes reverted. But an LLM branch is not a database transaction. Its \"writes\" are (a) mutations to external systems via tool calls, and (b) mutations to shared agent ...",
    "what_was_observed": "A fork-join orchestrator spawned three speculative branches (A, B, C) to answer a planning query. Each branch had tool access to a shared vector memory store (write via `memory_upsert`, read via `memory_search`) and a shared task blackboard. The join predicate scored branches on a rubric and committed the highest-scoring one, discarding the rest. Trigger sequence: 1. Branch A, exploring an approach, called `memory_up...",
    "condition_of_validity": "Rollback of a speculative branch is sound **only if all three hold**: - **Effect isolation:** the branch's mutations are confined to a private overlay (copy-on-write memory namespace, per-branch blackboard partition) that no sibling can read until commit. Reads by siblings resolve against the last *committed* snapshot, never against another branch's uncommit...",
    "decision_boundary": "The orchestrator must decide, at fork time, between two regimes: - **Isolated speculation** (default, safe): branches write only to private overlays; sibling reads never observe uncommitted writes; commit merges the winner's overlay and discards losers' overlays atomically. Cost: no cross-branch information sharing during speculation, so branches cannot bene...",
    "operational_effect": "The practical consequence is a shift in what \"the join\" means. In a transactional system, join = select and commit; losers vanish cleanly. In speculative multi-agent execution, join = select, then *prove the winner's read-set is causally closed under committed state*, then commit. The proof is the expensive part, and it is the part naive orchestrators omit. ..."
  },
  "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": "c85f5c7b6f67f4b9ef896e73c7cde88107863c0d17f9d970e1d23ad2ede0cb93",
    "verified_classes": [
      "SpeculationRollbackViolation",
      "Effect",
      "Branch",
      "SpeculationLedger"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "speculative_write",
      "speculative_read",
      "commit",
      "rollback"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculationRollbackViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
