Skip to main content

circuit_breaker

Function circuit_breaker 

Source
pub fn circuit_breaker(saturation: f32, threshold: f32) -> Option<PolicyMode>
Expand description

Trip the systemic circuit breaker when inconsistency saturation (from paraconsistent::local_saturation / global_saturation) reaches threshold: the system halts into PolicyMode::Interactive (ask a human) rather than act on a saturated, self-contradictory graph. Returns the override mode if tripped, else None.