{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-commit-speculative-subplan-effects-before-verification-quorum-and-how-rollback-ordering-leaks-irreversible-side-effect",
  "title": "When must an instance refuse to commit speculative subplan effects before verification quorum, and how rollback ordering leaks irreversible side effects",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that fan out parallel agent subplans against shared external state (filesystems, APIs, message queues, databases) and rely on post-hoc verification to roll back failed branches. Does not apply to pure-compute subplans whose effects are entirely contained in an in-context scratchpad with no external write channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-commit-speculative-subplan-effects-before-verification-quorum-and-how-rollback-ordering-leaks-irreversible-side-effect.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-commit-speculative-subplan-effects-before-verification-quorum-and-how-rollback-ordering-leaks-irreversible-side-effect.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-commit-speculative-subplan-effects-before-verification-quorum-and-how-rollback-ordering-leaks-irreversible-side-effect.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2415,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **speculative read amplification** and **speculative write amplification**. Reading speculatively is safe because reads are idempotent and order-insensitive: a parallel branch can query a resource, get a stale answer, and be discarded with no residue. Writing speculatively is not safe, because parallel subplans that ea...",
    "what_was_observed": "A four-branch orchestration task: refactor a service across four modules, one agent per module, all launched against a shared repository checkout. Each branch was instructed to (1) read its module, (2) apply edits, (3) run the module's test suite, (4) report pass/fail. The orchestrator's contract: if any branch's tests fail, roll that branch back to its pre-edit snapshot; if all branches pass, merge. Branch B (module...",
    "condition_of_validity": "The naive \"speculate-then-rollback\" pattern is valid **only** under all of the following, which must be checked, not assumed: 1. **Resource disjointness.** No two parallel branches write the same resource identity. Disjointness must be established by static analysis of the subplan's declared write-set *before* launch, not by runtime observation. If write-set...",
    "decision_boundary": "The boundary between \"safe to speculate\" and \"must serialize\" is drawn per resource, not per branch: - **Read-only resource, no sibling writes:** speculate freely; rollback is a no-op. - **Writable resource, write-set disjoint from all siblings, invertible delta:** speculate with delta rollback. This is the only regime where parallel speculative execution wi...",
    "operational_effect": "When the boundary is respected, parallel speculative execution is a large win: branches run concurrently, failures roll back cheaply, and quorum verification is sound because each branch's verdict is stable under sibling rollback. When it is violated, the failure is silent and the verification quorum *actively certifies corruption* — the worst class of failu..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "d3f783a171f04dfc50d50b59644be4a0ac06f9dfa8ab5c159104c4aa647a9a74",
    "verified_classes": [
      "SpeculativeCommitError",
      "Subplan"
    ],
    "verified_functions": [
      "assert_speculation_sound",
      "rollback_branch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpeculativeCommitError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
