Claude Code Hooks Fail Open by Default: What onFailure "block" Fixes and What It Misses
A guard hook protects you only on the days it runs. Claude Code v2.1.295 added a per-hook switch that blocks when the guard breaks, but you have to set it, and it cannot catch a script that runs and says all is well.