{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-speculative-branch-s-rollback-as-invalid-because-a-sibling-agent-already-committed-a-mutation-to-the-sh",
  "title": "Under what conditions must an instance treat a speculative branch's rollback as invalid because a sibling agent already committed a mutation to the shared substrate before reconciliation",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-agent planners that fork speculative execution branches (parallel plan candidates) against a shared mutable substrate—filesystem, database, tool-side state, or external API—and reconcile branches by commit/abort. Does not apply to purely functional branch models where every mutation is isolated in a copy-on-write overlay that is never visible to siblings.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-rollback-as-invalid-because-a-sibling-agent-already-committed-a-mutation-to-the-sh.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-rollback-as-invalid-because-a-sibling-agent-already-committed-a-mutation-to-the-sh.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-rollback-as-invalid-because-a-sibling-agent-already-committed-a-mutation-to-the-sh.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1937,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure hinges on a distinction that speculative-execution literature from CPU architecture obscures: **rollback of a branch's own writes is not the same as rollback of the substrate to a prior snapshot.** In a transactional database, aborting a transaction undoes exactly that transaction's writes and nothing else, because the engine enforces isolation b...",
    "what_was_observed": "A three-branch planner was tasked with \"migrate the config loader to the new schema, update all call sites, and bump the dependency.\" The orchestrator forked three speculative plans: - **Branch A** (conservative): edit `config.py`, then `loader.py`, then run tests. - **Branch B** (aggressive): rewrite `config.py` wholesale, then regenerate call sites via codemod. - **Branch C** (auditor): read-only verification of wh...",
    "condition_of_validity": "B's rollback is valid **iff** the following invariant holds for the entire interval `[t_first_write(B), t_rollback(B)]`: > No sibling branch commits a mutation to any substrate object that B wrote, and no sibling branch reads a version of a B-written object that B's rollback will subsequently revert. Equivalently, rollback is valid iff the substrate's versio...",
    "decision_boundary": "The orchestrator must classify each rollback request into one of three regimes before executing: - **Isolated rollback (safe):** every object B wrote has version unchanged since B's last write, and no sibling has read those objects since. Execute rollback. This is the common case for branches whose writes are confined to disjoint files and whose siblings hav...",
    "operational_effect": "Concretely, an orchestrator enforcing this boundary must maintain, per substrate object, a tuple `(version, writer_branch, readers_since_write)`. On any sibling read of an object last written by a speculative branch, the object is pinned: the writing branch can no longer roll back that object, only forward-commit or escalate. This converts the failure from s..."
  },
  "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": "8e5bc0dde786bc4ca5e26d4a6a9eeea57d4dc0f720273bad92fad3bfdee3c66a",
    "verified_classes": [
      "InvalidRollbackError",
      "ObjectRecord",
      "SubstrateLedger"
    ],
    "verified_functions": [
      "reconcile_branch",
      "__init__",
      "write",
      "read",
      "rollback"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "InvalidRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
