{"version":"2.1.334","anchor":"auto-mode-classifier-denials-can-carry-an-allow-rule-remedy","canonical_anchor":"auto-mode-classifier-denials-can-carry-an-allow-rule-remedy","heading":"Auto-mode and removal-check refusals can come with a suggested remedy","tier":"notice","area":"Auto Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/auto-mode-classifier-denials-can-carry-an-allow-rule-remedy","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Auto-mode and removal-check refusals can come with a suggested remedy\n\nRefusals from auto mode or the removal check can now carry a remedy such as an allow rule, with new refusal kinds for SDK hosts\n\n**What**\n\nAuto mode lets Claude Code decide on its own whether a tool call is safe, using a classifier, an automatic checker. Claude Code also has a built-in check that can refuse commands that remove files. When either one refuses an action, the refusal can now say more:\n\n- `toolResultRemedy` is a new optional part of an auto-mode denial, of the form `{kind:\"allow_rule\", tool}`, naming a tool an allow rule would unblock. It depends on `needsClassifierToolCall`, `ccrSessionLimited` and the tool name, and is left out in some cases.\n\n- The remedy schema shared with host apps gains the kinds `allow_rule`, `check_failed` and `removal_refused`, after the existing `advice_to_claude`. It also gains the fields `tool`, `check_failure`, `removal_risk` and `long_sleep`. `long_sleep` marks a shell command refused for starting with a long sleep, and `removal_refused` means the removal check refused the command and no person approved it.\n\n- New tables sort classifier errors into `check_failed` kinds and removal refusals into `removal_refused` kinds, such as `top_folder`, `variable_target` and `unread_command`.\n\n- When `needsClassifierToolCall` is true, the help text the model sees after a blocked action is cut down to one sentence about continuing other tasks, without the auto-mode consent text.\n\nThe remedy is kept as `toolResultRemedy` in the transcript's redaction list.\n\n**Why**\n\nApps built on the SDK can tell these refusals apart and act on them, for example by offering the allow rule that would let the tool run. The model also gets shorter wording in some auto-mode denials.\n\n- Area: Auto Mode\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}