From 56578c8e9f2104ff6be1aeed52e74fe7a37663f3 Mon Sep 17 00:00:00 2001 From: Kawa Date: Fri, 10 Apr 2026 17:03:46 +0200 Subject: [PATCH] docs(phase-07): add validation strategy --- .../07-dashboard-nav-polish/07-VALIDATION.md | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .planning/phases/07-dashboard-nav-polish/07-VALIDATION.md diff --git a/.planning/phases/07-dashboard-nav-polish/07-VALIDATION.md b/.planning/phases/07-dashboard-nav-polish/07-VALIDATION.md new file mode 100644 index 0000000..c9ad2d4 --- /dev/null +++ b/.planning/phases/07-dashboard-nav-polish/07-VALIDATION.md @@ -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 `` 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