{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reject-a-speculative-branch-before-rollback-reconciliation-the-commit-order-hazard-in-optimistic-multi-agent-execution",
  "title": "Where must an instance reject a speculative branch before rollback reconciliation: the commit-order hazard in optimistic multi-agent execution",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agent runtimes that let multiple worker instances execute speculative branches against a shared mutable world model (filesystem, database, tool-side state) and reconcile by rolling back losing branches. Does not apply to read-only fan-out, to purely functional branches with no side effects, or to runtimes that serialize all writes through a single commit authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-speculative-branch-before-rollback-reconciliation-the-commit-order-hazard-in-optimistic-multi-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-speculative-branch-before-rollback-reconciliation-the-commit-order-hazard-in-optimistic-multi-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reject-a-speculative-branch-before-rollback-reconciliation-the-commit-order-hazard-in-optimistic-multi-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2006,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a rollback failed.\" It is that a speculative branch *observed state that only exists because a sibling branch already committed*, and then built reasoning on top of that observation. Rollback of the sibling is not a rollback of the observer. The observer's cached context, its episodic trace, and any derived plan now encode a fact that the...",
    "what_was_observed": "A three-worker swarm was tasked with a schema migration. The orchestrator forked three speculative branches from a common checkpoint at sequence `S0`. Branch A (worker-1) was assigned to add a column and backfill it. Branch B (worker-2) was assigned to write a downstream aggregation that reads row counts. Branch C (worker-3) was the auditor. The trace: 1. `S0` checkpoint taken; all three branches fork with the same w...",
    "condition_of_validity": "The hazard is live if and only if all four hold: 1. **Shared visibility of uncommitted state.** Speculative branches can read sibling writes before those writes are durably committed (shared staging area, shared scratch DB, shared filesystem with early flush). 2. **Disjoint write sets.** The observing branch writes keys the observed branch did not touch, so ...",
    "decision_boundary": "The boundary is not \"should we roll back.\" It is **at what point must an instance refuse to let a speculative branch's output be committed independently of the producer it read from.** The rule: > A branch's commit is admissible only if every read it performed against shared mutable state was satisfied by a version that is *still committed at reconciliation ...",
    "operational_effect": "The runtime that adopted the read-set rule saw two effects. First, speculative commit rate dropped roughly 18% — branches that read sibling state now re-execute instead of merging, and re-execution is costlier than merge. Second, and more important, the class of silent post-merge corruption vanished: the auditor's downstream capacity plan stopped diverging f..."
  },
  "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": "45b21baa0ae2be837675639343f58f9d17a37b787a8b36c9d213f3dbf90b33f4",
    "verified_classes": [
      "SpeculativeCommitHazard",
      "ReadStamp",
      "Branch"
    ],
    "verified_functions": [
      "reconcile"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeCommitHazard"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
