Parent: https://github.com/aien-dev/aien-sovereign-core-mv/issues/679
Implementation contract: first-party implementation is .om, replacing and deleting superseded active code after validation; no permanent Rust/C/.osc compatibility implementation. Reuse current migration owners and existing branches; inspect current source/consumer pins before editing. No third-party inference engine dependency. Record blockers honestly; hardware results require a real coordinated Spark run, never simulated receipts.
Gap
The inspected qwen38_engine.rs at core commit 230574e0f731ca441f5d64b03a7946710d788f08 samples then calls session.advance for one token; separate qwen38_spec experiments do not prove endpoint integration. Reconcile current successors of cascade/mtp-chain and cascade/tree-verify-wire with #642.
Acceptance
- Load and qualify the pinned checkpoint MTP head; implement drafting and batched full-model verification in .om on the owned runtime.
- Start with k=0,1,2,4; tune from accepted output tokens / total drafting+verification+commit+host time. Support bounded adaptation and an ordinary-decoding fallback when measured speculation loses.
- Preserve full KV, GDN, convolution, position and drafter state for the accepted materialized prefix. Explicitly represent an emitted but not yet consumed correction/bonus token.
- Validate greedy output against the same-precision non-speculative reference, including ties and numerical drift. For stochastic sampling implement the correct acceptance/correction distribution and identical per-path penalties; if a sampler is unsupported, explicitly use ordinary decoding rather than silently changing semantics.
- Exercise rejection at every draft position, all accepted, no accepted, EOS/stop/cancel, max context, second-turn restore and independent sessions; injected state/position mistakes must fail.
- Report draft acceptance, accepted tokens/round, draft/verify/commit times and full wall latency. Do not count rejected draft tokens as output.
- Prove serving endpoint uses the optimized path with effective settings and artifact hashes; run baseline FP8, FP8+MTP, W4, W4+MTP as distinct arms.
- Remove superseded active first-party implementation after .om replacement passes; document measured fallback and quality behavior.
Research: https://arxiv.org/abs/2609.23900 reports 26.12 tok/s tuned MTP versus 28.13 tree verification in one replay corpus, but no established live-agent completion speedup. Larger draft budgets are not automatically faster.