REQ-CFG-006: Fail-loud validation — reject bad or inert configuration at load time

← Requirements

What it requires

  1. GIVEN routing enabled without a router model / a fallback_tier not in tiers / a tier_map value naming an undefined tier / a handoff_rules source or target not in tiers / routing enabled with a classification_prompt and an empty tier_map, WHEN validate_routing is called, THEN each fails with a message naming the offending key.
  2. GIVEN a ModelConfig with out-of-range context_length, an empty adapter, or an allowed_tools entry lacking a dot, THEN validate fails.
  3. GIVEN a ModelsConfig whose default tier is absent from a non-empty tiers map, THEN validate fails.
  4. GIVEN compaction thresholds that invert or fall out of range, THEN validate fails.
  5. GIVEN a missing config file path, THEN parse_config_file returns a read error and load_config_from_file propagates it without running validation.
tier
NOT_RUN

Where it lives

  • src/config20
  • src/inference1

See it on the map

How it is met

implemented byresults (150 tests)expert_offload_conflict_reasonload_configload_config_from_fileload_config_from_stringparse_config_fileparse_config_stringresolve_model_pathvalidatevalidatevalidatevalidatevalidate_allowed_toolsvalidate_classification_routablevalidate_configvalidate_fallback_tiervalidate_handoff_rulesvalidate_model_tiersvalidate_routingvalidate_tier_mapwarn_auto_chain_without_targetswarn_unresolved_tier_grammars150 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
A tier selects a bundled model by family/size/quantabsentinferred14 of 211
gh#108 (v2.10.0): speculative.mtp and static grammar can coexist absentinferred14 of 211
gh#148: gpu_layers accepts a count or the word autoabsentinferred14 of 211
gh#153 #42(iii): cpu_moe_layers parses, and is absent by defaultabsentinferred14 of 211
gh#157: models.defer_load parses and is not mistaken for a tierabsentinferred14 of 211
gh#211: malformed YAML is a returned error, never an abortabsentinferred14 of 211
gh#94: per-tier sampler knobs parse from YAML into TierConfigabsentinferred14 of 211
load_config drives global + project + env + validate chainabsentinferred14 of 211
load_config_from_file forwards file errors through the chainabsentinferred14 of 211
load_config_from_file is the single-file public entryabsentinferred14 of 211
load_config_from_string drives parse_config_string + validateabsentinferred14 of 211
RoutingConfig validationabsentinferred5 of 211
CompactionConfig validationabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
Empty adapter rejectedabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
INT_MAX context_length rejectedabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
ModelConfig validationabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
ModelConfig validation — failure modesabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
ModelsConfig validationabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
ModelsConfig validation — default tier must existabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
Negative context_length rejectedabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
Zero context_length rejectedabsentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
gh#153 #42(iii): cpu_moe_layers is refused at configure time when absentinferred3 of 21: expert_offload_conflict_reason, validate, validate_allowed_tools1
Comprehensive config exercises every parse_* helperabsentinferred2 of 21: parse_config_file, resolve_model_path1
Consumer models block replaces global tiersabsentinferred2 of 21: parse_config_file, resolve_model_path1
Empty config file returns descriptive errorabsentinferred2 of 21: parse_config_file, resolve_model_path1
Layered merge — project overlays globalabsentinferred2 of 21: parse_config_file, resolve_model_path1
Non-map YAML root returns errorabsentinferred2 of 21: parse_config_file, resolve_model_path1
Nonexistent config file returns errorabsentinferred2 of 21: parse_config_file, resolve_model_path1
Parse config with tiersabsentinferred2 of 21: parse_config_file, resolve_model_path1
Parse minimal configabsentinferred2 of 21: parse_config_file, resolve_model_path1
Scalar YAML root returns errorabsentinferred2 of 21: parse_config_file, resolve_model_path1
gh#160 delegation.isolation parses, and a bad mode is refusedabsentinferred2 of 21: parse_config_file, resolve_model_path1
outside-root: the SHIPPED default config no longer hands the model absentinferred2 of 21: parse_config_file, resolve_model_path1
parse_config_file rejects missing file with read errorabsentinferred2 of 21: parse_config_file, resolve_model_path1
Allowed tools validationabsentinferred1 of 21: validate_allowed_tools1
Fallback tier referencing unknown tierabsentinferred1 of 21: validate_fallback_tier1
Handoff rules referencing nonexistent tierabsentinferred1 of 21: validate_handoff_rules1
Malformed allowed_tools rejectedabsentinferred1 of 21: validate_allowed_tools1
Tier map referencing nonexistent tierabsentinferred1 of 21: validate_tier_map1
gh#154 an unresolved tier grammar stem is warned about, not absentinferred1 of 21: warn_unresolved_tier_grammars1
v2.13.0: an absent cpu_moe_layers installs no overrides at allabsentinferred1 of 21: expert_offload_conflict_reason1
v2.13.0: impossible expert-offload combinations are refused loudlyabsentinferred1 of 21: expert_offload_conflict_reason1
Classification runs the router and yields a configured tierabsentinferred14 of 212
Cleared classification_prompt makes routing a no-op (RED control)absentinferred14 of 212
gh#141 app_context carries inline contentabsentinferred2 of 21: parse_config_file, resolve_model_path2
gh#141 every existing app_context spelling keeps its meaningabsentinferred2 of 21: parse_config_file, resolve_model_path2
mcp.bash.timeout_seconds parses, defaults to 30, and refuses a absentinferred2 of 21: parse_config_file, resolve_model_path2
mcp.filesystem outside_root_allow / outside_root_deny parse as absentinferred2 of 21: parse_config_file, resolve_model_path2
mcp.filesystem.allow_outside_root is tri-state and defaults to absentinferred2 of 21: parse_config_file, resolve_model_path2
Configure with null JSON returns errorabsentinferred15 of 213
Double-configure on one handle is refusedabsentinferred15 of 213
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred15 of 213
Three handles can coexistabsentinferred15 of 213
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred15 of 213
Two handles configure independentlyabsentinferred15 of 213
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred15 of 213
entropic_configure rejects NULL config_jsonabsentinferred15 of 213
entropic_configure rejects NULL handleabsentinferred15 of 213
entropic_configure_from_file rejects NULL handleabsentinferred15 of 213
entropic_configure_from_file rejects NULL pathabsentinferred15 of 213
entropic_configure_from_file rejects missing fileabsentinferred15 of 213
entropic_last_error reflects most-recent operation failureabsentinferred15 of 213
entropic_last_error returns per-handle state (v2.2.6)absentinferred15 of 213
entropic_register_mcp_server on a configured handle absentinferred15 of 213
entropic_run_messages with console logging disabled still absentinferred15 of 213
entropic_seconds_since_last_activity returns 0 before any run absentinferred15 of 213
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred15 of 213
gh#154 a tier grammar stem that cannot resolve YET still absentinferred15 of 213
gh#154 a tier grammar stem that resolves still configuresabsentinferred15 of 213
gh#154 a tier with no grammar is unaffectedabsentinferred15 of 213
gh#154 entropic_metrics_json carries a generations arrayabsentinferred15 of 213
gh#156 a frontmatter-less app_context fails configure absentinferred15 of 213
gh#156 a frontmatter-less constitution fails configure tooabsentinferred15 of 213
gh#156 a missing app_context path fails configureabsentinferred15 of 213
gh#156 a well-formed app_context file still configuresabsentinferred15 of 213
gh#156 app_context false still configuresabsentinferred15 of 213
gh#156 inline app_context content still configuresabsentinferred15 of 213
gh#158 entropic_interrupt_session targets exactly one runabsentinferred15 of 213
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred15 of 213
gh#163 entropic_configure_from_file carries app_contextabsentinferred15 of 213
gh#164 entropic_release_model names an unknown tierabsentinferred15 of 213
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred15 of 213
gh#165 entropic_session_context_set guards its preconditionsabsentinferred15 of 213
gh#165 entropic_session_context_set refuses the running sessionabsentinferred15 of 213
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred15 of 213
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred15 of 213
gh#203: followup returns delegation_id and summary from real storageabsentinferred15 of 213
gh#204: an unservable http_port fails configure loudlyabsentinferred15 of 213
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred15 of 213
gh#106 MTP routes through orchestrator->generate()absentinferred14 of 213
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred14 of 213
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred14 of 213
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred14 of 213
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred14 of 213
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred14 of 213
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred14 of 213
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred14 of 213
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred14 of 213
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred14 of 213
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred14 of 213
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred14 of 213
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred14 of 213
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred14 of 213
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred14 of 213
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred14 of 213
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred14 of 213
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred14 of 213
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred14 of 213
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred14 of 213
testRunStartingabsentinferred14 of 213
gh#133 fallout: the bundled default must not clobber explicit layersabsentinferred2 of 21: parse_config_file, resolve_model_path3
gh#133 mcp.plugins parses into MCPConfig::pluginsabsentinferred2 of 21: parse_config_file, resolve_model_path3
load_layered overlays a project config.local.yaml when presentabsentinferred2 of 21: parse_config_file, resolve_model_path3
load_layered's consumer-defaults layer overlays before projectabsentinferred2 of 21: parse_config_file, resolve_model_path3
gh#193: what cold prefill costs at each residency levelabsentinferred14 of 214
gh#163 a top-level app_context path survives the config layersabsentinferred2 of 21: parse_config_file, resolve_model_path4
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
entropic_configure_dir rejects NULL handleabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
gh#144: concurrent bridge clients queue instead of racingabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
gh#163 entropic_configure_dir carries app_contextabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
gh#163 the object and false spellings survive configure_dir tooabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
gh#95: identity grammar: field constrains that tier's outputabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars5
gh#158: interrupting one session leaves the other runningabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#158: metrics and context reads are safe during live runsabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#158: two concurrent sessions do not bleed into each otherabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#165 + gh#164: release the weights, keep the conversationabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#165: a dropped session restored from JSON keeps answeringabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#166: two workspaces on one handle do not read each other's absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#179: each workspace's sessions answer from its own app_context, absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#194: a plain generation publishes the prefill it performedabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#214: a prompt that does not fit fails the turn, typedabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#217: release is refused while another session is decodingabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#93: autoparser family parses a multi-parameter tool callabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
outside-root optional: a real model's reads outside its root absentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6
v2.14.5: a failed turn is an error carrying only its own textabsentinferred3 of 21: parse_config_file, resolve_model_path, warn_unresolved_tier_grammars6