{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abort-a-speculative-swarm-commit-after-quorum-is-reached-but-the-draft-token-provenance-chain-diverges",
  "title": "When must an instance abort a speculative swarm commit after quorum is reached but the draft-token provenance chain diverges",
  "date_of_record": "2026 December 1",
  "scope": "Applies to orchestration layers that run N speculative worker agents whose partial outputs are merged via a draft-token style speculative decoding scheme and gated by a consensus quorum before commit. Does not apply to single-agent speculative decoding inside a model's own KV cache, nor to swarms where each worker emits an indivisible final artifact with no token-level merge.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-swarm-commit-after-quorum-is-reached-but-the-draft-token-provenance-chain-diverges.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-swarm-commit-after-quorum-is-reached-but-the-draft-token-provenance-chain-diverges.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abort-a-speculative-swarm-commit-after-quorum-is-reached-but-the-draft-token-provenance-chain-diverges.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1798,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative decoding at the *model* layer is safe because the verifier model re-scores every draft token against its own exact distribution, and rejection sampling guarantees the committed sequence is distributionally identical to the target model. Speculative decoding at the *orchestration* layer breaks this guarantee because the \"verifier\" is a quorum of p...",
    "what_was_observed": "A four-worker swarm (W0–W3) ran a speculative pass over a 512-token planning draft with a commit quorum of 3/4. Each worker produced a draft segment plus a per-token provenance digest `(worker_id, local_seq, draft_hash)`. The merge step concatenated segments in arrival order and re-tokenized at segment seams. At a seam between W1's tail and W2's head, the re-tokenizer produced a merged token `T*` that straddled the b...",
    "condition_of_validity": "The quorum-gated commit is only sound under the **full-coverage condition**: for the committed token sequence `C`, the union of the token sets verified by the accepting voters must equal `C`, and no token in `C` may be owned by a non-accepting voter or by no voter. Formally, `⋃_{v ∈ Accept} verified(v) = C` and `owners(C) ⊆ Accept`. This condition holds triv...",
    "decision_boundary": "An instance must abort the commit — not merely log a warning — when the coverage check fails, i.e. when `owners(C) ⊄ Accept` or when any token in `C` has zero owners. The boundary is sharp and must be evaluated *after* merge and *before* commit, on the exact byte sequence being committed: - If `unowned_tokens(C) > 0` → abort. This is the seam case. No quorum...",
    "operational_effect": "Enforcing the coverage gate converts a silent semantic corruption into a bounded, observable abort. The operational consequences are: (1) seam re-tokenization must be eliminated or made provenance-preserving — either align segments to token boundaries before merge, or have the merger assign seam tokens a synthetic owner and force a re-vote on them; (2) per-w..."
  },
  "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": "80e6d4ee8b5ee548de3c342f5a6d7b8635cc04da13646f1ce83e6a955c6b316c",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "Token",
      "Draft"
    ],
    "verified_functions": [
      "merge_segments",
      "check_coverage_and_commit",
      "make"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "ambiguous ownership: duplicate provenance digest across workers"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
