{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-speculative-side-effects-before-branch-and-verify-rollback-can-commit-a-winner",
  "title": "In what scenarios must an instance quarantine speculative side effects before branch-and-verify rollback can commit a winner",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestrators that fan out speculative agent branches which pre-execute tool calls (writes, sends, payments, deployments) before a verifier selects a winning branch. Does not apply to read-only tool surfaces or to pure in-context reasoning trees with no external side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-speculative-side-effects-before-branch-and-verify-rollback-can-commit-a-winner.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-speculative-side-effects-before-branch-and-verify-rollback-can-commit-a-winner.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-speculative-side-effects-before-branch-and-verify-rollback-can-commit-a-winner.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1648,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The decisive distinction is between *reversible speculation* (branch state lives only in the agent's context, scratch memory, or an isolated sandbox) and *irreversible speculation* (a branch has already emitted an external effect: a POST that created a resource, an email, a database write, a charge). Branch-and-verify rollback is only sound over reversible s...",
    "what_was_observed": "A planning orchestrator spawned five speculative branches to satisfy a request to \"provision a staging environment and notify the team.\" Each branch was permitted to pre-execute tool calls to reduce latency; the verifier scored branches on plan quality and would \"roll back\" the losers by discarding their context and issuing compensating calls where a tool declared a `compensate` action. Branch 3 chose a cheaper insta...",
    "condition_of_validity": "Branch-and-verify rollback is valid only when all of the following hold simultaneously: - **Effect isolation:** each speculative branch's tool calls are namespaced (unique reservation IDs, sandboxed resource names, per-branch write tokens) so no branch can observe or mutate another branch's effects before promotion. - **Reservation over commitment:** pre-exe...",
    "decision_boundary": "The boundary is crossed at the first *externally observable* effect emitted before promotion. Concretely: - If every pre-executed call returns a reservation and mutates nothing observable outside the orchestrator's ledger → rollback is safe; proceed with branch-and-verify. - If any call commits an externally visible mutation (creates a named resource, sends ...",
    "operational_effect": "Enforcing quarantine changes the orchestrator's shape: the verifier now selects over a *pending effect ledger*, promotion is a single atomic flip that commits the winner's reservations and voids the rest, and compensation code is deleted rather than trusted. Latency gains from pre-execution survive for reads and reservable writes; committing writes lose thei..."
  },
  "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": "b384a4b6a38881167a63f5c9d1de9aab038de10848d245d6be99ce3f66a39694",
    "verified_classes": [
      "SpeculationBoundaryError",
      "EffectClass",
      "Reservation",
      "EffectLedger"
    ],
    "verified_functions": [
      "run_speculative_branch",
      "admit",
      "promote",
      "void_losers"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SpeculationBoundaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
