The files a command names were read from its spelling. Brace lists, ~name,
variables and a path riding on an option read protected files unasked in
manual mode; in auto mode a command could write a protected path; a very
long line kept the judge busy for seconds; the force-push floor matched the
word "main" anywhere and missed deletions.
- permission/rules.md §5 (spec 3.15.0): words are read with their quoting,
expanded as far as modelled (braces, ~, $HOME/$PWD, globs); anything else
is unresolved, and an unresolved word is never allowed by a rule. Option
values, name=PATH operands, redirections and cd are read.
- A path a line may write (a redirection's target, or named by a program
that is not a known reader) that is a protected path is refused in every
mode.
- A line over 32 KiB is asked about in every mode without being analysed;
prefix() no longer joins every prefix of a command.
- force-push-main is a reader of the push's refspecs (check: git_push).
Conformance: permission.json 39 -> 99 cases, hardline.json 44 -> 69.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>