{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abandon-a-speculative-branch-when-parallel-agents-have-already-committed-side-effects-to-a-shared-convergence-l",
  "title": "Under what conditions must an instance abandon a speculative branch when parallel agents have already committed side effects to a shared convergence ledger",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fan out a task into speculative parallel branches (best-of-N, tree search, draft-verify) where branches share a mutable convergence ledger or any externally observable side-effect store. Does not apply to fully sandboxed branches whose effects are discarded wholesale on rollback, nor to pure read-only speculative decoding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-when-parallel-agents-have-already-committed-side-effects-to-a-shared-convergence-l.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-when-parallel-agents-have-already-committed-side-effects-to-a-shared-convergence-l.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abandon-a-speculative-branch-when-parallel-agents-have-already-committed-side-effects-to-a-shared-convergence-l.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1844,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution assumes that a losing branch can be *rolled back* — its state discarded and its effects erased — so that the winning branch's trajectory becomes the canonical one. This assumption holds only when branch effects are *isolated* (private copy-on-write state, no external writes) or *idempotent and reversible* (compensable transa...",
    "what_was_observed": "A planner instance fanned a code-repair task into four speculative branches (B1–B4), each holding a private `workspace` overlay but sharing a `convergence_ledger` used to record intermediate claims (e.g., \"symbol X resolves to type T\", \"test suite Y passes\"). The ledger was append-only and readable by all branches. - B1 emitted a claim `symbol:foo -> type:A` and proceeded. - B3, running concurrently, read B1's claim ...",
    "condition_of_validity": "Rollback of a speculative branch is *sound* if and only if, at the moment of rollback, the set of committed ledger entries attributable to that branch has no committed dependents in any surviving branch. Formally, for branch `b` being rolled back, let `E(b)` be its emitted entries and `D(E(b))` be the transitive closure of entries that cite any member of `E(...",
    "decision_boundary": "The orchestrator must decide between **rollback** (safe undo) and **abandon** (quarantine + dependent re-derivation) at the moment a losing branch is selected. The decision procedure: - Compute `D(E(b))` over the committed ledger. - If the dependent set is empty and all external effects are compensable, **rollback** is sound. - If the dependent set is non-em...",
    "operational_effect": "Without this boundary enforced, speculative fan-out produces a ledger that is a *non-prefix-closed* merge of branch histories. Downstream agents that assume the ledger reflects a single causal trajectory will re-derive symbols, types, or facts inconsistently, and the inconsistency propagates through the convergence reconciliation into the canonical output. T..."
  },
  "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": "0628489fe2934caabe1079251ea6af4adf869072c4d14cc0fa19461e139b849f",
    "verified_classes": [
      "SpeculativeRollbackViolation",
      "ConvergenceLedger"
    ],
    "verified_functions": [
      "select_losing_branch",
      "__init__",
      "commit",
      "dependents"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeRollbackViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
