Re-exports§
pub use approval_mode::ApprovalMode;
Modules§
- approval_
mode - The user-facing approval posture (
Ask/Accept Edits/Auto-Review/Full Access/Never). Lives besideAskForApprovalso policy code and the TUI share one definition; the TUI adds only presentation on top. - bash_
arity - Bash arity dictionary for command-prefix allow rule matching.
- canonical_
action - Semantic aliases for the model-facing action tools.
- command_
safety - Command safety analysis for shell execution
- matcher
- Command matching helpers for execpolicy rules.
- shell_
expand - Expand a shell command line into the set of commands a shell would run.
- toml_
rules - Execpolicy rules loaded from TOML configuration.
- tool_
rules
Structs§
- Exec
Policy Amendment - A proposed amendment to the execution policy, suggesting new trusted prefixes.
- Exec
Policy Check Outcome - Exec
Policy Context - Input context provided to the execution policy engine for a single check.
- Exec
Policy Decision - The result of evaluating a command against the execution policy.
- Exec
Policy Engine - Ruleset
- A named set of allow/deny prefix rules at a given priority layer.
- Tool
AskRule - Typed rule that controls whether a tool invocation is denied, allowed, or requires approval.
Enums§
- AskFor
Approval - Policy mode controlling when tool invocations require human approval.
- Exec
Approval Requirement - The approval requirement determined by the execution policy engine.
- Permission
Action - Permission action for a tool invocation rule.
- Ruleset
Layer - Priority layer for typed permission-rule selection. Higher ordinal = higher priority. Matching typed rules compare layer before action and specificity. Hard denied prefixes are merged across layers and checked first.
- Typed
Allow Kind
Functions§
- is_
broad_ allow_ rule - is_
broad_ shell_ command - normalize_
workspace_ relative_ path - Returns a slash-separated path relative to
workspace_rootwhenvalueis a safe path within that workspace. - normalize_
workspace_ scope - Return a stable absolute workspace scope suitable for a persisted rule.