REQ-CFG-002: Whole-block replace semantics for models and routing across layers

← Requirements

What it requires

  1. GIVEN a global config carrying an eng tier, WHEN a consumer/project layer that declares models: with lead and researcher is applied, THEN only those two tiers survive, eng is gone, and default_tier comes from the new layer.
  2. GIVEN a layer with no models: key, THEN prior tiers are preserved intact and only the fields it does declare are overlaid.
tier
NOT_RUN

Where it lives

  • src/config5

See it on the map

How it is met

implemented byresults (131 tests)load_consumer_layerload_layeredload_project_layerparse_models_configyaml_has_key131 absent131 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (131)

Reached through calls

131 tests: 131 absent

testresultlinked byimplementers exercisedcalls away
gh#133 fallout: the bundled default must not clobber explicit layersabsentinferred5 of 51
gh#133 mcp.plugins parses into MCPConfig::pluginsabsentinferred5 of 51
load_layered overlays a project config.local.yaml when presentabsentinferred5 of 51
load_layered's consumer-defaults layer overlays before projectabsentinferred5 of 51
gh#163 a top-level app_context path survives the config layersabsentinferred5 of 52
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred5 of 53
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred5 of 53
entropic_configure_dir rejects NULL handleabsentinferred5 of 53
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred5 of 53
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred5 of 53
gh#144: concurrent bridge clients queue instead of racingabsentinferred5 of 53
gh#163 entropic_configure_dir carries app_contextabsentinferred5 of 53
gh#163 the object and false spellings survive configure_dir tooabsentinferred5 of 53
gh#95: identity grammar: field constrains that tier's outputabsentinferred5 of 53
A tier selects a bundled model by family/size/quantabsentinferred1 of 5: parse_models_config3
Comprehensive config exercises every parse_* helperabsentinferred1 of 5: parse_models_config3
Consumer models block replaces global tiersabsentinferred1 of 5: parse_models_config3
Empty config file returns descriptive errorabsentinferred1 of 5: parse_models_config3
Layered merge — project overlays globalabsentinferred1 of 5: parse_models_config3
Non-map YAML root returns errorabsentinferred1 of 5: parse_models_config3
Nonexistent config file returns errorabsentinferred1 of 5: parse_models_config3
Parse config with tiersabsentinferred1 of 5: parse_models_config3
Parse minimal configabsentinferred1 of 5: parse_models_config3
Scalar YAML root returns errorabsentinferred1 of 5: parse_models_config3
gh#108 (v2.10.0): speculative.mtp and static grammar can coexist absentinferred1 of 5: parse_models_config3
gh#148: gpu_layers accepts a count or the word autoabsentinferred1 of 5: parse_models_config3
gh#153 #42(iii): cpu_moe_layers parses, and is absent by defaultabsentinferred1 of 5: parse_models_config3
gh#157: models.defer_load parses and is not mistaken for a tierabsentinferred1 of 5: parse_models_config3
gh#160 delegation.isolation parses, and a bad mode is refusedabsentinferred1 of 5: parse_models_config3
gh#211: malformed YAML is a returned error, never an abortabsentinferred1 of 5: parse_models_config3
gh#94: per-tier sampler knobs parse from YAML into TierConfigabsentinferred1 of 5: parse_models_config3
load_config_from_string drives parse_config_string + validateabsentinferred1 of 5: parse_models_config3
outside-root: the SHIPPED default config no longer hands the model absentinferred1 of 5: parse_models_config3
parse_config_file rejects missing file with read errorabsentinferred1 of 5: parse_models_config3
gh#158: interrupting one session leaves the other runningabsentinferred5 of 54
gh#158: metrics and context reads are safe during live runsabsentinferred5 of 54
gh#158: two concurrent sessions do not bleed into each otherabsentinferred5 of 54
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred5 of 54
gh#165 + gh#164: release the weights, keep the conversationabsentinferred5 of 54
gh#165: a dropped session restored from JSON keeps answeringabsentinferred5 of 54
gh#166: two workspaces on one handle do not read each other's absentinferred5 of 54
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred5 of 54
gh#179: each workspace's sessions answer from its own app_context, absentinferred5 of 54
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred5 of 54
gh#194: a plain generation publishes the prefill it performedabsentinferred5 of 54
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred5 of 54
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred5 of 54
gh#214: a prompt that does not fit fails the turn, typedabsentinferred5 of 54
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred5 of 54
gh#217: release is refused while another session is decodingabsentinferred5 of 54
gh#93: autoparser family parses a multi-parameter tool callabsentinferred5 of 54
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred5 of 54
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred5 of 54
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred5 of 54
outside-root optional: a real model's reads outside its root absentinferred5 of 54
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred5 of 54
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred5 of 54
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred5 of 54
v2.14.5: a failed turn is an error carrying only its own textabsentinferred5 of 54
gh#141 app_context carries inline contentabsentinferred1 of 5: parse_models_config4
gh#141 every existing app_context spelling keeps its meaningabsentinferred1 of 5: parse_models_config4
load_config_from_file forwards file errors through the chainabsentinferred1 of 5: parse_models_config4
load_config_from_file is the single-file public entryabsentinferred1 of 5: parse_models_config4
mcp.bash.timeout_seconds parses, defaults to 30, and refuses a absentinferred1 of 5: parse_models_config4
mcp.filesystem outside_root_allow / outside_root_deny parse as absentinferred1 of 5: parse_models_config4
mcp.filesystem.allow_outside_root is tri-state and defaults to absentinferred1 of 5: parse_models_config4
Configure with null JSON returns errorabsentinferred1 of 5: parse_models_config5
Double-configure on one handle is refusedabsentinferred1 of 5: parse_models_config5
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred1 of 5: parse_models_config5
Three handles can coexistabsentinferred1 of 5: parse_models_config5
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred1 of 5: parse_models_config5
Two handles configure independentlyabsentinferred1 of 5: parse_models_config5
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred1 of 5: parse_models_config5
entropic_configure rejects NULL config_jsonabsentinferred1 of 5: parse_models_config5
entropic_configure rejects NULL handleabsentinferred1 of 5: parse_models_config5
entropic_last_error returns per-handle state (v2.2.6)absentinferred1 of 5: parse_models_config5
entropic_register_mcp_server on a configured handle absentinferred1 of 5: parse_models_config5
entropic_run_messages with console logging disabled still absentinferred1 of 5: parse_models_config5
entropic_seconds_since_last_activity returns 0 before any run absentinferred1 of 5: parse_models_config5
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred1 of 5: parse_models_config5
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred1 of 5: parse_models_config5
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred1 of 5: parse_models_config5
gh#154 a tier grammar stem that cannot resolve YET still absentinferred1 of 5: parse_models_config5
gh#154 a tier grammar stem that resolves still configuresabsentinferred1 of 5: parse_models_config5
gh#154 a tier with no grammar is unaffectedabsentinferred1 of 5: parse_models_config5
gh#154 entropic_metrics_json carries a generations arrayabsentinferred1 of 5: parse_models_config5
gh#156 a frontmatter-less app_context fails configure absentinferred1 of 5: parse_models_config5
gh#156 a frontmatter-less constitution fails configure tooabsentinferred1 of 5: parse_models_config5
gh#156 a missing app_context path fails configureabsentinferred1 of 5: parse_models_config5
gh#156 a well-formed app_context file still configuresabsentinferred1 of 5: parse_models_config5
gh#156 app_context false still configuresabsentinferred1 of 5: parse_models_config5
gh#156 inline app_context content still configuresabsentinferred1 of 5: parse_models_config5
gh#158 entropic_interrupt_session targets exactly one runabsentinferred1 of 5: parse_models_config5
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred1 of 5: parse_models_config5
gh#164 entropic_release_model names an unknown tierabsentinferred1 of 5: parse_models_config5
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred1 of 5: parse_models_config5
gh#165 entropic_session_context_set guards its preconditionsabsentinferred1 of 5: parse_models_config5
gh#165 entropic_session_context_set refuses the running sessionabsentinferred1 of 5: parse_models_config5
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred1 of 5: parse_models_config5
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred1 of 5: parse_models_config5
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred1 of 5: parse_models_config5
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred1 of 5: parse_models_config5
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred1 of 5: parse_models_config5
gh#203: followup returns delegation_id and summary from real storageabsentinferred1 of 5: parse_models_config5
gh#204: an unservable http_port fails configure loudlyabsentinferred1 of 5: parse_models_config5
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred1 of 5: parse_models_config5
load_config drives global + project + env + validate chainabsentinferred1 of 5: parse_models_config5
Classification runs the router and yields a configured tierabsentinferred1 of 5: parse_models_config6
Cleared classification_prompt makes routing a no-op (RED control)absentinferred1 of 5: parse_models_config6
entropic_configure_from_file rejects NULL handleabsentinferred1 of 5: parse_models_config6
entropic_configure_from_file rejects NULL pathabsentinferred1 of 5: parse_models_config6
entropic_configure_from_file rejects missing fileabsentinferred1 of 5: parse_models_config6
entropic_last_error reflects most-recent operation failureabsentinferred1 of 5: parse_models_config6
gh#163 entropic_configure_from_file carries app_contextabsentinferred1 of 5: parse_models_config6
gh#193: what cold prefill costs at each residency levelabsentinferred1 of 5: parse_models_config6
gh#106 MTP routes through orchestrator->generate()absentinferred1 of 5: parse_models_config7
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred1 of 5: parse_models_config7
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred1 of 5: parse_models_config7
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred1 of 5: parse_models_config7
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred1 of 5: parse_models_config7
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred1 of 5: parse_models_config7
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred1 of 5: parse_models_config7
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred1 of 5: parse_models_config7
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred1 of 5: parse_models_config7
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred1 of 5: parse_models_config7
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred1 of 5: parse_models_config7
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred1 of 5: parse_models_config7
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred1 of 5: parse_models_config7
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred1 of 5: parse_models_config7
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred1 of 5: parse_models_config7
testRunStartingabsentinferred1 of 5: parse_models_config7