Orchestrata Ultimate › Tests › Reference › scripts › test_require_design_before_build

Tests reference — tests/scripts/test_require_design_before_build.py

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

Prose pending.

tests/scripts/test_require_design_before_build.py

source · 23 tests · 392 lines

Tests for .claude/hooks/require-design-before-build.sh — the RUL-022

Kind Name Line Description
function test_builder_no_contract_no_waiver_blocks 76
function test_builder_existing_contract_path_allows 93
function test_builder_nonexistent_contract_path_blocks 115
function test_builder_design_waiver_with_reason_allows 132
function test_builder_bare_design_waiver_no_reason_blocks 148
function test_builder_design_waiver_whitespace_only_blocks 158 A waiver line with only trailing whitespace after the colon is the
function test_wirer_no_contract_no_waiver_blocks 174
function test_refactorer_no_contract_no_waiver_blocks 182
function test_wirer_with_waiver_allows 190
function test_refactorer_with_existing_contract_allows 201
function test_ungated_subagents_always_allow 219
function test_absent_subagent_type_allows 243
function test_malformed_stdin_allows_with_note 258
function test_empty_stdin_allows 268
function test_json_array_stdin_allows 276 Valid JSON but not an object -- must not crash on .get.
function test_non_agent_tool_name_allows 290
function test_construction_artifact_flags_without_files_blocks 313 The three flags are present but the referenced files do not exist --
function test_construction_artifact_flags_with_junk_files_blocks 328 Files exist but are not a valid artifact / decide script is absent
function test_hook_file_is_executable_and_tracked 350
function test_hook_registered_under_pretooluse_agent_matcher 362
function test_hook_source_contains_rul_022 372
function test_bash_syntax_is_valid 377
function test_python_interpreter_used_is_current_python 384 Sanity: the throwaway project root has no .venv, so the hook must