passed Passed in the packaged run.
What this test is for Why it exists
THE GAP THAT LET THE SHAPE CHANGE PASS UNNOTICED. gh#346 moved this tool from `_many` to `wire.one`, and the whole suite stayed green: the two tests that drive every tier-1 tool check JSON round-tripping and target attribution, and both hold under either shape. Nothing pinned the payload, so nothing would have caught the reverse either — a later edit routing it back through `_many` would silently drop `origin` and `row_meaning`.
Verifies REQ-DDB-MCP-001 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
reply = tools.search(corpus="threads")→ → Then
✓ reply contains "threads"✓ reply contains "origin"✓ reply contains "row_meaning"✓ reply["origin"]["total"] equals 0✓ reply["origin"]["first_party"] equals 0✓ json.dumps(reply) does not contain "records none"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 clew/query/corpus.pyclew/query/corpus.py clew/query/corpus.pyclew/query/corpus.py other filesother files other filesother files 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 … 14 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 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 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 other filesother files other filesother files other 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 369–370. _thread_columns → has_columns 369 has_columns ×2 371. thread_roster → _build_thread 371 _build_thread 372. _build_thread → name_of 372 name_of 373. _build_thread → table_exists 373 table_exists 374. _build_thread → _spawn_attribution 374 _spawn_attribution 375. _spawn_attribution → has_columns 375 has_columns 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 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:3066 · its file's page
What it checks (4) assert "threads" in reply and "origin" in reply and "row_meaning" in reply, ( "routed through `_many` this would be a bare list under `results` with no split" ) not attributed assert reply["origin"]["total"] == 0 not attributed assert reply["origin"]["first_party"] == 0 not attributed assert "records none" not in json.dumps(reply), ( "an empty roster must not claim the DATABASE records none — the fixture's build is what " "found no spawns, and the two are different facts" ) 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.