From d597affc1b25e6b7076968c7028b1ff586055420 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sun, 19 Apr 2026 22:06:11 +0200 Subject: [PATCH] docs(38): add validation strategy Co-Authored-By: Claude Sonnet 4.6 --- .../38-admin-tag-management/38-VALIDATION.md | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 .planning/phases/38-admin-tag-management/38-VALIDATION.md diff --git a/.planning/phases/38-admin-tag-management/38-VALIDATION.md b/.planning/phases/38-admin-tag-management/38-VALIDATION.md new file mode 100644 index 0000000..ed6560a --- /dev/null +++ b/.planning/phases/38-admin-tag-management/38-VALIDATION.md @@ -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 `` 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