REQ-INFER-010: One template-first / adapter-second rule parses every raw emission

← Requirements

What it requires

  1. Given a reliable (dedicated-grammar) format and a complete parse, Then the template's calls are used and used_template is true.
  2. Given a template parse missing a declared required parameter, Then the adapter parser is used instead.
  3. Given no backend or no captured arena, Then the adapter parses.
  4. Given any branch, Then the adapter's reasoning strip runs over the resulting content.
  5. Given empty content with at least one parsed tool call, Then the diagnosis is tool_call_only and its message names neither a reasoning block nor max_tokens; given the same shape with zero tool calls, Then the gh#137 reasoning-block diagnosis is unchanged.
tier
NOT_RUN

Where it lives

  • src/inference11

See it on the map

How it is met

implemented byresults (150 tests)apply_adapter_parseapply_fenced_fallbackscalls_satisfy_schemadiagnose_empty_contentexplain_empty_contentiface_parse_tool_callsone_call_satisfies_schemaparse_model_responsetry_template_parsewarn_if_content_vanishedwarn_turn_diagnostics150 absent150 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (150)

Reached through calls

150 tests: 150 absent

testresultlinked byimplementers exercisedcalls away
gh#137 an empty turn is attributed to its real causeabsentinferred2 of 11: diagnose_empty_content, explain_empty_content1
gh#159 a turn whose whole output was a tool call is not a faultabsentinferred2 of 11: diagnose_empty_content, explain_empty_content1
gh#122: fenced-json block in model output yields a tool callabsentinferred11 of 112
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred11 of 112
gh#127: fenced args-only object matched by registered tool schemaabsentinferred11 of 112
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred11 of 112
interface_factory: wiring + iface_* surface sweepabsentinferred11 of 112
ModelOrchestrator real-model generate (one load, CPU)absentinferred9 of 112
Orchestrator generate() returns typed error when tier missingabsentinferred9 of 112
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred9 of 112
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred9 of 112
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred9 of 112
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred9 of 112
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred9 of 112
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred9 of 112
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred9 of 112
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred9 of 112
gh#154 a tier grammar that is not registered refuses the runabsentinferred9 of 112
Compaction fires when context exceeds thresholdabsentinferred11 of 113
Constitutional validator detects violations and revisesabsentinferred11 of 113
Delegation wiring fires on_delegation_start callbackabsentinferred11 of 113
Dynamic identity creation and generation through engine loopabsentinferred11 of 113
Engine state transitions include PLANNING and EXECUTINGabsentinferred11 of 113
Hooks fire in correct order during a generation cycleabsentinferred11 of 113
MCP authorization denial propagates through engineabsentinferred11 of 113
Multi-turn engine calls retain contextabsentinferred11 of 113
Routing fires on_tier_selected callbackabsentinferred11 of 113
Single-turn engine loop produces coherent responseabsentinferred11 of 113
Tool call cycle: generate, parse, execute, regenerateabsentinferred11 of 113
True end-to-end: real prompts, real engine, real modelabsentinferred11 of 113
gh#105: constitutional validator's toolless render must NOT clobber absentinferred11 of 113
gh#160: an isolated delegation never writes the project, and absentinferred11 of 113
gh#162: a delegate seeded with context answers from the named absentinferred11 of 113
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred11 of 113
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred11 of 113
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred11 of 113
Consecutive same-tier generations do not leak content across absentinferred9 of 113
Conversation with model output survives save and loadabsentinferred9 of 113
Engine produces coherent text from a simple promptabsentinferred9 of 113
GBNF grammar constrains output to valid JSONabsentinferred9 of 113
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred9 of 113
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred9 of 113
Generation succeeds with non-default GPU profileabsentinferred9 of 113
Lead delegates to child and receives resultabsentinferred9 of 113
LoRA adapter load failure is handled gracefullyabsentinferred9 of 113
Model output is correctly parsed into tool callsabsentinferred9 of 113
Multi-turn context is retained across generationsabsentinferred9 of 113
Nemotron 3 family GGUF loads and generates first tokenabsentinferred9 of 113
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred9 of 113
Recall-style prompts do not surface prior-generation contentabsentinferred9 of 113
Text-only model handles multimodal input gracefullyabsentinferred9 of 113
gh#103 contrast: batch mode may generate past the tool callabsentinferred9 of 113
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred9 of 113
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred9 of 113
gh#106 MTP routes through orchestrator->generate()absentinferred9 of 113
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred9 of 113
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred9 of 113
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred9 of 113
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred9 of 113
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred9 of 113
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred9 of 113
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred9 of 113
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred9 of 113
gh#154 registering the tier's grammar after configure opens the absentinferred9 of 113
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred9 of 113
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred9 of 113
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred9 of 113
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred9 of 115
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred9 of 115
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred9 of 115
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred9 of 115
gh#164: release then reload decodes correctly on a hybrid archabsentinferred9 of 115
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred9 of 115
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred9 of 115
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred9 of 115
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred9 of 115
Configure with null JSON returns errorabsentinferred11 of 116
Double-configure on one handle is refusedabsentinferred11 of 116
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred11 of 116
Three handles can coexistabsentinferred11 of 116
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred11 of 116
Two handles configure independentlyabsentinferred11 of 116
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred11 of 116
entropic_configure rejects NULL config_jsonabsentinferred11 of 116
entropic_configure rejects NULL handleabsentinferred11 of 116
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred11 of 116
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred11 of 116
entropic_configure_dir rejects NULL handleabsentinferred11 of 116
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred11 of 116
entropic_configure_from_file rejects NULL handleabsentinferred11 of 116
entropic_configure_from_file rejects NULL pathabsentinferred11 of 116
entropic_configure_from_file rejects missing fileabsentinferred11 of 116
entropic_last_error reflects most-recent operation failureabsentinferred11 of 116
entropic_last_error returns per-handle state (v2.2.6)absentinferred11 of 116
entropic_register_mcp_server on a configured handle absentinferred11 of 116
entropic_run_messages with console logging disabled still absentinferred11 of 116
entropic_seconds_since_last_activity returns 0 before any run absentinferred11 of 116
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred11 of 116
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred11 of 116
gh#144: concurrent bridge clients queue instead of racingabsentinferred11 of 116
gh#154 a tier grammar stem that cannot resolve YET still absentinferred11 of 116
gh#154 a tier grammar stem that resolves still configuresabsentinferred11 of 116
gh#154 a tier with no grammar is unaffectedabsentinferred11 of 116
gh#154 entropic_metrics_json carries a generations arrayabsentinferred11 of 116
gh#156 a frontmatter-less app_context fails configure absentinferred11 of 116
gh#156 a frontmatter-less constitution fails configure tooabsentinferred11 of 116
gh#156 a missing app_context path fails configureabsentinferred11 of 116
gh#156 a well-formed app_context file still configuresabsentinferred11 of 116
gh#156 app_context false still configuresabsentinferred11 of 116
gh#156 inline app_context content still configuresabsentinferred11 of 116
gh#158 entropic_interrupt_session targets exactly one runabsentinferred11 of 116
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred11 of 116
gh#163 entropic_configure_dir carries app_contextabsentinferred11 of 116
gh#163 entropic_configure_from_file carries app_contextabsentinferred11 of 116
gh#163 the object and false spellings survive configure_dir tooabsentinferred11 of 116
gh#164 entropic_release_model names an unknown tierabsentinferred11 of 116
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred11 of 116
gh#165 entropic_session_context_set guards its preconditionsabsentinferred11 of 116
gh#165 entropic_session_context_set refuses the running sessionabsentinferred11 of 116
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred11 of 116
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred11 of 116
gh#203: followup returns delegation_id and summary from real storageabsentinferred11 of 116
gh#204: an unservable http_port fails configure loudlyabsentinferred11 of 116
gh#95: identity grammar: field constrains that tier's outputabsentinferred11 of 116
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred11 of 116
gh#158: interrupting one session leaves the other runningabsentinferred11 of 117
gh#158: metrics and context reads are safe during live runsabsentinferred11 of 117
gh#158: two concurrent sessions do not bleed into each otherabsentinferred11 of 117
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred11 of 117
gh#165 + gh#164: release the weights, keep the conversationabsentinferred11 of 117
gh#165: a dropped session restored from JSON keeps answeringabsentinferred11 of 117
gh#166: two workspaces on one handle do not read each other's absentinferred11 of 117
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred11 of 117
gh#179: each workspace's sessions answer from its own app_context, absentinferred11 of 117
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred11 of 117
gh#194: a plain generation publishes the prefill it performedabsentinferred11 of 117
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred11 of 117
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred11 of 117
gh#214: a prompt that does not fit fails the turn, typedabsentinferred11 of 117
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred11 of 117
gh#217: release is refused while another session is decodingabsentinferred11 of 117
gh#93: autoparser family parses a multi-parameter tool callabsentinferred11 of 117
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred11 of 117
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred11 of 117
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred11 of 117
outside-root optional: a real model's reads outside its root absentinferred11 of 117
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred11 of 117
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred11 of 117
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred11 of 117
v2.14.5: a failed turn is an error carrying only its own textabsentinferred11 of 117