REQ-TYPE-004: Sentinel count members bound enum validity and force exhaustive wiring

← Requirements

What it requires

  1. - GIVEN the hook enum THEN ENTROPIC_HOOK_COUNT_ == 23; WHEN registering a hook at ENTROPIC_HOOK_COUNT_ THEN ENTROPIC_ERROR_INVALID_CONFIG is returned and no callback is stored. - GIVEN the BackendCapability enum THEN _COUNT == 13 and the last real capability (AUDIO) sits at _COUNT - 1. - GIVEN the declared set of grammar sources THEN grammar_source_count() == 4 AND every non-none source is producible from resolve_grammar_source — an enum value no input can yield is a source declared but not wired.
tier
NOT_RUN

Where it lives

  • src/inference4

See it on the map

How it is met

implemented byresults (160 tests)capabilitiesdo_supportsgrammar_source_countresolve_grammar_source160 absent160 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (160)

Reached through calls

160 tests: 160 absent

testresultlinked byimplementers exercisedcalls away
gh#134 every declared grammar source is wired to the samplerabsentinferred2 of 4: grammar_source_count, resolve_grammar_source1
LlamaCppBackend lifecycle on a small real model (one load)absentinferred1 of 4: capabilities1
gh#134 exactly one grammar source constrains a decodeabsentinferred1 of 4: resolve_grammar_source1
gh#154 the result says what constrained the decodeabsentinferred1 of 4: resolve_grammar_source2
ModelOrchestrator real-model generate (one load, CPU)absentinferred1 of 4: resolve_grammar_source4
Orchestrator generate() returns typed error when tier missingabsentinferred1 of 4: resolve_grammar_source4
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred1 of 4: resolve_grammar_source4
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred1 of 4: resolve_grammar_source4
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred1 of 4: resolve_grammar_source4
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred1 of 4: resolve_grammar_source4
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred1 of 4: resolve_grammar_source4
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred1 of 4: resolve_grammar_source4
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred1 of 4: resolve_grammar_source4
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred1 of 4: resolve_grammar_source4
gh#154 a tier grammar that is not registered refuses the runabsentinferred1 of 4: resolve_grammar_source4
Consecutive same-tier generations do not leak content across absentinferred1 of 4: resolve_grammar_source5
Conversation with model output survives save and loadabsentinferred1 of 4: resolve_grammar_source5
Engine produces coherent text from a simple promptabsentinferred1 of 4: resolve_grammar_source5
GBNF grammar constrains output to valid JSONabsentinferred1 of 4: resolve_grammar_source5
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred1 of 4: resolve_grammar_source5
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred1 of 4: resolve_grammar_source5
Generation succeeds with non-default GPU profileabsentinferred1 of 4: resolve_grammar_source5
Lead delegates to child and receives resultabsentinferred1 of 4: resolve_grammar_source5
LoRA adapter load failure is handled gracefullyabsentinferred1 of 4: resolve_grammar_source5
Model output is correctly parsed into tool callsabsentinferred1 of 4: resolve_grammar_source5
Multi-turn context is retained across generationsabsentinferred1 of 4: resolve_grammar_source5
Nemotron 3 family GGUF loads and generates first tokenabsentinferred1 of 4: resolve_grammar_source5
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred1 of 4: resolve_grammar_source5
Recall-style prompts do not surface prior-generation contentabsentinferred1 of 4: resolve_grammar_source5
Text-only model handles multimodal input gracefullyabsentinferred1 of 4: resolve_grammar_source5
gh#103 contrast: batch mode may generate past the tool callabsentinferred1 of 4: resolve_grammar_source5
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred1 of 4: resolve_grammar_source5
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred1 of 4: resolve_grammar_source5
gh#106 MTP routes through orchestrator->generate()absentinferred1 of 4: resolve_grammar_source5
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred1 of 4: resolve_grammar_source5
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred1 of 4: resolve_grammar_source5
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred1 of 4: resolve_grammar_source5
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred1 of 4: resolve_grammar_source5
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred1 of 4: resolve_grammar_source5
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred1 of 4: resolve_grammar_source5
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred1 of 4: resolve_grammar_source5
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred1 of 4: resolve_grammar_source5
gh#154 registering the tier's grammar after configure opens the absentinferred1 of 4: resolve_grammar_source5
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred1 of 4: resolve_grammar_source5
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred1 of 4: resolve_grammar_source5
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred1 of 4: resolve_grammar_source5
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred1 of 4: resolve_grammar_source5
gh#122: fenced-json block in model output yields a tool callabsentinferred1 of 4: resolve_grammar_source6
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred1 of 4: resolve_grammar_source6
gh#127: fenced args-only object matched by registered tool schemaabsentinferred1 of 4: resolve_grammar_source6
interface_factory: wiring + iface_* surface sweepabsentinferred1 of 4: resolve_grammar_source6
Compaction fires when context exceeds thresholdabsentinferred1 of 4: resolve_grammar_source7
Constitutional validator detects violations and revisesabsentinferred1 of 4: resolve_grammar_source7
Delegation wiring fires on_delegation_start callbackabsentinferred1 of 4: resolve_grammar_source7
Dynamic identity creation and generation through engine loopabsentinferred1 of 4: resolve_grammar_source7
Engine state transitions include PLANNING and EXECUTINGabsentinferred1 of 4: resolve_grammar_source7
Hooks fire in correct order during a generation cycleabsentinferred1 of 4: resolve_grammar_source7
MCP authorization denial propagates through engineabsentinferred1 of 4: resolve_grammar_source7
Multi-turn engine calls retain contextabsentinferred1 of 4: resolve_grammar_source7
Routing fires on_tier_selected callbackabsentinferred1 of 4: resolve_grammar_source7
Single-turn engine loop produces coherent responseabsentinferred1 of 4: resolve_grammar_source7
Tool call cycle: generate, parse, execute, regenerateabsentinferred1 of 4: resolve_grammar_source7
True end-to-end: real prompts, real engine, real modelabsentinferred1 of 4: resolve_grammar_source7
gh#105: constitutional validator's toolless render must NOT clobber absentinferred1 of 4: resolve_grammar_source7
gh#106 MTP kernel: engaged + lossless-coherentabsentinferred1 of 4: resolve_grammar_source7
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred1 of 4: resolve_grammar_source7
gh#108 MTP + flash + q4 KV succeeds on E4B QAT Q4 absentinferred1 of 4: resolve_grammar_source7
gh#108 MTP + flash attention succeeds (v2.9.3, upstream #25148)absentinferred1 of 4: resolve_grammar_source7
gh#108 MTP greedy holds across a multi-turn contextabsentinferred1 of 4: resolve_grammar_source7
gh#108 MTP guards: out-of-envelope requests fail loudabsentinferred1 of 4: resolve_grammar_source7
gh#108 MTP is lossless at temperature>0 (empirical distribution check)absentinferred1 of 4: resolve_grammar_source7
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred1 of 4: resolve_grammar_source7
gh#144: MTP prefill must not re-decode an unchanged prefixabsentinferred1 of 4: resolve_grammar_source7
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred1 of 4: resolve_grammar_source7
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred1 of 4: resolve_grammar_source7
gh#160: an isolated delegation never writes the project, and absentinferred1 of 4: resolve_grammar_source7
gh#162: a delegate seeded with context answers from the named absentinferred1 of 4: resolve_grammar_source7
gh#164: release then reload decodes correctly on a hybrid archabsentinferred1 of 4: resolve_grammar_source7
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred1 of 4: resolve_grammar_source7
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred1 of 4: resolve_grammar_source7
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred1 of 4: resolve_grammar_source7
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred1 of 4: resolve_grammar_source7
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred1 of 4: resolve_grammar_source7
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred1 of 4: resolve_grammar_source7
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred1 of 4: resolve_grammar_source7
gh#106 MTP functions on the E4B QAT trunkabsentinferred1 of 4: resolve_grammar_source8
Configure with null JSON returns errorabsentinferred1 of 4: resolve_grammar_source10
Double-configure on one handle is refusedabsentinferred1 of 4: resolve_grammar_source10
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred1 of 4: resolve_grammar_source10
Three handles can coexistabsentinferred1 of 4: resolve_grammar_source10
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred1 of 4: resolve_grammar_source10
Two handles configure independentlyabsentinferred1 of 4: resolve_grammar_source10
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred1 of 4: resolve_grammar_source10
entropic_configure rejects NULL config_jsonabsentinferred1 of 4: resolve_grammar_source10
entropic_configure rejects NULL handleabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_dir rejects NULL handleabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_from_file rejects NULL handleabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_from_file rejects NULL pathabsentinferred1 of 4: resolve_grammar_source10
entropic_configure_from_file rejects missing fileabsentinferred1 of 4: resolve_grammar_source10
entropic_last_error reflects most-recent operation failureabsentinferred1 of 4: resolve_grammar_source10
entropic_last_error returns per-handle state (v2.2.6)absentinferred1 of 4: resolve_grammar_source10
entropic_register_mcp_server on a configured handle absentinferred1 of 4: resolve_grammar_source10
entropic_run_messages with console logging disabled still absentinferred1 of 4: resolve_grammar_source10
entropic_seconds_since_last_activity returns 0 before any run absentinferred1 of 4: resolve_grammar_source10
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred1 of 4: resolve_grammar_source10
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred1 of 4: resolve_grammar_source10
gh#144: concurrent bridge clients queue instead of racingabsentinferred1 of 4: resolve_grammar_source10
gh#154 a tier grammar stem that cannot resolve YET still absentinferred1 of 4: resolve_grammar_source10
gh#154 a tier grammar stem that resolves still configuresabsentinferred1 of 4: resolve_grammar_source10
gh#154 a tier with no grammar is unaffectedabsentinferred1 of 4: resolve_grammar_source10
gh#154 entropic_metrics_json carries a generations arrayabsentinferred1 of 4: resolve_grammar_source10
gh#156 a frontmatter-less app_context fails configure absentinferred1 of 4: resolve_grammar_source10
gh#156 a frontmatter-less constitution fails configure tooabsentinferred1 of 4: resolve_grammar_source10
gh#156 a missing app_context path fails configureabsentinferred1 of 4: resolve_grammar_source10
gh#156 a well-formed app_context file still configuresabsentinferred1 of 4: resolve_grammar_source10
gh#156 app_context false still configuresabsentinferred1 of 4: resolve_grammar_source10
gh#156 inline app_context content still configuresabsentinferred1 of 4: resolve_grammar_source10
gh#158 entropic_interrupt_session targets exactly one runabsentinferred1 of 4: resolve_grammar_source10
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred1 of 4: resolve_grammar_source10
gh#163 entropic_configure_dir carries app_contextabsentinferred1 of 4: resolve_grammar_source10
gh#163 entropic_configure_from_file carries app_contextabsentinferred1 of 4: resolve_grammar_source10
gh#163 the object and false spellings survive configure_dir tooabsentinferred1 of 4: resolve_grammar_source10
gh#164 entropic_release_model names an unknown tierabsentinferred1 of 4: resolve_grammar_source10
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred1 of 4: resolve_grammar_source10
gh#165 entropic_session_context_set guards its preconditionsabsentinferred1 of 4: resolve_grammar_source10
gh#165 entropic_session_context_set refuses the running sessionabsentinferred1 of 4: resolve_grammar_source10
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred1 of 4: resolve_grammar_source10
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred1 of 4: resolve_grammar_source10
gh#203: followup returns delegation_id and summary from real storageabsentinferred1 of 4: resolve_grammar_source10
gh#204: an unservable http_port fails configure loudlyabsentinferred1 of 4: resolve_grammar_source10
gh#95: identity grammar: field constrains that tier's outputabsentinferred1 of 4: resolve_grammar_source10
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred1 of 4: resolve_grammar_source10
gh#158: interrupting one session leaves the other runningabsentinferred1 of 4: resolve_grammar_source11
gh#158: metrics and context reads are safe during live runsabsentinferred1 of 4: resolve_grammar_source11
gh#158: two concurrent sessions do not bleed into each otherabsentinferred1 of 4: resolve_grammar_source11
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred1 of 4: resolve_grammar_source11
gh#165 + gh#164: release the weights, keep the conversationabsentinferred1 of 4: resolve_grammar_source11
gh#165: a dropped session restored from JSON keeps answeringabsentinferred1 of 4: resolve_grammar_source11
gh#166: two workspaces on one handle do not read each other's absentinferred1 of 4: resolve_grammar_source11
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred1 of 4: resolve_grammar_source11
gh#179: each workspace's sessions answer from its own app_context, absentinferred1 of 4: resolve_grammar_source11
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred1 of 4: resolve_grammar_source11
gh#194: a plain generation publishes the prefill it performedabsentinferred1 of 4: resolve_grammar_source11
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred1 of 4: resolve_grammar_source11
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred1 of 4: resolve_grammar_source11
gh#214: a prompt that does not fit fails the turn, typedabsentinferred1 of 4: resolve_grammar_source11
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred1 of 4: resolve_grammar_source11
gh#217: release is refused while another session is decodingabsentinferred1 of 4: resolve_grammar_source11
gh#93: autoparser family parses a multi-parameter tool callabsentinferred1 of 4: resolve_grammar_source11
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred1 of 4: resolve_grammar_source11
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred1 of 4: resolve_grammar_source11
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred1 of 4: resolve_grammar_source11
outside-root optional: a real model's reads outside its root absentinferred1 of 4: resolve_grammar_source11
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred1 of 4: resolve_grammar_source11
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred1 of 4: resolve_grammar_source11
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred1 of 4: resolve_grammar_source11
v2.14.5: a failed turn is an error carrying only its own textabsentinferred1 of 4: resolve_grammar_source11