pub fn safety_margin(budget_remaining: f64, change_rate: f64) -> f64Expand description
Margin of safety: how far inside the safe region the current state is.
Returns the barrier value directly — higher is safer, zero is the boundary, negative means degradation territory.