passed Passed in the packaged run.
What this test is for Why it exists
A TIE-BREAK, NOT A SUPPRESSION. gh#6's contract was that a pick is only safe when the caller can see one was made, so `also` must still name `class` and passing it back must still reach the mirror. Losing the tie-break is not the same as not existing.
Given
db, repo = _index(tmp_path)→ When
doss = q.dossier(db, "AgentState", repo_root=repo)mirror = q.dossier(db, "AgentState", kind="class", repo_root=repo)→ Then
✓ doss is not None✓ doss.also contains "class"✓ mirror is not None✓ mirror.kind equals "class"✓ mirror.compound is not None✓ mirror.compound.name equals "pkg::_bindings::AgentState"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 … 23 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files 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–53. matching_identity → qualified_name_of 52 qualified_name_of +1 more … 4 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files dossier 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 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 … 58 steps between
callercaller callercaller caller clew/query/subject.pyclew/query/subject.py clew/query/subject.pyclew/query/subject.py clew/query/subject.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/_common.py clew/query/recovery.pyclew/query/recovery.py clew/query/recovery.pyclew/query/recovery.py clew/query/recovery.py other filesother files other filesother files other files opt (line 1012) opt opt (line 1014) opt opt (line 1021) 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 ▶ test enters 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 147. _class_side_is_only_enum_mirrors → table_exists 147 table_exists 148. _class_side_is_only_enum_mirrors → _derives_from_py_enum 148 _derives_from_py_enum 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 ▶ test enters 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 … 59 later steps
3 more tests/test_enum_mirror_tiebreak.py:134 · its file's page
What it checks (6) assert doss is not None observes dossier via doss assert "class" in doss.also, "the reading that lost must still be named" observes dossier via doss assert mirror is not None observes dossier via mirror assert mirror.kind == "class" observes dossier via mirror assert mirror.compound is not None observes dossier via mirror assert mirror.compound.name == "pkg::_bindings::AgentState" observes dossier via mirror Where the product reaches it dossier is the entry of the flow (flow) Call flow test_the_mirror_stays_disclosed_and_reachable→ _index → 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.
Also reaches 10 requirements Its run touches their code; that is reach, not proof.