Orchestrata Ultimate › Tests › Reference › scripts › test_no_guessing_stop
Tests reference — tests/scripts/test_no_guessing_stop.py
Module of tests/scripts, split out because the directory page would be too large.
Prose pending.
tests/scripts/test_no_guessing_stop.py
source · 16 tests · 273 lines
Tests for .claude/hooks/no-guessing-stop.sh — the Stop hook that enforces
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_a_hedge_in_the_output_blocks |
94 | |
| function | test_a_hedge_in_the_thinking_blocks_too |
100 | Hedging in reasoning is the same failure as hedging in output — it is |
| function | test_the_reason_names_the_offending_phrase_and_demands_tools |
112 | |
| function | test_each_core_hedge_is_caught |
127 | Guards the shared word list: .claude/weasel-words.txt is the single |
| function | test_a_fenced_block_is_quoted_evidence_not_a_hedge |
142 | scripts/diagnose_test_failure.py literally prints "Likely cause:". A |
| function | test_a_tilde_fenced_block_is_also_stripped |
150 | |
| function | test_an_inline_code_span_is_stripped |
156 | |
| function | test_a_blockquoted_line_is_stripped |
162 | |
| function | test_a_clean_factual_turn_is_allowed |
168 | |
| function | test_stop_hook_active_prevents_an_infinite_loop |
179 | The continuation turn this hook triggers must not be blocked again by |
| function | test_a_payload_without_a_transcript_is_a_silent_skip |
191 | |
| function | test_an_unreadable_transcript_is_a_silent_skip |
198 | |
| function | test_a_malformed_payload_does_not_crash_the_turn |
205 | A Stop hook that crashes would break turn completion outright. It exits |
| function | test_a_transcript_line_that_is_not_json_is_skipped_not_fatal |
223 | Transcripts are appended live; a partially-written last line is normal. |
| function | test_hook_is_registered_as_a_stop_hook |
250 | RUL-023: a hook nothing invokes is not a delivery. |
| function | test_the_word_list_it_depends_on_exists_and_is_not_empty |
264 | The hook silently exits when the list is missing or empty, so the list's |