gh#165: a dropped session restored from JSON keeps answering

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

What it checks (12)

  1. REQUIRE(h != nullptr) not attributed
  2. REQUIRE_FALSE(run_session_transcript( h, "repo-a", "Remember this word, I will ask for it later: cinnamon").empty()) observes run_session_transcript
  3. REQUIRE_FALSE(stored.empty()) observes snapshot via stored
  4. REQUIRE(entropic_session_drop(h, "repo-a") == ENTROPIC_OK) observes entropic_session_drop
  5. REQUIRE(entropic_session_context_count(h, "repo-a", &after_drop) == ENTROPIC_OK) observes entropic_session_context_count
  6. REQUIRE(after_drop == 0) not attributed
  7. REQUIRE(entropic_session_context_set(h, "repo-a", stored.c_str()) == ENTROPIC_OK) observes entropic_session_context_set
  8. CHECK(snapshot(h, "repo-a") == stored) observes snapshot
  9. CHECK(contains_ci(answer, "cinnamon")) observes contains_ci
  10. REQUIRE(entropic_session_context_set(h, "repo-a", other) == ENTROPIC_OK) observes entropic_session_context_set
  11. CHECK(contains_ci(answer, "tungsten")) observes contains_ci
  12. CHECK_FALSE(contains_ci(convo, "cinnamon")) observes contains_ci

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#165: a dropped session restored from JSON keeps answering→model_gguf→setup→setup_failure→REQUIRE→run_session_transcript→snapshot→WHEN→entropic_session_drop→entropic_session_drop→entropic_session_context_count→entropic_session_context_count→entropic_session_context_set→entropic_session_context_set→final_answer→contains_ci

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#165: a dropped session restored from JSON keeps answering · 12 checkssetupentropic_createREQ-ABI-001 · inferredsetupentropic_grammar_register_fileREQ-ABI-002 · inferredsetupentropic_createREQ-API-002 · inferredsetupentropic_createREQ-API-003 · inferredsetupentropic_configure_dirREQ-API-004 · inferredsetupentropic_grammar_register_fileREQ-API-005 · inferredsnapshotentropic_freeREQ-API-008 · inferredrun_session_transcriptentropic_run_sessionREQ-API-009 · inferredsetup… 4 calls …rewire_observersREQ-API-010 · inferredfinal_answerextract_final_textREQ-API-012 · inferredsetup… 3 calls …init_orchestratorREQ-API-013 · inferredsetup… 3 calls …start_http_listenerREQ-BRIDGE-001 · inferred

and 66 more requirement paths, listed below.

Also reaches 80 requirements

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