test_several_subjects_are_one_batch

Tests › tests/test_query_cli.py

passed Passed in the packaged run.

What this test is for

Why it exists

Several positional subjects print the batch envelope.

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.

Look up one name: everything the index holds about it · 78 of 226 steps

… 1 earlier step

callercallercallercallercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyother filesother filesother filesother filesother filesother filesother filesopt (line 1715)opttry (line 266)tryopt (line 296)optloop (line 154)loopopt (line 333)optopt (line 343)optopt (line 345)optloop (line 66)looploop (line 515)looploop (line 660)looploop ×2 (line 288)loop ×2dossier2. dossier → _batched_dossiers2_batched_dossiers3. _batched_dossiers → batch_payload3batch_payload4. batch_payload → dossiers4dossiers▶ test enters5. dossiers → connect5connect6. batch_payload → _batch_miss6_batch_miss7. _batch_miss → _kind_limitation_clause7_kind_limitation_clause8. batch_payload → recovery_hint8recovery_hint9. recovery_hint → connect9connect10–11. recovery_hint → _hint_from10_hint_from +1 more12. _hint_from → _indexed_path12_indexed_path13. _indexed_path → table_exists13table_exists14–15. _hint_from → bare_tail14bare_tail +1 more16. _name_exists → table_exists16table_exists17. _hint_from → _documentation_mentions17_documentation_mentions18. _documentation_mentions → table_exists18table_exists19. _documentation_mentions → has_columns19has_columns20. has_columns → table_exists20table_exists21–22. _hint_from → _name_exists21_name_exists +1 more23. _qualified_forms → table_exists23table_exists24. _qualified_forms → qualified_name_of24qualified_name_of25. batch_payload → unresolved_kinds25unresolved_kinds26. unresolved_kinds → connect26connect27. unresolved_kinds → table_exists27table_exists28. batch_payload → _flatten_subject28_flatten_subject29. _flatten_subject → one29one30–36. one → _listed30_listed +6 more37–38. _flatten_subject → _config_found_on_the_wire37_config_found_on_the_wire +1 more39. _flatten_subject → list39list40. list → link40link41. _flatten_subject → one41one42. _flatten_subject → _ambiguity_block42_ambiguity_block43. _ambiguity_block → name_ambiguity43name_ambiguity44. name_ambiguity → connect44connect45. name_ambiguity → _ambiguity_counts45_ambiguity_counts46. _ambiguity_counts → table_exists46table_exists47. _ambiguity_counts → function_candidates47function_candidates48–51. function_candidates → table_exists48table_exists +3 more52–55. matching_identity → qualified_name_of52qualified_name_of +3 more56. _flatten_subject → _gate_definitions56_gate_definitions57. _gate_definitions → macro_definitions57macro_definitions58. macro_definitions → connect58connect59. macro_definitions → macro_definitions_conn59macro_definitions_conn60. macro_definitions_conn → has_columns60has_columns▶ test enters61. macro_definitions_conn → _macro_def61_macro_def62. _macro_def → gates_covering62gates_covering63. gates_covering → table_exists63table_exists▶ test enters64. gates_covering → has_columns64has_columns65. gates_covering → _gate_columns65_gate_columns66–67. _gate_columns → has_columns66has_columns ×268. gates_covering → _with_defaults68_with_defaults69. _with_defaults → table_exists69table_exists70. _with_defaults → _defaults_for_macros70_defaults_for_macros71. _with_defaults → decided_default71decided_default

… 6 steps between

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filestry (line 224)trydossier78. _referenced_by → table_exists78table_exists79. _macro_def → symbol_provenance79symbol_provenance80. symbol_provenance → records_provenance80records_provenance▶ test enters81. records_provenance → has_columns81has_columns82. _gate_definitions → _gate_definition_gaps82_gate_definition_gaps83–86. _flatten_subject → _empty_callers_note83_empty_callers_note +3 more87. _candidates_capped → _distinct_identities87_distinct_identities88. _distinct_identities → connect88connect89. _distinct_identities → table_exists89table_exists90. batch_payload → _hoist_build_wide90_hoist_build_wide▶ test enters91–92. _batched_dossiers → db91db +1 more

… 7 steps between

callercallercallercallerclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/mcp_server/tools_query.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyclew/query/payload.pyother filesother filesother filesother filesloop (line 578)looploop (line 1539)looploop (line 198)loopdossier100. _shrink_to_budget → _step_chain_depth100_step_chain_depth101. _batched_dossiers → prune_absent_keys101prune_absent_keys102. prune_absent_keys → _absent102_absent▶ test enters103. _batched_dossiers → _wire_shape103_wire_shape104. _wire_shape → compact_docs104compact_docs

