From 7d6cf31b05e753c3f7e698a536bad2330303c82c Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 16 Mar 2026 14:58:58 +0100 Subject: [PATCH] docs(phase-09): add research and validation strategy Co-Authored-By: Claude Opus 4.6 --- .../09-VALIDATION.md | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .planning/phases/09-weight-classification-and-visualization/09-VALIDATION.md diff --git a/.planning/phases/09-weight-classification-and-visualization/09-VALIDATION.md b/.planning/phases/09-weight-classification-and-visualization/09-VALIDATION.md new file mode 100644 index 0000000..9dce742 --- /dev/null +++ b/.planning/phases/09-weight-classification-and-visualization/09-VALIDATION.md @@ -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 `` 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