94 lines
4.0 KiB
Markdown
94 lines
4.0 KiB
Markdown
---
|
|
phase: 6
|
|
slug: new-backends
|
|
status: complete
|
|
nyquist_compliant: true
|
|
wave_0_complete: true
|
|
created: 2026-03-30
|
|
audited: 2026-03-31
|
|
---
|
|
|
|
# Phase 6 — Validation Strategy
|
|
|
|
> Per-phase validation contract for feedback sampling during execution.
|
|
|
|
---
|
|
|
|
## Test Infrastructure
|
|
|
|
| Property | Value |
|
|
|----------|-------|
|
|
| **Framework** | Vitest 4.1.1 |
|
|
| **Config file** | `vitest.config.ts` (root) |
|
|
| **Quick run command** | `npx vitest run src/schemas/registry.test.ts src/generators/rclone-conf.test.ts src/components/wizard/RemoteConfigStep.test.tsx` |
|
|
| **Full suite command** | `npx vitest run` |
|
|
| **Estimated runtime** | ~15 seconds |
|
|
|
|
---
|
|
|
|
## Sampling Rate
|
|
|
|
- **After every task commit:** Run `npx vitest run`
|
|
- **After every plan wave:** Run `npx vitest run` + `npx tsc --noEmit`
|
|
- **Before `/gsd:verify-work`:** Full suite must be green + zero TypeScript errors
|
|
- **Max feedback latency:** ~15 seconds
|
|
|
|
---
|
|
|
|
## Per-Task Verification Map
|
|
|
|
| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|
|
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
|
|
| 06-W0-01 | W0 | 0 | BACK-01..04 | unit | `npx vitest run src/schemas/registry.test.ts` | ✅ | ✅ green |
|
|
| 06-W0-02 | W0 | 0 | BACK-01..04 | unit | `npx vitest run src/generators/rclone-conf.test.ts` | ✅ | ✅ green |
|
|
| 06-W0-03 | W0 | 0 | BACK-01..04 | unit | `npx vitest run src/components/wizard/RemoteConfigStep.test.tsx` | ✅ | ✅ green |
|
|
| 06-01-01 | 01 | 1 | BACK-01 | unit | `npx vitest run src/schemas/registry.test.ts src/generators/rclone-conf.test.ts` | ✅ | ✅ green |
|
|
| 06-01-02 | 01 | 1 | BACK-02 | unit | `npx vitest run src/schemas/registry.test.ts src/generators/rclone-conf.test.ts src/components/wizard/RemoteConfigStep.test.tsx` | ✅ | ✅ green |
|
|
| 06-01-03 | 01 | 1 | BACK-03 | unit | `npx vitest run src/schemas/registry.test.ts src/generators/rclone-conf.test.ts` | ✅ | ✅ green |
|
|
| 06-01-04 | 01 | 1 | BACK-04 | unit | `npx vitest run src/schemas/registry.test.ts src/generators/rclone-conf.test.ts` | ✅ | ✅ green |
|
|
| 06-02-01 | 02 | 2 | BACK-01..04 | unit | `npx vitest run` | ✅ | ✅ green |
|
|
|
|
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
|
|
|
|
---
|
|
|
|
## Wave 0 Requirements
|
|
|
|
- [x] `src/schemas/registry.test.ts` — update `EXPECTED_BACKENDS` to include all 7 backends; add SFTP assertions (host, user, pass, key_pem); add B2 (account, key); add GCS (project_number, service_account_credentials); add OneDrive (token, drive_id, drive_type)
|
|
- [x] `src/generators/rclone-conf.test.ts` — add fixtures for onedrive, sftp (password), sftp (key), gcs, b2; assert type string and key fields; assert gcs produces `type = google cloud storage` (with spaces)
|
|
- [x] `src/components/wizard/RemoteConfigStep.test.tsx` — add describe blocks for BACK-01 (OneDrive), BACK-02 (SFTP with toggle assertions), BACK-03 (GCS), BACK-04 (B2) using existing `renderWithBackend` helper
|
|
|
|
---
|
|
|
|
## Manual-Only Verifications
|
|
|
|
| Behavior | Requirement | Why Manual | Test Instructions |
|
|
|----------|-------------|------------|-------------------|
|
|
| All 4 new backends appear in BackendSelectionStep UI | BACK-01..04 | Visual confirmation of card layout | Open wizard, confirm OneDrive, SFTP, GCS, B2 cards visible |
|
|
| Download bundle contains valid rclone.conf + scripts | BACK-01..04 | File download flow requires browser interaction | Complete wizard for each backend, download bundle, inspect contents |
|
|
|
|
---
|
|
|
|
## Validation Sign-Off
|
|
|
|
- [x] All tasks have `<automated>` verify or Wave 0 dependencies
|
|
- [x] Sampling continuity: no 3 consecutive tasks without automated verify
|
|
- [x] Wave 0 covers all MISSING references
|
|
- [x] No watch-mode flags
|
|
- [x] Feedback latency < 15s
|
|
- [x] `nyquist_compliant: true` set in frontmatter
|
|
|
|
**Approval:** 2026-03-31 — full suite 159/159 green
|
|
|
|
---
|
|
|
|
## Validation Audit 2026-03-31
|
|
|
|
| Metric | Count |
|
|
|--------|-------|
|
|
| Gaps found | 8 |
|
|
| Resolved | 8 |
|
|
| Escalated | 0 |
|
|
|
|
All 8 tasks verified green. 88/88 targeted tests pass. Full suite 159/159 green.
|