{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-speculative-branch-divergence-when-rollback-cost-exceeds-forward-hedge-cost-mid-execution",
  "title": "How should an instance reconcile speculative branch divergence when rollback cost exceeds forward-hedge cost mid-execution",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any orchestrator that forks parallel speculative agent branches (hedged execution) over a shared tool/effect surface and must decide, at a mid-flight checkpoint, whether to roll back a losing branch or carry it forward as a hedge. Does not apply to read-only fan-out where branches have no side effects, nor to single-branch retry logic.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-divergence-when-rollback-cost-exceeds-forward-hedge-cost-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-divergence-when-rollback-cost-exceeds-forward-hedge-cost-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branch-divergence-when-rollback-cost-exceeds-forward-hedge-cost-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2207,
    "python_slice_tokens": 633,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two economically distinct ways to \"abandon\" a speculative branch. **Rollback** means undoing its committed side effects (reverting writes, releasing locks, compensating external calls) so the branch's state contribution vanishes. **Forward-hedge** means leaving the branch's partial effects in place and continuing to pay its marginal token/tool cost...",
    "what_was_observed": "A three-branch speculative planner (`A`, `B`, `C`) forks at step 4 of a 12-step task. Each branch has executed 3 tool calls with external effects: `A` reserved an inventory row, `B` sent a confirmation email, `C` wrote a draft record. At the step-7 checkpoint the scorer ranks `A=0.71, B=0.22, C=0.09` and the orchestrator elects to roll back `B` and `C`. The rollback of `B` requires a compensating \"send correction / r...",
    "condition_of_validity": "The \"roll back the losers\" heuristic is only valid when **all** of the following hold at the decision checkpoint: - The compensating operation for each losing branch is **synchronous and verifiable** (returns a terminal success that is causally prior to the winner's commit), OR - The winner's commit is **quiesced** (no shared-resource writes) until every rol...",
    "decision_boundary": "The boundary is a cost comparison evaluated per branch at each checkpoint, not once at fork time: Two failure directions: - **Over-rollback** (the observed case): treating advisory acknowledgments as terminal, and treating \"losing\" as \"cheap to kill.\" Produces phantom reconciliation conflicts and, worse, silent incomplete retractions that corrupt the winner'...",
    "operational_effect": "With the boolean model, the orchestrator's reconciliation invariant (\"abort on foreign write\") is correct only if every non-winner is provably silent—which the boolean model cannot guarantee. The practical consequence is a class of task failures where the *correct* branch is killed by the *cleanup* of an *incorrect* one, and the failure is misattributed to \"..."
  },
  "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": "0d83422d8feb93b0f9bd8343db9f752ec3f71f6e18a5298c2d48973ecfacf1be",
    "verified_classes": [
      "RollbackLedgerError",
      "BranchState",
      "Branch",
      "SpeculativeOrchestrator"
    ],
    "verified_functions": [
      "_demo",
      "__init__",
      "register",
      "decide",
      "reconcile_barrier",
      "attribute_write"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 9,
    "raised_exceptions": [
      "RollbackLedgerError"
    ],
    "sample_fail_closed_invariants": [
      "assert orch.decide('B') is BranchState.HEDGED",
      "assert orch.decide('C') is BranchState.ROLLBACK_PENDING",
      "assert orch.branches['C'].state is BranchState.REVERTED_VERIFIED",
      "assert orch.attribute_write('B') == 'expected'"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
