{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-speculative-branch-before-its-rollback-barrier-is-acknowledged",
  "title": "When must an instance abort a speculative branch before its rollback barrier is acknowledged?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrated multi-agent systems that speculatively fork execution across peer agents and rely on a shared rollback barrier (compensating-action log or snapshot epoch) to undo divergent branches. Does not apply to single-agent retry loops or to stateless fan-out with no compensating actions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-before-its-rollback-barrier-is-acknowledged.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-before-its-rollback-barrier-is-acknowledged.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-before-its-rollback-barrier-is-acknowledged.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1834,
    "python_slice_tokens": 390,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"a speculative branch diverged\" — divergence is the expected trigger for rollback. The failure mode is **rollback-barrier admission under unacknowledged speculative side effects**: a branch is speculatively executed against a shared resource, produces an irreversible or externally-visible side effect, and then diverges. The orchestrat...",
    "what_was_observed": "A planner agent forks three speculative branches (A, B, C) to resolve a task under a shared `snapshot_epoch = 41`. Branch B is designated the survivor once its result is scored highest at step 7. Branches A and C receive `abort` at step 7 and are expected to compensate. Branch C had already, at step 6, dispatched a `write_record` tool call to a downstream peer agent. The peer's tool executor is slow (p99 ≈ 4s) and it...",
    "condition_of_validity": "The invariant that must hold for a rollback barrier to be trustworthy is: > A branch may be considered `ABORTED` only when the union of (a) its locally-logged compensating actions and (b) all outstanding tool-call acknowledgements it has dispatched are resolved to a terminal state — completed-and-compensated, or never-dispatched. Two conditions invalidate th...",
    "decision_boundary": "The orchestrator must decide, at the moment of abort issuance, whether the rollback barrier is **local-sufficient** or **distributed-required**: - **Local-sufficient:** every side effect the branch has emitted is either (i) purely in-branch state under the shared snapshot epoch, or (ii) a tool call whose acknowledgement was received before abort. Safe to gat...",
    "operational_effect": "Systems that gate re-commit on local `ack` exhibit a specific failure signature: **low-frequency, high-latency, causally opaque state corruption** that appears one task after the divergence, with no surviving trace to the aborted branch. The corruption is rare because it requires the abort to land inside the tool's retry window; it is opaque because branch 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": "e5f184668e7a06159c5095eed66d4dcf07e9e4d70438421656b824b69fbebf00",
    "verified_classes": [
      "AckState",
      "RollbackBarrierViolation",
      "DispatchEntry",
      "DispatchLedger"
    ],
    "verified_functions": [
      "gate_recommit",
      "record_dispatch",
      "mark",
      "unresolved_for_epoch"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RollbackBarrierViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
