REQ-INFER-009: Tool staging drives a native render whose parse context is captured

← Requirements

What it requires

  1. Given tools staged and a render performed, When parse_response runs, Then it reloads the serialized PEG arena and extracts the model's native tool call.
  2. Given a toolless render interleaved after a tooled one, When the main output is re-parsed, Then the tooled snapshot is still used and the tool call is still extracted.
  3. Given no render has captured params, Then parse_response returns the raw text as content with no calls.
tier
NOT_RUN

Where it lives

  • src/inference9

See it on the map

How it is met

implemented byresults (164 tests)mcp_tools_to_common_chatparse_responserender_common_chatrender_promptrender_with_toolsresolve_and_stageset_active_toolsstage_active_toolsto_common_chat164 absent164 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (164)

Reached through calls

164 tests: 164 absent

testresultlinked byimplementers exercisedcalls away
gh#108 MTP guards: out-of-envelope requests fail loudabsentinferred7 of 91
LlamaCppBackend lifecycle on a small real model (one load)absentinferred6 of 91
gh#87 Increment-2: backend render_with_tools → parse_response absentinferred6 of 91
gh#87 diag: multi-parameter tool call — gemma4 (dedicated PEG)absentinferred6 of 91
gh#106 observe: QAT thinking-model tool-call structureabsentinferred2 of 9: parse_response, set_active_tools1
gh#87 Increment-3a: generate() routes through common_chat when absentinferred2 of 9: parse_response, set_active_tools1
a tier whose staged tools overflow its context refuses the turn absentinferred1 of 9: set_active_tools1
Consecutive same-tier generations do not leak content across absentinferred8 of 92
Conversation with model output survives save and loadabsentinferred8 of 92
Engine produces coherent text from a simple promptabsentinferred8 of 92
GBNF grammar constrains output to valid JSONabsentinferred8 of 92
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred8 of 92
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred8 of 92
Generation succeeds with non-default GPU profileabsentinferred8 of 92
Lead delegates to child and receives resultabsentinferred8 of 92
LoRA adapter load failure is handled gracefullyabsentinferred8 of 92
Model output is correctly parsed into tool callsabsentinferred8 of 92
ModelOrchestrator real-model generate (one load, CPU)absentinferred8 of 92
Multi-turn context is retained across generationsabsentinferred8 of 92
Nemotron 3 family GGUF loads and generates first tokenabsentinferred8 of 92
Orchestrator generate() returns typed error when tier missingabsentinferred8 of 92
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred8 of 92
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred8 of 92
Recall-style prompts do not surface prior-generation contentabsentinferred8 of 92
Text-only model handles multimodal input gracefullyabsentinferred8 of 92
gh#103 contrast: batch mode may generate past the tool callabsentinferred8 of 92
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred8 of 92
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred8 of 92
gh#106 MTP routes through orchestrator->generate()absentinferred8 of 92
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred8 of 92
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred8 of 92
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred8 of 92
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred8 of 92
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred8 of 92
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred8 of 92
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred8 of 92
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred8 of 92
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred8 of 92
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred8 of 92
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred8 of 92
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred8 of 92
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred8 of 92
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred8 of 92
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred8 of 92
gh#154 a tier grammar that is not registered refuses the runabsentinferred8 of 92
gh#154 registering the tier's grammar after configure opens the absentinferred8 of 92
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred8 of 92
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred8 of 92
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred8 of 92
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred8 of 92
gh#106 MTP kernel: engaged + lossless-coherentabsentinferred5 of 92
gh#108 MTP + flash + q4 KV succeeds on E4B QAT Q4 absentinferred5 of 92
gh#108 MTP + flash attention succeeds (v2.9.3, upstream #25148)absentinferred5 of 92
gh#108 MTP greedy holds across a multi-turn contextabsentinferred5 of 92
gh#108 MTP is lossless at temperature>0 (empirical distribution check)absentinferred5 of 92
gh#144: MTP prefill must not re-decode an unchanged prefixabsentinferred5 of 92
gh#87 Phase A: nemotron3 tool call round-trips through common_chatabsentinferred2 of 9: parse_response, set_active_tools2
gh#87 Phase A: qwen35 tool call round-trips through common_chatabsentinferred2 of 9: parse_response, set_active_tools2
gh#106 MTP functions on the E4B QAT trunkabsentinferred5 of 93
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred8 of 94
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred8 of 94
gh#122: fenced-json block in model output yields a tool callabsentinferred8 of 94
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred8 of 94
gh#127: fenced args-only object matched by registered tool schemaabsentinferred8 of 94
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred8 of 94
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred8 of 94
gh#164: release then reload decodes correctly on a hybrid archabsentinferred8 of 94
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred8 of 94
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred8 of 94
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred8 of 94
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred8 of 94
interface_factory: wiring + iface_* surface sweepabsentinferred8 of 94
Compaction fires when context exceeds thresholdabsentinferred8 of 95
Constitutional validator detects violations and revisesabsentinferred8 of 95
Delegation wiring fires on_delegation_start callbackabsentinferred8 of 95
Dynamic identity creation and generation through engine loopabsentinferred8 of 95
Engine state transitions include PLANNING and EXECUTINGabsentinferred8 of 95
Hooks fire in correct order during a generation cycleabsentinferred8 of 95
MCP authorization denial propagates through engineabsentinferred8 of 95
Multi-turn engine calls retain contextabsentinferred8 of 95
Routing fires on_tier_selected callbackabsentinferred8 of 95
Single-turn engine loop produces coherent responseabsentinferred8 of 95
Tool call cycle: generate, parse, execute, regenerateabsentinferred8 of 95
True end-to-end: real prompts, real engine, real modelabsentinferred8 of 95
gh#105: constitutional validator's toolless render must NOT clobber absentinferred8 of 95
gh#160: an isolated delegation never writes the project, and absentinferred8 of 95
gh#162: a delegate seeded with context answers from the named absentinferred8 of 95
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred8 of 95
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred8 of 95
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred8 of 95
Configure with null JSON returns errorabsentinferred8 of 98
Double-configure on one handle is refusedabsentinferred8 of 98
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred8 of 98
Three handles can coexistabsentinferred8 of 98
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred8 of 98
Two handles configure independentlyabsentinferred8 of 98
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred8 of 98
entropic_configure rejects NULL config_jsonabsentinferred8 of 98
entropic_configure rejects NULL handleabsentinferred8 of 98
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred8 of 98
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred8 of 98
entropic_configure_dir rejects NULL handleabsentinferred8 of 98
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred8 of 98
entropic_configure_from_file rejects NULL handleabsentinferred8 of 98
entropic_configure_from_file rejects NULL pathabsentinferred8 of 98
entropic_configure_from_file rejects missing fileabsentinferred8 of 98
entropic_last_error reflects most-recent operation failureabsentinferred8 of 98
entropic_last_error returns per-handle state (v2.2.6)absentinferred8 of 98
entropic_register_mcp_server on a configured handle absentinferred8 of 98
entropic_run_messages with console logging disabled still absentinferred8 of 98
entropic_seconds_since_last_activity returns 0 before any run absentinferred8 of 98
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred8 of 98
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred8 of 98
gh#144: concurrent bridge clients queue instead of racingabsentinferred8 of 98
gh#154 a tier grammar stem that cannot resolve YET still absentinferred8 of 98
gh#154 a tier grammar stem that resolves still configuresabsentinferred8 of 98
gh#154 a tier with no grammar is unaffectedabsentinferred8 of 98
gh#154 entropic_metrics_json carries a generations arrayabsentinferred8 of 98
gh#156 a frontmatter-less app_context fails configure absentinferred8 of 98
gh#156 a frontmatter-less constitution fails configure tooabsentinferred8 of 98
gh#156 a missing app_context path fails configureabsentinferred8 of 98
gh#156 a well-formed app_context file still configuresabsentinferred8 of 98
gh#156 app_context false still configuresabsentinferred8 of 98
gh#156 inline app_context content still configuresabsentinferred8 of 98
gh#158 entropic_interrupt_session targets exactly one runabsentinferred8 of 98
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred8 of 98
gh#163 entropic_configure_dir carries app_contextabsentinferred8 of 98
gh#163 entropic_configure_from_file carries app_contextabsentinferred8 of 98
gh#163 the object and false spellings survive configure_dir tooabsentinferred8 of 98
gh#164 entropic_release_model names an unknown tierabsentinferred8 of 98
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred8 of 98
gh#165 entropic_session_context_set guards its preconditionsabsentinferred8 of 98
gh#165 entropic_session_context_set refuses the running sessionabsentinferred8 of 98
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred8 of 98
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred8 of 98
gh#203: followup returns delegation_id and summary from real storageabsentinferred8 of 98
gh#204: an unservable http_port fails configure loudlyabsentinferred8 of 98
gh#95: identity grammar: field constrains that tier's outputabsentinferred8 of 98
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred8 of 98
gh#158: interrupting one session leaves the other runningabsentinferred8 of 99
gh#158: metrics and context reads are safe during live runsabsentinferred8 of 99
gh#158: two concurrent sessions do not bleed into each otherabsentinferred8 of 99
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred8 of 99
gh#165 + gh#164: release the weights, keep the conversationabsentinferred8 of 99
gh#165: a dropped session restored from JSON keeps answeringabsentinferred8 of 99
gh#166: two workspaces on one handle do not read each other's absentinferred8 of 99
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred8 of 99
gh#179: each workspace's sessions answer from its own app_context, absentinferred8 of 99
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred8 of 99
gh#194: a plain generation publishes the prefill it performedabsentinferred8 of 99
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred8 of 99
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred8 of 99
gh#214: a prompt that does not fit fails the turn, typedabsentinferred8 of 99
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred8 of 99
gh#217: release is refused while another session is decodingabsentinferred8 of 99
gh#93: autoparser family parses a multi-parameter tool callabsentinferred8 of 99
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred8 of 99
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred8 of 99
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred8 of 99
outside-root optional: a real model's reads outside its root absentinferred8 of 99
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred8 of 99
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred8 of 99
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred8 of 99
v2.14.5: a failed turn is an error carrying only its own textabsentinferred8 of 99