slug: user-preferences title: User Preferences API created: 2026-02-08T05:49:49.197429066Z phase: draft phase_history: - phase: draft entered: 2026-02-08T05:49:49.197429066Z artifacts: audit: status: pending path: audit.md design: status: draft path: design.md qa_plan: status: pending path: qa-plan.md qa_results: status: pending path: qa-results.md review: status: pending path: review.md spec: status: draft path: spec.md tasks: status: draft path: tasks.md total: 8 tasks: - id: task-001 title: Domain layer - preference types, validation, defaults, and domain errors status: pending - id: task-002 title: Port layer - PreferenceRepository interface and row type status: pending - id: task-003 title: Service layer - PreferenceService with get, update, validation logic and unit tests status: pending - id: task-004 title: Database migration - create user_preferences table status: pending - id: task-005 title: PostgreSQL adapter - implement PreferenceRepository with sqlx status: pending - id: task-006 title: Handler layer - GET and PUT preference handlers with error mapping and handler tests status: pending - id: task-007 title: Routes, OpenAPI spec, and main.go wiring status: pending - id: task-008 title: Cleanup - remove example scaffold files status: pending