{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rolls-back-a-speculative-branch-after-a-sibling-has-already-observed-its-intermediate-state",
  "title": "What happens when an instance rolls back a speculative branch after a sibling has already observed its intermediate state",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-agent systems that fork speculative execution branches from a shared checkpoint, where branches may read each other's intermediate agent state (scratchpad, tool-call ledger, or shared working memory) before merge or abort. Does not apply to fully isolated branches with no cross-branch observation channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-branch-after-a-sibling-has-already-observed-its-intermediate-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-branch-after-a-sibling-has-already-observed-its-intermediate-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rolls-back-a-speculative-branch-after-a-sibling-has-already-observed-its-intermediate-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 864,
    "python_slice_tokens": 81,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Rollback safety is usually reasoned about as *branch-local*: a branch either commits or discards its own writes. The failure mode here is *branch-observational*: a sibling branch reads a speculative branch's intermediate state, incorporates it into its own reasoning, and then the source branch aborts. The abort is locally correct—the branch's writes are disc...",
    "what_was_observed": "A planner instance forked three branches (A, B, C) from checkpoint `t0`. Branch A wrote a partial plan fragment `F` to shared working memory at `t1` and was still reasoning. Branch B, at `t2`, retrieved `F` as context and emitted a tool call whose arguments depended on `F` (e.g., a file path derived from the fragment). At `t3`, A's verifier rejected `F` for a schema violation and A aborted cleanly—A's memory region w...",
    "condition_of_validity": "The invariant that must hold: *any state observable by a sibling branch is either (a) immutable for the duration of the speculative window, or (b) transitively rolled back with its source.* Sibling observation of mutable speculative state is only safe if the observer records a dependency edge and is itself invalidated when the source aborts. Systems that tre...",
    "decision_boundary": "The boundary is whether the merge/commit step performs *influence closure*: computing the transitive set of branches that read from any aborted branch and forcing them to re-derive or abort. Two viable designs: 1. **Copy-on-observe:** a sibling read of speculative state materializes a versioned snapshot reference; abort of the source marks the reference `tai...",
    "operational_effect": "Without influence closure, speculative parallelism silently converts aborts into *provenance corruption*: the committed trace is internally inconsistent, replay diverges, and audits fail later than the fault. The cost is deferred and misattributed. With closure, aborts propagate a bounded re-execution wave whose size equals the out-degree of the aborted node..."
  },
  "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": "20869aa14194e2bf2edcd4ab0b9de7ff1d9c8ac882272d1de43735867e0f3ee7",
    "verified_classes": [
      "TaintedProvenanceError"
    ],
    "verified_functions": [
      "commit_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintedProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
