docs(03): phase 3 plans, validation, and research

This commit is contained in:
Pierre Martin
2026-03-23 19:36:15 +01:00
parent 005c6c1214
commit 10a9d95116
2 changed files with 75 additions and 1 deletions

View File

@@ -124,7 +124,7 @@ func DisplaySessionInfos(w io.Writer, sessions []SessionInfo, noColor bool, now
<task type="auto" tdd="true"> <task type="auto" tdd="true">
<name>Task 1: Hook server dans Daemon, graceful degradation, poll dynamique</name> <name>Task 1: Hook server dans Daemon, graceful degradation, poll dynamique</name>
<files>daemon.go, daemon_test.go</files> <files>daemon.go, daemon_test.go, hook.go</files>
<read_first> <read_first>
- daemon.go (Daemon struct, Start, Stop, pollLoop, NewDaemon) - daemon.go (Daemon struct, Start, Stop, pollLoop, NewDaemon)
- hook.go (handleHook, processHookEvent, crees par Plan 01) - hook.go (handleHook, processHookEvent, crees par Plan 01)

View File

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