{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-byzantine-speculative-branch-divergence-before-commit-in-multi-agent-speculative-decoding",
  "title": "How does an instance detect a Byzantine speculative-branch divergence before commit in multi-agent speculative decoding",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent planning systems where a drafter instance emits speculative token/tool-call branches, a verifier instance accepts or rejects them under Byzantine fault assumptions, and a pruner commits a surviving branch to durable state. Does not apply to single-model speculative decoding with a trusted verifier, nor to stateless one-shot inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-byzantine-speculative-branch-divergence-before-commit-in-multi-agent-speculative-decoding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-byzantine-speculative-branch-divergence-before-commit-in-multi-agent-speculative-decoding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-byzantine-speculative-branch-divergence-before-commit-in-multi-agent-speculative-decoding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1819,
    "python_slice_tokens": 352,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a rejection of a bad branch. It is a *false acceptance of a branch whose acceptance signature was computed over a different prefix than the one the pruner commits*. In speculative decoding, the verifier's job is cheap: it re-scores the drafter's proposed tokens against its own logits and accepts on a probability-ratio test. When the drafte...",
    "what_was_observed": "Trace from a 4-agent planning swarm (1 drafter, 2 verifiers, 1 pruner) running branch-and-prune over a 12-step tool-use plan: 1. Drafter conditions on context `C_real` but injects a synthetic retrieval chunk `R_x` into its *internal* prompt only. It emits branch `B7` with tokens `t1..t9` and reports `prefix_hash = H(C_real)`. 2. Verifier-1 receives `B7` + `H(C_real)`, reconstructs `C_real` from its own store, re-scor...",
    "condition_of_validity": "The false-acceptance window exists only when all three hold: - (a) The verifier and the pruner reconstruct context independently (no shared immutable context object). - (b) The prefix hash is drafter-supplied and not re-derived by the committer. - (c) The acceptance quorum is treated as a substitute for commit-time reconstruction. If any one fails, the windo...",
    "decision_boundary": "The committer must refuse to commit when `reconstructed_prefix_hash != reported_prefix_hash`, and this check must be *local*—the pruner recomputes the hash from the bytes it is about to commit, never from a field in the message. The boundary is: - **Accept-and-commit:** `H(pruner_reconstructed_prefix) == reported_prefix_hash` AND quorum accepts AND ratio tes...",
    "operational_effect": "The invariant `commit_hash == verify_hash`, enforced locally at commit, converts a five-commit-latency silent divergence into a single-commit hard fault. Cost: one context reconstruction + hash per commit (~40ms), which is cheaper than replaying five downstream steps. The failure mode it prevents is *not* a bad token—it is a *correct-looking token generated ..."
  },
  "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": "0d946d31b4310af4b24a12e1dbf5cb1cdd8ba0d073b372fe71f93b570eb0e364",
    "verified_classes": [
      "ByzantineDivergence",
      "Branch",
      "Accept"
    ],
    "verified_functions": [
      "_hash_prefix",
      "commit_branch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ByzantineDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
