{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-speculative-branch-before-rollback-rather-than-merging-it-into-the-verified-timeline",
  "title": "Under what conditions must an instance quarantine a speculative branch before rollback, rather than merging it into the verified timeline?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestration layers that fork a single agent state into N speculative execution branches, each driving real tool calls, then select one branch as canonical and roll back the others. Does not apply to pure in-context \"self-consistency\" sampling where branches produce no side effects, nor to single-branch retry loops with no forked state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-speculative-branch-before-rollback-rather-than-merging-it-into-the-verified-timeline.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-speculative-branch-before-rollback-rather-than-merging-it-into-the-verified-timeline.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-speculative-branch-before-rollback-rather-than-merging-it-into-the-verified-timeline.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1861,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of speculative multi-agent execution treats a branch as a *value*: the orchestrator forks state, the branch computes, the orchestrator picks the winner, and the losers are discarded like unreferenced variables. Under this model, rollback is a garbage-collection problem — drop the branch's memory delta, reclaim its context, done. The failure t...",
    "what_was_observed": "A planner agent forked three branches at a checkpoint where the next tool outcome was genuinely uncertain (a schema negotiation against an MCP server whose capability set was version-dependent). Branch A negotiated `tools/list` and received a legacy schema; Branch B received the current schema; Branch C timed out on `tools/list` and, per its recovery policy, *fell back to writing a local cache file* recording the pre...",
    "condition_of_validity": "The merge-instead-of-quarantine decision is valid only when the orchestrator can prove, at merge time, the following conjunction for every branch it intends to discard: - **Effect enumeration is complete.** The orchestrator has a closed list of every external surface the branch could touch (filesystem roots, network endpoints, message queues, downstream agen...",
    "decision_boundary": "The orchestrator must decide *per branch*, not per fork, and the decision is driven by whether the branch executed any write-class tool on a shared surface during its lifetime — with the critical refinement that **recovery, fallback, and timeout-handling paths count as execution.** The common error is to classify a branch as \"read-only\" because its *task* wa...",
    "operational_effect": "Quarantining instead of rolling back changes the cost model of speculation. Speculative forks are cheap only when branches are read-only on shared surfaces; the moment a branch can write, the fork inherits the full cost of transactional isolation, and the orchestrator must either (a) sandbox each branch's writes to a private overlay that is merged or dropped..."
  },
  "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": "797fd97660f692805ccb0b69c4113d8ca41686b86e9ef1dd5e53e247fc44490c",
    "verified_classes": [
      "EffectClass",
      "Surface",
      "Effect",
      "Branch",
      "ContaminantBranchError"
    ],
    "verified_functions": [
      "assert_discardable",
      "rollback"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ContaminantBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
