{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-speculative-plan-branch-before-its-compensating-actions-have-quiesced-rollback-ordering-divergence-in-parallel-agent-pla",
  "title": "When must an instance abort a speculative plan branch before its compensating actions have quiesced: rollback-ordering divergence in parallel agent plan forking",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestration layers that fork a plan into speculative parallel branches (each branch an agent instance or sub-agent with tool access) and rely on compensating actions to undo a losing branch. Does not apply to read-only branches, or to systems where branches are isolated by transaction-level snapshot/rollback provided by the substrate rather than by agent-issued compensators.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-plan-branch-before-its-compensating-actions-have-quiesced-rollback-ordering-divergence-in-parallel-agent-pla.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-plan-branch-before-its-compensating-actions-have-quiesced-rollback-ordering-divergence-in-parallel-agent-pla.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-plan-branch-before-its-compensating-actions-have-quiesced-rollback-ordering-divergence-in-parallel-agent-pla.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2635,
    "python_slice_tokens": 488,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **logical rollback** (the orchestrator marks a speculative branch as abandoned and stops issuing new steps) and **physical rollback** (every side effect that branch already emitted has been either reversed by a compensating action or proven never to have landed). Speculative execution in agent systems almost always con...",
    "what_was_observed": "A planning agent received a task requiring a schema migration plus a backfill. It forked three speculative branches: branch A proposed an in-place `ALTER TABLE` with a lock; branch B proposed a shadow-table copy; branch C proposed a dual-write with a later cutover. The orchestrator ran all three in parallel against a staging cluster, each branch issuing real DDL and DML through tool calls, each carrying a compensator...",
    "condition_of_validity": "The guardrail is only sound under an explicit **quiescence contract** between the orchestrator and every branch it forks. The contract has three clauses, and a branch may be treated as physically rolled back only when all three hold: 1. **Effect ledger closure.** The branch maintains an append-only ledger of every side effect it has emitted, each entry carry...",
    "decision_boundary": "The operational question is: at the instant the decision function prefers branch B, what may the orchestrator do? - **May** mark A and C logically aborted, stop issuing new steps to them, and begin draining their effect ledgers. - **May not** let B touch any resource in A's or C's recorded footprint until both report quiescent. - **Must** treat `compensation...",
    "operational_effect": "Enforcing the quiescence contract changes the economics of speculation in a way that is easy to miss. Speculative parallel branching is adopted precisely because branches run concurrently and the winner is chosen on evidence; the contract forces the *commit* to serialize behind the *slowest losing branch's drain*. In the observed incident that would have bee..."
  },
  "matched_failure_symptoms": [
    "DUPLICATE_MUTATION_OR_BILLING"
  ],
  "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": "66ed863ac6fa0f8d75d44d3dd8530037d389bcc56ac1bc7af528431bab375654",
    "verified_classes": [
      "QuiescenceViolation",
      "EffectStatus",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "await_quiescence",
      "commit_with_fencing",
      "run_forked_plan",
      "footprint",
      "is_quiescent",
      "has_failed_compensation"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "QuiescenceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
