--- phase: 1 slug: foundation status: draft nyquist_compliant: false wave_0_complete: false created: 2026-04-02 --- # Phase 1 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework** | xUnit 2.x | | **Config file** | none — Wave 0 installs | | **Quick run command** | `dotnet test --filter "Category=Unit" --no-build` | | **Full suite command** | `dotnet test --no-build` | | **Estimated runtime** | ~30 seconds | --- ## Sampling Rate - **After every task commit:** Run `dotnet test --filter "Category=Unit" --no-build` - **After every plan wave:** Run `dotnet test --no-build` - **Before `/gsd:verify-work`:** Full suite must be green - **Max feedback latency:** 30 seconds --- ## Per-Task Verification Map | Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | |---------|------|------|-------------|-----------|-------------------|-------------|--------| | 1-xx-01 | TBD | 1 | FOUND-01 | smoke | `dotnet test --filter "FullyQualifiedName~AppStartupTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-02 | TBD | 1 | FOUND-02 | unit | `dotnet test --filter "FullyQualifiedName~ProfileServiceTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-03 | TBD | 1 | FOUND-03 | unit | `dotnet test --filter "FullyQualifiedName~MsalClientFactoryTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-04 | TBD | 1 | FOUND-04 | unit | `dotnet test --filter "FullyQualifiedName~SessionManagerTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-05 | TBD | 2 | FOUND-05 | unit | `dotnet test --filter "FullyQualifiedName~FeatureViewModelBaseTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-06 | TBD | 2 | FOUND-06 | unit | `dotnet test --filter "FullyQualifiedName~FeatureViewModelBaseTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-07 | TBD | 2 | FOUND-07 | manual | — | — | ⬜ pending | | 1-xx-08 | TBD | 2 | FOUND-08 | integration | `dotnet test --filter "FullyQualifiedName~LoggingIntegrationTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-09 | TBD | 2 | FOUND-09 | unit | `dotnet test --filter "FullyQualifiedName~TranslationSourceTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-10 | TBD | 1 | FOUND-10 | unit | `dotnet test --filter "FullyQualifiedName~ProfileRepositoryTests" -x` | ❌ W0 | ⬜ pending | | 1-xx-12 | TBD | 1 | FOUND-12 | unit | `dotnet test --filter "FullyQualifiedName~SettingsServiceTests" -x` | ❌ W0 | ⬜ pending | *Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* --- ## Wave 0 Requirements - [ ] `SharepointToolbox.Tests/SharepointToolbox.Tests.csproj` — xUnit test project; packages: xunit, xunit.runner.visualstudio, Moq, Microsoft.NET.Test.Sdk - [ ] `SharepointToolbox.Tests/Services/ProfileServiceTests.cs` — covers FOUND-02, FOUND-10 - [ ] `SharepointToolbox.Tests/Services/SettingsServiceTests.cs` — covers FOUND-12 - [ ] `SharepointToolbox.Tests/Auth/MsalClientFactoryTests.cs` — covers FOUND-03 - [ ] `SharepointToolbox.Tests/Auth/SessionManagerTests.cs` — covers FOUND-04 - [ ] `SharepointToolbox.Tests/ViewModels/FeatureViewModelBaseTests.cs` — covers FOUND-05, FOUND-06 - [ ] `SharepointToolbox.Tests/Localization/TranslationSourceTests.cs` — covers FOUND-09 - [ ] `SharepointToolbox.Tests/Integration/LoggingIntegrationTests.cs` — covers FOUND-08 --- ## Manual-Only Verifications | Behavior | Requirement | Why Manual | Test Instructions | |----------|-------------|------------|-------------------| | Global exception handler shows MessageBox on unhandled exception | FOUND-07 | UI dialog cannot be asserted in xUnit without a WPF test harness | Launch app; trigger an unhandled exception via debug; verify MessageBox appears and log is written | --- ## 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 < 30s - [ ] `nyquist_compliant: true` set in frontmatter **Approval:** pending