gh#144: MTP prefill must not re-decode an unchanged prefix

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

What it checks (8)

  1. REQUIRE_FALSE(dir.empty()) observes models_dir via dir
  2. REQUIRE(fs::is_regular_file(trunk)) not attributed
  3. REQUIRE(fs::is_regular_file(head)) not attributed
  4. REQUIRE(backend.load(cfg)) observes load
  5. REQUIRE(backend.activate()) observes activate
  6. REQUIRE(prefill.size() == kTurns) not attributed
  7. CHECK(prefill[0] > 0) not attributed
  8. CHECK(prefill[i] <= prefill[1] + 8) 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#144: MTP prefill must not re-decode an unchanged prefix→models_dir→REQUIRE→load→activate→filler→WHEN→generate_mtp→last_prefill_tokens→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#144: MTP prefill must not re-decode an unchanged prefix · 8 checksgenerate_mtp… 7 calls …entropic_versionREQ-ABI-001 · inferredgenerate_mtp… 9 calls …entropic_session_bind_workspaceREQ-ABI-002 · inferredgenerate_mtp… 9 calls …entropic_last_errorREQ-API-003 · inferredgenerate_mtp… 9 calls …entropic_session_bind_workspaceREQ-API-005 · inferredgenerate_mtp… 9 calls …entropic_last_errorREQ-API-007 · inferredgenerate_mtp… 7 calls …entropic_versionREQ-API-008 · inferredgenerate_mtp… 10 calls …claim_exclusiveREQ-API-009 · inferredWHENfailure_detailREQ-API-012 · inferredgenerate_mtp… 5 calls …dispatchREQ-BRIDGE-001 · inferredunloadREQ-INFER-002 · inferredgenerate_mtpREQ-INFER-005 · inferredgenerate_mtp… 3 calls …to_common_samplingREQ-INFER-006 · inferred

and 12 more requirement paths, listed below.

Also reaches 48 requirements

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