{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-speculative-branch-s-committed-tool-effects-as-non-rollbackable-and-how-does-silent-divergence-between",
  "title": "Under what conditions must an instance treat a speculative branch's committed tool effects as non-rollbackable, and how does silent divergence between reconciled branches corrupt the swarm's shared ledger",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent swarms that fork parallel speculative branches over a shared world-state (filesystem, database, external APIs) and later reconcile by selecting one branch's result. Does not apply to purely stateless fan-out (map-reduce over immutable inputs) or to branches that execute exclusively against per-branch sandboxed snapshots with provably no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-committed-tool-effects-as-non-rollbackable-and-how-does-silent-divergence-between.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-committed-tool-effects-as-non-rollbackable-and-how-does-silent-divergence-between.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-speculative-branch-s-committed-tool-effects-as-non-rollbackable-and-how-does-silent-divergence-between.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2242,
    "python_slice_tokens": 409,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs everything below is between **branch state** and **branch effects**. A speculative branch has two things that can diverge from its siblings: its internal state (the messages, scratchpad, and partial reasoning it accumulates) and its external effects (the writes, API mutations, and resource allocations it has already performed on ...",
    "what_was_observed": "A three-branch speculative executor was tasked with \"migrate the config schema and update all dependents.\" Branch A chose to rename a field `timeout_ms` → `timeout_millis` and updated eleven call sites. Branch B chose to keep the field name and instead widen the type to accept both integer and string durations, editing the validator and three call sites. Branch C attempted an in-place migration script that mutated th...",
    "condition_of_validity": "The \"discard the loser\" reconciliation strategy is valid if and only if at least one of the following holds for every losing branch: 1. **Effect isolation:** the branch executed against a copy-on-write or transactional snapshot whose commit is a single atomic operation gated on reconciliation outcome. If the branch's effects are not yet committed, discarding...",
    "decision_boundary": "The decision boundary is reached when a branch has crossed from *reasoning about effects* to *committing effects* before reconciliation completes. Concretely, an instance must escalate from speculative-discard semantics to compensation-required semantics at the moment any tool call in a branch satisfies all of: - it mutates shared state visible to sibling br...",
    "operational_effect": "The operational consequence is that **reconciliation must be effect-aware, not state-aware.** Three concrete changes bound the failure: First, every tool invocation in a speculative branch must emit a structured effect record `(branch_id, tool, target, pre_image_hash, post_image_hash, reversible: bool, inverse_spec)` into a swarm-shared effect ledger that su..."
  },
  "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": "9164279521038b7eef4c42f6ab9bae84513b78d417d698567d02d468cbc1a6b5",
    "verified_classes": [
      "SpeculativeDivergenceError",
      "EffectDisposition",
      "EffectRecord",
      "EffectLedger",
      "Reconciler"
    ],
    "verified_functions": [
      "verify_winner",
      "record",
      "for_branch",
      "unresolved_for_branch",
      "reconcile",
      "assert_discard_safe"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
