{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-and-verify-rollback-from-resurrecting-a-poisoned-sibling-draft-in-parallel-subagent-execution",
  "title": "Which invariants prevent speculative branch-and-verify rollback from resurrecting a poisoned sibling draft in parallel subagent execution",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that fan out a task into parallel speculative subagents, each producing a draft, then select/verify one draft and roll back the rest. Does not apply to strictly sequential single-chain execution, nor to fan-out where subagents are stateless and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-and-verify-rollback-from-resurrecting-a-poisoned-sibling-draft-in-parallel-subagent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-and-verify-rollback-from-resurrecting-a-poisoned-sibling-draft-in-parallel-subagent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-and-verify-rollback-from-resurrecting-a-poisoned-sibling-draft-in-parallel-subagent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1691,
    "python_slice_tokens": 232,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a subagent produced a bad draft.\" It is that **rollback of a losing speculative branch is treated as an inverse of execution, when it is only an inverse of the branch's local state.** In speculative branch-and-verify, a subagent's draft is cheap to discard *logically* (drop the candidate) but not *operationally* (undo its writes to shared...",
    "what_was_observed": "An orchestrator spawned three draft subagents (A, B, C) for a single tool-using task. Each had a private scratchpad but shared one tool-response cache keyed by `(tool, normalized_args)` and one \"working notes\" vector index for cross-branch context sharing. Subagent A issued `search(query=\"rate limit config\")`; the result was cached under the shared key. Subagent B issued the *same* normalized query (plausibly, since ...",
    "condition_of_validity": "Rollback-as-compensation is only sound under the conjunction: 1. **Effect isolation:** every speculative write is attributable to a single branch epoch and is invisible to reads from any other epoch. This requires the shared cache and notes index to be *epoch-scoped*, not merely key-scoped. Keying by `(tool, args)` is insufficient — it collapses distinct epo...",
    "decision_boundary": "The boundary is **shared-resource write vs. read across epochs.** Concretely: - **Safe:** branch-private scratchpads; committed-only shared state; caches keyed by `(epoch, tool, args)` with reads restricted to `epoch ∈ {own, committed}`; side-effecting tools (payments, file writes, external API mutations) gated behind a commit token that only the winner hold...",
    "operational_effect": "The practical consequence is that speculative parallelism must be partitioned into a **private-draft phase** and a **committed-effect phase**, with the verifier operating strictly on private drafts and all shared mutation deferred to post-selection. Where deferral is impossible (the task *requires* tool calls to draft), the shared store must carry epoch tags..."
  },
  "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": "2d67c65cb4a9651b3609db4759418daeab04a6f4924443b297339eed78cc2184",
    "verified_classes": [
      "SpeculativeEpochLeak",
      "EpochScopedStore"
    ],
    "verified_functions": [
      "rollback_epoch",
      "__init__",
      "write",
      "commit",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeEpochLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
