gh#130 a trailing empty assistant turn does not hide the answer¶
Tests › tests/unit/api/final_text_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/api/final_text_test.cpp:31 · its file's page
What it checks (5)
CHECK(text == "BRULE-028 limits returns to 3.")observesextract_final_textviatextCHECK(final_text_or_reason(convo).rfind("(no response", 0) != 0)observesfinal_text_or_reasonCHECK(text.find("sop-005-module-compliance.md") != std::string::npos)observesextract_final_textviatextCHECK(extract_final_text(convo) == "hello")observesextract_final_textCHECK(extract_final_text(convo) == "fresh")observesextract_final_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#130 a trailing empty assistant turn does not hide the answer→WHEN→extract_final_text→final_text_or_reasonWhat 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.