{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-a-speculative-branch-after-a-peer-has-already-committed-downstream-effects",
  "title": "When must an instance abandon a speculative branch after a peer has already committed downstream effects",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems where a coordinator forks speculative execution branches across peer agents, each of which may emit irreversible downstream effects (tool calls, writes, external API mutations) before a reconciliation decision is made. Does not apply to branches confined to a sandbox with full transactional rollback of external side effects, nor to single-agent speculative decoding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-after-a-peer-has-already-committed-downstream-effects.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-after-a-peer-has-already-committed-downstream-effects.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-a-speculative-branch-after-a-peer-has-already-committed-downstream-effects.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1863,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"did the branch produce a wrong answer.\" It is the moment a speculative branch has *leaked a committed side effect* into shared state that a sibling branch (or the reconciler) will read, while the coordinator still believes the branch is logically provisional and therefore discardable. Speculative execution assumes a cheap, tota...",
    "what_was_observed": "A coordinator agent decomposed a task (\"reconcile vendor invoices\") into three speculative branches dispatched to peer worker instances: B1 (read-only analysis), B2 (issue refund via payment tool), B3 (post adjustment to ledger). The coordinator's plan was to run all three speculatively, then select a consensus branch and roll back the losers. Each branch carried a `branch_id` and a `rollback_token` minted at fork ti...",
    "condition_of_validity": "The invariant that makes speculative branching safe is a *commitment barrier*: no branch may emit an externally observable, non-idempotent effect until the reconciler has committed that branch and revoked the rollback tokens of all losers *before* any winner executes its effects. Formally, for each branch `b` and each effect `e(b)`: - `e(b)` must be gated be...",
    "decision_boundary": "The coordinator must switch from \"speculative rollback\" mode to \"compensating reconciliation\" mode at the first of these triggers: - A branch's effect receipt carries a non-reversible marker (no compensating endpoint, or TTL shorter than the max reconciliation latency). - A sibling branch's read-set intersects a leaked effect's write-set (detected via the pr...",
    "operational_effect": "The practical consequence is that speculative multi-agent execution must budget for *effect provenance* as a first-class artifact, not just branch outputs. Concretely: - Every tool call in a speculative branch returns an effect receipt `{effect_id, reversible, compensate_endpoint, token_ttl, write_set}`. - The reconciler maintains a global effect ledger; a b..."
  },
  "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": "7675886d09c3e8ba3fc927fe43eae9a6025f42ce68d29f75e59da66a7d6aa3eb",
    "verified_classes": [
      "SpeculativeCommitmentError",
      "EffectReceipt",
      "Branch"
    ],
    "verified_functions": [
      "is_abandonable",
      "rollback_branch",
      "reconcile"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SpeculativeCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
