REQ-INFER-012: Adapter registry resolves a family parser with a safe generic fallback

← Requirements

What it requires

  1. Given a configured adapter name, Then the matching family adapter is created; given an unknown name, Then GenericAdapter is created.
  2. Given multi-parameter XML with mixed close tags, Then every parameter is extracted.
  3. Given a parroted {action: …} envelope and an empty parse, Then the recovery substitutes calls and logs.
  4. Given a string-typed schema parameter parsed as a number, Then it is coerced back to its string form; an unknown tool is a no-op.
tier
NOT_RUN

Where it lives

  • src/inference15

See it on the map

How it is met

implemented byresults (200 tests)action_envelope_to_calladapter_tableapply_action_envelope_recoverycoerce_call_string_argscoerce_string_typed_argscreate_adapteremit_argfind_close_tagopen_tag_patternparse_recovered_tool_callparse_tagged_tool_callsparse_xml_parametersrecover_action_envelope_callsregex_recovered_tool_calltruncate_at_nested_function200 absent200 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (200)

Reached through calls

200 tests: 200 absent

testresultlinked byimplementers exercisedcalls away
body is truncated at a nested <function= tag (malformed multi-call)absentinferred5 of 151
empty input produces empty outputabsentinferred5 of 151
empty parameter value (after trim) is skippedabsentinferred5 of 151
gh#79: a single parameter closed with </NAME> parses correctlyabsentinferred5 of 151
gh#79: both params close with </NAME>absentinferred5 of 151
gh#79: first param closes with </NAME>, second with </parameter>absentinferred5 of 151
gh#79: parameter name with underscores and digitsabsentinferred5 of 151
parameter with no closing tag is skipped without aborting scanabsentinferred5 of 151
truly unterminated parameter (no </parameter>, no </NAME>) is droppedabsentinferred5 of 151
well-formed XML parameters parse with literal </parameter> closeabsentinferred5 of 151
whitespace and newlines around values are trimmedabsentinferred5 of 151
apply_action_envelope_recovery substitutes only when empty + foundabsentinferred3 of 15: action_envelope_to_call, apply_action_envelope_recovery, recover_action_envelope_calls1
coerce_string_typed_args restores string typing per schemaabsentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args1
gh#108 the adapter a gemma4 tier resolves to strips its own markerabsentinferred2 of 15: adapter_table, create_adapter1
recover_action_envelope_calls maps {action} envelope + name shapeabsentinferred2 of 15: action_envelope_to_call, recover_action_envelope_calls1
LlamaCppBackend lifecycle on a small real model (one load)absentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args2
gh#106 observe: QAT thinking-model tool-call structureabsentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args2
gh#108 MTP guards: out-of-envelope requests fail loudabsentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args2
gh#108 the gemma4 adapter and the stream filter agree on markersabsentinferred2 of 15: action_envelope_to_call, recover_action_envelope_calls2
gh#87 Increment-3a: generate() routes through common_chat when absentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args2
gh#87 diag: multi-parameter tool call — gemma4 (dedicated PEG)absentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args2
Nemotron3 XML function call parsingabsentinferred1 of 15: parse_tagged_tool_calls2
Nemotron3 fallback to tagged JSONabsentinferred1 of 15: parse_tagged_tool_calls2
Nemotron3 reasoning-trace strippingabsentinferred1 of 15: parse_tagged_tool_calls2
Qwen35 content cleaningabsentinferred1 of 15: parse_tagged_tool_calls2
Qwen35 fallback to tagged JSONabsentinferred1 of 15: parse_tagged_tool_calls2
Qwen36 XML function call parsingabsentinferred1 of 15: parse_tagged_tool_calls2
Qwen36 content cleaning across multi-turn outputabsentinferred1 of 15: parse_tagged_tool_calls2
Qwen36 fallback to tagged JSONabsentinferred1 of 15: parse_tagged_tool_calls2
XML function call parsingabsentinferred1 of 15: parse_tagged_tool_calls2
ModelOrchestrator real-model generate (one load, CPU)absentinferred7 of 153
Orchestrator generate() returns typed error when tier missingabsentinferred7 of 153
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred7 of 153
gh#122: fenced-json block in model output yields a tool callabsentinferred7 of 153
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred7 of 153
gh#127: fenced args-only object matched by registered tool schemaabsentinferred7 of 153
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred7 of 153
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred7 of 153
gh#154 a tier grammar that is not registered refuses the runabsentinferred7 of 153
gh#154 registering the tier's grammar after configure opens the absentinferred7 of 153
interface_factory: wiring + iface_* surface sweepabsentinferred7 of 153
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred7 of 153
Classification runs the router and yields a configured tierabsentinferred2 of 15: adapter_table, create_adapter3
Cleared classification_prompt makes routing a no-op (RED control)absentinferred2 of 15: adapter_table, create_adapter3
Orchestrator VRAM budget env override is read at initializeabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator drives create_tier_backends + activation failureabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator empty-tiers + handoff + observer + accessor coverageabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator initialize against missing tier paths fails cleanlyabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator member apply_tier_sampler_defaults maps all 8 absentinferred2 of 15: adapter_table, create_adapter3
Orchestrator multi-instance side-by-side constructionabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator residency_snapshot_json reports configured budgetabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator route() exercises both enabled and disabled pathsabsentinferred2 of 15: adapter_table, create_adapter3
Orchestrator route() with router configured but unloadableabsentinferred2 of 15: adapter_table, create_adapter3
gh#148 auto: a reserve no placement can fit is refused with a absentinferred2 of 15: adapter_table, create_adapter3
gh#157: a deferred tier answers vision from config while unloadedabsentinferred2 of 15: adapter_table, create_adapter3
gh#157: defer_load decides whether init touches the model at allabsentinferred2 of 15: adapter_table, create_adapter3
gh#157: the first use loads exactly once, through the gateabsentinferred2 of 15: adapter_table, create_adapter3
gh#164: release evicts the model and the next use brings it backabsentinferred2 of 15: adapter_table, create_adapter3
gh#198: a deferred handle does not touch the device until it loadsabsentinferred2 of 15: adapter_table, create_adapter3
gh#87 Increment-2: backend render_with_tools → parse_response absentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args3
gh#87 Phase A: nemotron3 tool call round-trips through common_chatabsentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args3
gh#87 Phase A: qwen35 tool call round-trips through common_chatabsentinferred2 of 15: coerce_call_string_args, coerce_string_typed_args3
gh#106 MTP routes through orchestrator->generate()absentinferred7 of 154
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred7 of 154
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred7 of 154
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred7 of 154
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred7 of 154
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred7 of 154
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred7 of 154
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred7 of 154
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred7 of 154
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred7 of 154
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred7 of 154
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred7 of 154
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred7 of 154
gh#164: release then reload decodes correctly on a hybrid archabsentinferred7 of 154
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred7 of 154
testRunStartingabsentinferred2 of 15: adapter_table, create_adapter4
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred7 of 155
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred7 of 155
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred7 of 155
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred7 of 155
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred7 of 155
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred5 of 155
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred5 of 155
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred5 of 155
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred5 of 155
Compaction fires when context exceeds thresholdabsentinferred5 of 156
Consecutive same-tier generations do not leak content across absentinferred5 of 156
Constitutional validator detects violations and revisesabsentinferred5 of 156
Conversation with model output survives save and loadabsentinferred5 of 156
Delegation wiring fires on_delegation_start callbackabsentinferred5 of 156
Dynamic identity creation and generation through engine loopabsentinferred5 of 156
Engine produces coherent text from a simple promptabsentinferred5 of 156
Engine state transitions include PLANNING and EXECUTINGabsentinferred5 of 156
GBNF grammar constrains output to valid JSONabsentinferred5 of 156
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred5 of 156
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred5 of 156
Generation succeeds with non-default GPU profileabsentinferred5 of 156
Hooks fire in correct order during a generation cycleabsentinferred5 of 156
Lead delegates to child and receives resultabsentinferred5 of 156
LoRA adapter load failure is handled gracefullyabsentinferred5 of 156
MCP authorization denial propagates through engineabsentinferred5 of 156
Model output is correctly parsed into tool callsabsentinferred5 of 156
Multi-turn context is retained across generationsabsentinferred5 of 156
Multi-turn engine calls retain contextabsentinferred5 of 156
Nemotron 3 family GGUF loads and generates first tokenabsentinferred5 of 156
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred5 of 156
Recall-style prompts do not surface prior-generation contentabsentinferred5 of 156
Routing fires on_tier_selected callbackabsentinferred5 of 156
Single-turn engine loop produces coherent responseabsentinferred5 of 156
Text-only model handles multimodal input gracefullyabsentinferred5 of 156
Tool call cycle: generate, parse, execute, regenerateabsentinferred5 of 156
True end-to-end: real prompts, real engine, real modelabsentinferred5 of 156
gh#103 contrast: batch mode may generate past the tool callabsentinferred5 of 156
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred5 of 156
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred5 of 156
gh#105: constitutional validator's toolless render must NOT clobber absentinferred5 of 156
gh#160: an isolated delegation never writes the project, and absentinferred5 of 156
gh#162: a delegate seeded with context answers from the named absentinferred5 of 156
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred5 of 156
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred5 of 156
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred5 of 156
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred5 of 156
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred5 of 156
gh#193: what cold prefill costs at each residency levelabsentinferred2 of 15: adapter_table, create_adapter6
Configure with null JSON returns errorabsentinferred7 of 157
Double-configure on one handle is refusedabsentinferred7 of 157
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred7 of 157
Three handles can coexistabsentinferred7 of 157
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred7 of 157
Two handles configure independentlyabsentinferred7 of 157
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred7 of 157
entropic_configure rejects NULL config_jsonabsentinferred7 of 157
entropic_configure rejects NULL handleabsentinferred7 of 157
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred7 of 157
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred7 of 157
entropic_configure_dir rejects NULL handleabsentinferred7 of 157
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred7 of 157
entropic_configure_from_file rejects NULL handleabsentinferred7 of 157
entropic_configure_from_file rejects NULL pathabsentinferred7 of 157
entropic_configure_from_file rejects missing fileabsentinferred7 of 157
entropic_last_error reflects most-recent operation failureabsentinferred7 of 157
entropic_last_error returns per-handle state (v2.2.6)absentinferred7 of 157
entropic_register_mcp_server on a configured handle absentinferred7 of 157
entropic_run_messages with console logging disabled still absentinferred7 of 157
entropic_seconds_since_last_activity returns 0 before any run absentinferred7 of 157
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred7 of 157
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred7 of 157
gh#144: concurrent bridge clients queue instead of racingabsentinferred7 of 157
gh#154 a tier grammar stem that cannot resolve YET still absentinferred7 of 157
gh#154 a tier grammar stem that resolves still configuresabsentinferred7 of 157
gh#154 a tier with no grammar is unaffectedabsentinferred7 of 157
gh#154 entropic_metrics_json carries a generations arrayabsentinferred7 of 157
gh#156 a frontmatter-less app_context fails configure absentinferred7 of 157
gh#156 a frontmatter-less constitution fails configure tooabsentinferred7 of 157
gh#156 a missing app_context path fails configureabsentinferred7 of 157
gh#156 a well-formed app_context file still configuresabsentinferred7 of 157
gh#156 app_context false still configuresabsentinferred7 of 157
gh#156 inline app_context content still configuresabsentinferred7 of 157
gh#158 entropic_interrupt_session targets exactly one runabsentinferred7 of 157
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred7 of 157
gh#163 entropic_configure_dir carries app_contextabsentinferred7 of 157
gh#163 entropic_configure_from_file carries app_contextabsentinferred7 of 157
gh#163 the object and false spellings survive configure_dir tooabsentinferred7 of 157
gh#164 entropic_release_model names an unknown tierabsentinferred7 of 157
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred7 of 157
gh#165 entropic_session_context_set guards its preconditionsabsentinferred7 of 157
gh#165 entropic_session_context_set refuses the running sessionabsentinferred7 of 157
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred7 of 157
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred7 of 157
gh#203: followup returns delegation_id and summary from real storageabsentinferred7 of 157
gh#204: an unservable http_port fails configure loudlyabsentinferred7 of 157
gh#95: identity grammar: field constrains that tier's outputabsentinferred7 of 157
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred7 of 157
gh#158: interrupting one session leaves the other runningabsentinferred7 of 158
gh#158: metrics and context reads are safe during live runsabsentinferred7 of 158
gh#158: two concurrent sessions do not bleed into each otherabsentinferred7 of 158
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred7 of 158
gh#165 + gh#164: release the weights, keep the conversationabsentinferred7 of 158
gh#165: a dropped session restored from JSON keeps answeringabsentinferred7 of 158
gh#166: two workspaces on one handle do not read each other's absentinferred7 of 158
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred7 of 158
gh#179: each workspace's sessions answer from its own app_context, absentinferred7 of 158
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred7 of 158
gh#194: a plain generation publishes the prefill it performedabsentinferred7 of 158
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred7 of 158
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred7 of 158
gh#214: a prompt that does not fit fails the turn, typedabsentinferred7 of 158
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred7 of 158
gh#217: release is refused while another session is decodingabsentinferred7 of 158
gh#93: autoparser family parses a multi-parameter tool callabsentinferred7 of 158
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred7 of 158
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred7 of 158
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred7 of 158
outside-root optional: a real model's reads outside its root absentinferred7 of 158
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred7 of 158
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred7 of 158
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred7 of 158
v2.14.5: a failed turn is an error carrying only its own textabsentinferred7 of 158