Orchestrator drives create_tier_backends + activation failure

Tests › tests/unit/inference/orchestrator_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/orchestrator_test.cpp:244 · its file's page

What it checks (17)

  1. REQUIRE_FALSE(ok) observes initialize via ok
  2. REQUIRE(available.size() >= 2) observes available_models via available
  3. REQUIRE(orch.get_adapter("lead") != nullptr) observes get_adapter
  4. REQUIRE(orch.get_adapter("eng") != nullptr) observes get_adapter
  5. REQUIRE(orch.get_backend("lead") != nullptr) observes get_backend
  6. REQUIRE(orch.get_backend("eng") != nullptr) observes get_backend
  7. REQUIRE(orch.has_vision_capable_tier()) observes has_vision_capable_tier
  8. REQUIRE_FALSE(orch.select_vision_tier().empty()) observes select_vision_tier
  9. REQUIRE(orch.can_handoff("lead", "eng")) observes can_handoff
  10. REQUIRE(orch.can_handoff("eng", "lead")) observes can_handoff
  11. REQUIRE_FALSE(orch.can_handoff("lead", "no-such")) observes can_handoff
  12. REQUIRE(loaded.empty()) observes loaded_models via loaded
  13. REQUIRE(snap.find("residency") != std::string::npos) observes residency_snapshot_json via snap
  14. REQUIRE(snap.find("vram_budget_bytes") != std::string::npos) observes residency_snapshot_json via snap
  15. REQUIRE(fp > 0) observes tier_footprint_bytes via fp
  16. REQUIRE(fp_eng > 0) observes tier_footprint_bytes via fp_eng
  17. REQUIRE(fp_missing == 0) observes tier_footprint_bytes via fp_missing

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

Orchestrator drives create_tier_backends + activation failure→make_placeholder_gguf→make_load_failure_config→initialize→available_models→REQUIRE→get_adapter→get_backend→has_vision_capable_tier→select_vision_tier→can_handoff→loaded_models→residency_snapshot_json→tier_footprint_bytes→clear_all_prompt_caches→shutdown

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.

Orchestrator drives create_tier_backends + activation failure · 17 checksshutdownREQ-INFER-002 · inferredinitializeload_bundled_grammarsload_bundledREQ-INFER-007 · inferredinitializecreate_tier_backendscreate_adapterREQ-INFER-012 · inferredinitializeensure_vram_budgetREQ-INFER-019 · inferredshutdownREQ-INFER-020 · inferredinitialize… 3 calls …preload_adapters_for_modelREQ-INFER-023 · inferredhas_vision_capable_tierREQ-INFER-025 · inferred
Also reaches 7 requirements

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