nexus/.planning/phases/40-job-infrastructure/40-VALIDATION.md

2.4 KiB

phase slug status nyquist_compliant wave_0_complete created
40 job-infrastructure draft false false 2026-04-04

Phase 40 — Validation Strategy

Per-phase validation contract for feedback sampling during execution.


Test Infrastructure

Property Value
Framework vitest
Config file vitest.config.ts
Quick run command pnpm test --run
Full suite command pnpm test --run
Estimated runtime ~30 seconds

Sampling Rate

  • After every task commit: Run pnpm test --run
  • After every plan wave: Run pnpm test --run
  • 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
40-01-01 01 1 INFRA-01 unit pnpm test --run W0 pending
40-01-02 01 1 INFRA-02 unit pnpm test --run W0 pending
40-01-03 01 1 INFRA-03 unit pnpm test --run W0 pending
40-01-04 01 1 INFRA-04 unit pnpm test --run W0 pending

Status: pending · green · red · ⚠️ flaky


Wave 0 Requirements

  • Test stubs for content_jobs table operations
  • Test stubs for SSE job progress events
  • Test stubs for generated asset storage (bypassing multer)
  • Test stubs for sourceTaskId asset linking

If none: "Existing infrastructure covers all phase requirements."


Manual-Only Verifications

Behavior Requirement Why Manual Test Instructions
SSE events received in browser INFRA-02 Requires live browser connection Submit job, observe SSE events in browser DevTools
Large file storage/retrieval INFRA-03 Requires actual 10MB+ file Generate large asset, verify storage and retrieval

Validation Sign-Off

  • All tasks have <automated> 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 < 30s
  • nyquist_compliant: true set in frontmatter

Approval: pending