docs(phase-07): add validation strategy

This commit is contained in:
2026-04-10 17:03:46 +02:00
parent 3e3d4860aa
commit 56578c8e9f
@@ -0,0 +1,75 @@
---
phase: 7
slug: dashboard-nav-polish
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-04-10
---
# Phase 7 — Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **Framework** | pytest |
| **Config file** | none — discovered via convention |
| **Quick run command** | `pytest tests/test_static.py -x` |
| **Full suite command** | `pytest tests/ -x` |
| **Estimated runtime** | ~5 seconds |
---
## Sampling Rate
- **After every task commit:** Run `pytest tests/test_static.py -x`
- **After every plan wave:** Run `pytest tests/ -x`
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** 5 seconds
---
## Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 07-01-01 | 01 | 0 | SC-1,2,3 | integration | `pytest tests/test_static.py -x` | ✅ (add tests) | ⬜ pending |
| 07-01-02 | 01 | 1 | SC-1 | integration | `pytest tests/test_static.py::test_packages_returns_200 -x` | ❌ W0 | ⬜ pending |
| 07-01-03 | 01 | 1 | SC-2,3 | integration | `pytest tests/test_static.py::test_dashboard_shows_recent_printers -x` | ❌ W0 | ⬜ pending |
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
---
## Wave 0 Requirements
- [ ] `tests/test_static.py` — add `test_packages_returns_200`, `test_dashboard_shows_recent_printers`, `test_dashboard_shows_recent_packages` (file exists, add to it)
- [ ] `imptune/templates/packages.html` — new template file needed
*Existing infrastructure covers framework install — pytest already available.*
---
## Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| Nav link highlights active on /packages | UX polish | CSS active-class visual state | 1. Navigate to /packages 2. Verify nav item is visually highlighted |
---
## 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