From 1d78b7dc3ad09e4fe68f6be45a2cff5749579b7c Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Mon, 23 Mar 2026 15:33:41 +0100 Subject: [PATCH] docs(phase-2): add research and validation strategy --- .../02-daemon-et-i3-bridge/02-VALIDATION.md | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .planning/phases/02-daemon-et-i3-bridge/02-VALIDATION.md diff --git a/.planning/phases/02-daemon-et-i3-bridge/02-VALIDATION.md b/.planning/phases/02-daemon-et-i3-bridge/02-VALIDATION.md new file mode 100644 index 0000000..ba867d8 --- /dev/null +++ b/.planning/phases/02-daemon-et-i3-bridge/02-VALIDATION.md @@ -0,0 +1,78 @@ +--- +phase: 2 +slug: daemon-et-i3-bridge +status: draft +nyquist_compliant: false +wave_0_complete: false +created: 2026-03-23 +--- + +# Phase 2 — Validation Strategy + +> Per-phase validation contract for feedback sampling during execution. + +--- + +## Test Infrastructure + +| Property | Value | +|----------|-------| +| **Framework** | go test (stdlib) | +| **Config file** | go.mod (already exists) | +| **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 | +|---------|------|------|-------------|-----------|-------------------|-------------|--------| +| 02-01-01 | 01 | 1 | DISC-04, STATE-04 | unit | `go test -run TestRegistry ./...` | ❌ W0 | ⬜ pending | +| 02-01-02 | 01 | 1 | I3-01 | unit | `go test -run TestResolveWorkspace ./...` | ❌ W0 | ⬜ pending | +| 02-02-01 | 02 | 2 | I3-02 | unit | `go test -run TestSwitch ./...` | ❌ W0 | ⬜ pending | +| 02-02-02 | 02 | 2 | DISC-04 | unit | `go test -run TestLabel ./...` | ❌ W0 | ⬜ pending | + +*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* + +--- + +## Wave 0 Requirements + +- [ ] `go get go.i3wm.org/i3/v4` — add i3 IPC dependency +- [ ] Test stubs for daemon registry, workspace resolution, client/server + +*If none: "Existing infrastructure covers all phase requirements."* + +--- + +## Manual-Only Verifications + +| Behavior | Requirement | Why Manual | Test Instructions | +|----------|-------------|------------|-------------------| +| `vmux switch auth` navigates to correct workspace | I3-02 | Requires real i3 WM | Run with 2+ Claude sessions in different workspaces, verify switch works | +| vmuxd autostart on `vmux list` | - | Requires daemon lifecycle | Run `vmux list`, verify vmuxd process appears in `ps` | +| Workspace column in `vmux list` | I3-01 | Requires real i3 | Verify workspace names appear correctly | + +--- + +## 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