Orchestrata Ultimate › Tests › Reference › scripts › test_no_offer_instead_of_fix

Tests reference — tests/scripts/test_no_offer_instead_of_fix.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_no_offer_instead_of_fix.py

source · 25 tests · 473 lines

Tests for .claude/hooks/no-offer-instead-of-fix.sh — the RUL-006

Kind Name Line Description
function test_ruling_evidence_case_exits_non_zero 153
function test_violating_shapes_fire 166
function test_clean_sentences_stay_silent 178
function test_offer_naming_no_defect_stays_silent 187 An offer about WORK is not a refusal to repair a DEFECT.
function test_defect_guard_reaches_back_exactly_one_sentence 202 The lookback is bounded: a defect named two sentences earlier must not
function test_quoted_evidence_is_not_a_violation 231
function test_self_filename_in_prose_is_not_a_violation 241
function test_match_does_not_cross_a_sentence_boundary 256
function test_file_extension_is_not_a_sentence_boundary 261
function test_family_b_guard_sees_a_defect_named_in_the_previous_sentence 291
function test_family_b_guard_does_not_look_back_two_sentences 298 The lookback is bounded at one sentence — otherwise a defect noun
function test_family_b_pattern_itself_still_may_not_cross_a_sentence 308 Only the DEFECT GUARD widened. The deferral construction must still
function test_check_mode_is_silent_and_zero_on_empty_input 320
function test_oversized_clean_turn_is_not_a_false_red 340
function test_oversized_turn_still_detects_a_buried_violation 349
function test_stop_path_blocks_on_violating_turn 362
function test_stop_path_scans_thinking_blocks 372
function test_stop_path_silent_on_clean_turn 383
function test_loop_guard_suppresses_a_continuation_turn 393
function test_missing_transcript_path_is_silent 400
function test_malformed_payload_is_silent 406
function test_hook_file_is_executable_and_tracked 425
function test_bash_syntax_is_valid 437
function test_hook_source_carries_the_ruling_verbatim_on_one_line 444 rulings_lint's gate grammar matches the ruling as a LITERAL substring,
function test_hook_is_registered_as_a_stop_hook 462 RUL-023: existing is not delivering. rulings_lint proves the file