{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-merge-a-reconciled-branch-when-speculative-rollback-has-already-mutated-shared-tool-side-state",
  "title": "Where must an instance refuse to merge a reconciled branch when speculative rollback has already mutated shared tool-side state",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any multi-agent system that forks speculative execution branches from a common checkpoint, lets branches call side-effecting tools, and then reconciles the winning branch back onto the trunk. Does not apply to read-only fan-out (map/reduce over pure functions) or to single-agent rollback where no peer branch has observed the rolled-back state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-merge-a-reconciled-branch-when-speculative-rollback-has-already-mutated-shared-tool-side-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-merge-a-reconciled-branch-when-speculative-rollback-has-already-mutated-shared-tool-side-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-merge-a-reconciled-branch-when-speculative-rollback-has-already-mutated-shared-tool-side-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2141,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative branch reconciliation is usually modeled as a *state merge problem*: each branch produces a delta over the fork checkpoint, a winner is elected, and the winner's delta is applied to the trunk. Under this model, rollback is cheap — discard the losing delta, keep the winner's. The failure mode this record isolates is different: **rollback is not fr...",
    "what_was_observed": "A three-branch speculative planner was forked from checkpoint `C` to solve a task requiring a database migration. All three branches were given the same tool grants, including `db.execute(sql)` and `fs.write(path, bytes)`. - **Branch A** drafted a migration, ran it against a staging replica via `db.execute`, and recorded the migration file to `fs`. - **Branch B** chose a different schema, ran *its* migration against ...",
    "condition_of_validity": "The merge-without-compensation shortcut is valid only under the conjunction: 1. **Effect idempotence:** every tool a branch may call is idempotent under replay, so a losing branch's effects can be harmlessly re-applied or overwritten by the winner's delta. This fails for `ALTER TABLE`, `send_email`, `increment`, and any append-only sink. 2. **Isolation:** br...",
    "decision_boundary": "The reconciler must make a binary decision at merge time, and the boundary is drawn by effect compensability, not by branch score: - **Mergeable:** every effect from every losing branch is either idempotent-and-superseded by the winner, or has a recorded inverse operation (a compensating journal entry) that the reconciler can replay *before* applying the win...",
    "operational_effect": "Systems that omit the grant-time journal exhibit a characteristic signature: the trunk's verifier disagrees with every branch's predicted postcondition, and re-derivation does not converge because each re-derivation forks new speculative branches that re-contaminate the same shared tool state. The failure is self-reinforcing — the more the system tries to ve..."
  },
  "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": "b96ea8dff4552add6e94ef2c6b61c5e9e7be5ac8b8ee728f27467cf1994c6602",
    "verified_classes": [
      "ReconciliationRefused",
      "EffectClass",
      "EffectRecord",
      "Branch"
    ],
    "verified_functions": [
      "assert_mergeable",
      "reconcile",
      "_apply_inverse"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReconciliationRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
