gh#94: per-tier sampler knobs parse from YAML into TierConfig

Tests › tests/unit/config/loader_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/config/loader_test.cpp:975 · its file's page

What it checks (22)

  1. REQUIRE(err.empty()) observes load_config_from_string via err
  2. REQUIRE(config.models.tiers.count("lead") == 1) not attributed
  3. REQUIRE(t.temperature.has_value()) not attributed
  4. CHECK(*t.temperature == Catch::Approx(0.3f)) not attributed
  5. REQUIRE(t.enable_thinking.has_value()) not attributed
  6. CHECK(*t.enable_thinking == false) not attributed
  7. REQUIRE(t.top_k.has_value()) not attributed
  8. CHECK(*t.top_k == 20) not attributed
  9. REQUIRE(t.top_p.has_value()) not attributed
  10. CHECK(*t.top_p == Catch::Approx(0.85f)) not attributed
  11. REQUIRE(t.min_p.has_value()) not attributed
  12. CHECK(*t.min_p == Catch::Approx(0.05f)) not attributed
  13. REQUIRE(t.repeat_penalty.has_value()) not attributed
  14. CHECK(*t.repeat_penalty == Catch::Approx(1.2f)) not attributed
  15. REQUIRE(t.max_output_tokens.has_value()) not attributed
  16. CHECK(*t.max_output_tokens == 2048) not attributed
  17. REQUIRE(err.empty()) observes load_config_from_string via err
  18. REQUIRE(config.models.tiers.count("lead") == 1) not attributed
  19. CHECK_FALSE(t.temperature.has_value()) not attributed
  20. CHECK_FALSE(t.enable_thinking.has_value()) not attributed
  21. CHECK_FALSE(t.top_k.has_value()) not attributed
  22. CHECK_FALSE(t.repeat_penalty.has_value()) not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

gh#94: per-tier sampler knobs parse from YAML into TierConfig→load_test_registry→WHEN→load_config_from_string→REQUIRE

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

gh#94: per-tier sampler knobs parse from YAML into TierConfig · 22 checksWHENfailure_detailREQ-API-012 · inferredload_config_from_stringREQ-CFG-001 · inferredload_config_from_stringparse_config_stringparse_models_configREQ-CFG-002 · inferredload_test_registryloadREQ-CFG-003 · inferredload_config_from_stringparse_config_stringparse_models_configparse_model_configREQ-CFG-005 · inferredload_config_from_stringREQ-CFG-006 · inferredload_config_from_stringparse_config_stringparse_optional_sectionsparse_delegation_configREQ-DELEG-005 · inferredload_config_from_stringvalidate_configvalidatesession_pool_conflict_reasonREQ-INFER-019 · inferredload_config_from_stringvalidate_configvalidateREQ-INFER-027 · inferredload_config_from_string… 4 calls …parse_absolute_path_listREQ-MCP-021 · inferredload_config_from_string… 5 calls …parse_bash_configREQ-MCP-023 · inferredload_config_from_stringparse_config_stringparse_models_configparse_model_configREQ-TYPE-005 · inferred
Also reaches 12 requirements

Its run touches their code; that is reach, not proof.