passed Passed in the packaged run.
What this test is for Why it exists
A bare empty list is indistinguishable from a broken tool. An earlier benchmark of a different query layer was invalidated exactly this way: agents read empty responses as failures, abandoned the index, and guessed names instead. So an empty result must SAY it is empty and say it is not an error.
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-008
Given
empty = tools.search("no_such_token_anywhere_xyz", corpus="prose")note = empty["note"].lower()2 more populated = tools.search("telemetry")doss = tools.dossier("main")→ → Then
✓ empty["count"] equals 0✓ empty["results"] equals []✓ empty contains "note"✓ note contains "not an error"✓ empty["note"] contains "no_such_token_anywhere_xyz"✓ populated["count"] is greater than 0✓ populated does not contain "note"✓ doss["callers"] equals []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.
… 70 earlier steps
command-line usercommand-line user command-line usercommand-line user other filesother files other filesother files loop (line 134) loop loop (line 135) loop opt (line 385) opt main 71–72. repo_source_files → _scandir 71 _scandir +1 more 73. _ts_language_for → _grammar_available 73 _grammar_available 74–75. _grammar_available → has_language 74 has_language +1 more 76. _ts_language_for → _try_import_ts_module 76 _try_import_ts_module 77–80. build_context → scope_membership 77 scope_membership +3 more 81. _ast_parse_one_file → _ts_language_for 81 _ts_language_for ▶ test enters 82–85. _ast_parse_one_file → _cached_parser 82 _cached_parser +3 more 86–87. _ast_parse_one_file → _disambiguate_header 86 _disambiguate_header +1 more … 122 steps between
command-line usercommand-line user command-line usercommand-line user command-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/symbols.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/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 clew/query/corpus.py other filesother files other filesother files other files other files opt (line 118) opt loop (line 1576) loop loop (line 1494) loop opt (line 1497) opt loop (line 1507) loop 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 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 221. _memberdef_candidates → documented_first 221 documented_first 222–223. documented_first → records_provenance 222 records_provenance +1 more 224. _memberdef_candidates → symbol_provenance 224 symbol_provenance 225. symbol_provenance → records_provenance 225 records_provenance 226. _memberdef_candidates → self_declared_paths 226 self_declared_paths 227–228. _memberdef_candidates → _one_line 227 _one_line +1 more 229. _memberdef_candidates → strip_xml 229 strip_xml 230. _memberdef_candidates → _search_rank 230 _search_rank 231. _memberdef_candidates → symbol_provenance 231 symbol_provenance 232. search_counted → _class_candidates 232 _class_candidates 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 238. _config_candidates → _search_rank 238 _search_rank 239. _config_candidates → gate_symbol_rows 239 gate_symbol_rows 240. gate_symbol_rows → table_exists 240 table_exists 241. gate_symbol_rows → has_columns 241 has_columns 242. search_counted → _file_candidates 242 _file_candidates 243. _file_candidates → self_declared_paths 243 self_declared_paths 244–245. _file_candidates → _search_rank 244 _search_rank +1 more 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 250. undocumented_path_rows → has_columns 250 has_columns 251. undocumented_path_rows → table_exists 251 table_exists 252. _symbol_corpus → search_emptiness 252 search_emptiness 253. search_emptiness → index_scope 253 index_scope 254. index_scope → connect 254 connect … 6 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 261–262. search_emptiness → _scope_payload 261 _scope_payload +1 more 263–269. one → _listed 263 _listed +6 more 270. search_emptiness → unsearched_corpora 270 unsearched_corpora 271. unsearched_corpora → connect 271 connect … 3 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 … 6 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 1014) opt opt (line 474) opt main 291. has_file_docs → table_exists 291 table_exists 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. search_prose_graded → _fts_match 299 _fts_match 300. search_prose_graded → _fts_match 300 _fts_match 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 … 3 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 other filesother files other filesother files main 353–354. lock_roster → nestings_on 353 nestings_on +1 more 355. _layer_present → table_exists 355 table_exists ▶ test enters 356. nestings_on → table_exists 356 table_exists 357. lock_roster → _nesting_pairs 357 _nesting_pairs … 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 other filesother files other filesother files loop ×2 (line 944) loop ×2 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 368. _thread_columns → has_columns 368 has_columns ▶ test enters 369–370. _thread_columns → has_columns 369 has_columns ×2 … 5 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 … 11 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 other filesother files other filesother files loop (line 660) loop main 392. _gates → table_exists 392 table_exists 393. _gates → _gate_columns 393 _gate_columns 394. _gate_columns → has_columns 394 has_columns ▶ test enters 395. _gate_columns → has_columns 395 has_columns 396. _gates → _with_defaults 396 _with_defaults 397. _with_defaults → table_exists 397 table_exists ▶ test enters 398. _with_defaults → _defaults_for_macros 398 _defaults_for_macros 399. _with_defaults → decided_default 399 decided_default … 1 later step
3 more tests/test_mcp_server.py:1517 · its file's page
What it checks (8) assert empty["count"] == 0 not attributed assert empty["results"] == [] not attributed assert "note" in empty, "an empty result must explain itself" not attributed assert "not an error" in note not attributed assert "no_such_token_anywhere_xyz" in empty["note"], "the note must name what was searched for" not attributed assert populated["count"] > 0 not attributed assert "note" not in populated, "a populated result needs no disclaimer" not attributed assert doss["callers"] == [], "an always-present envelope key must survive at empty" 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.
Requirements it verifies (2) Also reaches 15 requirements Its run touches their code; that is reach, not proof.