passed Passed in the packaged run.
What this test is for Why it exists
The fix is scoped to the corpus whose emptiness can have a cause OTHER than absence. A grading applied everywhere would trade one wrong answer for fifteen vague ones — which is the failure mode this whole change is a reaction to, inverted.
Given
absent = tools.search("no_such_token_anywhere_xyz", corpus="prose")inventory = tools.search("no_such_token_anywhere_xyz", corpus="threads")note = str(inventory.get("note", ""))→ → Then
✓ absent["count"] equals 0✓ absent["note"] contains "carries NO ingested markdown corpus"✓ absent["note"] contains "NOT definitive"✓ note does not contain "NOT definitive"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.
… 209 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 other filesother files other filesother files opt (line 118) opt main 210–211. _payload → export_search 210 export_search +1 more 212. corpus_payload → _symbol_corpus 212 _symbol_corpus ▶ test enters 213. _symbol_corpus → search_counted 213 search_counted 214. search_counted → connect 214 connect … 1 step 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 loop (line 1576) loop main 216. _memberdef_corpora → _expansion_sql 216 _expansion_sql 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 … 40 steps between
command-line usercommand-line user command-line usercommand-line user other filesother files other filesother files main 261–262. search_emptiness → _scope_payload 261 _scope_payload +1 more 263–267. one → _listed 263 _listed +4 more 268–269. _pruned_row → _absent 268 _absent +1 more … 22 steps between
command-line usercommand-line user command-line usercommand-line user command-line user clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.pyclew/query/symbols.py clew/query/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/_common.py clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.py other filesother files other filesother files other files opt (line 1012) opt opt (line 474) opt main 292. search_emptiness → _scope_sentence 292 _scope_sentence 293. _symbol_corpus → with_limit_disclosure 293 with_limit_disclosure 294. corpus_payload → _prose_corpus 294 _prose_corpus ▶ test enters 295. _prose_corpus → search_prose_graded 295 search_prose_graded 296. search_prose_graded → _query_tokens 296 _query_tokens 297. search_prose_graded → connect 297 connect 298. search_prose_graded → table_exists 298 table_exists 299–300. search_prose_graded → _fts_match 299 _fts_match +1 more 301. search_prose_graded → strip_xml 301 strip_xml 302. search_prose_graded → list 302 list 303. search_prose_graded → member_doc_rows 303 member_doc_rows 304. member_doc_rows → table_exists 304 table_exists 305. member_doc_rows → has_columns 305 has_columns 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 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. corpus_payload → _code_corpus 313 _code_corpus 314–315. _code_corpus → search_code 314 search_code +1 more … 10 steps between
command-line usercommand-line user command-line usercommand-line user clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py other filesother files other filesother files main 326. count_code → _has_table 326 _has_table 327. _code_corpus → with_limit_disclosure 327 with_limit_disclosure 328. corpus_payload → _files_corpus 328 _files_corpus ▶ test enters 329. _files_corpus → files_context 329 files_context 330. files_context → directory_rollup 330 directory_rollup … 14 steps between
command-line usercommand-line user command-line usercommand-line user 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 main 345. list_files → _matches 345 _matches 346. _files_corpus → files_miss 346 files_miss 347. corpus_payload → lock_roster 347 lock_roster ▶ test enters 348. lock_roster → connect 348 connect 349. lock_roster → table_exists 349 table_exists … 9 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 other filesother files other filesother files main 359–360. lock_roster → _object_route 359 _object_route +1 more 361. corpus_payload → one 361 one ▶ test enters 362. corpus_payload → one 362 one 363. corpus_payload → thread_roster 363 thread_roster 364. thread_roster → connect 364 connect 365. thread_roster → table_exists 365 table_exists 366. thread_roster → has_columns 366 has_columns 367. thread_roster → _thread_columns 367 _thread_columns … 8 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 other filesother files other filesother files main 376–377. thread_roster → _thread_origins 376 _thread_origins +1 more 378. corpus_payload → _config_found_on_the_wire 378 _config_found_on_the_wire ▶ test enters 379. _config_found_on_the_wire → _compact_gate_panel 379 _compact_gate_panel 380. corpus_payload → kconfig_space 380 kconfig_space … 20 later steps
2 more tests/test_emptiness.py:364 · its file's page
What it checks (4) assert absent["count"] == 0 not attributed assert "carries NO ingested markdown corpus" in absent["note"], ( "a corpus that was never built must say so — 'we looked and it is not there' and " "'there was nothing to look in' are different facts" ) not attributed assert "NOT definitive" in absent["note"] not attributed assert "NOT definitive" not in note, ( f"an inventory corpus's emptiness IS absence — grading it would be exactly the dilution " f"this test exists to prevent: {note!r}" ) not attributed 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.
Also reaches 6 requirements Its run touches their code; that is reach, not proof.