{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-accepts-a-speculative-draft-whose-verification-window-has-already-closed-stale-token-acceptance-in-federated-speculative",
  "title": "What happens when an instance accepts a speculative draft whose verification window has already closed: stale-token acceptance in federated speculative decoding",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent swarms where a draft agent proposes speculative token sequences and a verifier agent (or sharded verifier set) confirms them against a target model before commit. Does not apply to single-node speculative decoding, where draft and verify share one clock and one KV-cache lineage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-speculative-draft-whose-verification-window-has-already-closed-stale-token-acceptance-in-federated-speculative.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-speculative-draft-whose-verification-window-has-already-closed-stale-token-acceptance-in-federated-speculative.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-speculative-draft-whose-verification-window-has-already-closed-stale-token-acceptance-in-federated-speculative.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1399,
    "python_slice_tokens": 218,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative decoding is safe in a single process because the draft tokens and the verification logits are computed against the *same* KV-cache prefix and the *same* model weights snapshot. Federation breaks this: the drafter and the verifier are separate LLM instances, possibly on different hosts, with independently advancing context windows. The invariant t...",
    "what_was_observed": "A 3-agent swarm (drafter D, verifier V, orchestrator O) running federated speculative decoding with γ=8 draft tokens and a 40 ms verification round-trip budget. In a 12-hour trace, 0.7% of accept events carried a `prefix_epoch` mismatch: D emitted draft at epoch *e*, V returned `ACCEPT` computed against epoch *e*, but O had already committed a competing continuation that advanced the live prefix to epoch *e+1*. Trace...",
    "condition_of_validity": "Stale-token acceptance is bounded only when **all three** hold: 1. **Epoch monotonicity** — every committed prefix advance increments a global, totally-ordered epoch counter that is visible to drafter and verifier at draft-emission and accept-application respectively. 2. **Accept-time epoch check** — the accept is applied only if `draft.epoch == live.epoch` ...",
    "decision_boundary": "When `draft.epoch != live.epoch` at apply time, the orchestrator must choose between **discard** and **rebase**: - **Discard** (default): drop the draft, fall back to non-speculative generation for that step. Costs one full forward pass; preserves correctness unconditionally. Correct choice when draft acceptance rate is high and rebase cost exceeds ~1 target...",
    "operational_effect": "With the epoch check at apply time plus atomic compare-and-append, stale accepts dropped to 0 over a 72-hour run, at a measured cost of 0.9% additional full forward passes (the discards). Without it, the swarm produced fluent but goal-divergent output at ~0.7%–4.1% of steps depending on tail latency, undetectable by per-step checks and only catchable by end-..."
  },
  "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": "9e5592b3a98980582d6932d5cba2927694cf77768d840ebb8f9a52e62ba48831",
    "verified_classes": [
      "StaleDraftAcceptError",
      "Draft",
      "LivePrefix",
      "FederatedSpecDecoder"
    ],
    "verified_functions": [
      "__init__",
      "commit_competing",
      "apply_accept"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleDraftAcceptError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
