gh#97: prompt-cache/warm-keep must not corrupt KV on a hybrid model

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

What it checks (6)

  1. REQUIRE(home != nullptr) not attributed
  2. REQUIRE(backend.load(cfg)) observes load
  3. REQUIRE(backend.activate()) observes activate
  4. CHECK(turns[i].r.error_code == 0) not attributed
  5. CHECK_FALSE(turns[i].r.content.empty()) not attributed
  6. CHECK(turns[i].pos_max < turns[i].input + params.max_tokens) 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

gh#97: prompt-cache/warm-keep must not corrupt KV on a hybrid model→REQUIRE→load→activate→WHEN→filler→generate→last_input_tokens→kv_pos_max→deactivate→unload

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#97: prompt-cache/warm-keep must not corrupt KV on a hybrid model · 6 checksWHENfailure_detailREQ-API-012 · inferredunloadREQ-INFER-002 · inferred
Also reaches 2 requirements

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