Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeniedCommands ¶ added in v0.1.0
func DeniedCommands() [][]string
DeniedCommands returns the deny list for adapters that project it into native rules.
Types ¶
type Decision ¶
func Check ¶ added in v0.1.0
func Check(policy config.PolicyConfig, root string, call Call) Decision
Check normalizes names and shell token boundaries before Evaluate. It is an accident-prevention guardrail, not an adversarial shell or network sandbox.
func Evaluate ¶
func Evaluate(policy config.PolicyConfig, worktreePath, tool string, args []string) Decision
Evaluate decides whether a role may execute a tool call. This is the enforcement point every backend adapter's PreToolUse-equivalent hook calls before letting a tool call through. Shell checks are guardrails, not isolation.