Claude Code · tool · fg-0490

Permission rules on Write(path), Glob(path), or a .claudeignore file are accepted but never enforced

If you see Claude writes into a folder covered by a Write(docs/**) deny rule, the cause and the fix for Claude Code are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Claude writes into a folder covered by a Write(docs/**) deny ruleStartup warning that a rule is not matched by file permission checks (v2.1.210 and later)Files listed in .claudeignore are still read
Cause
File permission checks consult only Edit(path) and Read(path) rules. Path rules on Write, NotebookEdit, Glob, or MultiEdit load without error and are ignored, and a .claudeignore file has no effect; before v2.1.210 there was no warning.
Fix
Use Edit(path) for anything that writes and Read(path) for anything that reads or lists, and move .claudeignore entries into Read deny rules.
Apply
"permissions": { "deny": ["Edit(docs/**)", "Read(docs/private/**)"] }
Affected
Claude Code permission rules, as of 2026-10; startup warning since v2.1.210
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun