{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-before-the-consensus-quorum-has-fully-drained-its-in-flight-votes",
  "title": "What happens when an instance commits a speculative branch before the consensus quorum has fully drained its in-flight votes",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems that run speculative parallel branches (tentative execution trees) and reconcile them with commit-on-consensus, where branch results are durable only after a quorum of peer votes arrives. Does not apply to single-agent retry loops or to optimistic concurrency in plain databases without LLM-driven branch divergence.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-the-consensus-quorum-has-fully-drained-its-in-flight-votes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-the-consensus-quorum-has-fully-drained-its-in-flight-votes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-the-consensus-quorum-has-fully-drained-its-in-flight-votes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1768,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" It is that a branch's local commit decision was made against a *partial* vote set — the quorum arithmetic counted votes that were still in flight, and a late-arriving dissent vote had nowhere to land because the commit was already durable. Speculative execution assumes rollback is cheap and local; commit...",
    "what_was_observed": "A planner agent spawned three speculative branches (B1, B2, B3) to solve a retrieval-augmented task. Each branch ran an independent tool chain and, on success, broadcast a `PROPOSE(result_hash, branch_id)` to the two auditor agents. Auditors returned `VOTE(branch_id, accept|reject, evidence)`. The commit rule was implemented as: a branch commits when `accepts >= ceil(N/2)` where `N` was the *expected* auditor count (...",
    "condition_of_validity": "Commit-on-consensus is only sound when the commit barrier is *later* than the quorum-drain barrier for every branch. Formally: for branch `b`, `t_commit(b) >= max_{v in votes(b)} t_arrival(v)`. The naive implementation satisfies this only probabilistically, because `t_commit` is bounded by branch execution latency and `t_arrival` is bounded by auditor schedu...",
    "decision_boundary": "The boundary is between *counting votes* and *knowing votes are complete*. A quorum count answers \"have enough agents agreed?\" It does not answer \"have all agents spoken?\" These diverge whenever `N` is not fixed at propose time, or when auditors can be slow, partitioned, or simply scheduled after the branch finishes. Operationally, the decision boundary is c...",
    "operational_effect": "The downstream effect is not a crash but a *memory poisoning*: a branch that should have been rolled back becomes authoritative episodic state. Because the reconciliation layer logged the late reject as `vote_after_commit` and dropped it, the poisoning is invisible in the consensus metrics — `consensus=reached` is reported truthfully under the buggy rule. Th..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "d03736f0dff90697187c8262b11eaea961057d27ad2eb8180312056272b15270",
    "verified_classes": [
      "ConsensusCommitError",
      "BranchState",
      "Branch",
      "ConsensusReconciler"
    ],
    "verified_functions": [
      "__init__",
      "propose",
      "record_vote",
      "try_commit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConsensusCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
