{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-commits-a-branch-before-the-divergence-oracle-has-resolved",
  "title": "What happens when an instance speculatively commits a branch before the divergence oracle has resolved",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that run speculative agent branches in parallel (branch-prediction / eager-execution schemes) and reconcile them against a single \"oracle\" trajectory. Does not apply to strictly serial agent pipelines or to speculative decoding inside a single model's token stream, where rollback is at the KV-cache level rather than the tool-effect level.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-before-the-divergence-oracle-has-resolved.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-before-the-divergence-oracle-has-resolved.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-commits-a-branch-before-the-divergence-oracle-has-resolved.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1610,
    "python_slice_tokens": 264,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution borrows a CPU trick: launch several plausible continuation branches before the predictor is confident, then keep the one that matches the \"true\" path and roll back the rest. The distinction that matters operationally is between **speculation over pure reasoning** and **speculation over side-effecting actions**. A branch that...",
    "what_was_observed": "A planner agent decomposed a refund request into three candidate continuations and speculatively dispatched all three: - **Branch A** (predicted 0.61): call `lookup_order` → `issue_refund(amount=120.00)`. - **Branch B** (predicted 0.27): call `lookup_order` → `escalate_to_human`. - **Branch C** (predicted 0.12): call `lookup_order` → `issue_refund(amount=1200.00)` (decimal misparse). The predictor's confidence gap be...",
    "condition_of_validity": "Speculative branching is only sound under a **commit-gating invariant**: every side-effecting tool call inside a speculative branch must pass through a two-phase gate—`reserve` (reversible, idempotent, keyed by `speculation_id`) followed by `commit`, where `commit` is *blocked* until the divergence oracle has marked that branch as the winner. Formally, for b...",
    "decision_boundary": "The operative question is not \"how confident is the predictor\" but \"what is the worst-case effect of the highest-probability *wrong* branch, and can it be held reversibly until the oracle speaks?\" - If every branch's effect set is `PURE` or `RESERVABLE`, speculate freely; the confidence threshold governs only wasted compute. - If any branch can reach an `IRR...",
    "operational_effect": "Without commit-gating, speculative execution converts a *reasoning* optimization into a *transactional* hazard: the system's blast radius becomes the union of all branches' side effects rather than the single chosen path, and rollback degrades from \"discard\" to \"compensate,\" which is never free and sometimes impossible. Observed downstream costs: duplicate l..."
  },
  "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": "afe90936a6a982eed4080a396d89a7063a3b80c0928e43354edc40f7df66ed33",
    "verified_classes": [
      "SpeculativeCommitViolation",
      "Branch",
      "SpeculationLedger"
    ],
    "verified_functions": [
      "run_speculative_step",
      "__init__",
      "__init__",
      "resolve",
      "commit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeCommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
