Claude Code Hook Looked Working, But Policy Engine Never Ran in agentpolicy Field Test
A developer testing agentpolicy v0.1.0, a Cedar-based policy decision point for AI agents, found that Claude Code appeared to block risky actions as intended. The audit log, however, was empty, showing the custom policy hook had never executed. The refusals came from Claude Code's built-in sandbox defaults instead. The cause was that Claude Code did not load a settings file in the working directory unless it was explicitly trusted, and passing the settings flag explicitly fixed it. The episode led the developer to conclude that a hook that never fires looks identical to one that allowed a call until decisions are actually counted.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in