passed Passed in the packaged run.
What this test is for Why it exists
THE DISCLOSURE IS THE HALF THAT KEEPS THE FIX HONEST. Relaxing FTS5's implicit AND to an OR removes a false negative — measured on mbedtls, five natural phrasings of a question the corpus could answer all returned nothing, and the agent grepped instead. Returning those rows WITHOUT saying the query was relaxed just swaps that for a false positive: "matched some of your terms" is a weaker claim than "matched all of them", and a reader who cannot tell them apart is no better off.
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
widened = tools.search("chime zzqqxwv", corpus="prose")exact = tools.search("chime", corpus="prose")→ → Then
✓ widened["count"] is greater than 0✓ widened["matched"] equals "some terms"✓ widened["note"] contains "RELAXED"✓ widened["note"] contains "zzqqxwv"✓ exact["count"] is greater than 0✓ exact does not contain "matched"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 … 45 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 opt (line 150) opt main 266–267. _prune_rows → _prune_rows 266 _prune_rows +1 more 268. _pruned_row → _absent 268 _absent ▶ test enters 269. _pruned_row → _prune_rows 269 _prune_rows 270. search_emptiness → unsearched_corpora 270 unsearched_corpora 271. unsearched_corpora → connect 271 connect … 20 steps between
command-line usercommand-line user command-line usercommand-line user command-line user 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 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 … 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 other filesother files other filesother files opt (line 474) opt main 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 ▶ test enters 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 … 10 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_mcp_server.py:1962 · its file's page
What it checks (6) assert widened["count"] > 0, "the OR must recover the 'chime' hits" not attributed assert widened["matched"] == "some terms" not attributed assert "RELAXED" in widened["note"] not attributed assert "zzqqxwv" in widened["note"] not attributed assert exact["count"] > 0 not attributed assert "matched" not in exact 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 (4) Also reaches 5 requirements Its run touches their code; that is reach, not proof.