{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-discards-buffered-writes-that-a-sibling-branch-already-obs",
  "title": "What happens when an instance speculatively executes parallel agent branches and a rollback discards buffered writes that a sibling branch already observed",
  "date_of_record": "2026 November 23",
  "scope": "Applies to orchestrators that fork a single agent task into concurrent speculative branches whose tool side effects are buffered and conditionally committed or rolled back. Does not apply to strictly serial agents, nor to branches whose side effects are inherently non-bufferable (e.g., live outbound messages, irreversible external payments) unless a compensating-action protocol exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-discards-buffered-writes-that-a-sibling-branch-already-obs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-discards-buffered-writes-that-a-sibling-branch-already-obs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-parallel-agent-branches-and-a-rollback-discards-buffered-writes-that-a-sibling-branch-already-obs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1895,
    "python_slice_tokens": 372,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *rollback of a write* and *rollback of the observation of a write*. A rollback-safe side-effect buffer guarantees the former: an uncommitted `write_file`, `send_email`, or `db_insert` from a losing branch is never applied to the durable world. It does **not** and cannot guarantee the latter, because the observation hap...",
    "what_was_observed": "A planner forked three branches from a shared checkpoint to satisfy one user request: branch A would `create_issue`, branch B would `search_issues` to check for duplicates, branch C would `assign_label`. The orchestrator staged A's `create_issue` into the side-effect buffer so it could be rolled back if B found a duplicate. To keep branches \"consistent,\" the buffer was wired into the shared tool-read layer: B's `sear...",
    "condition_of_validity": "The rollback-safe buffering invariant holds **only if** the read path visible to any branch is partitioned into (a) durable committed state and (b) that branch's *own* staged effects, with no visibility of sibling staged effects. Formally, for branch `i` reading key `k` at step `t`, the returned value must satisfy `read_i(k,t) = committed(k) ⊕ own_staged_i(k...",
    "decision_boundary": "The boundary is between *speculation as an internal search* and *speculation as an external commitment*. Speculative branches may freely read their own staged effects — that is what makes speculation useful (A can check whether its own create succeeded before proposing commit). They may **not** read sibling staged effects, because the sibling's commit is not...",
    "operational_effect": "Without the partition, speculative execution silently converts a write-transactional system into an epistemically non-transactional one: branches make decisions on facts that will be erased, and the erasure is invisible to the branch that depended on it. The observable symptoms are (1) merge verdicts that cite facts absent from the final state, (2) resume/re..."
  },
  "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": "a72b651e99c1f250af4e38d67e1a8d4ab05f9f6cf9672578d4cb2eb7f176073d",
    "verified_classes": [
      "SpeculativeReadLeakError",
      "UnsoundMergeError",
      "StagedEffect",
      "SideEffectBuffer"
    ],
    "verified_functions": [
      "stage",
      "read",
      "commit",
      "rollback",
      "admit_merge"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeReadLeakError",
      "UnsoundMergeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
