{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-a-speculative-branch-reconciling-rollback-invalidation-against-shared-state-writes-in-speculative-multi-agent-execution",
  "title": "When must an instance abandon a speculative branch: reconciling rollback invalidation against shared-state writes in speculative multi-agent execution",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent systems where a lead agent forks speculative branches (parallel sub-agents exploring candidate plans) that each hold a private overlay over a shared, mutable world-state, and where branches are committed or rolled back on the basis of a reconciliation vote. Does not apply to read-only fan-out (map/reduce over immutable inputs) or to single-agent self-consistency sampling where no branch mutates shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-reconciling-rollback-invalidation-against-shared-state-writes-in-speculative-multi-agent-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-reconciling-rollback-invalidation-against-shared-state-writes-in-speculative-multi-agent-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-reconciling-rollback-invalidation-against-shared-state-writes-in-speculative-multi-agent-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2168,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a speculative branch produced a wrong answer.\" Wrong answers are cheap; you discard them. The failure is **rollback invalidation under write leakage**: a branch that is later rolled back has already emitted an *effectful* write into a resource that the overlay model did not cover, so the rollback is a no-op for that write while the reconc...",
    "what_was_observed": "A lead agent decomposed a task (\"migrate schema and backfill\") into three speculative branches running concurrently: `B1` (dry-run migration), `B2` (backfill estimator), `B3` (rollback-script generator). Each branch ran a sub-agent with a private copy-on-write overlay over a shared record store. The overlay covered the record store but *not* a memoization cache keyed by `(table, query_hash)` that the tool layer used ...",
    "condition_of_validity": "Rollback is sound only when the following invariant holds for every branch `b` and every resource `r`: > `r ∈ coverage(overlay)` for all `r` that `b` can write, OR `r` is idempotent-and-versioned such that a rolled-back write is detectable and reversible by version tag. The invariant is *violated* whenever any of the following is true, and the reconciler mus...",
    "decision_boundary": "The operational decision is: **when a branch is rolled back, does the reconciler (a) proceed to commit siblings immediately, or (b) enter a quarantine-and-revalidate phase?** Rule: - If `coverage(overlay) ⊇ writeable(tools)` for the branch's tool manifest **and** all shared channels are epoch-tagged, proceed to commit — rollback is a pure overlay discard, si...",
    "operational_effect": "Enforcing the boundary changes three things: 1. **Every mutating tool must declare its overlay coverage.** Tools that cannot be intercepted (external APIs, caches) must be registered as `uncovered` and epoch-tagged at branch fork. The reconciler refuses to commit across an uncovered channel without an explicit quarantine pass. This is a hard gate, not a heur..."
  },
  "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": "2f0e81005e06a6ccab820c7868190d643d2788b82c225e83777e16211ebb0964",
    "verified_classes": [
      "RollbackContaminationError",
      "Branch"
    ],
    "verified_functions": [
      "reconcile"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "RollbackContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
