{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-its-rollback-anchor-when-speculative-branches-share-a-mutable-tool-effect-log",
  "title": "Why does an instance lose its rollback anchor when speculative branches share a mutable tool-effect log",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems that run speculative parallel branches (draft/verify, optimistic fan-out) where each branch may invoke side-effecting tools and later reconcile or roll back to a common checkpoint. Does not apply to read-only fan-out or to single-agent linear execution with no branch merge.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-rollback-anchor-when-speculative-branches-share-a-mutable-tool-effect-log.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-rollback-anchor-when-speculative-branches-share-a-mutable-tool-effect-log.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-rollback-anchor-when-speculative-branches-share-a-mutable-tool-effect-log.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1626,
    "python_slice_tokens": 224,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced wrong output.\" It is that a branch's *rollback anchor*—the logical snapshot it must restore to—was silently advanced by a *sibling* branch that committed a tool effect into a shared mutable log. When the losing branch later rolls back, it restores to a state that already contains the winner's committed effect, and then r...",
    "what_was_observed": "A three-way speculative fan-out: a planner agent spawns branches A (draft), B (draft), and C (auditor). All three receive a checkpoint token `ck_7` referencing a tool-effect log at sequence number 4100. Branch A and B each call a `write_record` tool; C calls a `read` tool and then a `verify` tool. The orchestrator intends to select the better of A/B and roll back the loser. Trace: 1. All branches start at `ck_7`, log...",
    "condition_of_validity": "The invariant that must hold for speculative rollback to be sound: > For every branch `b` with anchor `ck`, no effect authored by a branch other than `b` may be interleaved between `ck` and `b`'s own effects in the log that `b`'s rollback compensates against, **unless** the compensation is expressed as a conditional inverse guarded by a read of the log posit...",
    "decision_boundary": "The orchestrator must decide, per branch, whether its tool effects are *isolatable* or *entangled*: - **Isolatable** (writes to branch-scoped keys, append-only records with branch-tagged identity, idempotent external calls keyed by branch id): private-segment rollback is safe. Commit = merge segment. - **Entangled** (writes to shared keys, non-idempotent ext...",
    "operational_effect": "Concretely, the system exhibits: - **Double-application of the winner's effect** when the loser's inverse is misordered and re-touches the winner's key. - **Orphaned partial effects** from the loser that the inverse did not reach because the inverse was authored against a different base. - **Stale auditor verdicts** accepted as covering a state the auditor 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": "19a71d7303531172b86f34a8325ba9311a8ef282d14e0addf60a6dadeda78f3c",
    "verified_classes": [
      "RollbackAnchorViolation"
    ],
    "verified_functions": [
      "rollback_branch",
      "consume_auditor_verdict"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackAnchorViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
