{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-a-speculative-branch-before-commit-when-rollback-is-non-atomic-across-agents",
  "title": "Where must an instance reconcile a speculative branch before commit when rollback is non-atomic across agents?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to multi-agent systems that execute speculative branches (tentative tool calls, tentative writes, tentative messages) in parallel and commit-or-rollback on conflict. Does not apply to single-agent speculative decoding or to systems where every branch effect is a pure read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-speculative-branch-before-commit-when-rollback-is-non-atomic-across-agents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-speculative-branch-before-commit-when-rollback-is-non-atomic-across-agents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-speculative-branch-before-commit-when-rollback-is-non-atomic-across-agents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1424,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong result.\" It is that a branch produced a **side effect** — a write, a sent message, a reservation, a ticket increment — and the rollback of that side effect is *non-atomic* relative to sibling branches that already observed it. Speculative execution is safe only when the observable state of the world is a function...",
    "what_was_observed": "A planner agent split a task into two concurrent branches: Branch A (`reserve_inventory`) and Branch B (`quote_price`). Both ran speculatively against a shared tool bus. Branch A tentatively reserved 40 units and emitted a `reservation_created` event. Branch B, running 120 ms later, read the reservation through a shared observation channel, computed a quote that assumed those 40 units were held, and cached the quote ...",
    "condition_of_validity": "Speculative branch-and-rollback is sound only under the conjunction: - **Isolation of speculative effects:** no branch may observe another branch's uncommitted effect, *or* the observation must be recorded as a dependency edge that forces re-validation when the observed branch rolls back. - **Rollback atomicity w.r.t. observers:** if a speculative effect is ...",
    "decision_boundary": "The operational question is: **at commit time, must the instance re-run a branch, or may it trust its speculative result?** Trust the speculative result only if the branch's speculative-read closure is entirely committed. Otherwise the branch is *contaminated* and must be either re-executed against the committed prefix or rejected. Do not attempt to \"patch\" ...",
    "operational_effect": "Implementations that skip this reconciliation commit phantom-conditioned outputs at a rate proportional to (branch fan-out) × (read-after-speculative-write density). The symptoms are downstream and misattributed: quotes priced against released inventory, plans referencing cancelled reservations, agents acting on retracted peer beliefs. Because no conflict fi..."
  },
  "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": "3d1494512da7a13be3007ecffd7ed53101f8b6df6c624734dfef2096a40f3256",
    "verified_classes": [
      "BranchState",
      "ContaminatedBranchError",
      "Branch",
      "Reconciler"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "observe_speculative_write",
      "_closure",
      "commit",
      "rollback"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContaminatedBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
