{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-merge-a-speculative-branch-whose-rollback-journal-is-incomplete",
  "title": "When must an instance refuse to merge a speculative branch whose rollback journal is incomplete",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fan out speculative agent branches against a shared mutable substrate (filesystem, database, tool side-effects) and later reconcile by rollback-and-merge. Does not apply to read-only speculative decoding or branches whose effects are never committed to shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-speculative-branch-whose-rollback-journal-is-incomplete.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-speculative-branch-whose-rollback-journal-is-incomplete.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-merge-a-speculative-branch-whose-rollback-journal-is-incomplete.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1656,
    "python_slice_tokens": 369,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch produced a wrong answer.\" It is \"a branch produced an *unrecoverable* side-effect ledger.\" Speculative execution assumes every branch carries a complete, ordered journal of mutations so that a losing branch can be deterministically unwound before a winning branch's writes are merged. The boundary condition is the moment a branch'...",
    "what_was_observed": "A planner spawned three speculative branches (`A`, `B`, `C`) to refactor a config module, each with its own sandboxed tool loop. Branch `B` invoked a shell tool that wrote a temp file, then a second tool that appended to a shared registry *by path*, then a third tool that renamed the temp file onto the registry path. The journal recorded three entries: `create(temp)`, `append(registry)`, `rename(temp→registry)`. On r...",
    "condition_of_validity": "Rollback-and-merge is sound only under the conjunction of three conditions, each of which is *independently* falsifiable and none of which the orchestrator can infer from branch success alone: 1. **Journal monotonicity**: every mutation is journaled *before* it is applied (write-ahead), and the journal entry carries the *observed* post-state, not the tool's ...",
    "decision_boundary": "The orchestrator must decide, per branch, between three actions, and the boundary is drawn by journal completeness rather than by branch outcome: - **Merge** only if the branch won *and* its journal is complete *and* no concurrent branch wrote to any path it touched after its seal. - **Rollback** only if the branch lost *and* its journal is complete *and* co...",
    "operational_effect": "Enforcing this boundary changes the orchestrator's cost profile. Speculative fan-out now pays a journal-integrity audit per branch (cheap: hash the journal against the tool-call trace, check seal generations against the path set), and it must maintain a generation counter per shared path so that rollback can detect post-seal interference. Branches that fail ..."
  },
  "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": "d9d3c1993be6a662003b7c8a631e2a03d74fed6dce9bec38aa75f458e2bdda46",
    "verified_classes": [
      "IncompleteRollbackJournal",
      "BranchJournal"
    ],
    "verified_functions": [
      "disposition",
      "reconcile",
      "__init__",
      "record"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "IncompleteRollbackJournal"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
