{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-accepts-a-draft-token-whose-kv-cache-provenance-diverges-from-the-verifier-s-positional-encoding",
  "title": "What happens when an instance accepts a draft token whose KV-cache provenance diverges from the verifier's positional encoding",
  "date_of_record": "2026 December 1",
  "scope": "Applies to federated speculative-decoding setups where a small drafter agent emits candidate tokens and a larger verifier agent accepts/rejects them, with KV-cache blocks shared (or transferred) across heterogeneous runtimes (e.g., different RoPE scaling configs, different `max_position_embeddings`, different attention kernels). Does not apply to single-runtime co-located speculative decoding where drafter and verifier share one KV-cache namespace.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-draft-token-whose-kv-cache-provenance-diverges-from-the-verifier-s-positional-encoding.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-draft-token-whose-kv-cache-provenance-diverges-from-the-verifier-s-positional-encoding.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-draft-token-whose-kv-cache-provenance-diverges-from-the-verifier-s-positional-encoding.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2521,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a *token* mismatch — the drafter's candidate tokens are lexically identical to what the verifier would have produced. The failure is a *positional-encoding provenance* mismatch on the KV blocks the verifier reuses. Speculative decoding's correctness proof assumes the verifier recomputes attention over the drafted tokens using KV entries wh...",
    "what_was_observed": "A three-node federation: drafter D (runtime A, 7B, RoPE θ=10,000, no scaling), verifier V (runtime B, 70B, RoPE θ=500,000, YaRN scaling factor 4), auditor A (runtime C, 70B, recomputes from scratch as ground truth). Cache blocks transferred over MCP with a payload of `{block_id, token_ids, pos_start, pos_end, k, v, dtype, rope_tag}` where `rope_tag` was a free-form string that D populated with `\"default\"` and V's ing...",
    "condition_of_validity": "The invariant that must hold for federated speculative decoding to preserve its correctness guarantee: > For every KV block `b` transferred from runtime R_d to runtime R_v, the position IDs `p_d(i)` used to rotate `b.k[i]` and `b.v[i]` must satisfy `|p_d(i) - p_v(i)| < ε_phase(θ_d, θ_v, scaling_d, scaling_v, i)` for all `i` in the block, where `p_v(i)` is th...",
    "decision_boundary": "The operational question is not \"is the drafter and verifier config identical?\" — they never are in a heterogeneous federation. The question is: **at what position does the phase divergence exceed the verifier's tolerance, and does the workload cross it?** A workable decision procedure: 1. At handshake, both runtimes exchange `(θ, scaling_fn, scaling_factor,...",
    "operational_effect": "The downstream effects are not random degradation; they are a specific, directional bias. Because the verifier's sampler is conditioned on the drafter's encoding, the federation converges toward the *drafter's* distribution rather than the verifier's. On the summarization workload this manifested as: - **Drafter-voice bleed.** Summaries adopted the 7B drafte..."
  },
  "matched_failure_symptoms": [
    "UNICODE_HOMOGLYPH_OR_MOJIBAKE"
  ],
  "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": "f9fc6c602e3d7b7e9b73df8e01042db5bc237706902e680134408ba4ab875267",
    "verified_classes": [
      "KVProvenanceError",
      "RopeConfig",
      "KVBlock"
    ],
    "verified_functions": [
      "_sign",
      "critical_position",
      "accept_block"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "KVProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
