passed Passed in the packaged run.
What this test is for Why it exists
THE NOTE, AND BOTH DIRECTIONS OF IT. `_many`'s default wording — "a definitive empty result… Do not retry this query or fall back to guessing" — is correct for a tool whose emptiness can only mean absence, and was flatly wrong for prose. It is the specific sentence that sent a graded agent to grep.
Verifies REQ-DDB-QUERY-002
Given
db = _member_doc_db(tmp_path)→ When
elsewhere, extra = prose_emptiness(db, "PROJ_ALLOW_PRIVATE_ACCESS")nowhere, _extra = prose_emptiness(db, "zzz_absent_token_qqq")→ Then
✓ elsewhere contains "NOT DEFINITIVE"✓ extra contains "token_hits"✓ nowhere contains "definitive empty result"What it exercises The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
… 214 earlier steps
command-line usercommand-line user command-line usercommand-line user clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.pyclew/query/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py loop (line 1576) loop main 215–216. search_counted → _memberdef_corpora 215 _memberdef_corpora +1 more 217. _expansion_sql → has_columns 217 has_columns 218. has_columns → table_exists 218 table_exists 219. _memberdef_corpora → _memberdef_candidates 219 _memberdef_candidates 220. _memberdef_candidates → table_exists 220 table_exists … 12 steps between
command-line usercommand-line user command-line usercommand-line user clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.pyclew/query/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py main 233. _class_candidates → _search_rank 233 _search_rank 234. _class_candidates → class_rows 234 class_rows 235. class_rows → table_exists 235 table_exists 236. class_rows → strip_xml 236 strip_xml 237. search_counted → _config_candidates 237 _config_candidates … 7 steps between
command-line usercommand-line user command-line usercommand-line user clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.pyclew/query/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py main 245. _file_candidates → _doc_brief 245 _doc_brief 246. _file_candidates → file_doc_rows 246 file_doc_rows 247. file_doc_rows → table_exists 247 table_exists 248. _file_candidates → undocumented_path_rows 248 undocumented_path_rows 249. undocumented_path_rows → table_exists 249 table_exists … 25 steps between
command-line usercommand-line user command-line usercommand-line user clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.pyclew/query/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py other filesother files other filesother files opt (line 1968) opt opt (line 333) opt loop (line 1856) loop opt (line 1902) opt main 275. unsearched_corpora → _unread_kind_counts 275 _unread_kind_counts 276. search_emptiness → token_hit_counts 276 token_hit_counts 277. token_hit_counts → connect 277 connect 278. token_hit_counts → _one_token_count 278 _one_token_count 279. _one_token_count → table_exists 279 table_exists 280. _one_token_count → _expansion_sql 280 _expansion_sql 281. _one_token_count → class_rows 281 class_rows 282. _one_token_count → file_doc_rows 282 file_doc_rows 283–284. search_emptiness → _conjunction_note 283 _conjunction_note +1 more … 21 steps between
command-line usercommand-line user command-line usercommand-line user clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.pyclew/query/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py other filesother files other filesother files opt (line 474) opt main 306. search_prose_graded → _collapse 306 _collapse 307. _prose_corpus → prose_emptiness 307 prose_emptiness 308. prose_emptiness → has_prose_corpus 308 has_prose_corpus ▶ test enters 309. has_prose_corpus → connect 309 connect 310. has_prose_corpus → table_exists 310 table_exists 311. prose_emptiness → token_hit_counts 311 token_hit_counts 312. prose_emptiness → _render_counts 312 _render_counts 313–314. corpus_payload → _code_corpus 313 _code_corpus +1 more … 86 later steps
2 more tests/test_query.py:1930 · its file's page
What it checks (3) assert "NOT DEFINITIVE" in elsewhere, f"the index holds this name: {elsewhere}" not attributed assert "token_hits" in extra, "and the claim must be checkable, not merely worded" not attributed assert "definitive empty result" in nowhere, ( f"a token in NO corpus is a definitive negative — refusing to say so would be the " f"dilution the anti-dilution test guards: {nowhere}" ) not attributed Where the product reaches it main → query_main → _payload → export_search → corpus_payload → _prose_corpus → prose_emptiness (flow) Call flow test_a_prose_miss_is_graded_by_what_the_index_holds_elsewhere→ _member_doc_db → prose_emptiness 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.
Requirements it verifies (1) Also reaches 3 requirements Its run touches their code; that is reach, not proof.