--- phase: 25 slug: catalog-enrichment-agent-tools status: draft nyquist_compliant: false wave_0_complete: false created: 2026-04-10 --- # Phase 25 — Validation Strategy > Per-phase validation contract for feedback sampling during execution. --- ## Test Infrastructure | Property | Value | |----------|-------| | **Framework** | Bun test runner | | **Config file** | bunfig.toml | | **Quick run command** | `bun test` | | **Full suite command** | `bun test` | | **Estimated runtime** | ~10 seconds | --- ## Sampling Rate - **After every task commit:** Run `bun test` - **After every plan wave:** Run `bun test` - **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 | |---------|------|------|-------------|-----------|-------------------|-------------|--------| | 25-01-01 | 01 | 1 | CATL-01 | unit | `bun test tests/services/global-item.service.test.ts` | ❌ W0 | ⬜ pending | | 25-01-02 | 01 | 1 | CATL-02 | unit | `bun test tests/services/global-item.service.test.ts` | ❌ W0 | ⬜ pending | | 25-01-03 | 01 | 1 | CATL-04, CATL-05 | integration | `bun test tests/routes/global-items.test.ts` | ❌ W0 | ⬜ pending | | 25-02-01 | 02 | 1 | SEED-01, SEED-02, SEED-03 | integration | `bun test tests/mcp/catalog-tools.test.ts` | ❌ W0 | ⬜ pending | | 25-03-01 | 03 | 2 | CATL-03 | manual | N/A | N/A | ⬜ pending | *Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky* --- ## Wave 0 Requirements - [ ] `tests/services/global-item.service.test.ts` — stubs for CATL-01, CATL-02 (upsert, attribution fields, unique constraint) - [ ] `tests/routes/global-items.test.ts` — stubs for CATL-04, CATL-05 (bulk import endpoint, upsert semantics) - [ ] `tests/mcp/catalog-tools.test.ts` — stubs for SEED-01, SEED-02, SEED-03 (MCP catalog tools) --- ## Manual-Only Verifications | Behavior | Requirement | Why Manual | Test Instructions | |----------|-------------|------------|-------------------| | Image credit display on detail page | CATL-03 | Visual rendering | Open a catalog item with imageCredit/imageSourceUrl, verify credit text and clickable source link appear below image | --- ## 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 < 10s - [ ] `nyquist_compliant: true` set in frontmatter **Approval:** pending