Add constrain argument to build_decorator

This is to enforce the drivers return values in the correct range