This module provides deterministic pre-dispatch policy for caller-classified agent tool actions.
The caller supplies the action class, autonomy posture, allowlist result, and
optional guard result. This module returns :allow for internal work. It returns
:act or :gate for outward work.
Summary
Functions
Decides the pre-dispatch verdict for a classified action.
Types
@type guard() :: :allow | :block
@type input() :: %{ :class => action_class(), :posture => posture(), :allowlisted? => boolean(), optional(:guard) => guard() }
@type posture() :: :safe | :auto
@type verdict() :: :allow | :act | :gate