From ece532b053470971e1bd88add13e400dd6710796 Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Thu, 26 Mar 2026 20:46:43 +0100 Subject: [PATCH] docs(phase-6): add validation strategy --- .../06-VALIDATION.md | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .planning/phases/06-config-package-and-sound-overrides/06-VALIDATION.md diff --git a/.planning/phases/06-config-package-and-sound-overrides/06-VALIDATION.md b/.planning/phases/06-config-package-and-sound-overrides/06-VALIDATION.md new file mode 100644 index 0000000..108a621 --- /dev/null +++ b/.planning/phases/06-config-package-and-sound-overrides/06-VALIDATION.md @@ -0,0 +1,80 @@ +--- +phase: 06 +slug: config-package-and-sound-overrides +status: draft +nyquist_compliant: false +wave_0_complete: false +created: 2026-03-26 +--- + +# Phase 06 — Validation Strategy + +> Per-phase validation contract for feedback sampling during execution. + +--- + +## Test Infrastructure + +| Property | Value | +|----------|-------| +| **Framework** | go test (stdlib) | +| **Config file** | none — tests use in-memory TOML strings | +| **Quick run command** | `go test ./config/... -count=1` | +| **Full suite command** | `go test ./... -count=1` | +| **Estimated runtime** | ~2 seconds | + +--- + +## Sampling Rate + +- **After every task commit:** Run `go test ./config/... -count=1` +- **After every plan wave:** Run `go test ./... -count=1` +- **Before `/gsd:verify-work`:** Full suite must be green +- **Max feedback latency:** 2 seconds + +--- + +## Per-Task Verification Map + +| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | +|---------|------|------|-------------|-----------|-------------------|-------------|--------| +| 06-01-01 | 01 | 1 | CFG-01, CFG-04 | unit | `go test ./config/... -run TestParse` | ❌ W0 | ⬜ pending | +| 06-01-02 | 01 | 1 | CFG-02, CFG-03 | unit | `go test ./config/... -run TestDiscover` | ❌ W0 | ⬜ pending | +| 06-01-03 | 01 | 1 | CFG-05 | unit | `go test ./config/... -run TestUnknown` | ❌ W0 | ⬜ pending | +| 06-02-01 | 02 | 2 | CFG-01, CFG-04 | integration | `go test ./... -run TestRunSynthesis` | ❌ W0 | ⬜ pending | +| 06-02-02 | 02 | 2 | CFG-03 | integration | `go test ./cmd/... -run TestConfig` | ❌ W0 | ⬜ pending | + +*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* + +--- + +## Wave 0 Requirements + +- [ ] `config/config_test.go` — stubs for parse, discover, validate, merge tests +- [ ] Existing `go test` infrastructure covers all phase requirements + +*Existing test infrastructure (go test) covers all phase requirements. New test files created alongside implementation.* + +--- + +## Manual-Only Verifications + +| Behavior | Requirement | Why Manual | Test Instructions | +|----------|-------------|------------|-------------------| +| Auto-discover from `~/.config/netsynth/config.toml` | CFG-02 | Requires real home directory | Create config in `~/.config/netsynth/`, run netsynth, verify it loads | +| Ctrl+C after config load | CFG-01 | End-to-end with capture | Load config, start capture, Ctrl+C, verify MP3 uses overridden frequency | + +*Most behaviors have automated verification via unit tests with in-memory TOML.* + +--- + +## 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 < 2s +- [ ] `nyquist_compliant: true` set in frontmatter + +**Approval:** pending