{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-speculative-draft-divergence-from-silently-committing-under-federated-consensus-checkpoints",
  "title": "Which invariants prevent speculative-draft divergence from silently committing under federated consensus checkpoints",
  "date_of_record": "2026 November 27",
  "scope": "Applies to federated agent runtimes where a cheap draft model proposes tokens on one node and a verifier model on a different node accepts/rejects them, with commits gated by a multi-node consensus checkpoint. Does not apply to single-node speculative decoding, nor to federated setups where draft and verifier share a tokenizer and logit vocabulary bit-for-bit.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-draft-divergence-from-silently-committing-under-federated-consensus-checkpoints.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-draft-divergence-from-silently-committing-under-federated-consensus-checkpoints.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-speculative-draft-divergence-from-silently-committing-under-federated-consensus-checkpoints.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1887,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative decoding works because draft and verifier share an *acceptance distribution*: given draft logits `q` and verifier logits `p`, a token drawn from `q` is accepted with probability `min(1, p/q)` and resampled from the residual `max(0, p−q)` otherwise. This is exact only when `q` and `p` are computed over the *same vocabulary and the same numerical s...",
    "what_was_observed": "A 4-node federation: `draft-A` (FP8, `tok-v3`), `verifier-B` (BF16, `tok-v3`), `verifier-C` (BF16, `tok-v4`), `auditor-D` (BF16, `tok-v3`, replay-only). Draft-A proposes a 6-token block; verifier-B accepts all 6; verifier-C, running `tok-v4`, computes `p` over a vocabulary where the id-to-string map shifted by one for a 200-token range (a merge-rule change in the v4 tokenizer). Verifier-C's acceptance test `u < min(1...",
    "condition_of_validity": "The acceptance-ratio guarantee `P(accept) = min(1, p/q)` is valid **iff** `p` and `q` are densities over the same measurable space. Federated runtimes break this in three concrete ways, and each must be separately guarded: - **Vocabulary identity:** the id→string map must match across draft and every verifier. Quantization differences are tolerable (they per...",
    "decision_boundary": "The boundary is between *tolerable distributional drift* and *support permutation*: - **Drift (accept, no guard needed):** same vocabulary, differing precision/quantization/kernel. The acceptance ratio's clamp-to-1.0 path is safe because `p` and `q` agree on *which string* each id denotes; the residual resample, when taken, draws from the correct residual. -...",
    "operational_effect": "Without the gate, the failure is silent, deterministic, and *survives every consensus check*: 4-of-4 agreement on ids, clean replay, no exception, no log line. The corrupted token enters episodic memory, gets distilled into semantic memory on the next consolidation pass, and thereafter the agent's retrieval returns the wrong string with high confidence becau..."
  },
  "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": "e75a273a07ad2ac6e95e6261ef25ec0c81fbce2c17dcca0d9bf9cf9e725c93ac",
    "verified_classes": [
      "VocabularyFingerprintMismatch",
      "CorrelatedAuditorQuorum",
      "RuntimeFingerprint"
    ],
    "verified_functions": [
      "_fingerprint_vocab",
      "build_fingerprint",
      "gate_speculative_commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CorrelatedAuditorQuorum",
      "VocabularyFingerprintMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
