--- phase: 1 slug: foundation status: draft nyquist_compliant: false wave_0_complete: false created: 2026-03-15 --- # Phase 1 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework** | flutter_test (bundled with Flutter SDK) | | **Config file** | none — Wave 0 creates test scaffolding | | **Quick run command** | `flutter test` | | **Full suite command** | `flutter test --coverage` | | **Estimated runtime** | ~10 seconds | --- ## Sampling Rate - **After every task commit:** Run `flutter test` - **After every plan wave:** Run `flutter test --coverage` - **Before `/gsd:verify-work`:** Full suite must be green + `dart analyze` clean (zero riverpod_lint issues) - **Max feedback latency:** 15 seconds --- ## Per-Task Verification Map | Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | |---------|------|------|-------------|-----------|-------------------|-------------|--------| | TBD | 01 | 0 | FOUND-01 | unit + smoke | `flutter test test/core/database/database_test.dart` | No — Wave 0 | ⬜ pending | | TBD | 01 | 0 | FOUND-02 | smoke | `dart analyze` | No — Wave 0 | ⬜ pending | | TBD | 01 | 0 | FOUND-03 | widget | `flutter test test/l10n/localization_test.dart` | No — Wave 0 | ⬜ pending | | TBD | 01 | 0 | FOUND-04 | widget | `flutter test test/shell/app_shell_test.dart` | No — Wave 0 | ⬜ pending | | TBD | 01 | 0 | THEME-01 | widget | `flutter test test/core/theme/theme_test.dart` | No — Wave 0 | ⬜ pending | | TBD | 01 | 0 | THEME-02 | unit | `flutter test test/core/theme/color_scheme_test.dart` | No — Wave 0 | ⬜ pending | *Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* --- ## Wave 0 Requirements - [ ] `test/core/database/database_test.dart` — covers FOUND-01 (database opens, schema version correct) - [ ] `test/l10n/localization_test.dart` — covers FOUND-03 (German strings load from ARB) - [ ] `test/shell/app_shell_test.dart` — covers FOUND-04 (navigation bar renders 3 tabs) - [ ] `test/core/theme/theme_test.dart` — covers THEME-01 (light/dark/system switching) - [ ] `test/core/theme/color_scheme_test.dart` — covers THEME-02 (sage green seed, warm surfaces) - [ ] Drift migration test scaffolding via `dart run drift_dev make-migrations` (auto-generated) --- ## Manual-Only Verifications | Behavior | Requirement | Why Manual | Test Instructions | |----------|-------------|------------|-------------------| | Warm dark mode visual appearance | THEME-02 | Color perception is subjective — hex values pass tests but need visual review | Launch app, toggle to dark mode, verify charcoal-brown feel (not cold/blue-gray) | | Thematic tab icons look correct | FOUND-04 | Icon selection is a design judgment | Launch app, verify clipboard/door/sliders icons match household domain | --- ## Validation Sign-Off - [ ] All tasks have `` verify or Wave 0 dependencies - [ ] Sampling continuity: no 3 consecutive tasks without automated verify - [ ] Wave 0 covers all MISSING references - [ ] No watch-mode flags - [ ] Feedback latency < 15s - [ ] `nyquist_compliant: true` set in frontmatter **Approval:** pending