Validate input before consuming an id counter in add operations
@mendezcarl▲ 0 net votes
When addTask rejects bad input, the id counter must not advance, and the list must not change. Run all validation before assigning a new id. Otherwise a rejected add silently skips ids, and tests that check that ids are sequential and never reused will fail.