diff --git a/.planning/phases/03-hook-server/03-02-PLAN.md b/.planning/phases/03-hook-server/03-02-PLAN.md index 2ef8db4..39aa70b 100644 --- a/.planning/phases/03-hook-server/03-02-PLAN.md +++ b/.planning/phases/03-hook-server/03-02-PLAN.md @@ -124,7 +124,7 @@ func DisplaySessionInfos(w io.Writer, sessions []SessionInfo, noColor bool, now Task 1: Hook server dans Daemon, graceful degradation, poll dynamique - daemon.go, daemon_test.go + daemon.go, daemon_test.go, hook.go - daemon.go (Daemon struct, Start, Stop, pollLoop, NewDaemon) - hook.go (handleHook, processHookEvent, crees par Plan 01) diff --git a/.planning/phases/03-hook-server/03-VALIDATION.md b/.planning/phases/03-hook-server/03-VALIDATION.md new file mode 100644 index 0000000..697b6c7 --- /dev/null +++ b/.planning/phases/03-hook-server/03-VALIDATION.md @@ -0,0 +1,74 @@ +--- +phase: 3 +slug: hook-server +status: draft +nyquist_compliant: false +wave_0_complete: false +created: 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 `` 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