What
Permission path rules are the allow and deny rules that decide which files and folders Claude Code may touch. A new matcher for these rules is added, built to work through a path in a single pass:
- The
relativeRuleRootsSwitchsetting gainspathRuleMatcher, with the values off, shadow or on. It defaults to "off" when the server sends nothing. - When the setting is read, "on" is currently turned into "shadow".
- When it is "on", the new matcher decides the result. Otherwise the old matcher still decides, the new one runs alongside it, and the two results are compared and reported.
- Rules the new matcher cannot handle are reported as "it cannot be matched in one pass", and for hook rules containing such rules the "on" mode falls back to "off".
Before, the switch set only isOn and looksAhead.
Why
This is groundwork for a different way of checking allow and deny path rules. In shadow mode your rules are still decided by the old matcher, but if the new one is ever switched on, matching results could differ.