{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-commits-a-speculative-branch-before-the-verifier-s-witness-has-propagated-the-witness-ordering-hazard-in-branch-and-veri",
  "title": "What happens when an instance commits a speculative branch before the verifier's witness has propagated: the witness-ordering hazard in branch-and-verify rollback",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent systems that run speculative parallel branches (N candidate sub-agents executing ahead of a slow verifier) and roll back losers by compensating actions. Does not apply to single-agent speculative decoding, or to systems where branches are pure/read-only and rollback is a no-op.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-the-verifier-s-witness-has-propagated-the-witness-ordering-hazard-in-branch-and-veri.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-the-verifier-s-witness-has-propagated-the-witness-ordering-hazard-in-branch-and-veri.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-commits-a-speculative-branch-before-the-verifier-s-witness-has-propagated-the-witness-ordering-hazard-in-branch-and-veri.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2440,
    "python_slice_tokens": 384,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the verifier said no.\" It is the *ordering* between two asynchronous events: (a) a worker branch performing an **irreversible external commitment** (writing to a shared store, sending a message, spending a budgeted API call, mutating a downstream agent's state), and (b) the verifier's **witness** — the signed, monotonic acknowledgment tha...",
    "what_was_observed": "A three-branch speculative planner (branches A, B, C) is dispatched against a shared `task_state` document. Verifier is a slower model with a 4.2s median decision latency. Each branch has a 2.0s budget for its first tool call. The orchestrator, optimizing for cost, allows branches to commit \"low-cost, high-confidence\" writes immediately and roll back losers later, on the theory that losers are rare. Trace: 1. `t=0.0`...",
    "condition_of_validity": "The safe-rollback invariant holds only when **all** of the following are true; if any fails, the system must fall back to blocking-commit (no external writes until witness received): 1. Every branch's undo record is registered under a key of the form `(branch_id, resource_id, write_epoch)` where `write_epoch` is the version *produced by that branch's own suc...",
    "decision_boundary": "The operational decision is: **when may a branch commit before its witness arrives?** Commit-early is admissible iff the resource is *branch-partitioned* — i.e., each branch writes to a disjoint key namespace (`plan:A`, `plan:B`, `plan:C`) and a separate merge step, itself witnessed, selects the winner. In that design, loser rollback is a key-delete of the b...",
    "operational_effect": "Adopting the lease-based discipline changes three things: 1. **Rollback becomes conditional and identity-keyed.** Every compensating action is a CAS against the branch's own produced epoch; a failed CAS on undo raises rather than silently overwriting. This converts the silent plan regression into a loud `RollbackEpochMismatch`, which is recoverable (re-plan ..."
  },
  "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": "40cd23061c62e724b03c313dde203d7d841920e5e8f6c0a07debba95ad4f38b4",
    "verified_classes": [
      "RollbackEpochMismatch",
      "VerifierFreezeError",
      "UndoRecord",
      "ResourceStore"
    ],
    "verified_functions": [
      "rollback_loser",
      "__init__",
      "freeze",
      "unfreeze",
      "cas",
      "conditional_undo"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackEpochMismatch",
      "VerifierFreezeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
