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.
Modules§
- gate
- Which kind of refusal a gated command is: one safe-chains has not approved YET, or a boundary.
Enums§
- Because
- Why nothing in the config can change the verdict.
- Fix
- What would change the verdict on one refused command.
Functions§
- fix_for
- in_
segment_ scope - Runs
per_segmenton each segment ofcommand(its index and text) with the scope the segments before it leave in force: theircd, theirVAR=bindings and their function definitions.