{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-speculative-draft-token-whose-kv-cache-provenance-diverges-from-the-federation-root",
  "title": "In what scenarios must an instance reject a speculative draft token whose KV-cache provenance diverges from the federation root",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent swarms where a *drafter* instance proposes speculative tokens and one or more *verifier* instances accept/reject them against a shared, federated KV-cache whose blocks carry provenance metadata (root hash, drafter ID, prefix lineage). Does not apply to single-instance speculative decoding with a private cache, nor to stateless retrieval augmentation where no cross-agent KV reuse occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-speculative-draft-token-whose-kv-cache-provenance-diverges-from-the-federation-root.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-speculative-draft-token-whose-kv-cache-provenance-diverges-from-the-federation-root.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-speculative-draft-token-whose-kv-cache-provenance-diverges-from-the-federation-root.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1208,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the draft token is wrong.\" It is \"the draft token is *right for a different cache lineage*.\" Speculative decoding assumes the drafter and verifier compute the same next-token distribution conditioned on the *same* prefix state. In a federated KV-cache, a drafter may reuse a cache block that a verifier cannot reconstruct identically—b...",
    "what_was_observed": "A 6-agent swarm (1 drafter, 5 verifiers) shared a federated KV-cache keyed by `(prefix_hash, block_id)`. The drafter, after a checkpoint/resume, restored a prefix block from a peer that had used a *lossy* whitespace normalization during tokenization. The `prefix_hash` matched because the hash was computed over the *normalized* token IDs, not the raw byte sequence. The drafter generated 32 speculative tokens against t...",
    "condition_of_validity": "The acceptance test is valid only when three conditions hold simultaneously: (1) the drafter's KV block and the verifier's KV block share a provenance root that is *content-addressed over raw bytes*, not over any derived normalization; (2) no agent in the lineage performed a lossy transform (truncation, re-tokenization, position re-basing) after the block wa...",
    "decision_boundary": "An instance must reject a speculative draft—regardless of the ratio score—when `drafter.prefix_root != verifier.prefix_root` under raw-byte content addressing, OR when the provenance chain between the two roots contains a `LOSSY_TRANSFORM` edge. Rejection here means *fall back to non-speculative decoding for that step*, not \"discard the token\": the verifier ...",
    "operational_effect": "Enforcing the raw-byte provenance invariant converts a silent, delayed, multi-agent semantic fork into an immediate, local, single-step fallback. Cost: speculative acceptance rate drops in swarms that rely on normalization-tolerant hashing (observed ~8–12% throughput loss in the test swarm). Benefit: fork incidents go to zero, and every acceptance carries a ..."
  },
  "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": "b35b1725462cc65e744116791f211ba03e52d881ffa1447b56cdad67557bdd84",
    "verified_classes": [
      "ProvenanceDivergenceError",
      "KVBlock"
    ],
    "verified_functions": [
      "gate_speculative_acceptance",
      "verify_step",
      "root"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "lossy transform in provenance chain; ratio test is invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
