Files
Ready2Blob/.planning/phases/01-foundation/01-VALIDATION.md
T

77 lines
2.7 KiB
Markdown

---
phase: 1
slug: foundation
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-03-26
---
# Phase 1 — Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **Framework** | Vitest 2.x |
| **Config file** | `vitest.config.ts` — Wave 0 installs |
| **Quick run command** | `npx vitest run` |
| **Full suite command** | `npx vitest run --coverage` |
| **Estimated runtime** | ~5 seconds |
---
## Sampling Rate
- **After every task commit:** Run `npx vitest run`
- **After every plan wave:** Run `npx vitest run`
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** ~5 seconds
---
## Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 1-??-SC1 | scaffold | 1 | SC-1: Dev server starts | smoke (manual) | `npm run dev` — no console errors | N/A | ⬜ pending |
| 1-??-SC2 | registry | 1 | SC-2: Registry defines Azure Blob, S3, S3-compatible | unit | `npx vitest run src/schemas/registry.test.ts` | ❌ W0 | ⬜ pending |
| 1-??-SC3 | registry | 1 | SC-3: Zod schemas validate correct/incorrect input | unit | `npx vitest run src/schemas/index.test.ts` | ❌ W0 | ⬜ pending |
| 1-??-SC4 | store | 1 | SC-4: WizardState reducer initializes and accepts dispatch | unit | `npx vitest run src/store/reducer.test.ts` | ❌ W0 | ⬜ pending |
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
---
## Wave 0 Requirements
- [ ] `vitest.config.ts` — test runner configuration (node environment, globals: true)
- [ ] `src/schemas/registry.test.ts` — stubs verifying BackendType keys + FieldDef array structure (SC-2)
- [ ] `src/schemas/index.test.ts` — stubs verifying Zod safeParse success/failure for all three backends (SC-3)
- [ ] `src/store/reducer.test.ts` — stubs verifying all WizardAction types produce correct state transitions (SC-4)
---
## Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| Dev server starts with no console errors | SC-1 | Runtime environment check; not unit-testable | Run `npm run dev`, open browser, check devtools console for zero errors |
---
## Validation Sign-Off
- [ ] All tasks have `<automated>` 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 < 5s
- [ ] `nyquist_compliant: true` set in frontmatter
**Approval:** pending