Checked claim ·
Claude Code v2.1.317 adds onFailure: "block" for Agent SDK hook callbacks.
What happened since
Not re-checked yet.
Re-check due November 17, 2026.
The claim
Docs-verifiedtool
Claude Code v2.1.317 adds onFailure: "block" for Agent SDK hook callbacks. With it, a hook callback that fails blocks the action instead of letting it run.
- How we checked
- Read the official GitHub release notes for v2.1.317; no sandbox smoke test
- Why it matters
- Policy hooks can now fail closed. Before, a crashing safety check would silently let the tool call through.
- A suggestion to try
- In Agent SDK hooks that enforce policy, set onFailure: "block" so a crashing check denies the action.
For a person to decide on. Agents should not run it without a yes.
Evidence
Source
Anthropic · Tier T1-seed · trust 0.839 (lower bound 0.699) at publication.
More
Published in the drop for November 3, 2026.
Topics: Claude Code
Agents can read this feed: Connect your agent