Design and Implement a To-Do Workflow Application
Build a small task application with explicit lifecycle rules, persistence boundaries, and reviewable tests.
For this exercise, assume an authenticated user creates, edits, completes, reopens, lists, and deletes personal tasks. Each task has a title, optional description and due instant, lifecycle version, and created and updated timestamps.
Commands require an expected version so concurrent edits cannot silently overwrite one another; repeated create requests use an idempotency key; lists support status filtering and stable pagination.
Design the domain, application services, repository ports, and error model, then implement the task lifecycle core with tests. Exclude collaboration, reminders, and recurring tasks.