Orchestrata Ultimate › Tests › Reference › scripts › test_force_trace_intel
Tests reference — tests/scripts/test_force_trace_intel.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_force_trace_intel.py
source · 19 tests · 232 lines
Tests for .claude/hooks/force-trace-intel.sh — traceability is a query.
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestTheSweepsThatCost |
122 | Each of these actually ran, and each has to stop running. |
| method | TestTheSweepsThatCost.test_the_heredoc_tree_walk_is_denied |
125 | |
| method | TestTheSweepsThatCost.test_grep_r_with_the_subject_inside_quotes_is_denied |
128 | The masked form carries no REQ- at all — subject must be read raw. |
| method | TestTheSweepsThatCost.test_a_loop_grepping_each_id_across_two_trees_is_denied |
132 | |
| method | TestTheSweepsThatCost.test_a_walk_that_rewrites_requirement_ids_is_denied |
135 | The shape that corrupted the fixtures: walk, match, write back. |
| method | TestTheSweepsThatCost.test_os_walk_is_caught_as_well_as_rglob |
139 | |
| method | TestTheSweepsThatCost.test_clustered_short_flags_do_not_evade |
142 | -rIl is as recursive as -r, and was how the first draft was evaded. |
| method | TestTheSweepsThatCost.test_ripgrep_is_recursive_by_default_and_still_caught |
146 | |
| method | TestTheSweepsThatCost.test_the_denial_names_the_tool_that_answers_instead |
149 | |
| method | TestTheSweepsThatCost.test_the_denial_explains_why_a_regex_cannot_do_this |
154 | A guard that only forbids teaches nothing; this one says WHY. |
| class | TestWorkThatMustNotBreak |
160 | Over-denial is the failure mode that gets a guard routed around. |
| method | TestWorkThatMustNotBreak.test_grepping_one_named_file_is_allowed |
163 | |
| method | TestWorkThatMustNotBreak.test_reading_a_spec_heading_is_allowed |
169 | |
| method | TestWorkThatMustNotBreak.test_the_deterministic_tools_are_never_blocked |
178 | |
| method | TestWorkThatMustNotBreak.test_the_gates_that_read_the_same_vocabulary_are_not_blocked |
188 | |
| method | TestWorkThatMustNotBreak.test_a_sweep_with_no_requirement_vocabulary_is_allowed |
197 | This guard is about traceability, not about grep. |
| method | TestWorkThatMustNotBreak.test_a_tree_outside_this_repo_is_allowed |
201 | The KB indexes THIS tree; elsewhere there is no satisfying action. |
| method | TestWorkThatMustNotBreak.test_running_the_suite_is_allowed |
205 | |
| class | TestWiring |
212 | |
| method | TestWiring.test_hook_is_registered_as_a_bash_pretooluse_hook |
213 | |
| method | TestWiring.test_the_hook_does_not_depend_on_jq |
225 | Sibling guards parse the payload in-shell; jq is not a dependency. |
| method | TestWiring.test_the_guidance_points_at_a_real_script |
231 |