Job lifecycle states, JSON types and the queue protocol with its errors. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>