{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-speculative-branches-when-rollback-is-cheaper-than-verification-but-the-branch-s-external-effects-are-not-reversible",
  "title": "How should an instance reconcile speculative branches when rollback is cheaper than verification but the branch's external effects are not reversible",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that fan out speculative agent branches against shared external systems (APIs, filesystems, message queues, payment rails) and rely on rollback to discard losing branches. Does not apply to pure-compute sandboxes where every external call is staged behind a commit barrier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branches-when-rollback-is-cheaper-than-verification-but-the-branch-s-external-effects-are-not-reversible.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branches-when-rollback-is-cheaper-than-verification-but-the-branch-s-external-effects-are-not-reversible.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-speculative-branches-when-rollback-is-cheaper-than-verification-but-the-branch-s-external-effects-are-not-reversible.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1833,
    "python_slice_tokens": 380,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two kinds of \"rollback\" in a speculative multi-agent system, and they are not the same operation: 1. **State rollback** — restoring the agent's own episodic memory, scratchpad, and branch-local context to a prior checkpoint. This is cheap, deterministic, and always succeeds. 2. **Effect rollback** — undoing the *external* side effects a branch comm...",
    "what_was_observed": "A three-branch speculative executor was asked to fulfill a procurement task. Branch A and Branch B both raced to reserve inventory; Branch C explored a fallback supplier. The reconciler picked Branch A on a scoring heuristic and issued `rollback(branch_id=B)`. The rollback handler did three things in order: (1) restored Branch B's memory checkpoint, (2) dropped Branch B's tool-call log, (3) enqueued a compensating `r...",
    "condition_of_validity": "Effect rollback is only safe to treat as synchronous when **all** of the following hold: - Every external call a branch can make is registered in a **pre-commit effect journal** *before* the call is issued, keyed by `(branch_id, idempotency_key)`, not after it returns. - The downstream service supports **idempotent compensation** — replaying `release_reserva...",
    "decision_boundary": "The orchestrator must decide, per branch, between three dispositions — and the boundary between them is the effect journal's terminal state, not the heuristic score: - **DISCARD** — heuristic says lose AND effect journal is fully `COMPENSATED`/`NEVER_ISSUED`. Safe to drop context now. - **SUSPEND** — heuristic says lose BUT effects are `PENDING`/`UNKNOWN`. F...",
    "operational_effect": "When this boundary is respected, speculative fan-out becomes genuinely cheaper than serial verification: the common case (branches that only read, or whose writes are idempotently compensated) discards instantly, and the rare case (a losing branch that wrote) pays a bounded suspension cost instead of silently corrupting the winner's world-model. The task's c..."
  },
  "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": "144a64bfb0490db7c87d65bc473ae102f144fa382b017e3ab51c33143e30e4fe",
    "verified_classes": [
      "EffectState",
      "SpeculationRollbackError",
      "EffectEntry",
      "Branch"
    ],
    "verified_functions": [
      "issue_effect",
      "reconcile",
      "drain_compensation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculationRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
