The quality of AI-assisted software depends on unit of work management