Skip to main content

map_policy

Function map_policy 

Source
pub fn map_policy(status: DeonticStatus, g: Governance) -> PolicyMode
Expand description

Map a deontic status + classification to the runtime PolicyMode.

Order of precedence: ambiguity (ask the human) → violation (block if non-derogable, else audit) → in-force humanitarian (prioritize) → otherwise allow.