gh#212: a completion call written as text is never the answer

Tests › tests/unit/api/final_text_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/api/final_text_test.cpp:330 · its file's page

What it checks (12)

  1. CHECK(extract_final_text(convo, "What changed in the last commit?") == "The last commit locked down git.") observes extract_final_text
  2. CHECK(facade_text::is_completion_imitation( R"({"action":"complete","summary":"x"})")) observes is_completion_imitation
  3. CHECK_FALSE(facade_text::is_completion_imitation( "The action was complete.")) observes is_completion_imitation
  4. CHECK_FALSE(facade_text::is_completion_imitation( R"({"action":"read","path":"x"})")) observes is_completion_imitation
  5. CHECK(extract_final_text(convo, nullptr, &names) == "Red") observes extract_final_text
  6. CHECK(facade_text::is_completion_imitation("git.log", &names)) observes is_completion_imitation
  7. CHECK_FALSE(facade_text::is_completion_imitation( "Run git.log to see it.", &names)) observes is_completion_imitation
  8. CHECK_FALSE(facade_text::is_completion_imitation("git.status", &names)) observes is_completion_imitation
  9. CHECK(text.rfind("REASON", 0) == 0) observes failure_detail via text
  10. CHECK(text.find("did not complete") != std::string::npos) observes failure_detail via text
  11. CHECK(text.find("draft answer to Q2") != std::string::npos) observes failure_detail via text
  12. CHECK(text.find("\"action\"") == std::string::npos) observes failure_detail via text

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#212: a completion call written as text is never the answer→extract_final_text→is_completion_imitation→tool_names_of→WHEN→failure_detail

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#212: a completion call written as text is never the answer · 12 checksextract_final_textREQ-API-012 · inferred
Also reaches 1 requirement

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