Orchestrator drives create_tier_backends + activation failure¶
Tests › tests/unit/inference/orchestrator_test.cpp
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)
REQUIRE_FALSE(ok)observesinitializeviaokREQUIRE(available.size() >= 2)observesavailable_modelsviaavailableREQUIRE(orch.get_adapter("lead") != nullptr)observesget_adapterREQUIRE(orch.get_adapter("eng") != nullptr)observesget_adapterREQUIRE(orch.get_backend("lead") != nullptr)observesget_backendREQUIRE(orch.get_backend("eng") != nullptr)observesget_backendREQUIRE(orch.has_vision_capable_tier())observeshas_vision_capable_tierREQUIRE_FALSE(orch.select_vision_tier().empty())observesselect_vision_tierREQUIRE(orch.can_handoff("lead", "eng"))observescan_handoffREQUIRE(orch.can_handoff("eng", "lead"))observescan_handoffREQUIRE_FALSE(orch.can_handoff("lead", "no-such"))observescan_handoffREQUIRE(loaded.empty())observesloaded_modelsvialoadedREQUIRE(snap.find("residency") != std::string::npos)observesresidency_snapshot_jsonviasnapREQUIRE(snap.find("vram_budget_bytes") != std::string::npos)observesresidency_snapshot_jsonviasnapREQUIRE(fp > 0)observestier_footprint_bytesviafpREQUIRE(fp_eng > 0)observestier_footprint_bytesviafp_engREQUIRE(fp_missing == 0)observestier_footprint_bytesviafp_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→shutdownWhat 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.
Also reaches 7 requirements
Its run touches their code; that is reach, not proof.
- REQ-INFER-002 inferred
- REQ-INFER-007 inferred
- REQ-INFER-012 inferred
- REQ-INFER-019 inferred
- REQ-INFER-020 inferred
- REQ-INFER-023 inferred
- REQ-INFER-025 inferred