From e4149c4b91a5320177f2ff13e662cc785e8fd764 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Apr 2026 23:51:11 +0000 Subject: [PATCH] fix: correct stale hook script paths in policy.yaml The hooks: block referenced hooks/pre_exec_guard.py and hooks/post_exec_receipt.py; actual modules are hooks/guard.py, hooks/receipts.py, and hooks/governor.py. Declarative only -- runtime wiring lives in .claude/settings.json via entry.py, so no behavior change. Narrowed from the v0.1.1 auto-mode-hardening patch after the guard surfaced additional scope/policy mismatches during implementation (writable_paths gap for repo-root CHANGELOG.md, restricted-pattern coverage of **/*.schema.json, governor-CLI classification as SHELL_DANGEROUS, pytest env missing PyYAML). All tracked for v0.1.2. --- governance/policy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/governance/policy.yaml b/governance/policy.yaml index 44f9623..dfbf12e 100644 --- a/governance/policy.yaml +++ b/governance/policy.yaml @@ -156,26 +156,26 @@ scope: hooks: pre_write_guard: trigger: before_file_write - script: hooks/pre_exec_guard.py + script: hooks/guard.py function: check_write_scope fail_behavior: hard_stop pre_exec_guard: trigger: before_command_execution - script: hooks/pre_exec_guard.py + script: hooks/guard.py function: check_command fail_behavior: hard_stop post_exec_receipt: trigger: after_command_execution - script: hooks/post_exec_receipt.py + script: hooks/receipts.py function: emit_receipt fail_behavior: hard_stop session_close_audit: trigger: session_end - script: hooks/post_exec_receipt.py - function: close_session + script: hooks/governor.py + function: cmd_close_session fail_behavior: hard_stop # ----------------------------------------------------------------------------