docs(phase-09): add research and validation strategy
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
---
|
||||
phase: 9
|
||||
slug: weight-classification-and-visualization
|
||||
status: draft
|
||||
nyquist_compliant: false
|
||||
wave_0_complete: false
|
||||
created: 2026-03-16
|
||||
---
|
||||
|
||||
# Phase 9 — Validation Strategy
|
||||
|
||||
> Per-phase validation contract for feedback sampling during execution.
|
||||
|
||||
---
|
||||
|
||||
## Test Infrastructure
|
||||
|
||||
| Property | Value |
|
||||
|----------|-------|
|
||||
| **Framework** | Bun test runner |
|
||||
| **Config file** | none — existing infrastructure |
|
||||
| **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 | Test Type | Automated Command | File Exists | Status |
|
||||
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
|
||||
| 09-01-01 | 01 | 1 | CLAS-01, CLAS-04 | unit | `bun test tests/services/setup.service.test.ts` | ❌ W0 | ⬜ pending |
|
||||
| 09-01-02 | 01 | 1 | CLAS-03 | unit | `bun test tests/services/setup.service.test.ts` | ❌ W0 | ⬜ pending |
|
||||
| 09-01-03 | 01 | 1 | CLAS-01 | route | `bun test tests/routes/setups.test.ts` | ❌ W0 | ⬜ pending |
|
||||
| 09-02-01 | 02 | 2 | CLAS-02 | unit | `bun test tests/services/setup.service.test.ts` | ❌ W0 | ⬜ pending |
|
||||
| 09-02-02 | 02 | 2 | VIZZ-01, VIZZ-02, VIZZ-03 | manual | N/A — visual component | N/A | ⬜ pending |
|
||||
|
||||
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
|
||||
|
||||
---
|
||||
|
||||
## Wave 0 Requirements
|
||||
|
||||
- [ ] `tests/services/setup.service.test.ts` — classification CRUD tests (service layer)
|
||||
- [ ] `tests/routes/setups.test.ts` — classification API endpoint tests
|
||||
- [ ] `tests/helpers/db.ts` — update CREATE TABLE for setup_items to include classification column
|
||||
|
||||
*Existing test infrastructure covers framework setup. Wave 0 adds phase-specific test files.*
|
||||
|
||||
---
|
||||
|
||||
## Manual-Only Verifications
|
||||
|
||||
| Behavior | Requirement | Why Manual | Test Instructions |
|
||||
|----------|-------------|------------|-------------------|
|
||||
| Classification badge click-to-cycle | CLAS-01 | UI interaction, React component | Click badge on item card in setup, verify it cycles base→worn→consumable→base |
|
||||
| Summary card weight subtotals | CLAS-02 | Visual layout verification | Add items to setup, classify some as worn/consumable, verify subtotals update |
|
||||
| Donut chart renders with segments | VIZZ-01 | Recharts canvas/SVG rendering | Open setup with items, verify donut chart shows colored segments |
|
||||
| Chart toggle category/classification | VIZZ-02 | UI interaction | Click pill toggle, verify chart segments change between category and classification views |
|
||||
| Chart hover tooltips | VIZZ-03 | Hover interaction | Hover over donut segments, verify tooltip shows name, weight, percentage |
|
||||
|
||||
---
|
||||
|
||||
## 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
|
||||
Reference in New Issue
Block a user