fn validate_threshold_duration(duration_seconds: i32) -> ModelResult<()>Expand description
Guards the invariant that a stored threshold is never negative. progressing.rs treats a
stored value of <= 0 as “duration check disabled”, so a stray negative write would silently
turn off cheater detection; rejecting it here protects every writer, not just the HTTP handler.