passed Passed in the packaged run.
What this test is for Why it exists
The one file this command is about is the one file it must not clobber: replacing a hand-tuned declaration with an all-comments draft DISABLES every convention it declared while the build keeps succeeding — a silently different answer, which is worse than a crash.
Given
root, db = _acme(tmp_path)declaration = root / DECLARATION_NAME3 more original = "shared_key_patterns:\n writers:\n - name_prefix: 'HAND_SET_'\n"declaration.write_text(original, encoding="utf-8")argv = ["--repo-root", str(root), "--db", str(db), "-o", str(declaration)]→ When
propose_main(argv)propose_main([*argv, "--force"])load_declaration(root)→ Then
✓ propose_main(argv) equals 2✓ declaration.read_text(encoding="utf-8") equals original✓ propose_main([*argv, "--force"]) equals 0✓ declaration.read_text(encoding="utf-8") differs from original✓ load_declaration(root) equals {}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.
command-line usercommand-line user command-line usercommand-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py other filesother files other filesother files opt (line 3996) opt alt (line 1171) alt opt (line 529) opt main 1. main → propose_main 1 propose_main 2. propose_main → build_parser 2 build_parser ▶ test enters 3–11. propose_main → _configure_logging 3 _configure_logging +8 more 12. build_context → derive_scope 12 derive_scope 13. derive_scope → _declared_index_scope 13 _declared_index_scope 14. _declared_index_scope → load_declaration_located 14 load_declaration_located 15–18. load_declaration_located → _read_mapping 15 _read_mapping +3 more 19–20. _checked_section → _checked_list_section 19 _checked_list_section +1 more … 14 steps between
command-line usercommand-line user command-line usercommand-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py other filesother files other filesother files loop (line 569) loop opt (line 571) opt opt (line 547) opt try (line 548) try main 35. _checked_tests → _checked_list_section 35 _checked_list_section 36. _checked_tests → 36 … 1 call not run 37–40. _checked_section → check_manifest_document 37 check_manifest_document +3 more 41. _checked_section → _check_section_keys 41 _check_section_keys 42. _declared_index_scope → _existing_paths 42 _existing_paths … 1 step between
command-line usercommand-line user command-line usercommand-line user command-line user command-line user clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/scope.py clew/scope.py clew/propose/astdefs.pyclew/propose/astdefs.py clew/propose/astdefs.pyclew/propose/astdefs.py clew/propose/astdefs.py clew/propose/astdefs.py other filesother files other filesother files other files other files opt (line 696) opt try (line 1003) try opt (line 847) opt loop (line 746) loop loop (line 1055) loop opt (line 1075) opt opt (line 385) opt loop (line 239) loop loop (line 268) loop opt (line 270) opt elif (line 274) elif loop (line 369) loop opt (line 4002) opt main 44. _declared_index_scope → _existing_paths 44 _existing_paths 45. derive_scope → whole_repo_scope 45 whole_repo_scope 46. whole_repo_scope → _gitignored_paths 46 _gitignored_paths 47. _gitignored_paths → git_argv 47 git_argv 48–49. git_argv → _no_ext_diff 48 _no_ext_diff +1 more 50. _gitignored_paths → git_env 50 git_env 51. whole_repo_scope → list 51 list 52–56. whole_repo_scope → nested_repo_roots 52 nested_repo_roots +4 more 57. nested_repo_roots → _nested_repos_under 57 _nested_repos_under 58. whole_repo_scope → _gitignored_paths 58 _gitignored_paths 59–60. whole_repo_scope → _pruned_dirs 59 _pruned_dirs +1 more 61. _pruned_dirs → _skip_dir 61 _skip_dir 62–64. _pruned_dirs → _descendable 62 _descendable +2 more 65–68. whole_repo_scope → _declaration_note 65 _declaration_note +3 more 69. derive_scope → whole_repo_scope 69 whole_repo_scope 70–73. build_context → repo_source_files 70 repo_source_files +3 more 74–75. _grammar_available → has_language 74 has_language +1 more 76. _ts_language_for → _try_import_ts_module 76 _try_import_ts_module 77–85. build_context → scope_membership 77 scope_membership +8 more 86–88. _ast_parse_one_file → _disambiguate_header 86 _disambiguate_header +2 more 89. scan_repo → _absorb_file 89 _absorb_file 90. _absorb_file → definition_record 90 definition_record 91–109. definition_record → _signature 91 _signature +18 more 110. _absorb_file → _accessor_site 110 _accessor_site 111. _accessor_site → callee_name 111 callee_name 112–113. build_context → load_declaration 112 load_declaration +1 more 114–117. propose → _sections 114 _sections +3 more 118. _blocking → is_derived 118 is_derived 119–127. _sections → _blocked_section 119 _blocked_section +8 more 128. candidate_dirs → 128 … 1 call not run 129–130. report_not_indexed → _dir_lines 129 _dir_lines +1 more 131. propose → scope_summary 131 scope_summary 132. scope_summary → is_derived 132 is_derived 133. scope_summary → ast_readable_in_scope 133 ast_readable_in_scope 134–147. propose → render_declaration 134 render_declaration +13 more 148. _rejections → _wrap 148 _wrap 149–150. _section_block → _notes 149 _notes +1 more 151. propose_main → _resolve_db 151 _resolve_db ▶ test enters 152. _resolve_db → find_index 152 find_index 153. find_index → registered_index 153 registered_index 154. propose_main → _emit 154 _emit 155–156. main → export_main 155 export_main +1 more … 244 later steps
4 more tests/test_propose.py:654 · its file's page
What it checks (5) assert propose_main(argv) == 2 observes propose_main assert declaration.read_text(encoding="utf-8") == original, "the declaration was clobbered" not attributed assert propose_main([*argv, "--force"]) == 0 observes propose_main assert declaration.read_text(encoding="utf-8") != original not attributed assert load_declaration(root) == {}, "the written draft must be inert" observes load_declaration Where the product reaches it main → propose_main → propose → build_context → load_declaration (flow) main → propose_main (flow) 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.