gh#163 a top-level app_context path survives the config layers

Tests › tests/unit/config/app_context_layering_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/app_context_layering_test.cpp:145 · its file's page

What it checks (18)

  1. REQUIRE(config.app_context.has_value()) observes layered via config
  2. CHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md") observes layered via config
  3. CHECK_FALSE(config.app_context_disabled) observes layered via config
  4. CHECK_FALSE(config.app_context_content.has_value()) observes layered via config
  5. REQUIRE(config.app_context.has_value()) observes layered via config
  6. CHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md") observes layered via config
  7. REQUIRE(config.app_context.has_value()) observes layered via config
  8. CHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md") observes layered via config
  9. REQUIRE(config.app_context.has_value()) observes layered via config
  10. CHECK(config.app_context->string() == "/abs/project.md") observes layered via config
  11. CHECK(config.app_context_disabled) observes layered via config
  12. CHECK_FALSE(config.app_context.has_value()) observes layered via config
  13. REQUIRE(config.app_context_content.has_value()) observes layered via config
  14. CHECK(config.app_context_content->find("Inline") != std::string::npos) observes layered via config
  15. CHECK(err.empty()) observes load_app_context via err
  16. CHECK(body.find("Inline") != std::string::npos) not attributed
  17. REQUIRE(config.app_context.has_value()) observes layered via config
  18. CHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md") observes layered via config

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#163 a top-level app_context path survives the config layers→global→models_block→layered→REQUIRE→project→load_app_context

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#163 a top-level app_context path survives the config layers · 18 checkslayeredload_layeredREQ-CFG-001 · inferredlayeredload_layeredREQ-CFG-002 · inferredlayeredloadREQ-CFG-003 · inferredlayered… 5 calls …parse_model_configREQ-CFG-005 · inferredlayeredload_layeredload_consumer_layerparse_config_fileREQ-CFG-006 · inferredlayeredload_layeredREQ-CFG-007 · inferredlayeredload_layeredload_bundled_defaultresolve_data_dirREQ-CFG-008 · inferredlayered… 5 calls …parse_delegation_configREQ-DELEG-005 · inferredlayered… 7 calls …parse_absolute_path_listREQ-MCP-021 · inferredlayered… 8 calls …parse_bash_configREQ-MCP-023 · inferredload_app_contextREQ-TYPE-005 · inferred
Also reaches 11 requirements

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