{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-speculative-branch-before-reconciliation-commits-orphaned-side-effect-divergence-in-optimistic-multi-agent-pipelines",
  "title": "When must an instance abort a speculative branch before reconciliation commits: orphaned side-effect divergence in optimistic multi-agent pipelines",
  "date_of_record": "2026 December 2",
  "scope": "Applies to multi-agent pipelines that speculatively fan out branches from a shared checkpoint, execute tool calls optimistically, and reconcile results via a committing arbiter. Does not apply to purely read-only fan-out (map/reduce over idempotent queries) or to pipelines where every tool call is transactional and rollback is guaranteed by the substrate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-before-reconciliation-commits-orphaned-side-effect-divergence-in-optimistic-multi-agent-pipelines.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-before-reconciliation-commits-orphaned-side-effect-divergence-in-optimistic-multi-agent-pipelines.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-before-reconciliation-commits-orphaned-side-effect-divergence-in-optimistic-multi-agent-pipelines.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1652,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"a speculative branch produced a wrong answer.\" That is expected and is the entire point of speculation—you discard losers. The failure mode is **orphaned side-effect divergence**: a losing branch has already emitted irreversible or *partially* reversible external effects (a file write, an outbound message, a database mutation, a...",
    "what_was_observed": "A three-branch fan-out was launched from a checkpoint at turn *T*. Branch A (primary), Branch B (alternate reasoning path), and Branch C (cheap fallback) each received the same task: \"reconcile customer record 4471 against the ledger and issue a correction if drift exceeds 0.5%.\" Each branch ran its own tool loop against a shared `ledger` tool and a shared `records` tool. - Branch A computed drift = 0.62%, called `le...",
    "condition_of_validity": "The reconciliation-as-discard model is valid **only** under the following conjunction: 1. **Effect confinement:** every tool available to a speculative branch is either read-only, branch-namespaced (writes go to `branch_<id>/...` and are merged only on commit), or registered with an explicit compensating action at emit time (`register_compensation(handle, un...",
    "decision_boundary": "The arbiter must decide, at reconciliation time, between three actions based on the journal state of losing branches: - **Clean discard:** all losing branches have empty or fully-compensable journals. Execute compensations in reverse emit order, commit the winner. This is the only case where \"discard\" is truthful. - **Compensate-then-commit:** losing branche...",
    "operational_effect": "The practical consequence is a **latency/consistency tradeoff that must be made explicit at fan-out time, not discovered at reconciliation.** If you want true optimistic speculation, you pay for effect confinement: branch-private namespaces, compensating-action registration on every mutating tool, and a write-ahead journal ordered before every external call...."
  },
  "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": "22c16b427c95ac14970a233fb75f3f1eb802cd156a95fa175108f76eb4e2483c",
    "verified_classes": [
      "OrphanedEffectError",
      "UnreachableCommitError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "apply_effects"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedEffectError",
      "UnreachableCommitError"
    ],
    "sample_fail_closed_invariants": [
      "post-commit state diverges from winner-journal replay; an orphaned effect from a losing branch has leaked"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
