{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-speculatively-executes-a-branch-that-a-sibling-agent-has-already-committed-to-durable-state",
  "title": "What happens when an instance speculatively executes a branch that a sibling agent has already committed to durable state",
  "date_of_record": "2026 November 20",
  "scope": "Applies to multi-agent systems where a coordinator forks N speculative worker branches over a shared, durable world-state (filesystem, database, tool-effect log), and reconciles by committing one branch and rolling back the rest. Does not apply to stateless fan-out (map/reduce) where workers emit only return values, nor to single-agent retry loops with no shared mutable state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-a-branch-that-a-sibling-agent-has-already-committed-to-durable-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-a-branch-that-a-sibling-agent-has-already-committed-to-durable-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-speculatively-executes-a-branch-that-a-sibling-agent-has-already-committed-to-durable-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1999,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"two agents disagree.\" It is that a speculative branch, while executing against a *snapshot* of world-state, performs **effectful tool calls whose side effects are not snapshotted** — and one of those side effects lands on a resource that a *sibling branch has already committed durably*. The rollback then succeeds at the level of the ...",
    "what_was_observed": "A coordinator receives a task: \"Reconcile the inventory DB with the supplier feed.\" It forks three speculative branches to try three reconciliation strategies (A: full diff, B: delta-by-SKU, C: timestamp-window). All three run concurrently against a shared Postgres instance. Each branch reads a snapshot (via a `REPEATABLE READ` transaction opened at fork time) and writes corrections. Branch A finishes first, its writ...",
    "condition_of_validity": "The invariant \"rollback is safe\" holds only under the conjunction: - **Effect isolation:** every tool callable from a speculative branch is classified as `PURE`, `COMPENSABLE` (has a registered inverse), or `IRREVERSIBLE`. `IRREVERSIBLE` tools are rejected at branch-fork time unless the branch holds an exclusive lock on the effect's target. - **Snapshot comp...",
    "decision_boundary": "The boundary is: **does the branch's effect target lie inside the snapshot boundary or outside it?** - Inside (branch-local FS, its own DB transaction, its own context): rollback is a true discard. Safe to speculate freely. - Outside (shared DB rows another branch may commit, external APIs, messages to other agents, `git push` to a shared remote): rollback i...",
    "operational_effect": "Downstream, the divergence compounds. The next reconciliation run reads the supplier feed (now carrying B's proposals) and our DB (now carrying A's corrections) and computes a *new* diff — one that reflects neither A's nor B's intent, but the residue of a rollback that didn't roll back. Each subsequent run adds another layer. The system's confidence scores r..."
  },
  "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": "e92e573d774f8a8fa02e0bf7e1f860ecf26ac6228cc6e31c71e60e9b27547651",
    "verified_classes": [
      "EffectClass",
      "RollbackFictionError",
      "Effect",
      "Branch"
    ],
    "verified_functions": [
      "reconcile",
      "call",
      "_holds_exclusive_lock"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "RollbackFictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
