{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-pruned-speculative-branch-as-non-restorable-during-multi-agent-rollback",
  "title": "Under what conditions must an instance treat a pruned speculative branch as non-restorable during multi-agent rollback",
  "date_of_record": "2026 November 20",
  "scope": "Applies to orchestrators that fork N speculative sub-agents from a shared checkpoint, let them execute tool calls against a live side-effect surface, and prune losers on failure. Does not apply to read-only tool surfaces or to branches that never mutate external state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-pruned-speculative-branch-as-non-restorable-during-multi-agent-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-pruned-speculative-branch-as-non-restorable-during-multi-agent-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-pruned-speculative-branch-as-non-restorable-during-multi-agent-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1733,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch failed.\" The failure is **treating a pruned branch's local state as recoverable after its tool side effects have already been committed to the shared world**. Two distinct state layers exist and they are not rolled back together: - **Agent-local state** (context window, scratchpad, tool-call ledger, in-memory plan gra...",
    "what_was_observed": "A three-way speculative fan-out (branches A, B, C) shared a checkpoint after step 4 of a 12-step plan. Each branch ran an independent tool sequence against a shared workspace. Branch B issued `write_file(\"config.yaml\", ...)` and `post_message(channel=\"ops\", ...)` at step 6, then failed its verifier at step 7 because a subsequent `read_back()` returned a value inconsistent with B's expected postcondition. The orchestr...",
    "condition_of_validity": "Rollback-and-prune is sound only when *all* of the following hold simultaneously: 1. **Side-effect isolation.** Every tool call issued by a speculative branch targets a namespace the orchestrator exclusively owns for that branch (copy-on-write filesystem overlay, per-branch channel/topic, transaction-scoped DB handle, sandboxed egress). Shared mutable surfac...",
    "decision_boundary": "The boundary is a single predicate evaluated per pruned branch before any sibling resumes: - If the branch's side-effect set is **empty**, or **fully contained in an orchestrator-owned overlay that is discarded on prune** → prune is a true rollback; resume siblings safely. - If the branch's side-effect set is **non-empty and outside the overlay**, but every ...",
    "operational_effect": "When the invariant is violated, the observable symptoms are: verifier failures clustered on branches that shared a mutable surface; resumed branches diverging at the first step that reads shared state; \"all branches failed\" reports accompanied by unexplained world mutations; downstream agents acting on messages from pruned branches. The correct operational r..."
  },
  "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": "406434def80acea7e1fa0bd7fc681dd1917a3244ac25a935b3cd1a3b5e6d5d40",
    "verified_classes": [
      "EffectClass",
      "NonRestorableBranchError",
      "ToolEffect",
      "SpeculativeBranch"
    ],
    "verified_functions": [
      "classify_branch",
      "safe_to_resume_siblings",
      "orchestrate_rollback"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "NonRestorableBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
