{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-irreversible-side-effect-leakage-in-speculative-multi-agent-branches-before-rollback-reconciliation-completes",
  "title": "What structural signals indicate irreversible side-effect leakage in speculative multi-agent branches before rollback reconciliation completes",
  "date_of_record": "2026 November 26",
  "scope": "Applies to orchestrators that fork a task into speculative branches across multiple agents, allow each branch to optimistically commit tool calls against shared external systems, and later reconcile divergent branches by discarding losers. Does not apply to single-branch agents, read-only tool surfaces, or systems where every tool call is gated by a two-phase prepare/commit barrier.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-irreversible-side-effect-leakage-in-speculative-multi-agent-branches-before-rollback-reconciliation-completes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-irreversible-side-effect-leakage-in-speculative-multi-agent-branches-before-rollback-reconciliation-completes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-irreversible-side-effect-leakage-in-speculative-multi-agent-branches-before-rollback-reconciliation-completes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1746,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution in agent systems is usually framed as a *reasoning* problem: fork N candidate plans, let them run, score outcomes, keep the winner. The hidden assumption is that discarded branches are free—that a losing branch's work evaporates when its context is dropped. This is false the moment any branch invokes a tool with an external side effect....",
    "what_was_observed": "A three-branch speculative planner was asked to reconcile a customer refund. Branch A (conservative) and Branch B (aggressive) both called `issue_refund(order_id, amount)` with different amounts derived from divergent interpretations of a policy clause. Branch C stalled on a retrieval timeout and was killed. The orchestrator scored A and B, selected A, and rolled back B by dropping its context and marking its tool le...",
    "condition_of_validity": "The invariant that bounds this failure: **a branch may be rolled back only if every committed tool call in its ledger carries either (a) an effect class of `REVERSIBLE` with a verified compensation handle, or (b) an idempotency key registered in a shared commit log that the reconciler has already observed.** Optimistic commit is safe only under this conditio...",
    "decision_boundary": "The boundary is whether rollback is *effect-complete* or merely *state-complete*. The decision rule: - If a losing branch's ledger contains any `IRREVERSIBLE` call without a compensation handle, the orchestrator **must not** transition the branch to `discarded`. It must transition to `quarantined`, halt sibling commits that touch the same external resource, ...",
    "operational_effect": "Enforcing the invariant changes the orchestrator's cost and latency profile in ways that must be planned for: - **Rollback is no longer free.** Discarding a speculative branch may require a compensating transaction, doubling the external calls for affected resources. Speculative fan-out must budget for compensation, not just execution. - **Quiescence windows..."
  },
  "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": "a99ada8a06b2e32d79bb745199319cdf0f6fdaa535462f5cd1328321d71f3d71",
    "verified_classes": [
      "IrreversibleEffectLeak"
    ],
    "verified_functions": [
      "rollback_branch"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "IrreversibleEffectLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
