{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-speculative-branch-write-skew-divergence-across-rollback-epochs-in-concurrent-agent-swarms",
  "title": "When must an instance abort a speculative branch: write-skew divergence across rollback-epochs in concurrent agent swarms",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent systems that run speculative (optimistic) execution branches on a shared, versioned world-state and reconcile conflicts by rollback-and-replay. Does not apply to single-agent retries, pessimistic lock-step orchestration, or stateless tool-call fan-out where branches never write to shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-write-skew-divergence-across-rollback-epochs-in-concurrent-agent-swarms.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-write-skew-divergence-across-rollback-epochs-in-concurrent-agent-swarms.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-branch-write-skew-divergence-across-rollback-epochs-in-concurrent-agent-swarms.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1659,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not the ordinary lost-update race. It is *write-skew across rollback epochs*: two speculative agents each read a consistent snapshot, each write to disjoint keys, and each validates against its own read-set — so neither detects a conflict — yet the *combination* of their commits violates an invariant that held in every snapshot each one i...",
    "what_was_observed": "A planner spawned three executor instances (E1, E2, E3) over a shared task ledger at snapshot epoch `v=41`. Each received a read-set `R_i` and was told to mutate its assigned keys and propose a commit. - E1 read `{budget: 1000, allocations: {}}`, wrote `allocations.E1 = 400`. Validation: `400 ≤ 1000`. Pass. - E2 read the same snapshot, wrote `allocations.E2 = 400`. Validation: `400 ≤ 1000`. Pass. - E3 read the same s...",
    "condition_of_validity": "The invariant that bounds this failure: > A speculative branch may commit iff (a) its write-set does not overlap any committed write-set since its snapshot epoch, AND (b) the merged post-state satisfies every predicate in the *union* of the branch read-sets, AND (c) every external tool effect emitted by the branch is staged behind the same epoch fence as the...",
    "decision_boundary": "The instance must abort its own branch (not wait for the auditor) when, at commit time, it observes that the set of epochs committed since its snapshot is non-empty *and* any committed branch's read-set intersects its own read-set on a predicate key — even if write-sets are disjoint. The abort is mandatory because the instance cannot distinguish \"my predicat...",
    "operational_effect": "Systems that enforce the union-read-set re-validation see speculative throughput drop modestly (branches that would have merged are serialized on predicate conflict) but eliminate the class of post-commit invariant violations entirely, and — critically — keep the rollback boundary aligned with the tool-effect boundary. Systems that check only write-set overl..."
  },
  "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": "8246bf0de184dbb5a07ef85c5aed5af881ed649779907a5706aad8e69a680a32",
    "verified_classes": [
      "WriteSkewDivergence",
      "Branch",
      "CommittedEpoch"
    ],
    "verified_functions": [
      "validate_commit"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "WriteSkewDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
