---
phase: 5
slug: package-export
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-04-10
---

# Phase 5 — Validation Strategy

> Per-phase validation contract for feedback sampling during execution.

---

## Test Infrastructure

| Property | Value |
|----------|-------|
| **Framework** | pytest (existing test suite) |
| **Config file** | none — runs with `pytest tests/` |
| **Quick run command** | `pytest tests/test_packages.py tests/test_icon_upload.py -x` |
| **Full suite command** | `pytest tests/ -x` |
| **Estimated runtime** | ~10 seconds |

---

## Sampling Rate

- **After every task commit:** Run `pytest tests/test_packages.py tests/test_icon_upload.py -x`
- **After every plan wave:** Run `pytest tests/ -x`
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** 10 seconds

---

## Per-Task Verification Map

| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 05-01-01 | 01 | 1 | PKG-03 | integration | `pytest tests/test_packages.py::TestNinjaDownload -x` | ❌ W0 | ⬜ pending |
| 05-02-01 | 02 | 1 | PKG-01 | integration | `pytest tests/test_packages.py::TestIntunewinDownload -x` | ❌ W0 | ⬜ pending |
| 05-02-02 | 02 | 1 | PKG-02 | unit | `pytest tests/test_intunewin.py -x` | ✅ | ⬜ pending |
| 05-03-01 | 03 | 2 | PKG-04 | integration | `pytest tests/test_icon_upload.py -x` | ❌ W0 | ⬜ pending |
| 05-03-02 | 03 | 2 | PKG-05 | integration | `pytest tests/test_packages.py::TestCommandPreview -x` | ❌ W0 | ⬜ pending |

*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*

---

## Wave 0 Requirements

- [ ] `tests/test_packages.py` — stubs for PKG-01, PKG-03, PKG-05
- [ ] `tests/test_icon_upload.py` — stubs for PKG-04
- [ ] `requirements.txt` — add `Pillow>=10.0` if icon dimension validation is implemented

*PKG-02: existing `tests/test_intunewin.py` already covers the format — no new test file needed.*

---

## Manual-Only Verifications

| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| .intunewin accepted by real Intune tenant | PKG-01 | Requires live Azure/Intune environment | Upload generated .intunewin via Intune portal → verify app appears without errors |

---

## 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 < 10s
- [ ] `nyquist_compliant: true` set in frontmatter

**Approval:** pending
