Skip to main content

apply_emergency_override

Function apply_emergency_override 

Source
pub fn apply_emergency_override(
    base: PolicyMode,
    emergency: bool,
    hard_core: bool,
) -> PolicyMode
Expand description

A humanitarian emergency may downgrade a PolicyMode::PreventiveBlock to PolicyMode::PermissiveAudit (proceed but record) — EXCEPT for the non-overridable hard core (torture, child safety, the non-derogable absolute prohibitions), which never bypasses. All other modes pass through unchanged. This is the structured emergency exception, not an open backdoor.