slug: user-preferences title: User Preferences API created: 2026-02-08T01:41:06.381540844Z phase: draft phase_history: - phase: draft entered: 2026-02-08T01:41:06.381540844Z 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: Remove example scaffold - delete all example entity files status: pending - id: task-002 title: Domain layer - preferences entity, validation, merge logic status: pending - id: task-003 title: Port interface - PreferencesRepository with Get and Upsert status: pending - id: task-004 title: In-memory adapter - thread-safe map implementation status: pending - id: task-005 title: Service layer - PreferencesService with Get and Upsert merge logic status: pending - id: task-006 title: HTTP handlers - GET and PUT with auth, validation, error mapping status: pending - id: task-007 title: Routes and OpenAPI spec - wire endpoints and document API status: pending - id: task-008 title: Wire main.go and integration - connect all layers status: pending