passed Passed in the packaged run.
What this test is for Why it exists
REGISTERED IS NOT THE SAME AS READ. `sub_indexes` is an accepted build option because every declaration section must be reachable from the MCP surface — a tier-2-only section is unreachable for an operator who cannot edit the target's tree. An option that is accepted and then ignored is this project's most repeated defect, so the acceptance is pinned to the effect rather than to the registration.
Given
repo = _repo(tmp_path / "repo")→ When
target = target_for(repo, tmp_path / "state", name="deps-slam")options = {"sub_indexes": {"deps-slam": {"excludes": ["deps/slam/vendor"]}}}_exclude, merged = _sub_index_scope(target, repo, None, options)→ Then
✓ merged["index_scope"]["excludes"] contains "deps/slam/vendor"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 … 74 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 clew/declaration.pyclew/declaration.py clew/declaration.pyclew/declaration.py 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 … 4 later steps
6 more tests/test_sub_index_declaration.py:175 · its file's page
What it checks (1) assert "deps/slam/vendor" in merged["index_scope"]["excludes"], merged 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.