constrained batches silently accepts max count=0 and negative values
constrained batches silently accepts max count=0 and negative values: a task in repo2rlenv-swe-next (Harbor dataset). Passing max count=0 or a negative integer to constrained batches should be invalid — a batch can't hold zero or fewer items. However, the function currently accepts these values…
The task
Passing `max_count=0` or a negative integer to `constrained_batches` should be invalid — a batch can't hold zero or fewer items. However, the function currently accepts these values without complaint and just produces unexpected results.
Part of FineEnvs/repo2rlenv-swe-next.