Files
2026-03-23 15:33:41 +01:00

79 lines
2.5 KiB
Markdown

---
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 `<automated>` 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