Help us shape the future of Go! Take the 2026 Go Developer Survey

gating

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Allowed bool
	Reason  string
}

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 (spec: Tool-Call Gating).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL