approval

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAutoAllow

func NewAutoAllow(cfg AutoAllowConfig) (agentkit.Approval, error)

NewAutoAllow registers approval/auto-allow: Allow every ask decision, for unattended runs.

Best practices:

  • Never use alone. It filters nothing, so the Policy plane is the only enforcement left: pair it with policy/shell-allowlist and policy/path-denylist.
  • Every decision is logged via slog, so an unattended run stays reviewable after the fact.

func NewAutoDeny

func NewAutoDeny() (agentkit.Approval, error)

NewAutoDeny registers approval/auto-deny: Deny every ask decision. For tests and CI.

Types

type AutoAllowConfig

type AutoAllowConfig struct {
	// Reason is text recorded on each decision; defaults to "auto-allowed: unattended run".
	Reason string `json:"reason"`
}

AutoAllowConfig configures unattended approval.

Jump to

Keyboard shortcuts

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