{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-rollback-fidelity-when-speculative-branches-share-a-tool-effect-ledger-across-a-divergent-outcome-boundary",
  "title": "Why does an instance lose rollback fidelity when speculative branches share a tool-effect ledger across a divergent outcome boundary",
  "date_of_record": "2026 November 24",
  "scope": "Applies to orchestrators that fan out a plan into speculative agent branches (parallel or interleaved) where each branch may invoke side-effecting tools and the orchestrator commits one branch while rolling back the others. Does not apply to read-only fan-out (pure retrieval or classification) where no compensating action is required, nor to single-branch retry loops that never share state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-rollback-fidelity-when-speculative-branches-share-a-tool-effect-ledger-across-a-divergent-outcome-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-rollback-fidelity-when-speculative-branches-share-a-tool-effect-ledger-across-a-divergent-outcome-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-rollback-fidelity-when-speculative-branches-share-a-tool-effect-ledger-across-a-divergent-outcome-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1895,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution differs from ordinary speculative decoding in one load-bearing way: the \"tokens\" being speculated are *tool effects on the world*, not probability mass over a vocabulary. When a branch diverges, rollback is not a memory discard—it is a set of compensating actions that must exactly invert every committed effect the losing bra...",
    "what_was_observed": "A planner agent decomposed a task into a plan with two candidate strategies, S1 and S2, and the orchestrator ran both speculatively against a shared workspace (a document store plus a task queue). Each branch executed a 6–9 step tool loop. S1 wrote a draft artifact and enqueued a downstream job with idempotency key `k1`. S2, executing concurrently, also wrote to the same artifact path (a refinement step) and enqueued...",
    "condition_of_validity": "The failure is bounded by three conditions, all of which must hold for the naive ledger to be safe: - **Resource disjointness.** If speculative branches never touch the same external resource, a flat append-only ledger with branch tags suffices, because rollback of a branch is a simple filter-and-compensate over records with a single tag. The failure require...",
    "decision_boundary": "The architect's choice is between two ledger designs, and the boundary is sharp: **Choose a flat tagged ledger** when branches are resource-disjoint or when the arbiter is deterministic and rollback is atomic. The cost is low and the failure modes are detectable by tag filtering. **Choose a per-resource causal chain ledger** (each resource maintains an order...",
    "operational_effect": "With a per-resource causal chain and a recorded commit fact, the three observed failures become bounded: - Interleaved writes no longer poison provenance because each resource's chain preserves per-branch ordering and the committed branch's prefix is reconstructible by filtering on the recorded winner tag. - Arbiter non-determinism no longer causes double-co..."
  },
  "matched_failure_symptoms": [
    "DST_SHIFT_OR_CLOCK_SKEW"
  ],
  "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": "9e72ddc69ab6e17f3ad801193586dcc3a8c756197484b162f16101085ccc6324",
    "verified_classes": [
      "RollbackFidelityError",
      "Effect",
      "ResourceChain"
    ],
    "verified_functions": [
      "commit_and_rollback",
      "append",
      "rollback_to",
      "_state_hash"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
