{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-abort-a-speculative-agent-branch-before-its-commit-token-is-durably-reconciled",
  "title": "In what scenarios must an instance abort a speculative agent branch before its commit token is durably reconciled",
  "date_of_record": "2026 November 25",
  "scope": "Applies to orchestrators that fork multiple agent branches speculatively from a shared checkpoint, run them concurrently against side-effecting tools, and later commit exactly one branch by rolling back the others. Does not cover single-branch execution, read-only fan-out, or branches whose tool calls are all idempotent and side-effect-free.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-agent-branch-before-its-commit-token-is-durably-reconciled.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-agent-branch-before-its-commit-token-is-durably-reconciled.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-abort-a-speculative-agent-branch-before-its-commit-token-is-durably-reconciled.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1618,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative fan-out assumes that \"rollback\" and \"commit\" are symmetric operations on a shared world state. They are not. A commit is a *forward* assertion that a branch's effects are now canonical; a rollback is a *backward* assertion that a branch's effects never happened. With LLM-driven branches, the backward assertion is a lie the moment any branch touch...",
    "what_was_observed": "A planner forked three branches from a checkpoint at step 14: branch A (send vendor RFQ email via `smtp.send`), branch B (write draft RFQ to `crm.drafts.create`), branch C (query pricing API, no side effects). All three were launched with a 90-second speculative deadline. Branch C returned first and was selected as the commit winner because its reasoning score was highest under the planner's rubric. The orchestrator ...",
    "condition_of_validity": "The speculative-commit pattern is valid only when all three hold: - Every side-effecting tool call is preceded by a durable write to an intent log containing `(branch_id, tool, args_hash, idempotency_key, reversible_handle_or_null)`. - Rollback is *verified*, not merely attempted: the handler must confirm the external surface reflects the reversal (e.g., `sm...",
    "decision_boundary": "The instance must abort speculative commit and escalate to a human or a recovery agent in these cases: - A losing branch's rollback handler raised or returned a status the orchestrator cannot map to a verified reversal. - The intent log contains a side effect with `reversible_handle=null` and no idempotency key. - An inbound event arrives whose correlation m...",
    "operational_effect": "After adopting verified rollback and intent logging, the orchestrator's commit latency rose by roughly the cost of one external status check per side-effecting call on losing branches — acceptable. The material change was that branches with irreversible effects (email send, payment capture, webhook fire) were reclassified as *commit-gated*: their side effect..."
  },
  "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": "3fb96b98d9b3f314c3840ea9b01fb7a22580d6e9911177e3ec1404e73d737afc",
    "verified_classes": [
      "OrphanedSpeculativeBranchError",
      "IntentRecord",
      "Branch"
    ],
    "verified_functions": [
      "reconcile_commit",
      "detect_orphan_reentry"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "OrphanedSpeculativeBranchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
