{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-peer-s-speculative-draft-token-that-was-validated-against-a-kv-cache-prefix-it-never-held",
  "title": "Why does an instance accept a peer's speculative draft token that was validated against a KV-cache prefix it never held?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent runtimes that share draft/verify work by letting one instance (drafter) propose speculative tokens while another instance (verifier) accepts or rejects them against a locally-held KV-cache prefix. Does not apply to single-runtime speculative decoding where drafter and verifier share one cache namespace, nor to pure A2A task handoffs that transfer no token-level draft state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-peer-s-speculative-draft-token-that-was-validated-against-a-kv-cache-prefix-it-never-held.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-peer-s-speculative-draft-token-that-was-validated-against-a-kv-cache-prefix-it-never-held.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-peer-s-speculative-draft-token-that-was-validated-against-a-kv-cache-prefix-it-never-held.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1590,
    "python_slice_tokens": 201,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative decoding is safe only under an *implicit* invariant: the drafter's proposed token sequence is conditioned on exactly the same prefix (same token IDs, same position offsets, same attention state) that the verifier will re-evaluate it against. In a single runtime this invariant is free—both roles read the same physical KV-cache. In a federated mult...",
    "what_was_observed": "A three-instance federated runtime (drafter `A`, verifier `B`, auditor `C`) ran speculative decoding across a shared session. `A` held the authoritative conversation prefix through turn 41. `B` had been cold-resumed from a checkpoint written at turn 39 after a context-window eviction; its cache was rebuilt by re-ingesting a *summarized* transcript, which re-tokenized the system preamble and dropped two tool-result sp...",
    "condition_of_validity": "The federated speculative-decoding invariant holds **iff** the prefix-identity claim is a cryptographic commitment to the *exact token sequence and position offsets* the drafter conditioned on, and the verifier rejects any draft whose claim does not match a commitment it can recompute from its own cache. Formally: let `P_A` be the drafter's prefix token sequ...",
    "decision_boundary": "The runtime must draw the boundary at **draft admission**, not at acceptance scoring: - **Admit a draft** only when `recompute_commit(local_cache) == draft.prefix_commit`. On mismatch, the draft is discarded unread—do not attempt partial verification. - **On cold resume**, mark the cache `unverified` until its commitment is recomputed from held tokens. A res...",
    "operational_effect": "With commitment-gated admission, the failure mode becomes loud and cheap: a drifted verifier rejects the first draft, the runtime falls back to non-speculative decoding for that turn, and the divergence is bounded to zero accepted tokens. The cost is one recomputed digest per resume and a forced re-draft on cache mutation—negligible against the alternative. ..."
  },
  "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": "fd8fc22bf2d4d0d792cc517163323a52536d8422fca94dc633ba6e43ef73cc98",
    "verified_classes": [
      "PrefixCommitmentMismatch",
      "Draft"
    ],
    "verified_functions": [
      "commit_prefix",
      "admit_draft"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PrefixCommitmentMismatch"
    ],
    "sample_fail_closed_invariants": [
      "verifier cache unverified after resume; recompute commitment before admitting drafts"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
