Policy describing when a model-requested operation must pause for review.
A policy is definition data. Runtime approval still flows through
Jidoka.Review.Interrupt, Jidoka.Review.Request, and
Jidoka.Review.Response.
Summary
Functions
Normalizes an optional review policy, including boolean shorthand.
Builds a review policy from keyword or map attributes.
Builds a review policy and raises if the attributes are invalid.
Returns true when a policy requires human review.
Returns the Zoi schema for a review policy.
Projects a review policy into a stable map.
Types
Functions
@spec from_input(t() | keyword() | map() | true | false | nil) :: {:ok, t() | nil} | {:error, term()}
Normalizes an optional review policy, including boolean shorthand.
Builds a review policy from keyword or map attributes.
Builds a review policy and raises if the attributes are invalid.
Returns true when a policy requires human review.
@spec schema() :: Zoi.schema()
Returns the Zoi schema for a review policy.
Projects a review policy into a stable map.