--- phase: 1 slug: session-discovery status: draft nyquist_compliant: false wave_0_complete: false created: 2026-03-23 --- # Phase 1 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework** | go test (stdlib) | | **Config file** | none — Wave 0 creates go.mod + first test files | | **Quick run command** | `go test ./...` | | **Full suite command** | `go test -v -race ./...` | | **Estimated runtime** | ~5 seconds | --- ## Sampling Rate - **After every task commit:** Run `go test ./...` - **After every plan wave:** Run `go test -v -race ./...` - **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 | |---------|------|------|-------------|-----------|-------------------|-------------|--------| | 01-01-01 | 01 | 1 | DISC-01 | unit | `go test -run TestFindClaudeProcesses ./...` | ❌ W0 | ⬜ pending | | 01-01-02 | 01 | 1 | DISC-02 | unit | `go test -run TestEncodePath ./...` | ❌ W0 | ⬜ pending | | 01-01-03 | 01 | 1 | DISC-03 | unit | `go test -run TestEncodePath ./...` | ❌ W0 | ⬜ pending | | 01-02-01 | 02 | 1 | STATE-01 | unit | `go test -run TestDetectState ./...` | ❌ W0 | ⬜ pending | | 01-02-02 | 02 | 1 | STATE-02 | unit | `go test -run TestExtractPreview ./...` | ❌ W0 | ⬜ pending | *Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* --- ## Wave 0 Requirements - [ ] `go.mod` — initialize Go module - [ ] `shell.nix` / `.envrc` — NixOS dev environment - [ ] `Makefile` — build/test/lint commands - [ ] Test directory structure with initial stubs *If none: "Existing infrastructure covers all phase requirements."* --- ## Manual-Only Verifications | Behavior | Requirement | Why Manual | Test Instructions | |----------|-------------|------------|-------------------| | `vmux list` shows all active sessions | DISC-01 | Requires multiple real Claude Code sessions running | Run 2+ claude sessions, run `vmux list`, verify all appear | | State detection accuracy | STATE-01 | Requires sessions in different states | Have one session working, one idle, verify correct state display | --- ## 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 < 5s - [ ] `nyquist_compliant: true` set in frontmatter **Approval:** pending