{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-branch-s-rollback-has-already-mutated-shared-external-stat",
  "title": "In what scenarios must an instance refuse to reconcile a speculative branch after a sibling branch's rollback has already mutated shared external state",
  "date_of_record": "2026 November 29",
  "scope": "Applies to orchestrators that run speculative parallel branches of an agent plan (fan-out with rollback) against shared external side-effect surfaces (filesystems, databases, message queues, remote APIs). Does not apply to purely read-only speculation or to single-branch execution where no rollback/reconciliation is attempted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-branch-s-rollback-has-already-mutated-shared-external-stat.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-branch-s-rollback-has-already-mutated-shared-external-stat.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-to-reconcile-a-speculative-branch-after-a-sibling-branch-s-rollback-has-already-mutated-shared-external-stat.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1729,
    "python_slice_tokens": 232,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution treats a branch as *provisional*: it may be committed, or it may be rolled back, and the orchestrator assumes the two operations are symmetric inverses. That assumption holds only when the speculative branch's effects are *contained within a reversible journal* owned by the orchestrator. The failure mode documented here occu...",
    "what_was_observed": "A planner spawned three speculative branches for a migration task: `B1` (apply schema change to staging DB), `B2` (generate and validate data backfill against staging), `B3` (run integration suite). All three were given a shared cost budget and told to proceed optimistically; the orchestrator intended to commit the cheapest consistent set and roll back the rest. `B1` executed a non-transactional `ALTER TABLE` on the ...",
    "condition_of_validity": "The symmetric-inverse assumption is valid **only** when, for every branch `B` and every side-effect surface `S` touched by `B`: 1. `B`'s writes to `S` are journaled by the orchestrator and invertible (transactional, or compensating-action-defined), **and** 2. no sibling branch read `S` in the window between `B`'s write and `B`'s rollback, **or** any sibling ...",
    "decision_boundary": "The orchestrator must refuse reconciliation and escalate to full-set re-derivation when any of the following holds at rollback time: - The rolled-back branch touched a surface flagged `non_invertible` (DDL, append-only logs, sent emails, external API mutations), **and** any sibling's recorded read-set intersects that surface after the write timestamp. - A si...",
    "operational_effect": "Enforcing this invariant changes the orchestrator's rollback protocol from \"abort branch, refund budget, reconcile survivors\" to a three-phase protocol: (1) *quiesce* — stop all siblings whose read-sets intersect the doomed branch's write-set; (2) *classify* — determine invertibility of each touched surface and whether any sibling observed a retracted effect..."
  },
  "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": "ab19674604709dc4e87ea1bbfd6547650ad7f2e893205367b870a79668a49683",
    "verified_classes": [
      "SpeculativeReconciliationError",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "__init__"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SpeculativeReconciliationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
