{"schema_version":"newruntime-agent-readable-v0.2","type":"capability_delta","stable_id":"capability_delta:claude-code-adds-fail-closed-gates-for-hooks-and-unchecked-tool-calls","slug":"claude-code-adds-fail-closed-gates-for-hooks-and-unchecked-tool-calls","title":"Claude Code adds fail-closed gates for hooks and unchecked tool calls","description":"SDK hooks can now block actions when callbacks fail, while auto mode asks or denies when server checks are unavailable rather than silently falling back.","retrieval_nugget":"SDK hooks can now block actions when callbacks fail, while auto mode asks or denies when server checks are unavailable rather than silently falling back.","status":"published","observed_at":"2026-11-06","record_date":"2026-11-06","date_kind":"observed_at","before_capability":"Failed SDK hook callbacks could let actions run, and auto mode could fall back to its built-in classifier when server checks were unavailable.","enabling_change":"Version 2.1.317 adds onFailure: \"block\" to Agent SDK hook callbacks; 2.1.319 changes auto mode to ask or deny calls the server cannot check when telemetry or feature flags are off.","after_capability":"Builders can make hook failures block execution, and affected auto-mode sessions require approval or deny tool calls that cannot receive server checks.","human_consequence":"People can require failed or unavailable checks to stop unattended execution instead of allowing work to continue through a fallback.","verification_level":"source-inspected","buildability_class":"B4","bottleneck":"Hook blocking must be configured, unavailable checks can require human approval, and CLAUDE_CODE_AUTO_MODE_SERVER=0 retains the built-in classifier.","related_shift":"verification-ownership","related_posts":[],"topics":[],"source_urls":["https://github.com/anthropics/claude-code/releases/tag/v2.1.317","https://github.com/anthropics/claude-code/releases/tag/v2.1.319"],"featured":false,"supporting_evidence":[{"title":"claude-code 2.1.317 Claude Code 2.1.317","url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.317","kind":"external","observed_at":"2026-11-03"},{"title":"claude-code 2.1.319 Claude Code 2.1.319","url":"https://github.com/anthropics/claude-code/releases/tag/v2.1.319","kind":"external","observed_at":"2026-11-06"}],"routes":{"html":"https://newruntime.com/deltas/claude-code-adds-fail-closed-gates-for-hooks-and-unchecked-tool-calls/","markdown":"https://newruntime.com/deltas/claude-code-adds-fail-closed-gates-for-hooks-and-unchecked-tool-calls.md","json":"https://newruntime.com/deltas/claude-code-adds-fail-closed-gates-for-hooks-and-unchecked-tool-calls.json"},"source_format":"knowledge-ledger","published_at":"2026-11-17T05:08:11.198Z","auto_created":true,"editorial_provenance":{"desk":"knowledge-revision","provider":"codex","model":"gpt-6.1-sol","created_at":"2026-11-17T05:08:11.198Z","week_start":"2026-11-02","review":"auto-created from reviewed evidence; the owner may revise or retire it"}}
