| 1 | { |
| 2 | "hooks": [ |
| 3 | { |
| 4 | "env": { |
| 5 | "CODEWHALE_SESSION_ID": "<HOOK_SESSION>", |
| 6 | "CODEWHALE_TOOL_CALL_ID": "call_hook_bash", |
| 7 | "DEEPSEEK_MODE": "Agent", |
| 8 | "DEEPSEEK_MODEL": "deepseek-v4-pro", |
| 9 | "DEEPSEEK_SESSION_ID": "<HOOK_SESSION>", |
| 10 | "DEEPSEEK_TOOL_ARGS": "{\"command\":\"rm -rf build\"}", |
| 11 | "DEEPSEEK_TOOL_CALL_ID": "call_hook_bash", |
| 12 | "DEEPSEEK_TOOL_NAME": "Bash", |
| 13 | "DEEPSEEK_WORKSPACE": "<WORKSPACE>" |
| 14 | }, |
| 15 | "name": "policy", |
| 16 | "ran": true, |
| 17 | "stdin": "" |
| 18 | } |
| 19 | ], |
| 20 | "outcome": { |
| 21 | "refuse": { |
| 22 | "detail": "Failed to authorize tool execution: ToolCallBefore hook denied tool 'Bash': conformance policy blocks rm [argument]", |
| 23 | "kind": "permission_denied" |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 |