---
phase: 18
slug: gh-issues-write-back-notes-and-card-cloud-storage
status: draft
nyquist_compliant: true
wave_0_complete: false
created: 2026-03-27
---

# Phase 18 — 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 --lib -p wit_core -p integrations -p service` |
| **Full suite command** | `cargo test --workspace` |
| **Estimated runtime** | ~30 seconds |

---

## Sampling Rate

- **After every task commit:** Run `cargo test --lib -p integrations -p service -p app`
- **After every plan wave:** Run `cargo test --workspace`
- **Before `/gsd:verify-work`:** Full suite must be green
- **Max feedback latency:** 30 seconds

---

## Per-Task Verification Map

| Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status |
|---------|------|------|-------------|-----------|-------------------|-------------|--------|
| 18-01-01 | 01 | 1 | CLOUD-01 | unit | `cargo test -p integrations -- card_issue` | Present in plan verify | ⬜ pending |
| 18-01-02 | 01 | 1 | CLOUD-01 | unit | `cargo test -p service` | Present in plan verify | ⬜ pending |
| 18-02-01 | 02 | 2 | CLOUD-01 | build | `cargo build -p app` | Present in plan verify | ⬜ pending |
| 18-02-02 | 02 | 2 | CLOUD-05 | build | `cargo build -p app` | Present in plan verify | ⬜ pending |
| 18-02-03 | 02 | 2 | CLOUD-02 | build | `cargo build -p app` | Present in plan verify | ⬜ pending |
| 18-03-01 | 03 | 3 | CLOUD-02 | build | `cargo build -p app` | Present in plan verify | ⬜ pending |
| 18-03-02 | 03 | 3 | CLOUD-02 | build+test | `cargo build --workspace && cargo test --workspace` | Present in plan verify | ⬜ pending |

*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*

---

## Wave 0 Requirements

- [ ] Unit test stubs for `CardIssueBody` serialization/deserialization
- [ ] Unit test stubs for `create_issue_comment()` and `edit_issue_title()` methods
- [ ] Unit test stubs for `format_note_comment`, `format_card_body`, `format_card_title` helpers
- [ ] Unit test stubs for SqliteStore methods: `read_unsynced_notes`, `mark_note_synced`, `insert_pending_edit`, `read_pending_edits`, `delete_pending_edit`, `increment_pending_edit_retry`

*Existing `cargo test` infrastructure covers framework needs. No new test frameworks required.*

---

## Manual-Only Verifications

| Behavior | Requirement | Why Manual | Test Instructions |
|----------|-------------|------------|-------------------|
| ww-card issue appears in GH repo | CLOUD-01 | Requires live GH API | Run app, verify issue created at `BigscreenVR/beyond-outgoing` |
| Note comment appears on GH Issue | CLOUD-05 | Requires live GH API | Add note in app, check GH Issue comments |
| Card body/title update appears on GH Issue | CLOUD-02 | Requires live GH API | Change card data, wait for flusher, check GH Issue |
| Pending edits flush after reconnect | CLOUD-02 | Requires network state change | Disconnect, make edit, reconnect, verify flush |

---

## Validation Sign-Off

- [x] All tasks have `<automated>` verify commands in their plan
- [x] Sampling continuity: no 3 consecutive tasks without automated verify
- [ ] Wave 0 covers all MISSING references
- [x] No watch-mode flags
- [x] Feedback latency < 30s
- [x] `nyquist_compliant: true` set in frontmatter

**Approval:** pending
