{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-speculative-branch-divergence-has-become-unreconcilable-under-tool-side-effects",
  "title": "What structural signals indicate speculative branch divergence has become unreconcilable under tool side effects",
  "date_of_record": "2026 November 21",
  "scope": "Applies to multi-agent systems that fork speculative execution branches (parallel planners, tree-of-agents, speculative tool-calling) and later reconcile them via rollback. Does not apply to strictly sequential single-agent loops or to branches whose tool calls are provably pure/idempotent.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-has-become-unreconcilable-under-tool-side-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-has-become-unreconcilable-under-tool-side-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-speculative-branch-divergence-has-become-unreconcilable-under-tool-side-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1595,
    "python_slice_tokens": 270,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a speculative branch was wrong.\" Wrong branches are the normal cost of speculation and are cheaply discarded. The failure mode is that a speculative branch *committed an irreversible external side effect* before the reconciler decided which branch was canonical, so rollback becomes a lie: the internal state rewinds but the world does...",
    "what_was_observed": "A three-branch speculative planner was spawned to satisfy a task (\"reconcile a billing discrepancy\"). Each branch was given a copy-on-write context and a rollback token. Branch A issued a `refund(account, 40.00)` tool call, then failed its own self-check and signaled `abort`. Branch B independently issued `refund(account, 40.00)` as its first step and continued. Branch C issued `adjust_credit(account, 40.00)`. The re...",
    "condition_of_validity": "The invariant that makes speculation safe is **effect-set disjointness under a shared ledger cursor**: for rollback to be sound, every branch's committed effects must be (a) fully declared in its result envelope, (b) reversible via its rollback token up to the ledger watermark captured at fork time, and (c) disjoint from every other live branch's effects on ...",
    "decision_boundary": "The reconciler must switch from *rollback-and-select* to *freeze-and-escalate* the instant it observes any of the four signals above, specifically when: - `ledger.effects ⊄ union(branch.declared_effects)` — an orphaned effect exists; no branch owns it and no rollback token covers it. **Do not attempt rollback; escalate with the orphan set.** - Two or more li...",
    "operational_effect": "Once the freeze-and-escalate boundary is crossed, the system's guarantees degrade in a specific, bounded way: internal state remains consistent (the reconciler's model is a valid snapshot of *its* view), but external state has diverged by exactly the orphaned-effect set, and that divergence is **permanent and unattributed** until a human or a compensating tr..."
  },
  "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": "151cb2ca369c5f08a77ae44656ec87743757e8281d06f38f6a4f2c300b34c450",
    "verified_classes": [
      "UnreconcilableSpeculationError"
    ],
    "verified_functions": [
      "reconcile_branches",
      "_is_reversible"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnreconcilableSpeculationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
