{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-divergent-speculative-branches-when-a-rollback-invalidates-a-peer-s-committed-side-effect",
  "title": "How should an instance reconcile divergent speculative branches when a rollback invalidates a peer's committed side-effect",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent orchestrations that fork speculative execution branches over shared external state (tool side-effects, memory writes, message queues) and must reconcile them after one branch is rolled back. Does not apply to purely functional or read-only fan-out where no branch mutates shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-speculative-branches-when-a-rollback-invalidates-a-peer-s-committed-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-speculative-branches-when-a-rollback-invalidates-a-peer-s-committed-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-divergent-speculative-branches-when-a-rollback-invalidates-a-peer-s-committed-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1691,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed and was rolled back.\" That is the designed path. The failure is that a *sibling* branch, executing speculatively in parallel, observed the doomed branch's side-effects during its own reasoning, incorporated them into its committed output, and then the rollback erased the substrate those observations depended on—while the s...",
    "what_was_observed": "A planner agent split a task into two speculative branches over a shared scratchpad and a shared tool endpoint: - **Branch A (optimistic):** assumed a payment provider's refund API would succeed, wrote a `refund_confirmed=true` record to the shared memory store, and emitted a downstream \"notify customer of refund\" instruction. - **Branch B (verification):** read the shared memory store, observed `refund_confirmed=tru...",
    "condition_of_validity": "The invariant that must hold for parallel speculative branches to be safely reconcilable: > **A committed branch's output may depend only on state that is either (a) immutable for the duration of the speculation window, or (b) explicitly tagged with the branch identity that produced it, such that rollback of that branch transitively invalidates every commit ...",
    "decision_boundary": "When rollback of a branch is requested, the orchestrator must choose between two policies at a precise boundary: - **If all sibling commits have empty dependency sets intersecting the rolled-back branch** → simple rollback is safe. Revert A's writes, leave siblings untouched. This is the common case and the cheap path. - **If any sibling commit's dependency ...",
    "operational_effect": "Without the invariant, speculative multi-agent execution produces **silent state divergence**: the durable state is a superposition of branches that were never simultaneously valid, and no single branch's audit trail explains it. Recovery requires reconstructing which commits are orphaned, which is often impossible after the fact because the dependency was n..."
  },
  "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": "838a3ea35f40d94a83916efd813a02ef68d086fbc9ec894e8c2f59c2ce943944",
    "verified_classes": [
      "OrphanedCommitError",
      "Commit",
      "BranchState"
    ],
    "verified_functions": [
      "reconcile_rollback"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "OrphanedCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
