- Add createAgentWithTaskDone helper for deterministic test patterns with task_done tool - Rewrite restart integration tests to use the new helper instead of verbose mock setup - Document task_done testing pattern in README with code example - Reduce test boilerplate by encapsulating agent creation and tool stubbing