From 66d1cf2f557f32dd75f01b72eeb2a4efa81f7a4a Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 16 Mar 2026 21:23:32 +0100 Subject: [PATCH] docs(10): add research and validation strategy --- .../10-VALIDATION.md | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .planning/phases/10-schema-foundation-pros-cons-fields/10-VALIDATION.md diff --git a/.planning/phases/10-schema-foundation-pros-cons-fields/10-VALIDATION.md b/.planning/phases/10-schema-foundation-pros-cons-fields/10-VALIDATION.md new file mode 100644 index 0000000..f2775bc --- /dev/null +++ b/.planning/phases/10-schema-foundation-pros-cons-fields/10-VALIDATION.md @@ -0,0 +1,78 @@ +--- +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