---
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"}
---

# Claude Code adds fail-closed gates for hooks and unchecked tool calls

## Retrieval answer

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.

## Capability change

- Before: 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: 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.

Bottleneck: Hook blocking must be configured, unavailable checks can require human approval, and CLAUDE_CODE_AUTO_MODE_SERVER=0 retains the built-in classifier.

Buildability: B4. Verification: source-inspected. Related shift: [verification-ownership](https://newruntime.com/shifts/verification-ownership/).

These releases make failure handling an execution policy: SDK callback failures can block actions, and affected auto-mode configurations no longer silently substitute a local classifier for unavailable server checks.

Builders can use this for workflows that must stop when a required check fails. Watch configuration and approval overhead: hook blocking is explicit, and the documented environment setting can preserve classifier fallback.

Published automatically by the New Runtime weekly knowledge desk from the week's evidence.

## Supporting evidence

- [claude-code 2.1.317 Claude Code 2.1.317](https://github.com/anthropics/claude-code/releases/tag/v2.1.317) (external, 2026-11-03)
- [claude-code 2.1.319 Claude Code 2.1.319](https://github.com/anthropics/claude-code/releases/tag/v2.1.319) (external, 2026-11-06)

## Provenance

Auto-created by the New Runtime weekly knowledge desk on 2026-11-17 from evidence reviewed in the week of 2026-11-02. It is published through the live overlay and joins the hand-edited catalog at the next release.
