Documentation
¶
Overview ¶
Package policy defines the action intent shape evaluated at the policy boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionIntent ¶
type ActionIntent struct {
Actor Actor `json:"actor"`
Target Target `json:"target"`
ModifiedFiles []string `json:"modified_files"`
Diff Diff `json:"diff"`
Approved bool `json:"approved,omitempty"`
}
ActionIntent describes one autonomous or human initiated change request.
func (ActionIntent) Input ¶
func (i ActionIntent) Input() map[string]any
Input returns a normalized JSON-compatible policy input with explicit defaults.
type Decision ¶
type Decision struct {
Allowed bool `json:"allowed"`
Denied bool `json:"denied"`
RequiresApproval bool `json:"requires_approval"`
Reason string `json:"reason,omitempty"`
}
Decision is the fail-closed result of evaluating an ActionIntent.
Click to show internal directories.
Click to hide internal directories.