From 3faba89614d2985ba03d9386ea7012ee3c806c55 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Mon, 23 Mar 2026 13:05:17 +0100 Subject: [PATCH] docs(phase-1): add validation strategy --- .../01-session-discovery/01-VALIDATION.md | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 .planning/phases/01-session-discovery/01-VALIDATION.md diff --git a/.planning/phases/01-session-discovery/01-VALIDATION.md b/.planning/phases/01-session-discovery/01-VALIDATION.md new file mode 100644 index 0000000..152c177 --- /dev/null +++ b/.planning/phases/01-session-discovery/01-VALIDATION.md @@ -0,0 +1,80 @@ +--- +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 ./internal/proc/...` | ❌ W0 | ⬜ pending | +| 01-01-02 | 01 | 1 | DISC-02 | unit | `go test ./internal/session/...` | ❌ W0 | ⬜ pending | +| 01-01-03 | 01 | 1 | DISC-03 | unit | `go test ./internal/session/...` | ❌ W0 | ⬜ pending | +| 01-02-01 | 02 | 1 | STATE-01 | unit | `go test ./internal/state/...` | ❌ W0 | ⬜ pending | +| 01-02-02 | 02 | 1 | STATE-02 | unit | `go test ./internal/state/...` | ❌ 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