REQ-INFER-016: Speculative decoding is gated on compatibility and must not change the output

← Requirements

What it requires

  1. Given a matching pair, Then check_compat reports compatible; given null handles, a recurrent or hybrid target, or any vocab/BOS/EOS/size/text mismatch, Then it reports incompatible with the specific diagnostic.
  2. Given a compatible pair on a real model, Then speculative output is bit- identical to plain decode on rejection cases.
  3. Given MTP at temperature>0, Then the empirical output distribution matches plain decode.
tier
NOT_RUN

Where it lives

  • src/inference3
  • src/facade1

See it on the map

How it is met

implemented byresults (166 tests)build_compat_diagnosticcheck_arch_gatecheck_compatentropic_speculative_compat166 absent166 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (166)

Reached through calls

166 tests: 166 absent

testresultlinked byimplementers exercisedcalls away
entropic_speculative_compat on unconfigured handle returns INVALID_STATEabsentinferred4 of 4: build_compat_diagnostic, check_arch_gate, check_compat, entropic_speculative_compat1
entropic_speculative_compat rejects NULL compatible out-paramabsentinferred4 of 4: build_compat_diagnostic, check_arch_gate, check_compat, entropic_speculative_compat1
entropic_speculative_compat rejects NULL handleabsentinferred4 of 4: build_compat_diagnostic, check_arch_gate, check_compat, entropic_speculative_compat1
speculative compat: BOS mismatch rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: BOS-add behavior mismatch rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: EOS mismatch rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: hybrid target is rejected absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: matching pair returns compatibleabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: null handles rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: recurrent target is rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: token text in skipped range ignoredabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: token text mismatch rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: vocab size delta over tolerance rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: vocab size delta within toleranceabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
speculative compat: vocab type mismatch rejectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat1
entropic_speculative_compat on configured handle returns OK or INVALID_STATEabsentinferred1 of 4: entropic_speculative_compat1
Orchestrator empty-tiers + handoff + observer + accessor coverageabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat2
Orchestrator residency observer set/clear + speculative settersabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat2
ModelOrchestrator real-model generate (one load, CPU)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
Orchestrator generate() returns typed error when tier missingabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
gh#154 a tier grammar that is not registered refuses the runabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat4
Consecutive same-tier generations do not leak content across absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Conversation with model output survives save and loadabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Engine produces coherent text from a simple promptabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
GBNF grammar constrains output to valid JSONabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Generation succeeds with non-default GPU profileabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Lead delegates to child and receives resultabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
LoRA adapter load failure is handled gracefullyabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Model output is correctly parsed into tool callsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Multi-turn context is retained across generationsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Nemotron 3 family GGUF loads and generates first tokenabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Recall-style prompts do not surface prior-generation contentabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Text-only model handles multimodal input gracefullyabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#103 contrast: batch mode may generate past the tool callabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#106 MTP routes through orchestrator->generate()absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#122: fenced-json block in model output yields a tool callabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#127: fenced args-only object matched by registered tool schemaabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#154 registering the tier's grammar after configure opens the absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
interface_factory: wiring + iface_* surface sweepabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat6
Compaction fires when context exceeds thresholdabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Constitutional validator detects violations and revisesabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Delegation wiring fires on_delegation_start callbackabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Dynamic identity creation and generation through engine loopabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Engine state transitions include PLANNING and EXECUTINGabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Hooks fire in correct order during a generation cycleabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
MCP authorization denial propagates through engineabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Multi-turn engine calls retain contextabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Routing fires on_tier_selected callbackabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Single-turn engine loop produces coherent responseabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
Tool call cycle: generate, parse, execute, regenerateabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
True end-to-end: real prompts, real engine, real modelabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
gh#105: constitutional validator's toolless render must NOT clobber absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
gh#160: an isolated delegation never writes the project, and absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
gh#162: a delegate seeded with context answers from the named absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat7
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#164: release then reload decodes correctly on a hybrid archabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat8
Configure with null JSON returns errorabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
Double-configure on one handle is refusedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
Three handles can coexistabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
Two handles configure independentlyabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure rejects NULL config_jsonabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure rejects NULL handleabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_dir rejects NULL handleabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_from_file rejects NULL handleabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_from_file rejects NULL pathabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_configure_from_file rejects missing fileabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_last_error reflects most-recent operation failureabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_last_error returns per-handle state (v2.2.6)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_register_mcp_server on a configured handle absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_run_messages with console logging disabled still absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
entropic_seconds_since_last_activity returns 0 before any run absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#144: concurrent bridge clients queue instead of racingabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#154 a tier grammar stem that cannot resolve YET still absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#154 a tier grammar stem that resolves still configuresabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#154 a tier with no grammar is unaffectedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#154 entropic_metrics_json carries a generations arrayabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#156 a frontmatter-less app_context fails configure absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#156 a frontmatter-less constitution fails configure tooabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#156 a missing app_context path fails configureabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#156 a well-formed app_context file still configuresabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#156 app_context false still configuresabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#156 inline app_context content still configuresabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#158 entropic_interrupt_session targets exactly one runabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#163 entropic_configure_dir carries app_contextabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#163 entropic_configure_from_file carries app_contextabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#163 the object and false spellings survive configure_dir tooabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#164 entropic_release_model names an unknown tierabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#165 entropic_session_context_set guards its preconditionsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#165 entropic_session_context_set refuses the running sessionabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#203: followup returns delegation_id and summary from real storageabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#204: an unservable http_port fails configure loudlyabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#95: identity grammar: field constrains that tier's outputabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat10
gh#158: interrupting one session leaves the other runningabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#158: metrics and context reads are safe during live runsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#158: two concurrent sessions do not bleed into each otherabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#165 + gh#164: release the weights, keep the conversationabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#165: a dropped session restored from JSON keeps answeringabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#166: two workspaces on one handle do not read each other's absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#179: each workspace's sessions answer from its own app_context, absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#194: a plain generation publishes the prefill it performedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#214: a prompt that does not fit fails the turn, typedabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#217: release is refused while another session is decodingabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#93: autoparser family parses a multi-parameter tool callabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
outside-root optional: a real model's reads outside its root absentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11
v2.14.5: a failed turn is an error carrying only its own textabsentinferred3 of 4: build_compat_diagnostic, check_arch_gate, check_compat11