… 30 steps between

callercallercallercallerclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyopt (line 1012)optopt (line 777)optalt (line 780)altopt (line 1014)optdossier135. dossier → connect135connect136. dossier → identity_rowids136identity_rowids137. identity_rowids → function_candidates137function_candidates▶ test enters138–139. identity_rowids → qualified_name_of138qualified_name_of +1 more140–141. identity_rowids → qualified_name_of140qualified_name_of +1 more142. dossier → _selector_from_signature142_selector_from_signature143. _selector_from_signature → qualified_name_of143qualified_name_of144. dossier → _rank_enum_over_mirror144_rank_enum_over_mirror▶ test enters145. _rank_enum_over_mirror → connect145connect146. _rank_enum_over_mirror → _class_side_is_only_enum_mirrors146_class_side_is_only_enum_mirrors

… 2 steps between

callercallercallercallerclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyclew/query/recovery.pyother filesother filesother filesother filesopt (line 1021)optdossier149. _derives_from_py_enum → all149all150. _class_side_is_only_enum_mirrors → all150all151. dossier → resolve_subject151resolve_subject▶ test enters152. resolve_subject → connect152connect153–154. dossier → _qualified_reread153_qualified_reread +1 more155. _split_qualified → bare_tail155bare_tail156. _split_qualified → connect156connect157. _split_qualified → identity_rowids157identity_rowids

… 3 steps between

callercallercallercallerclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/subject.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyopt (line 1078)optdossier161–162. _qualified_reread → _rank_enum_over_mirror161_rank_enum_over_mirror +1 more163. dossier → _chosen_kind163_chosen_kind▶ test enters164. dossier → connect164connect165. dossier → _chain_for165_chain_for166. _chain_for → chain_trace166chain_trace167. chain_trace → _normalize_direction167_normalize_direction

… 5 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pydossier173–174. _identity_walk → _make_node173_make_node +1 more175. termini_for → table_exists175table_exists▶ test enters176. _make_node → _reqs_for176_reqs_for177. _reqs_for → table_exists177table_exists

… 3 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyother filesother filesother filesother filesloop (line 362)looploop (line 368)looploop (line 429)loopdossier181. _identity_call_hops → qualified_name_of181qualified_name_of182. _identity_call_hops → _collapse_variants182_collapse_variants183. _collapse_variants → _variant_rank183_variant_rank▶ test enters184. _identity_walk → identity_rowids184identity_rowids185. _identity_walk → _cap_at_depth185_cap_at_depth

… 15 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyclew/query/traversal.pyother filesother filesother filesother filesloop (line 191)looploop ×2 (line 208)loop ×2dossier201. _neighbors → _key_hops201_key_hops202. _key_hops → _key_edge_rows202_key_edge_rows203. _key_edge_rows → table_exists203table_exists▶ test enters204. _key_edge_rows → _key_r1_projection204_key_r1_projection205. _key_r1_projection → has_columns205has_columns206. _key_r1_projection → table_exists206table_exists207–208. _key_hops → to_bool207to_bool ×2

… 18 later steps

3 more

tests/test_query_cli.py:51 · its file's page

Where the product reaches it

Call flow

test_several_subjects_are_one_batch→_run→export_dossier

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.

test_several_subjects_are_one_batch_run… 4 calls …records_provenanceREQ-DDB-INDEX-004 · measured_runquery_main_locatetarget_forREQ-DDB-MCP-001 · inferred_run… 3 calls …read_build_signatureREQ-DDB-PIPE-005 · inferredexport_dossierprune_absent_keysREQ-DDB-QUERY-001 · measuredexport_dossier… 3 calls …chain_traceREQ-DDB-QUERY-002 · measuredexport_dossiersubject_payloaddossieridentity_rowidsREQ-DDB-QUERY-003 · measured_run… 7 calls …_in_default_buildREQ-DDB-QUERY-004 · measuredexport_dossier… 4 calls …_make_nodeREQ-DDB-QUERY-005 · inferred_run… 4 calls …kconfig_spaceREQ-DDB-QUERY-006 · measured_run… 5 calls …prose_emptinessREQ-DDB-QUERY-007 · inferred_runquery_main_payloadgraph_statsREQ-DDB-QUERY-008 · inferredexport_dossiersubject_payloaddossieridentity_rowidsREQ-DDB-QUERY-010 · measured

and 6 more requirement paths, listed below.

Also reaches 21 requirements

Its run touches their code; that is reach, not proof.