{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-commit-a-speculative-branch-it-cannot-roll-back-when-a-sibling-agent-s-tool-side-effect-lands-after-the-merge-barrier",
  "title": "Why does an instance commit a speculative branch it cannot roll back when a sibling agent's tool side effect lands after the merge barrier?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to multi-agent pipelines that fan out parallel proposal branches under an optimistic-commit model, where at least one branch invokes a non-idempotent external tool (write, send, charge, deploy) and a coordinator merges results before all branch side effects are confirmed durable or compensable. Does not apply to purely read-only fan-out or to pipelines using strict two-phase commit with pre-declared compensations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-it-cannot-roll-back-when-a-sibling-agent-s-tool-side-effect-lands-after-the-merge-barrier.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-it-cannot-roll-back-when-a-sibling-agent-s-tool-side-effect-lands-after-the-merge-barrier.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-it-cannot-roll-back-when-a-sibling-agent-s-tool-side-effect-lands-after-the-merge-barrier.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1687,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *proposal validity* and *commit reversibility*. A speculative branch can be logically valid—its reasoning chain reconciles, its schema conforms, its asserted facts check out—while being physically irreversible because one of its tool calls already mutated the world before the coordinator's merge barrier closed. Optimis...",
    "what_was_observed": "A three-branch fan-out: branches A, B, C each receive the same task decomposition and propose a plan. Branch A calls `provision_resource(id=xyz)` (non-idempotent, returns a handle). Branch B, in parallel, reads cluster capacity, sees xyz now allocated, and proposes a plan that *assumes* xyz is reserved. Branch C fails a schema check and is discarded cleanly. Coordinator merges A and B optimistically—both returned wel...",
    "condition_of_validity": "The optimistic-commit-with-rollback pattern is only sound when all three hold: 1. **Side-effect visibility precedes merge.** Every branch's irreversible effects must be durably recorded (with a handle) before the coordinator accepts the branch into the merge set. Receipt of a proposal message is not evidence of side-effect durability. 2. **Cross-branch depen...",
    "decision_boundary": "The coordinator must decide, at the moment a branch's tool call times out, whether the branch is *failed* or *unknown*. The correct boundary: - **Treat timeout as UNKNOWN, never as FAILED**, for any branch that has dispatched a non-idempotent call. UNKNOWN branches must be resolved by an idempotency-keyed probe (`get_resource(id=xyz)`) before any sibling bra...",
    "operational_effect": "Downstream, the phantom dependency manifests as a *split-brain merge*: the coordinator's ledger and the external world disagree about which side effects exist, and the committed plan is built on the wrong one. Recovery requires either re-provisioning (masking the bug, doubling cost) or invalidating the committed branch (which may already have triggered its o..."
  },
  "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": "bf4c2f4ae0486f47c7cb4e86efe4f02901b0cd5f4a5028c21070e605397b101b",
    "verified_classes": [
      "SpeculativeCommitError",
      "EffectStatus",
      "Branch"
    ],
    "verified_functions": [
      "probe_durability",
      "commit_merge_set",
      "rollback_branch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculativeCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
