Files
vmux/.planning/phases/03-hook-server/03-VALIDATION.md
2026-03-23 19:36:15 +01:00

2.3 KiB

phase, slug, status, nyquist_compliant, wave_0_complete, created
phase slug status nyquist_compliant wave_0_complete created
3 hook-server draft false false 2026-03-23

Phase 3 — Validation Strategy

Per-phase validation contract for feedback sampling during execution.


Test Infrastructure

Property Value
Framework go test (stdlib)
Config file go.mod (exists)
Quick run command go test ./...
Full suite command go test -v -race ./...
Estimated runtime ~6 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: 6 seconds

Per-Task Verification Map

Task ID Plan Wave Requirement Test Type Automated Command File Exists Status
03-01-01 01 1 STATE-03 unit go test -run TestProcessHookEvent ./... W0 pending
03-01-02 01 1 STATE-03 unit go test -run TestHandleHook ./... W0 pending
03-02-01 02 2 STATE-03 unit go test -run TestDaemonHookServer ./... W0 pending
03-02-02 02 2 STATE-03 unit go test -run TestDisplayWaitType ./... W0 pending

Status: pending · green · red · ⚠️ flaky


Wave 0 Requirements

  • Test stubs for hook event processing and HTTP handler

Manual-Only Verifications

Behavior Requirement Why Manual Test Instructions
Hook events arrive in < 1s STATE-03 Requires real Claude Code session sending hooks Configure hooks in settings.json, trigger a tool use, verify vmux list updates immediately
WaitType displayed correctly STATE-03 Requires real permission/idle prompts Trigger permission prompt, check vmux list shows correct wait type

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 < 6s
  • nyquist_compliant: true set in frontmatter

Approval: pending