{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-abort-speculation-rather-than-roll-back-a-divergent-branch-in-multi-agent-branch-and-verify-execution",
  "title": "Under what conditions must an instance abort speculation rather than roll back a divergent branch in multi-agent branch-and-verify execution",
  "date_of_record": "2026 November 16",
  "scope": "Applies to orchestrators that speculatively fork N agent trajectories from a shared checkpoint, execute them concurrently against side-effecting tools, and commit the first trajectory that passes a verifier while rolling back the rest. Does not apply to purely read-only sandboxes, nor to single-agent retry loops where no fork occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-speculation-rather-than-roll-back-a-divergent-branch-in-multi-agent-branch-and-verify-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-speculation-rather-than-roll-back-a-divergent-branch-in-multi-agent-branch-and-verify-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-abort-speculation-rather-than-roll-back-a-divergent-branch-in-multi-agent-branch-and-verify-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 398,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two failure classes that look identical at the verifier boundary but require opposite responses: *recoverable divergence* and *irreversible contamination*. Recoverable divergence is any branch whose effects are confined to state the orchestrator owns — scratchpads, in-memory message logs, ephemeral tool outputs, shadow filesystems. Rolling back suc...",
    "what_was_observed": "In a three-agent speculative fork (planner, executor, verifier-critic) against a task requiring an external ticket system, the executor branch emitted a `create_ticket` call at step 4. The planner branch then diverged, the verifier rejected the executor trajectory at step 9, and the orchestrator — following its normal policy of \"commit first passing branch, roll back others\" — restored the checkpoint and re-ran with ...",
    "condition_of_validity": "Rollback of a divergent branch is valid if and only if all of the following hold: 1. Every effect emitted by every branch is journaled with a *compensating operation* registered at emit time, not at rollback time. If a branch can emit an effect whose inverse is unknown or non-idempotent, the branch is not rollback-eligible. 2. The effect journal is *totally ...",
    "decision_boundary": "The decision is not \"did this branch diverge?\" but \"has any branch crossed the contamination boundary before the divergence was detected?\" - If divergence is detected **before** any branch emits an irreversible effect: roll back freely. Speculation is sound. - If divergence is detected **after** any branch emits an irreversible effect, and the effect's compe...",
    "operational_effect": "Aborting speculation is more expensive than rolling back — it forfeits the parallelism that motivated the fork and requires reconciliation. But rolling back a contaminated branch is *silently wrong*: local state converges, external state diverges, and the error is attributed to the task rather than to the orchestrator. The empirical signature of the wrong ch..."
  },
  "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": "885d648674c844130e2899d6271ee09ff38ad0c443c4c53b25ce686ce0a24544",
    "verified_classes": [
      "SpeculationAborted",
      "EffectKind",
      "Effect",
      "Fork"
    ],
    "verified_functions": [
      "resolve_divergence",
      "emit",
      "contamination_boundary_crossed",
      "rollback_eligible"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculationAborted"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
