passed Passed in the packaged run.
What this test is for Why it exists
THE HALF OF gh#6 THAT WAS NEVER WIRED. Every other test here calls the query API, which built the enumeration subject correctly from the day it landed. `_flatten_subject` reads `SubjectDossier.section` to make the MCP payload, and that property carried a hand-written tuple of seven sections which `enumeration` was left out of — so the tool a model actually calls answered `found: false` for every enum in every index, while `search` listed the same names and `resolve_subject` reported the kind.
Given
db, repo = _index(tmp_path)tools = QueryTools(lambda: db, lambda: repo)reply = tools.dossier("ent_decision_t")→ → Then
✓ reply.get("found") is not False✓ reply["subject_kind"] equals "enumeration"✓ reply["name"] equals "ent_decision_t"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.
… 17 earlier steps
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/recovery.pyclew/query/recovery.py clew/query/recovery.pyclew/query/recovery.py dossier 18. _documentation_mentions → table_exists 18 table_exists 19. _documentation_mentions → has_columns 19 has_columns 20. has_columns → table_exists 20 table_exists 21–22. _hint_from → _name_exists 21 _name_exists +1 more … 4 steps between
callercaller callercaller clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files opt (line 333) opt dossier 27. unresolved_kinds → table_exists 27 table_exists 28. batch_payload → _flatten_subject 28 _flatten_subject 29. _flatten_subject → one 29 one 30–36. one → _listed 30 _listed +6 more 37–38. _flatten_subject → _config_found_on_the_wire 37 _config_found_on_the_wire +1 more … 1 step between
callercaller callercaller clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files opt (line 345) opt loop (line 66) loop dossier 40. list → link 40 link 41. _flatten_subject → one 41 one 42. _flatten_subject → _ambiguity_block 42 _ambiguity_block 43. _ambiguity_block → name_ambiguity 43 name_ambiguity 44. name_ambiguity → connect 44 connect … 1 step between
callercaller callercaller clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files loop (line 515) loop dossier 46. _ambiguity_counts → table_exists 46 table_exists 47. _ambiguity_counts → function_candidates 47 function_candidates 48. function_candidates → table_exists 48 table_exists ▶ test enters 49–51. function_candidates → _test_scope_term 49 _test_scope_term +2 more 52–55. matching_identity → qualified_name_of 52 qualified_name_of +3 more 56. _flatten_subject → _gate_definitions 56 _gate_definitions 57. _gate_definitions → macro_definitions 57 macro_definitions 58. macro_definitions → connect 58 connect 59. macro_definitions → macro_definitions_conn 59 macro_definitions_conn 60. macro_definitions_conn → has_columns 60 has_columns ▶ test enters 61. macro_definitions_conn → _macro_def 61 _macro_def 62. _macro_def → gates_covering 62 gates_covering 63. gates_covering → table_exists 63 table_exists … 14 steps between
callercaller callercaller clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files try (line 224) try dossier 78. _referenced_by → table_exists 78 table_exists 79. _macro_def → symbol_provenance 79 symbol_provenance 80. symbol_provenance → records_provenance 80 records_provenance ▶ test enters 81. records_provenance → has_columns 81 has_columns 82. _gate_definitions → _gate_definition_gaps 82 _gate_definition_gaps 83. _flatten_subject → _empty_callers_note 83 _empty_callers_note 84–85. _empty_callers_note → _constructor_note 84 _constructor_note +1 more 86. _flatten_subject → _candidates_capped 86 _candidates_capped 87. _candidates_capped → _distinct_identities 87 _distinct_identities 88. _distinct_identities → connect 88 connect … 4 steps between
callercaller callercaller clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py try (line 1219) try opt (line 1181) opt dossier 93. db → 93 … 1 call not run 94. _batched_dossiers → _repo_or_none 94 _repo_or_none 95. _repo_or_none → repo 95 repo 96. repo → _route 96 _route 97. _batched_dossiers → _budget_batch 97 _budget_batch … 2 steps between
callercaller callercaller clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py other filesother files other filesother files loop (line 578) loop loop (line 1539) loop loop (line 198) loop dossier 100. _shrink_to_budget → _step_chain_depth 100 _step_chain_depth 101. _batched_dossiers → prune_absent_keys 101 prune_absent_keys 102. prune_absent_keys → _absent 102 _absent 103. _batched_dossiers → _wire_shape 103 _wire_shape 104. _wire_shape → compact_docs 104 compact_docs … 7 steps between
callercaller callercaller clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py loop (line 827) loop opt (line 829) opt dossier 112. compact_neighbours → _grouped 112 _grouped 113. _batched_dossiers → _answered 113 _answered 114–115. _answered → _default 114 _default +1 more 116. _answered → _kind_limitation_clause 116 _kind_limitation_clause 117. _answered → _unresolved_for 117 _unresolved_for … 3 steps between
callercaller callercaller clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/query/recovery.pyclew/query/recovery.py clew/query/recovery.pyclew/query/recovery.py other filesother files other filesother files try (line 1274) try opt (line 1407) opt opt (line 1409) opt opt (line 1414) opt dossier 121. _recovery_for → db 121 db 122. _recovery_for → recovery_hint 122 recovery_hint 123. _answered → _target_name 123 _target_name 124. _answered → _bounded_names 124 _bounded_names 125. _bounded_names → list 125 list 126. _answered → _staleness 126 _staleness 127. _staleness → _staleness_within_budget 127 _staleness_within_budget 128. _answered → _withdraw_definitive 128 _withdraw_definitive … 2 steps between
callercaller callercaller clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files opt (line 1715) opt opt (line 1012) opt dossier 131. _answered → 131 … 2 calls not run 132. dossier → disclose_overflow 132 disclose_overflow 133. dossier → subject_payload 133 subject_payload ▶ test enters 134. subject_payload → dossier 134 dossier 135. dossier → connect 135 connect 136. dossier → identity_rowids 136 identity_rowids … 5 steps between
callercaller callercaller clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py opt (line 1012) opt opt (line 1014) opt dossier 142. dossier → _selector_from_signature 142 _selector_from_signature 143. _selector_from_signature → qualified_name_of 143 qualified_name_of 144. dossier → _rank_enum_over_mirror 144 _rank_enum_over_mirror 145. _rank_enum_over_mirror → connect 145 connect 146. _rank_enum_over_mirror → _class_side_is_only_enum_mirrors 146 _class_side_is_only_enum_mirrors … 2 steps between
callercaller callercaller clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/recovery.pyclew/query/recovery.py clew/query/recovery.pyclew/query/recovery.py other filesother files other filesother files opt (line 1021) opt dossier 149. _derives_from_py_enum → all 149 all 150. _class_side_is_only_enum_mirrors → all 150 all 151. dossier → resolve_subject 151 resolve_subject 152. resolve_subject → connect 152 connect 153–154. dossier → _qualified_reread 153 _qualified_reread +1 more 155. _split_qualified → bare_tail 155 bare_tail 156. _split_qualified → connect 156 connect 157. _split_qualified → identity_rowids 157 identity_rowids … 3 steps between
callercaller callercaller clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/traversal.pyclew/query/traversal.py clew/query/traversal.pyclew/query/traversal.py opt (line 1078) opt dossier 161–162. _qualified_reread → _rank_enum_over_mirror 161 _rank_enum_over_mirror +1 more 163. dossier → _chosen_kind 163 _chosen_kind 164. dossier → connect 164 connect 165. dossier → _chain_for 165 _chain_for 166. _chain_for → chain_trace 166 chain_trace 167. chain_trace → _normalize_direction 167 _normalize_direction … 45 steps between
callercaller callercaller clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/mcp_server/tools_query.pyclew/mcp_server/tools_query.py clew/query/payload.pyclew/query/payload.py clew/query/payload.pyclew/query/payload.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/traversal.pyclew/query/traversal.py clew/query/traversal.pyclew/query/traversal.py other filesother files other filesother files opt (line 285) opt loop (line 620) loop dossier 213. resolve_rowid → _test_scope_term 213 _test_scope_term 214. _expand_neighbor → _make_node 214 _make_node 215. subject_payload → _flatten_subject 215 _flatten_subject 216. dossier → db 216 db ▶ test enters 217–220. dossier → _repo_or_none 217 _repo_or_none +3 more 221. _budgeted_dossier → prune_absent_keys 221 prune_absent_keys 222. _budgeted_dossier → 222 … 1 call not run 223. dossier → _capped_neighbors 223 _capped_neighbors 224. _capped_neighbors → _limited_block 224 _limited_block 225–226. dossier → _wire_shape 225 _wire_shape +1 more 3 more tests/test_enum_subject.py:225 · its file's page
What it checks (3) assert reply.get("found") is not False, "an indexed enum must not read as a negative" not attributed assert reply["subject_kind"] == "enumeration" not attributed assert reply["name"] == "ent_decision_t" not attributed Where the product reaches it No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow test_the_enum_subject_survives_the_mcp_flatten→ _index
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 9 requirements Its run touches their code; that is reach, not proof.