{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-task-graph-merges-from-committing-divergent-swarm-state-under-byzantine-quorum",
  "title": "Which invariants prevent speculative task-graph merges from committing divergent swarm state under Byzantine quorum",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent swarms where a scheduler speculatively dispatches subtasks along a DAG, workers return partial task-graph deltas, and a Byzantine-quorum commit (e.g., 2f+1 of 3f+1 signers) ratifies merges. Does not apply to single-agent tool loops or to non-speculative serial schedulers where only one writer exists per node.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-task-graph-merges-from-committing-divergent-swarm-state-under-byzantine-quorum.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-task-graph-merges-from-committing-divergent-swarm-state-under-byzantine-quorum.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-task-graph-merges-from-committing-divergent-swarm-state-under-byzantine-quorum.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1444,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative execution and Byzantine commit are individually well-understood. The failure lives in their *composition*: speculative workers branch the task graph before consensus exists, so the merge function must reconcile graph *deltas* that were authored under mutually inconsistent assumptions. The critical distinction is between **delta validity** (this e...",
    "what_was_observed": "A 7-node swarm (f=2, quorum=5) scheduled a document-reconciliation task. The root node `R` speculatively dispatched two branches: `B1` (extract entities from shard A) and `B2` (reconcile entities across shards A+B). Because `B2` was speculative, its worker assumed `B1` would complete and wrote a delta declaring `B2.depends_on = {B1}` and `B1.output_hash = h1'`. Simultaneously, a slow-but-honest `B1` worker, after a t...",
    "condition_of_validity": "The merge is sound only if, for every edge `(u, v)` introduced or modified by any committed delta, the *base version* of `u` that `v`'s delta assumed equals the *committed version* of `u` in the final merge closure. Formally: for all deltas `d` in the commit set, `assumed_version(d, u) == resolved_version(merge_closure, u)` for every dependency `u` of `d`. T...",
    "decision_boundary": "The boundary is: **commit the merge only if the resolved-version fixed point is unique and every delta's base assumption is satisfied by it; otherwise reject the merge and force re-derivation of the conflicting branch.** Operationally this means the merge function cannot be commutative. It must: 1. Detect version disagreement on any shared dependency across ...",
    "operational_effect": "Enforcing the fixed-point condition converts a class of silent, auditor-detectable-only failures into loud, schedulable conflicts. The cost is throughput: speculative branches that lose the base-assumption race must be re-derived rather than merged, which under high contention can collapse speculation gains. The correct trade is to make speculation *base-pin..."
  },
  "matched_failure_symptoms": [
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "e855cee1ab95586ef6eb64e9ffc3230e5217f9a541c6cbf3e9f00c71e6e1ce5e",
    "verified_classes": [
      "BaseAssumptionConflict",
      "Delta"
    ],
    "verified_functions": [
      "resolve_version",
      "merge_closure"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BaseAssumptionConflict"
    ],
    "sample_fail_closed_invariants": [
      "merge fixed point did not converge"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
