REQ-INFER-015: MTP speculative decode fails loud and never silently falls back

← Requirements

What it requires

  1. Given an MTP request outside the envelope or with a config fault, Then a typed loud error is returned and no plain-decode fallback occurs.
  2. Given every envelope condition, Then mtp_unsupported_reason returns "" (the envelope is fully open).
  3. Given a 1–2 layer draft on the classical path, Then INCOMPATIBLE_CONFIG names the layer count and the mtp flag.
  4. Given a per-tier speculative_mtp override, Then it wins over the global flag.
tier
NOT_RUN

Where it lives

  • src/inference9

See it on the map

How it is met

implemented byresults (165 tests)effective_n_draftgenerate_mtplooks_like_mtp_headmtp_guardmtp_head_classical_path_errormtp_head_guard_firesmtp_unsupported_reasonresolve_mtp_effectivetry_mtp_route165 absent165 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (165)

Reached through calls

165 tests: 165 absent

testresultlinked byimplementers exercisedcalls away
gh#106 MTP kernel: engaged + lossless-coherentabsentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#108 MTP + flash + q4 KV succeeds on E4B QAT Q4 absentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#108 MTP + flash attention succeeds (v2.9.3, upstream #25148)absentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#108 MTP greedy holds across a multi-turn contextabsentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#108 MTP guards: out-of-envelope requests fail loudabsentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#108 MTP is lossless at temperature>0 (empirical distribution check)absentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#144: MTP prefill must not re-decode an unchanged prefixabsentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason1
gh#107: looks_like_mtp_head detects small-layer GGUFsabsentinferred1 of 9: looks_like_mtp_head1
gh#107: looks_like_mtp_head message mentions mtp flagabsentinferred1 of 9: mtp_head_classical_path_error1
gh#108 MTP envelope: all conditions are now open (full envelope)absentinferred1 of 9: mtp_unsupported_reason1
gh#108 MTP envelope: no condition produces an error (envelope fully open)absentinferred1 of 9: mtp_unsupported_reason1
gh#108 MTP envelope: temperature is not guarded at any valueabsentinferred1 of 9: mtp_unsupported_reason1
gh#108: grammar is not guarded (propagated via to_common_sampling)absentinferred1 of 9: mtp_unsupported_reason1
gh#108: streaming is not guarded (StreamThinkFilter handles live strip)absentinferred1 of 9: mtp_unsupported_reason1
gh#106 MTP functions on the E4B QAT trunkabsentinferred4 of 9: effective_n_draft, generate_mtp, mtp_guard, mtp_unsupported_reason2
gh#108 MTP envelope: the safe case yields no errorabsentinferred1 of 9: mtp_unsupported_reason2
gh#108 MTP envelope: tools are NOT guarded (lossless-correct)absentinferred1 of 9: mtp_unsupported_reason2
ModelOrchestrator real-model generate (one load, CPU)absentinferred9 of 93
Orchestrator generate() returns typed error when tier missingabsentinferred9 of 93
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred9 of 93
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred9 of 93
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred9 of 93
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred9 of 93
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred9 of 93
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred9 of 93
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred9 of 93
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred9 of 93
gh#154 a tier grammar that is not registered refuses the runabsentinferred9 of 93
Consecutive same-tier generations do not leak content across absentinferred9 of 95
Conversation with model output survives save and loadabsentinferred9 of 95
Engine produces coherent text from a simple promptabsentinferred9 of 95
GBNF grammar constrains output to valid JSONabsentinferred9 of 95
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred9 of 95
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred9 of 95
Generation succeeds with non-default GPU profileabsentinferred9 of 95
Lead delegates to child and receives resultabsentinferred9 of 95
LoRA adapter load failure is handled gracefullyabsentinferred9 of 95
Model output is correctly parsed into tool callsabsentinferred9 of 95
Multi-turn context is retained across generationsabsentinferred9 of 95
Nemotron 3 family GGUF loads and generates first tokenabsentinferred9 of 95
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred9 of 95
Recall-style prompts do not surface prior-generation contentabsentinferred9 of 95
Text-only model handles multimodal input gracefullyabsentinferred9 of 95
gh#103 contrast: batch mode may generate past the tool callabsentinferred9 of 95
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred9 of 95
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred9 of 95
gh#106 MTP routes through orchestrator->generate()absentinferred9 of 95
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred9 of 95
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred9 of 95
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred9 of 95
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred9 of 95
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred9 of 95
gh#122: fenced-json block in model output yields a tool callabsentinferred9 of 95
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred9 of 95
gh#127: fenced args-only object matched by registered tool schemaabsentinferred9 of 95
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred9 of 95
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred9 of 95
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred9 of 95
gh#154 registering the tier's grammar after configure opens the absentinferred9 of 95
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred9 of 95
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred9 of 95
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred9 of 95
interface_factory: wiring + iface_* surface sweepabsentinferred9 of 95
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred9 of 95
Compaction fires when context exceeds thresholdabsentinferred9 of 96
Constitutional validator detects violations and revisesabsentinferred9 of 96
Delegation wiring fires on_delegation_start callbackabsentinferred9 of 96
Dynamic identity creation and generation through engine loopabsentinferred9 of 96
Engine state transitions include PLANNING and EXECUTINGabsentinferred9 of 96
Hooks fire in correct order during a generation cycleabsentinferred9 of 96
MCP authorization denial propagates through engineabsentinferred9 of 96
Multi-turn engine calls retain contextabsentinferred9 of 96
Routing fires on_tier_selected callbackabsentinferred9 of 96
Single-turn engine loop produces coherent responseabsentinferred9 of 96
Tool call cycle: generate, parse, execute, regenerateabsentinferred9 of 96
True end-to-end: real prompts, real engine, real modelabsentinferred9 of 96
gh#105: constitutional validator's toolless render must NOT clobber absentinferred9 of 96
gh#160: an isolated delegation never writes the project, and absentinferred9 of 96
gh#162: a delegate seeded with context answers from the named absentinferred9 of 96
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred9 of 96
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred9 of 96
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred9 of 96
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred9 of 97
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred9 of 97
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred9 of 97
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred9 of 97
gh#164: release then reload decodes correctly on a hybrid archabsentinferred9 of 97
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred9 of 97
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred9 of 97
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred9 of 97
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred9 of 97
Configure with null JSON returns errorabsentinferred9 of 99
Double-configure on one handle is refusedabsentinferred9 of 99
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred9 of 99
Three handles can coexistabsentinferred9 of 99
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred9 of 99
Two handles configure independentlyabsentinferred9 of 99
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred9 of 99
entropic_configure rejects NULL config_jsonabsentinferred9 of 99
entropic_configure rejects NULL handleabsentinferred9 of 99
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred9 of 99
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred9 of 99
entropic_configure_dir rejects NULL handleabsentinferred9 of 99
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred9 of 99
entropic_configure_from_file rejects NULL handleabsentinferred9 of 99
entropic_configure_from_file rejects NULL pathabsentinferred9 of 99
entropic_configure_from_file rejects missing fileabsentinferred9 of 99
entropic_last_error reflects most-recent operation failureabsentinferred9 of 99
entropic_last_error returns per-handle state (v2.2.6)absentinferred9 of 99
entropic_register_mcp_server on a configured handle absentinferred9 of 99
entropic_run_messages with console logging disabled still absentinferred9 of 99
entropic_seconds_since_last_activity returns 0 before any run absentinferred9 of 99
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred9 of 99
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred9 of 99
gh#144: concurrent bridge clients queue instead of racingabsentinferred9 of 99
gh#154 a tier grammar stem that cannot resolve YET still absentinferred9 of 99
gh#154 a tier grammar stem that resolves still configuresabsentinferred9 of 99
gh#154 a tier with no grammar is unaffectedabsentinferred9 of 99
gh#154 entropic_metrics_json carries a generations arrayabsentinferred9 of 99
gh#156 a frontmatter-less app_context fails configure absentinferred9 of 99
gh#156 a frontmatter-less constitution fails configure tooabsentinferred9 of 99
gh#156 a missing app_context path fails configureabsentinferred9 of 99
gh#156 a well-formed app_context file still configuresabsentinferred9 of 99
gh#156 app_context false still configuresabsentinferred9 of 99
gh#156 inline app_context content still configuresabsentinferred9 of 99
gh#158 entropic_interrupt_session targets exactly one runabsentinferred9 of 99
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred9 of 99
gh#163 entropic_configure_dir carries app_contextabsentinferred9 of 99
gh#163 entropic_configure_from_file carries app_contextabsentinferred9 of 99
gh#163 the object and false spellings survive configure_dir tooabsentinferred9 of 99
gh#164 entropic_release_model names an unknown tierabsentinferred9 of 99
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred9 of 99
gh#165 entropic_session_context_set guards its preconditionsabsentinferred9 of 99
gh#165 entropic_session_context_set refuses the running sessionabsentinferred9 of 99
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred9 of 99
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred9 of 99
gh#203: followup returns delegation_id and summary from real storageabsentinferred9 of 99
gh#204: an unservable http_port fails configure loudlyabsentinferred9 of 99
gh#95: identity grammar: field constrains that tier's outputabsentinferred9 of 99
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred9 of 99
gh#158: interrupting one session leaves the other runningabsentinferred9 of 910
gh#158: metrics and context reads are safe during live runsabsentinferred9 of 910
gh#158: two concurrent sessions do not bleed into each otherabsentinferred9 of 910
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred9 of 910
gh#165 + gh#164: release the weights, keep the conversationabsentinferred9 of 910
gh#165: a dropped session restored from JSON keeps answeringabsentinferred9 of 910
gh#166: two workspaces on one handle do not read each other's absentinferred9 of 910
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred9 of 910
gh#179: each workspace's sessions answer from its own app_context, absentinferred9 of 910
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred9 of 910
gh#194: a plain generation publishes the prefill it performedabsentinferred9 of 910
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred9 of 910
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred9 of 910
gh#214: a prompt that does not fit fails the turn, typedabsentinferred9 of 910
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred9 of 910
gh#217: release is refused while another session is decodingabsentinferred9 of 910
gh#93: autoparser family parses a multi-parameter tool callabsentinferred9 of 910
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred9 of 910
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred9 of 910
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred9 of 910
outside-root optional: a real model's reads outside its root absentinferred9 of 910
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred9 of 910
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred9 of 910
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred9 of 910
v2.14.5: a failed turn is an error carrying only its own textabsentinferred9 of 910