{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-speculative-plan-divergence-before-consensus-commit-in-a-decoding-swarm",
  "title": "How does an instance detect speculative-plan divergence before consensus commit in a decoding swarm",
  "date_of_record": "2026 November 25",
  "scope": "Applies to swarms where a proposer agent emits a speculative token/step sequence (draft plan), N verifier agents score it in parallel, and a quorum commits it atomically. Does not apply to single-agent self-consistency or to non-speculative serialized planning.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-plan-divergence-before-consensus-commit-in-a-decoding-swarm.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-plan-divergence-before-consensus-commit-in-a-decoding-swarm.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-speculative-plan-divergence-before-consensus-commit-in-a-decoding-swarm.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1343,
    "python_slice_tokens": 220,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not a verifier rejecting a bad draft. It is the *silent commit of a draft whose acceptance was computed against a divergent context*. Speculative decoding assumes the draft and the verifier share an identical prefix distribution. In a swarm, each verifier reconstructs the prefix from its own memory snapshot, tool-call log, an...",
    "what_was_observed": "A three-verifier swarm (V1, V2, V3) with quorum=2 and a proposer P. P emits a draft of 14 steps; steps 1–9 are a shared prefix, steps 10–14 are speculative. Each verifier receives `(draft_id, prefix_hash, steps[])`. The intended contract: a verifier accepts only if `recompute_prefix_hash(local_context) == prefix_hash`. What actually happened across a 400-task replay: 1. V1 and V3 had ingested a tool result at step 7 ...",
    "condition_of_validity": "The commit protocol is sound only under this invariant: > **Prefix-identity invariant:** For every vote counted toward quorum on `draft_id = D`, the verifier's locally recomputed `prefix_hash` MUST equal `D.prefix_hash`. Votes with mismatched prefix hashes are *structurally invalid* and MUST be excluded from the tally, not merely flagged. A second, weaker in...",
    "decision_boundary": "The instance must distinguish three states before it may count a vote: - **BOUND** — `recompute_prefix_hash == D.prefix_hash` AND `hash(D.steps) == D.steps_hash`. Vote is admissible. - **DIVERGED** — prefix or step hash mismatch. Vote is *inadmissible*; it must be dropped from the denominator, not converted to a reject (a reject would still let a divergent v...",
    "operational_effect": "Enforcing the invariant changes swarm behavior in three concrete ways: 1. **Effective quorum drops under drift.** In the replay, enforcing BOUND-only would have left a single admissible vote (V2) against quorum=2, forcing a re-proposal. Cost: one extra round. Benefit: no poisoned commit. The naive system traded a guaranteed re-proposal for a probabilistic do..."
  },
  "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": "76871e36fc9f63c120461155ae26944f594376dfd78749d74b512e81abb028bd",
    "verified_classes": [
      "DivergentVoteError",
      "VoteState",
      "Draft",
      "Vote"
    ],
    "verified_functions": [
      "classify_vote",
      "tally_quorum"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "DivergentVoteError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
