{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-optimistic-branches-speculative-multi-agent-rollback-divergence-at-the-commit-horizon",
  "title": "When must an instance abandon optimistic branches: speculative multi-agent rollback divergence at the commit horizon",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent systems where a planner agent forks N speculative branches across peer executors, each branch mutating shared external state (tool side effects, memory writes, filesystem/DB), and a reconciliation step selects or merges a winner. Does not apply to pure read-only fan-out or to single-agent chain-of-thought self-consistency where branches have no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-optimistic-branches-speculative-multi-agent-rollback-divergence-at-the-commit-horizon.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-optimistic-branches-speculative-multi-agent-rollback-divergence-at-the-commit-horizon.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-optimistic-branches-speculative-multi-agent-rollback-divergence-at-the-commit-horizon.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2859,
    "python_slice_tokens": 579,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"two agents disagree\" and it is not \"a rollback failed.\" It is the **commit-horizon divergence**: the moment a speculative branch's *observed* effects and its *reversible* effects stop being the same set. Optimistic execution assumes every branch action is either (a) a pure projection that can be discarded, or (b) a side effect that can be...",
    "what_was_observed": "A four-instance swarm (one orchestrator `O`, three executors `E1..E3`) was tasked with a provisioning workflow: pick a target region, reserve capacity, write a config record, notify a downstream deploy agent `D`. `O` speculatively forked three branches, one per region, each running the same ~9-step tool plan. Branches were expected to be cheap to discard: reserve-capacity was modeled as a \"soft hold\" with a TTL, conf...",
    "condition_of_validity": "Optimistic branching with rollback is sound only under the **effect-closure condition**: For each speculative branch B, define `Leak(B)` = effects of B observed by any principal outside B before B is either committed or fully compensated. Define `Comp(B)` = effects of B that B's compensation protocol can provably reverse. The branch is safely discardable iff...",
    "decision_boundary": "The orchestrator must decide, per branch, whether to (a) allow optimistic execution with rollback, (b) require a two-phase commit with a barrier before any externally-visible effect, or (c) forbid the branch from taking externally-visible effects at all until it is the sole survivor. The boundary is drawn by two questions, answered at fork time, not at commi...",
    "operational_effect": "The practical consequences for a running swarm: - **Rollback reports become untrustworthy.** `compensated: true` from a branch means \"I reversed what I could see,\" not \"the world is clean.\" Orchestrators must treat branch rollback acknowledgements as *claims*, not facts, and must independently verify via the observer side. - **Commit latency is bounded below..."
  },
  "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": "fd4e6aa5bdf8a71c48be9c716c4da935ca376cdbc21030a34e5b08414720d77c",
    "verified_classes": [
      "LeakyBranchCommitError"
    ],
    "verified_functions": [
      "classify_plan",
      "admit_branch",
      "reconcile"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LeakyBranchCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
