gh#164: entropic_release_model frees VRAM through the C ABI

Tests › tests/model/test_gh164_release_reload.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/model/test_gh164_release_reload.cpp:190 · its file's page

What it checks (11)

  1. REQUIRE(handle != nullptr) not attributed
  2. REQUIRE(entropic_set_residency_observer( handle, [](entropic_residency_event_t event, const char*, const char*, size_t, void*) { if (event == ENTROPIC_RESIDENCY_EVICTED) { ++evicted; } }, nullptr) == ENTROPIC_OK) observes entropic_set_residency_observer
  3. REQUIRE(entropic_run(handle, "Say hello in three words.", &first) == ENTROPIC_OK) observes entropic_run
  4. REQUIRE(entropic_release_model(handle, nullptr) == ENTROPIC_OK) observes entropic_release_model
  5. CHECK(evicted >= 1) not attributed
  6. REQUIRE(entropic_residency_snapshot(handle, &snapshot) == ENTROPIC_OK) observes entropic_residency_snapshot
  7. CHECK(json.find("\"tier\":\"lead\"") == std::string::npos) not attributed
  8. REQUIRE(entropic_context_get(handle, &history) == ENTROPIC_OK) observes entropic_context_get
  9. CHECK(conversation.find("Say hello in three words.") != std::string::npos) not attributed
  10. REQUIRE(entropic_run(handle, "And now say goodbye.", &second) == ENTROPIC_OK) observes entropic_run
  11. REQUIRE(second != nullptr) 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

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#164: entropic_release_model frees VRAM through the C ABI · 11 checksentropic_release_modelREQ-ABI-001 · inferredentropic_runREQ-ABI-002 · inferredentropic_runREQ-API-002 · inferredsetupentropic_createREQ-API-003 · inferredsetupentropic_configure_dirREQ-API-004 · inferredentropic_runREQ-API-005 · inferredentropic_runREQ-API-008 · inferredentropic_runREQ-API-009 · inferredentropic_runREQ-API-010 · inferredentropic_runturn_outcomefailure_detailREQ-API-012 · inferredsetup… 3 calls …init_orchestratorREQ-API-013 · inferredsetup… 3 calls …start_http_listenerREQ-BRIDGE-001 · inferred

and 65 more requirement paths, listed below.

Also reaches 79 requirements

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