gh#157: defer_load decides whether init touches the model at all

Tests › tests/unit/inference/deferred_load_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/inference/deferred_load_test.cpp:105 · its file's page

What it checks (5)

  1. REQUIRE_FALSE(orch.initialize(config)) observes initialize
  2. REQUIRE(orch.initialize(config)) observes initialize
  3. CHECK(orch.loaded_models().empty()) observes loaded_models
  4. CHECK(log.events.empty()) not attributed
  5. CHECK(orch.last_used_tier().empty()) observes last_used_tier

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#157: defer_load decides whether init touches the model at all→write_not_a_model→WHEN→one_tier→observe→initialize→REQUIRE→loaded_models→last_used_tier

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#157: defer_load decides whether init touches the model at all · 5 checksWHENfailure_detailREQ-API-012 · inferredinitializeactivate_routerensure_loadedload_and_activateREQ-INFER-002 · inferredinitializeload_bundled_grammarsload_bundledREQ-INFER-007 · inferredinitializecreate_tier_backendscreate_adapterREQ-INFER-012 · inferredinitializeensure_vram_budgetREQ-INFER-019 · inferredloaded_modelsREQ-INFER-020 · inferredinitialize… 3 calls …preload_adapters_for_modelREQ-INFER-023 · inferred
Also reaches 7 requirements

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