---
phase: 12
slug: production-data-client
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-03-20
---

# Phase 12 — Validation Strategy

> Per-phase validation contract for feedback sampling during execution.

---

## Test Infrastructure

| Property | Value |
|----------|-------|
| **Framework** | cargo test (Rust built-in) |
| **Config file** | Cargo.toml workspace |
| **Quick run command** | `cargo test -p app --lib` |
| **Full suite command** | `cargo test --workspace` |
| **Estimated runtime** | ~15 seconds |

---

## Sampling Rate

- **After every task commit:** Run `cargo test -p app --lib`
- **After every plan wave:** Run `cargo test --workspace`
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** 15 seconds

---

## Per-Task Verification Map

| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 12-01-01 | 01 | 1 | integration | unit | `cargo test -p app --lib` | TBD | ⬜ pending |

*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*

---

## Wave 0 Requirements

*Existing infrastructure covers unit testing. Integration tests for real HTTP clients will need mock servers or recorded responses.*

---

## Manual-Only Verifications

| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| App displays live GitHub Project data | Success Criteria 2 | Requires real API credentials | Configure credentials, launch app, verify recipient cards appear from GitHub Project |
| App displays live Shopify data | Success Criteria 2 | Requires real API credentials | Verify shipment status, order URLs from Shopify |
| Background sync populates cards | Success Criteria 1 | Requires service runtime | Launch app, wait for background sync, verify cards appear |
| Settings UI saves credentials | Config setup | Requires interactive UI | Open settings, enter credentials, verify they persist to Windows Credential Manager |
| Degraded mode indicator | Startup flow | Requires network failure | Disconnect network, launch app, verify status indicator shows disconnected |

---

## 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 < 15s
- [ ] `nyquist_compliant: true` set in frontmatter

**Approval:** pending
