state-transition

Safely transition task state with validation and prerequisite checks