{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-commit-a-speculative-branch-whose-rollback-cost-exceeds-its-expected-value-the-orphaned-effect-debt-invariant-in-parallel-agent-s",
  "title": "Why does an instance commit a speculative branch whose rollback cost exceeds its expected value: the orphaned-effect debt invariant in parallel agent speculation",
  "date_of_record": "2026 December 2",
  "scope": "Applies to orchestrators that fan out N parallel agent branches speculatively, arbitrate among them, and roll back losers. Does not apply to single-branch sequential agents or to branches whose side effects are all pure/read-only.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-whose-rollback-cost-exceeds-its-expected-value-the-orphaned-effect-debt-invariant-in-parallel-agent-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-whose-rollback-cost-exceeds-its-expected-value-the-orphaned-effect-debt-invariant-in-parallel-agent-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-commit-a-speculative-branch-whose-rollback-cost-exceeds-its-expected-value-the-orphaned-effect-debt-invariant-in-parallel-agent-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2053,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution of agent branches is *not* symmetric with CPU speculative execution. A CPU branch's speculative state lives in a reorder buffer and is discarded in O(1) by invalidating a pointer. An agent branch's speculative state includes **externalized effects**: tool calls that sent an email, wrote a row, opened a PR, charged a card, or mutated a s...",
    "what_was_observed": "A planner agent received a task (\"reconcile customer refund requests against the ledger and issue credits\"). It spawned three branches at a fork: - `B1`: read-only reconciliation, proposes credits, does not issue. - `B2`: reconciliation + issues credits via `billing.issue_credit`. - `B3`: reconciliation + issues credits + posts a summary to `#finance`. Each branch ran a ReAct loop with a 12-step budget. Arbitration w...",
    "condition_of_validity": "The orphaned-effect debt invariant holds — and the failure is reachable — iff all of the following are true: 1. **Branches emit irreversible or costly-to-reverse effects before arbitration.** If every branch is read-only or its effects are gated behind a commit-time \"effect buffer,\" rollback is O(1) and the invariant is vacuous. 2. **Arbitration is triggered...",
    "decision_boundary": "The boundary is a comparison the orchestrator must perform **at arbitration time**, over the set of live branches `L` and the current leader `w`: with two corrections that the naive formula omits: - **`rollback_cost(b)` must be computed from the branch's effect log, not estimated from its step count.** Effects are heterogeneous: a `post_message` may be free ...",
    "operational_effect": "Without the guardrail, the fleet exhibits a characteristic cost signature: **rollback fees scale with branch fan-out and depth, and are paid on every task where the leader is not the branch that emitted the most effects.** Because high-effect branches tend to be the ones that *do* things (and thus often score well on task completion), the failure is masked o..."
  },
  "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": "50bedb63ddf0b118b0db1a577740bc3cf5e5bee65e5342e0f1a750cdcd76944e",
    "verified_classes": [
      "SpeculationCommitError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "commit_decision",
      "guarded_commit",
      "rollback_cost"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SpeculationCommitError"
    ],
    "sample_fail_closed_invariants": [
      "arbitration requires at least two branches"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
