Expand description
The last thing --explain says about a refused command: what would change the answer.
There are three answers, and saying which one applies is the point. An agent told only “no opinion” read safe-chains’ source code for most of an hour to find out what it needed.
- Add an entry: safe-chains has no entry for the command.
safe-chains config addwrites one. - Grant a path: a known command reached a path outside the places approved by default, and a grant would change that. It is offered only after asking the classifier with the grant in place, so it is never advice that changes nothing.
- Nothing in the config: a built-in rule refused an option, a subcommand or a protected path. No entry or grant changes it, and a person has to approve the command when it runs.
One more case is not a rule at all: the level in force is stricter than the default, and the default approves the command. Saying “a built-in rule refused it” there would be false.
Enums§
- Because
- Why nothing in the config can change the verdict.
- Fix
- What would change the verdict on one refused command.
Functions§
- fix_for
- The fix for one refused command (a segment of a chain, or the whole command).