Add lib/api/routes/tasks.js: list by space (status filter), list by project (position then created_at), create scoped to space with optional project_id, get/patch/delete by id. status=done flips completed_at via the repo's existing trigger logic. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>