---
phase: 7
slug: archive-lifecycle-controls
status: complete
nyquist_compliant: true
wave_0_complete: true
created: 2026-03-10
validated: 2026-03-11
---

# Phase 7 — Validation Strategy

> Per-phase validation contract for feedback sampling during execution.

---

## Test Infrastructure

| Property | Value |
|----------|-------|
| **Framework** | Rust built-in `#[cfg(test)]` with `cargo test` |
| **Config file** | None (Cargo workspace default) |
| **Quick run command** | `cargo test -p app archive` |
| **Full suite command** | `cargo test --workspace` |
| **Estimated runtime** | ~15 seconds |
| **Test file** | `crates/app/src/dashboard/archive.rs` (inline `#[cfg(test)]` module) |
| **Test count** | 16 unit tests |

---

## Sampling Rate

- **After every task commit:** Run `cargo test -p app archive`
- **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 |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 07-01-01 | 01 | 1 | ARCH-01 | unit | `cargo test -p app filter_cards_by_archive` | YES (3 tests) | GREEN |
| 07-01-02 | 01 | 1 | ARCH-01 | unit | `cargo test -p app hidden_archived` | YES (1 test) | GREEN |
| 07-01-03 | 01 | 1 | ARCH-02 | unit | `cargo test -p app auto_archive` | YES (2 tests) | GREEN |
| 07-01-04 | 01 | 1 | ARCH-02 | unit | `cargo test -p app latch` | YES (1 test) | GREEN |
| 07-01-05 | 01 | 1 | ARCH-02 | unit | `cargo test -p app promote_tba` | YES (4 tests) | GREEN |
| 07-01-06 | 01 | 1 | ARCH-03 | unit | `cargo test -p app manual_archive` | YES (1 test) | GREEN |
| 07-01-07 | 01 | 1 | ARCH-03 | unit | `cargo test -p app manual_unarchive` | YES (2 tests) | GREEN |
| 07-01-08 | 01 | 1 | ARCH-03 | unit | `cargo test -p app undo_archive` | YES (1 test) | GREEN |
| 07-02-01 | 02 | 2 | ARCH-01 | unit | `cargo test -p app archive` | YES (16 tests) | GREEN |

*Status: PENDING · GREEN · RED · FLAKY*

---

## Wave 0 Requirements

- [x] `crates/app/src/dashboard/archive.rs` — module with ArchiveState, ArchiveRecord, ArchiveStore, filter and compute functions + tests
- [x] Tests in archive.rs cover ARCH-01, ARCH-02, ARCH-03 (all unit tests for state logic)

---

## Manual-Only Verifications

| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| Show archived chip toggles archive visibility in UI | ARCH-01 | Slint UI rendering | Toggle chip, verify archived cards appear/disappear |
| Hover controls show Archive/Unarchive button | ARCH-03 | Slint hover interaction | Hover card, verify button appears, click to archive |
| Archived count hint displays correctly | ARCH-01 | Visual rendering | Archive cards, verify "(N archived)" text |

---

## Validation Sign-Off

- [x] All tasks have `<automated>` verify or Wave 0 dependencies
- [x] Sampling continuity: no 3 consecutive tasks without automated verify
- [x] Wave 0 covers all MISSING references
- [x] No watch-mode flags
- [x] Feedback latency < 15s
- [x] `nyquist_compliant: true` set in frontmatter

**Approval:** PASSED

---

## Validation Audit 2026-03-11

| Metric | Count |
|--------|-------|
| Gaps found | 0 |
| Resolved | 0 |
| Escalated | 0 |
| Total tests | 16 |
| All green | YES |
