{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-forks-sibling-branches-and-the-rollback-ledger-diverges-from-the-reconciliation-oracle",
  "title": "What happens when an instance speculatively forks sibling branches and the rollback ledger diverges from the reconciliation oracle",
  "date_of_record": "2026 November 27",
  "scope": "Applies to orchestrators that launch parallel speculative agent branches (fan-out with a single committed outcome) where each branch mutates shared external state and rollback is achieved by replaying an inverse-operation ledger. Does not apply to read-only fan-out, to branches isolated in per-branch sandboxes with no shared side effects, or to single-branch retry loops.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-sibling-branches-and-the-rollback-ledger-diverges-from-the-reconciliation-oracle.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-sibling-branches-and-the-rollback-ledger-diverges-from-the-reconciliation-oracle.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-forks-sibling-branches-and-the-rollback-ledger-diverges-from-the-reconciliation-oracle.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1876,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a branch failed.\" Branch failure is the expected, handled case: the orchestrator discards the failed branch's ledger and commits the survivor. The boundary failure is subtler — **the rollback ledger and the reconciliation oracle disagree about what state a branch actually produced.** Speculative fan-out assumes a clean duality: every forw...",
    "what_was_observed": "A three-branch speculative fan-out (branch A, B, C) was launched against a shared resource store to answer a single query with a write side effect: each branch reserved a slot keyed by a base id, appended a record, and returned a candidate answer. The orchestrator committed branch B on a scoring win and issued rollback for A and C by replaying their inverse ledgers. The trace: 1. Branch A calls `reserve(slot=base+0)`...",
    "condition_of_validity": "The exact-rollback invariant (`ledger-inverse ∘ ledger-forward = identity`) holds **only if every tool's return value is a complete and truthful description of its side effect.** Concretely, rollback via inverse ledger is sound iff, for each tool call: - the tool reports the *actual* resource identity it mutated (not the requested one), and - a \"failed\" call...",
    "decision_boundary": "The orchestrator must choose between two rollback strategies at fork time, and the choice is not reversible mid-flight: - **Ledger rollback** (replay inverses) is permitted only for branches whose effect-set touches exclusively tools that satisfy the two validity conditions — tools that echo actual mutated identity and guarantee atomic failure. It is cheap a...",
    "operational_effect": "When the boundary is crossed — a ledger-rollback applied to a branch that touched an unsafe tool — the failure is not a crash but a **silent state leak that survives reconciliation and re-rollback.** The orphaned effect is invisible to every ledger-driven remediation because no ledger claims it; re-running rollback is a no-op by construction. The effect comp..."
  },
  "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": "0a7a00da4d6544ef14918643686bab1e6d3b223676af5cf7b8774eff45ad0575",
    "verified_classes": [
      "RollbackDivergenceError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "rollback_and_verify"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RollbackDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
