{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-diverge-from-its-siblings-when-speculative-branches-commit-against-a-shared-tool-ledger",
  "title": "Why does an instance diverge from its siblings when speculative branches commit against a shared tool ledger?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-agent systems that fork a parent reasoning trace into speculative branches, invoke tools optimistically before reconciliation, and then merge or roll back branches. Does not apply to single-agent sequential tool loops or to branches that never share mutable external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-siblings-when-speculative-branches-commit-against-a-shared-tool-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-siblings-when-speculative-branches-commit-against-a-shared-tool-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-diverge-from-its-siblings-when-speculative-branches-commit-against-a-shared-tool-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2419,
    "python_slice_tokens": 473,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways to think about speculative branch execution. The first is **trace-local rollback**: each branch keeps its own message history and tool-call log, and rollback means discarding that local trace. This is the model most agent frameworks implement, and under it, rollback is trivially correct—you drop the list, you're done. The second is **ledge...",
    "what_was_observed": "A parent agent forks three speculative branches to answer a single operational question: \"Does customer record 4471 have an active subscription?\" The parent has already decided it needs this fact to proceed. The branches are assigned different strategies: - **Branch A** queries the billing service directly (`billing.get_subscription(4471)`). - **Branch B** queries the CRM cache, which is stale-by-design (TTL 15 min)....",
    "condition_of_validity": "The trace-local rollback model is valid **only if** every tool invoked by a speculative branch is either (a) purely read-only against immutable state, or (b) idempotent and commutative with every other branch's effects, or (c) accompanied by an observation-invalidation protocol that marks any read during the optimistic window as tainted until the window clos...",
    "decision_boundary": "The boundary is: **does the branch's optimistic tool call mutate state that any other live or future branch can read before the optimistic window is closed and reconciled?** - If **no** → trace-local rollback is sound. Discard the trace, log the discarded branch, proceed. - If **yes** → trace-local rollback is unsound. You must either (1) serialize mutating ...",
    "operational_effect": "The operational consequence is that speculative multi-agent systems with optimistic mutation require a **three-part ledger discipline** that most frameworks omit: 1. **Optimistic windows are first-class ledger objects.** A mutating branch opens a window with an ID; every read by any branch during the window is tagged with that ID. Closing the window (commit ..."
  },
  "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": "643814e91a7c2c9f8ffbbf446215cc288c4526fea9112aa997fc26d00c6204fb",
    "verified_classes": [
      "OptimisticWindowViolation",
      "Envelope",
      "MergeResult",
      "Ledger"
    ],
    "verified_functions": [
      "reconcile",
      "__init__",
      "open_window",
      "close_window",
      "is_tainted"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "OptimisticWindowViolation"
    ],
    "sample_fail_closed_invariants": [
      "no clean envelopes eligible for merge"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
