--- phase: 10 slug: schema-foundation-pros-cons-fields status: draft nyquist_compliant: false wave_0_complete: false created: 2026-03-16 --- # Phase 10 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework** | Bun test runner (built-in) | | **Config file** | none — `bun test` discovers `tests/**/*.test.ts` | | **Quick run command** | `bun test tests/services/thread.service.test.ts` | | **Full suite command** | `bun test` | | **Estimated runtime** | ~5 seconds | --- ## Sampling Rate - **After every task commit:** Run `bun test tests/services/thread.service.test.ts` - **After every plan wave:** Run `bun test` - **Before `/gsd:verify-work`:** Full suite must be green - **Max feedback latency:** 5 seconds --- ## Per-Task Verification Map | Task ID | Plan | Wave | Requirement | Test Type | Automated Command | File Exists | Status | |---------|------|------|-------------|-----------|-------------------|-------------|--------| | 10-01-01 | 01 | 1 | RANK-03 | unit | `bun test tests/services/thread.service.test.ts` | Extend existing | ⬜ pending | | 10-01-02 | 01 | 1 | RANK-03 | unit | `bun test tests/services/thread.service.test.ts` | Extend existing | ⬜ pending | | 10-01-03 | 01 | 1 | RANK-03 | unit | `bun test tests/services/thread.service.test.ts` | Extend existing | ⬜ pending | | 10-01-04 | 01 | 1 | RANK-03 | route | `bun test tests/routes/threads.test.ts` | Extend existing | ⬜ pending | | 10-01-05 | 01 | 1 | RANK-03 | regression | `bun test` | Existing ✅ | ⬜ pending | *Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* --- ## Wave 0 Requirements Existing infrastructure covers all phase requirements. All tests are extensions of existing files: - `tests/services/thread.service.test.ts` — add `pros`/`cons` test cases to existing describe blocks - `tests/routes/threads.test.ts` — add test case to existing PUT candidate describe block *No new test files or framework installs required.* --- ## Manual-Only Verifications | Behavior | Requirement | Why Manual | Test Instructions | |----------|-------------|------------|-------------------| | CandidateCard shows visual indicator when pros/cons present | RANK-03 | UI rendering verification | 1. Create thread with candidate 2. Add pros text 3. Verify indicator badge appears on card | --- ## Validation Sign-Off - [ ] All tasks have `` 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 < 5s - [ ] `nyquist_compliant: true` set in frontmatter **Approval:** pending