# Tasks: Device Categories (Enrollment/Organization) (028) **Branch**: `feat/028-device-categories` **Date**: 2026-01-04 **Input**: [spec.md](./spec.md), [plan.md](./plan.md) ## Phase 1: Setup - [x] T001 Create spec/plan/tasks and checklist. ## Phase 2: Research & Design - [ ] T002 Confirm Graph resource + patchability for `deviceCategories`. - [ ] T003 Decide mapping rules (by displayName) and restore idempotency behavior. ## Phase 3: Tests (TDD) - [ ] T004 Add foundation snapshot test for `deviceCategory`. - [ ] T005 Add foundation restore test (create missing + idempotent behavior). ## Phase 4: Implementation - [ ] T006 Add `deviceCategory` to `config/tenantpilot.php` foundation types. - [ ] T007 Add contract entry in `config/graph_contracts.php`. - [ ] T008 Implement foundation snapshot fetch for device categories. - [ ] T009 Implement foundation restore mapping + apply. ## Phase 5: Verification - [ ] T010 Run targeted tests. - [ ] T011 Run Pint (`./vendor/bin/pint --dirty`).