docs(38): add validation strategy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 22:06:11 +02:00
parent 136772d80c
commit d597affc1b

View File

@@ -0,0 +1,79 @@
---
phase: 38
slug: admin-tag-management
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-04-19
---
# Phase 38 — Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **Framework** | Bun test runner (built-in) |
| **Config file** | `bunfig.toml` |
| **Quick run command** | `bun test` |
| **Full suite command** | `bun test` |
| **Estimated runtime** | ~5 seconds |
---
## Sampling Rate
- **After every task commit:** Run `bun test`
- **After every plan wave:** Run `bun test`
- **Before `/gsd-verify-work`:** Full suite must be green
- **Max feedback latency:** 5 seconds
---
## Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Threat Ref | Secure Behavior | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|------------|-----------------|-----------|-------------------|-------------|--------|
| 38-01-01 | 01 | 1 | ADMN-05 | — | N/A | unit | `bun test` | ❌ W0 | ⬜ pending |
| 38-01-02 | 01 | 1 | ADMN-06 | — | N/A | unit | `bun test` | ❌ W0 | ⬜ pending |
| 38-01-03 | 01 | 1 | ADMN-07 | — | N/A | unit | `bun test` | ❌ W0 | ⬜ pending |
| 38-01-04 | 01 | 1 | ADMN-08, ADMN-09 | — | Cycle detection returns 400 | unit | `bun test` | ❌ W0 | ⬜ pending |
| 38-01-05 | 01 | 1 | ADMN-10 | — | N/A | unit | `bun test` | ❌ W0 | ⬜ pending |
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
---
## Wave 0 Requirements
- [ ] `tests/services/tag.service.test.ts` — stubs for ADMN-05 through ADMN-10
- [ ] `tests/routes/admin-tags.test.ts` — route-level tests for admin tag CRUD
*Existing test infrastructure covers framework setup.*
---
## Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| Tree view collapse/expand | ADMN-05 | Client-side UI interaction | Navigate to /admin/tags, verify chevron toggles collapse/expand child rows |
| Parent picker excludes descendants | ADMN-08 | Client-side dropdown filtering | Edit a parent tag, verify its children are excluded from parent picker options |
| Delete confirmation modal | ADMN-10 | Client-side modal interaction | Click delete on a tag with items, verify warning shows item count and child count |
---
## 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