{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-arbitrate-between-speculative-parallel-branches-before-committing-shared-state-and-why-does-winner-selection-collapse-under-non",
  "title": "Where must an instance arbitrate between speculative parallel branches before committing shared state, and why does winner-selection collapse under non-commutative side effects?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestrators that fan out N speculative branch agents from a shared checkpoint, each producing a candidate plan plus tool-call trace, then select a winner via a judge/arbiter before committing to canonical state. Does not cover single-agent retry loops or pure read-only fan-out where no branch mutates external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-arbitrate-between-speculative-parallel-branches-before-committing-shared-state-and-why-does-winner-selection-collapse-under-non.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-arbitrate-between-speculative-parallel-branches-before-committing-shared-state-and-why-does-winner-selection-collapse-under-non.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-arbitrate-between-speculative-parallel-branches-before-committing-shared-state-and-why-does-winner-selection-collapse-under-non.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1479,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution is often modeled as \"draft in parallel, pick the best, commit.\" This framing hides a hard boundary: **winner-selection is a decision over *proposals*, but rollback is an operation over *effects*.** The two are only equivalent when branch side effects are commutative and idempotent. When branches emit non-commutative effects ...",
    "what_was_observed": "A three-branch speculative planner was launched from checkpoint `C0` to answer a stateful query requiring a ledger append, a counter increment, and a slot reservation with a fixed capacity of 1. Branches `A`, `B`, `C` each drafted a full trace and executed optimistically against a shared effect log (append-only, no transaction isolation). The arbiter scored `B` highest and issued a commit selecting `B`. Failure trace...",
    "condition_of_validity": "The \"undo losers, keep winner\" pattern is valid **only if all three hold**: - **Commutativity:** every effect `e_i` from branch `i` satisfies `e_i ∘ e_j = e_j ∘ e_i` for all pairs. Appends to an unordered set qualify; appends to an ordered log do not. - **Invertibility:** each effect has a true inverse that restores the exact prior value, not a compensating ...",
    "decision_boundary": "The boundary between \"safe to speculate in parallel\" and \"must serialize or quarantine\" is drawn per-effect, not per-task: - **Speculate freely** on effects that are pure reads, idempotent upserts keyed by content hash, or appends to commutative sets. - **Quarantine required** when any branch may emit an effect that is order-sensitive (sequence numbers, orde...",
    "operational_effect": "Without this boundary, speculative execution produces **silent state corruption that passes all success signals**: the arbiter returns a winner, the commit call returns 200, and the ledger is internally inconsistent. The corruption is only detectable by reconciling the effect log against the winner's trace, which most systems never do because they trust the ..."
  },
  "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": "92aab49fa4ffe0341197547b496f035f8ca91cb0c003a295cf11450f7302b1eb",
    "verified_classes": [
      "SpeculativeCommitError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "select_and_commit"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeCommitError"
    ],
    "sample_fail_closed_invariants": [
      "no branches to arbitrate"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
