slug: user-preferences title: User Preferences API created: 2026-02-08T09:06:06.819418064Z phase: draft phase_history: - phase: draft entered: 2026-02-08T09:06:06.819418064Z artifacts: audit: status: pending path: audit.md design: status: draft path: design.md qa_plan: status: draft 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 - preferences types, validation, defaults, and errors status: pending - id: task-002 title: Port layer - PreferencesRepository interface status: pending - id: task-003 title: Database migration - user_preferences table status: pending - id: task-004 title: PostgreSQL adapter - PreferencesRepository implementation status: pending - id: task-005 title: Service layer - PreferencesService with get/set logic and tests status: pending - id: task-006 title: HTTP handlers - GET and PUT with auth, mapping, and tests status: pending - id: task-007 title: Routes, OpenAPI spec, and main.go wiring status: pending - id: task-008 title: Remove example scaffold code status: pending