---
phase: 20.1
slug: ui-polish-and-bug-fixes
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-04-12
---

# Phase 20.1 — Validation Strategy

> Per-phase validation contract for feedback sampling during execution.

---

## Test Infrastructure

| Property | Value |
|----------|-------|
| **Framework** | cargo test + BUGSWEEPER (HTTP debug server) |
| **Config file** | Cargo.toml (workspace) |
| **Quick run command** | `cargo test --workspace` |
| **Full suite command** | `cargo test --workspace && cargo build --features bugsweeper` |
| **Estimated runtime** | ~30 seconds |

---

## Sampling Rate

- **After every task commit:** Run `cargo test --workspace`
- **After every plan wave:** Run `cargo test --workspace && cargo build --features bugsweeper`
- **Before `/gsd-verify-work`:** Full suite must be green
- **Max feedback latency:** 30 seconds

---

## Per-Task Verification Map

| Task ID | Plan | Wave | Requirement | Threat Ref | Secure Behavior | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|------------|-----------------|-----------|-------------------|-------------|--------|
| 20.1-01-01 | 01 | 1 | SC07 | — | N/A | visual/build | `cargo build -p app` | ✅ | ⬜ pending |
| 20.1-01-02 | 01 | 1 | SC02,SC04,SC10 | — | N/A | visual/BUGSWEEPER | `cargo build -p app` | ✅ | ⬜ pending |
| 20.1-01-03 | 01 | 1 | SC03,SC09,SC14-slint,SC15,SC16 | — | N/A | visual/build | `cargo build -p app` | ✅ | ⬜ pending |
| 20.1-02-01 | 02 | 2 | SC01,SC05 | — | N/A | visual/BUGSWEEPER | `cargo build -p app` | ✅ | ⬜ pending |
| 20.1-02-02 | 02 | 2 | SC06 | — | N/A | visual/BUGSWEEPER | `cargo build -p app` | ✅ | ⬜ pending |
| 20.1-03-01 | 03 | 3 | SC08,SC11,SC12,SC14-rust | — | unique ID prevents misrouting | BUGSWEEPER/unit | `cargo test --workspace` | ✅ | ⬜ pending |
| 20.1-03-02 | 03 | 3 | SC13,SC17 | — | N/A | unit/build | `cargo test --workspace` | ✅ | ⬜ pending |
| 20.1-04-01 | 04 | 4 | SC18 | — | N/A | BUGSWEEPER | `cargo test --workspace` | ✅ | ⬜ pending |
| 20.1-04-02 | 04 | 4 | SC19 | — | N/A | BUGSWEEPER | `cargo build -p app` | ✅ | ⬜ pending |

*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*

---

## Wave 0 Requirements

Existing infrastructure covers all phase requirements. `cargo test --workspace` and BUGSWEEPER debug server provide automated and runtime verification.

---

## Manual-Only Verifications

| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| Avatar visual appearance (44px ring) | SC1 | Visual correctness requires screenshot | Launch app, inspect card avatars via screenshot |
| Font rendering quality | SC7 | Font metrics are visual | Compare before/after screenshots |
| Product image display quality | SC19 | Image contain/letterbox is visual | Add product with image, check card squares |

---

## 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 < 30s
- [ ] `nyquist_compliant: true` set in frontmatter

**Approval:** pending
