Skip to main content

Module policy

Module policy 

Source
Expand description

Tool safety policy for non-interactive mode (S8.4, S10).

Also contains tool selection types and resolution for –tools / –no-tools / –no-builtin-tools CLI flags (task 3.8).

Structs§

ToolFlags
CLI tool flags to be resolved into a ToolSelection.
ToolRuntimeConfig
Resolved tool runtime config used to choose active tools.

Enums§

RunMode
Application mode used to resolve default active tools.
ToolPolicyError
ToolSelection
Resolved tool selection state driven by CLI flags.

Constants§

BUILTIN_TOOL_NAMES
Pi-aligned built-in policy order consumed by the harness after Task 2 wiring.

Functions§

filter_tool_names
Filter a list of tool names based on the given selection.
is_mutating_tool
Returns true if the tool is considered mutating (write, edit, bash).
resolve_tool_selection
Resolve tool flags into a ToolSelection with deterministic precedence: