gh#158: a batch does not wipe another session’s resident KV¶
Tests › tests/model/test_gh158_concurrent_sessions.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/model/test_gh158_concurrent_sessions.cpp:394 · its file's page
What it checks (6)
REQUIRE(backend.load(cfg))observesloadREQUIRE(backend.activate())observesactivateREQUIRE(backend.generate(msgs, params).error_code == 0)observesgenerateCHECK(clears_after == clears_before)observeskv_full_clear_countviaclears_afterCHECK(results.size() == 2)observesgenerate_batchviaresultsCHECK(r.error_code == 0)observesgenerateviar
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#158: a batch does not wipe another session's resident KV→model_gguf→REQUIRE→load→activate→generate→kv_full_clear_count→WHEN→generate_batch→deactivate→unloadWhat 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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-002 inferred
- REQ-INFER-005 inferred