{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-parallel-agent-branches-from-committing-divergent-side-effects-after-a-winner-take-all-rollback",
  "title": "Which invariants prevent speculative parallel agent branches from committing divergent side effects after a winner-take-all rollback",
  "date_of_record": "2026 November 28",
  "scope": "Applies to orchestration of N parallel speculative agent branches that share an external effect space (tool calls, file writes, API mutations) and resolve via winner-take-all commit with rollback of losers. Does not apply to pure-compute speculative decoding, read-only fan-out, or branches with fully isolated effect sandboxes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-parallel-agent-branches-from-committing-divergent-side-effects-after-a-winner-take-all-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-parallel-agent-branches-from-committing-divergent-side-effects-after-a-winner-take-all-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-parallel-agent-branches-from-committing-divergent-side-effects-after-a-winner-take-all-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1733,
    "python_slice_tokens": 253,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative multi-agent execution differs from speculative decoding in one decisive way: branches do not merely produce candidate tokens, they *emit effects* into a shared world. The winner-take-all commit is a control-plane decision (pick branch *k*, discard *k≠j*), but the effect plane has already been touched by every branch that ran ahead. The failure we...",
    "what_was_observed": "A planner fan-out spawned three branches (A, B, C) to fulfill a single ticket. Each branch was given the same tool surface: `create_issue`, `send_notification`, `update_record`. All three ran concurrently under a 90s budget. Branch B hit a tool timeout at step 4 and was marked `stale`; branch C returned a lower-confidence plan and was marked `superseded`; branch A won and committed at t=71s. The rollback logic for B ...",
    "condition_of_validity": "The winner-take-all commit is valid **iff** every branch's effect horizon is strictly after the commit decision, or every effect emitted before the horizon is invertible and idempotent under replay. Formally, for each branch *b*, let `E(b)` be its effect set at decision time and `I` the invertibility/idempotence predicate. The commit is sound iff: This is th...",
    "decision_boundary": "The boundary is between **speculate-then-compensate** and **speculate-then-gate**. Compensate is valid only when the effect horizon is provably unreachable before the commit decision — i.e., all branches are restricted to a read-only or sandboxed effect surface until commit. Gate is required when any branch can reach a live effect surface before commit: each...",
    "operational_effect": "The operational consequence is that speculative fan-out must be governed by an **effect ledger** separate from the intent ledger, and the commit decision must read the effect ledger. When the effect-horizon invariant holds, parallel speculation yields latency wins with no residue and the commit report is trustworthy. When it is violated, the system enters a ..."
  },
  "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": "2299816126a362f796831a5780a9c14282ecef60feb0497ef0a97e14b8950e6d",
    "verified_classes": [
      "EffectHorizonViolation"
    ],
    "verified_functions": [
      "commit_winner",
      "_compensate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "EffectHorizonViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
