Codex 0.173.0 lets a failed hook check stop the tool from running
Teams running Codex can make a failed PreToolUse check block the tool call, so a required policy hook stops the action before it runs.
Needs Codex CLI 0.173.0 or later and a synchronous PreToolUse hook.
npm install -g @openai/codex
Then set onFailure to block on the PreToolUse hook that must pass before a tool runs.