{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-branch-reconciliation-from-silently-committing-orphaned-side-effects-in-multi-agent-rollback",
  "title": "Which invariants prevent speculative branch reconciliation from silently committing orphaned side effects in multi-agent rollback",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent systems where one orchestrator agent forks speculative execution branches (parallel worker agents) and later reconciles by committing exactly one branch while rolling back the others. Does not apply to single-agent retry loops or to branches that perform no externally observable side effects.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-reconciliation-from-silently-committing-orphaned-side-effects-in-multi-agent-rollback.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-reconciliation-from-silently-committing-orphaned-side-effects-in-multi-agent-rollback.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-branch-reconciliation-from-silently-committing-orphaned-side-effects-in-multi-agent-rollback.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1972,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Rollback of an agent branch is not the inverse of execution. An agent branch is a *sequence of irreversible external commitments* (tool calls, writes, messages, payments) interleaved with *reversible internal state* (context, scratchpad, plan). The distinction that matters is between **logical rollback** — discarding a branch's context and declaring it dead ...",
    "what_was_observed": "A three-way speculative fan-out: a planner agent forks `A`, `B`, `C` to attempt the same task (provision a resource, then record its identifier in a shared registry). Each branch is given a scoped tool grant and a 90-second wall-clock budget. The orchestrator uses a first-valid-wins policy with a reconciliation barrier: it waits for all branches to reach a terminal state, picks the branch whose self-reported verifica...",
    "condition_of_validity": "The invariant that must hold for speculative rollback to be sound: > For every branch `b` and every external side effect `e` emitted by `b`, there must exist, at the moment `b` is marked rolled-back, (i) a durable record attributing `e` to `b`, and (ii) a live compensating capability reachable by the orchestrator that can invert `e`. If either is absent, `b`...",
    "decision_boundary": "The boundary between safe rollback and required quarantine is determined by the effect ledger, not by the branch's terminal status: - **Roll back** only when the branch's effect ledger is complete (every emitted effect has a recorded compensation handle) and every handle's compensating capability is reachable. This is the common case for branches that failed...",
    "operational_effect": "The practical consequence is that speculative multi-agent execution must budget for a **reconciliation ledger** as a first-class component, not an afterthought. Concretely: - Every tool call that emits an external effect writes an intent record (branch id, effect id, compensation handle, idempotency key) to durable storage *before* the call returns. The ledg..."
  },
  "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": "f000b1e8d2f6c174abf983e0fe9621976cd233911ea6eb6a558baf9892118f36",
    "verified_classes": [
      "UnreconcilableRollbackError",
      "EffectRecord",
      "Branch",
      "ReconciliationLedger"
    ],
    "verified_functions": [
      "reconcile",
      "_compensate",
      "_commit",
      "__init__",
      "record",
      "effects_for"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnreconcilableRollbackError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
