gh#165: a conversation can be replaced wholesale

Tests › tests/unit/core/session_conversation_test.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/unit/core/session_conversation_test.cpp:201 · its file's page

What it checks (7)

  1. REQUIRE(engine.message_count_for("repo-a") > 0) observes message_count_for
  2. REQUIRE(engine.set_session_messages("repo-a", restored)) observes set_session_messages
  3. REQUIRE(msgs.size() == 2) observes messages_for via msgs
  4. CHECK(msgs[0].content == "restored prompt") observes messages_for via msgs
  5. CHECK(msgs[1].content == "restored turn") observes messages_for via msgs
  6. REQUIRE(msgs.size() == 2) observes messages_for via msgs
  7. CHECK(msgs[1].metadata.at("tool_name") == "filesystem.read") observes messages_for via msgs

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 conversation can be replaced wholesale→make_mock_interface→set_active_session→REQUIRE→message_count_for→WHEN→set_session_messages→messages_for

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 conversation can be replaced wholesale · 7 checksWHENfailure_detailREQ-API-012 · inferredset_active_sessionREQ-LOOP-001 · inferredset_session_messagesREQ-LOOP-010 · inferred
Also reaches 3 requirements

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