passed Passed in the packaged run.
What this test is for Why it exists
THE MOTIVATING CASE. The parent trims a vendored tree it does not own, and the trim lands on top of the derived nested-tree excludes rather than replacing them — the child trees still belong to their own sub-indexes.
Given
repo = _repo(tmp_path / "repo")_declare(repo, " deps-slam:\n excludes: [deps/slam/third_party]\n")→ When
target = target_for(repo, tmp_path / "state", name="deps-slam")_exclude, options = _sub_index_scope(target, repo, None, None)scope = options["index_scope"]→ Then
✓ scope["roots"] equals ["deps/slam"]✓ scope["excludes"] contains "deps/slam/third_party"✓ scope["excludes"] contains "deps/slam/deps/boost"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.
thread startthread start thread startthread start thread start clew/mcp_server/server.pyclew/mcp_server/server.py clew/mcp_server/server.pyclew/mcp_server/server.py clew/mcp_server/server.py clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/scope.py clew/mcp_server/state.pyclew/mcp_server/state.py clew/mcp_server/state.pyclew/mcp_server/state.py clew/mcp_server/state.py other filesother files other filesother files other files try (line 1664) try try (line 1003) try opt (line 847) opt loop (line 746) loop opt (line 1666) opt opt (line 352) opt _first_build_worker 1. _first_build_worker → first_party_sub_index 1 first_party_sub_index 2. first_party_sub_index → whole_repo_scope 2 whole_repo_scope 3. whole_repo_scope → _gitignored_paths 3 _gitignored_paths 4. _gitignored_paths → git_argv 4 git_argv 5–6. git_argv → _no_ext_diff 5 _no_ext_diff +1 more 7. list → link 7 link 8. _gitignored_paths → git_env 8 git_env 9. whole_repo_scope → list 9 list 10–14. whole_repo_scope → nested_repo_roots 10 nested_repo_roots +4 more 15. nested_repo_roots → _nested_repos_under 15 _nested_repos_under 16–26. whole_repo_scope → _gitignored_paths 16 _gitignored_paths +10 more 27–29. first_party_sub_index → _under_any 27 _under_any +2 more 30–31. _first_party → _own_ignores 30 _own_ignores +1 more 32. first_party_sub_index → _gitignored_paths 32 _gitignored_paths 33. _first_build_worker → target_for 33 target_for 34. target_for → _safe_index_name 34 _safe_index_name ▶ test enters 35. target_for → state_home 35 state_home 36. _first_build_worker → _run_build 36 _run_build 37. _run_build → nested_tree_cache 37 nested_tree_cache … 2 steps between
thread startthread start thread startthread start clew/mcp_server/server.pyclew/mcp_server/server.py clew/mcp_server/server.pyclew/mcp_server/server.py clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py other filesother files other filesother files loop (line 205) loop loop (line 286) loop _first_build_worker 40. _sub_index_rejection → first_party_sub_index 40 first_party_sub_index 41. _sub_index_rejection → _buildable_sub_indexes 41 _buildable_sub_indexes 42. _buildable_sub_indexes → derive_sub_indexes 42 derive_sub_indexes ▶ test enters 43–46. derive_sub_indexes → whole_repo_scope 43 whole_repo_scope +3 more 47. _nested_trees_recursive → list 47 list 48–49. _nested_trees_recursive → _gitignored_paths 48 _gitignored_paths +1 more 50–55. derive_sub_indexes → _direct_parent 50 _direct_parent +5 more 56. _sub_index_rejection → _offered_sub_indexes 56 _offered_sub_indexes 57. _offered_sub_indexes → derive_sub_indexes 57 derive_sub_indexes … 42 steps between
thread startthread start thread startthread start clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/declaration.pyclew/declaration.py clew/declaration.pyclew/declaration.py other filesother files other filesother files alt (line 1171) alt opt (line 529) opt _first_build_worker 100. declared_scope_rejection → _declared_index_scope 100 _declared_index_scope 101. _declared_index_scope → load_declaration_located 101 load_declaration_located 102–105. load_declaration_located → _read_mapping 102 _read_mapping +3 more 106. _checked_section → _checked_list_section 106 _checked_list_section 107. _checked_list_section → all 107 all … 18 steps between
thread startthread start thread startthread start clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/declaration.pyclew/declaration.py clew/declaration.pyclew/declaration.py other filesother files other filesother files loop (line 598) loop _first_build_worker 126–127. _checked_document → _checked_entries 126 _checked_entries +1 more 128. _checked_section → _check_section_keys 128 _check_section_keys 129–130. _declared_index_scope → _existing_paths 129 _existing_paths +1 more … 1 step between
thread startthread start thread startthread start clew/mcp_server/server.pyclew/mcp_server/server.py clew/mcp_server/server.pyclew/mcp_server/server.py clew/scope.pyclew/scope.py clew/scope.pyclew/scope.py clew/declaration.pyclew/declaration.py clew/declaration.pyclew/declaration.py other filesother files other filesother files try (line 3260) try catch (line 3328) catch _first_build_worker 132. _run_build_walked → _sub_index_scope 132 _sub_index_scope 133. _sub_index_scope → first_party_sub_index 133 first_party_sub_index 134. _sub_index_scope → derive_sub_indexes 134 derive_sub_indexes ▶ test enters 135. _sub_index_scope → declared_sub_index_excludes 135 declared_sub_index_excludes 136. declared_sub_index_excludes → load_declaration 136 load_declaration 137. load_declaration → load_declaration_located 137 load_declaration_located 138. _run_build_walked → _bounded_output 138 _bounded_output 139. _bounded_output → all 139 all … 3 later steps
6 more tests/test_sub_index_declaration.py:74 · its file's page
What it checks (3) assert scope["roots"] == ["deps/slam"] not attributed assert "deps/slam/third_party" in scope["excludes"], scope not attributed assert "deps/slam/deps/boost" in scope["excludes"], ( "the derived child-tree excludes must survive the declared ones" ) not attributed Where the product reaches it main → query_main → _locate → target_for (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 5 requirements Its run touches their code; that is reach, not proof.