2.8 KiB
2.8 KiB
| phase | slug | status | nyquist_compliant | wave_0_complete | created |
|---|---|---|---|---|---|
| 07 | phase-06-mention-upload | draft | false | false | 2026-04-17 |
Phase 07 — Validation Strategy
Per-phase validation contract for feedback sampling during execution.
Test Infrastructure
| Property | Value |
|---|---|
| Framework | Vitest + Playwright(frontend) |
| Config file | frontend/vitest.config.ts, frontend/playwright.config.ts |
| Quick run command | cd frontend && pnpm -s test -- --run src/core/threads |
| Full suite command | `cd frontend && pnpm -s lint && pnpm -s typecheck && pnpm -s test:e2e --grep "input |
| Estimated runtime | ~240 seconds |
Sampling Rate
- After every task commit: Run
cd frontend && pnpm -s test -- --run src/core/threads - After every plan wave: Run
cd frontend && pnpm -s lint && pnpm -s typecheck - Before
/gsd-verify-work: Full suite must be green - Max feedback latency: 300 seconds
Per-Task Verification Map
| Task ID | Plan | Wave | Requirement | Threat Ref | Secure Behavior | Test Type | Automated Command | File Exists | Status |
|---|---|---|---|---|---|---|---|---|---|
| 07-01-01 | 01 | 1 | P7-01, P7-02 | T-07-01 | 发送前拼接且消息区不回显拼接文案 | unit | cd frontend && pnpm -s test -- --run src/core/threads |
✅ | ⬜ pending |
| 07-01-02 | 01 | 1 | P7-03 | T-07-02 | 附件/Skill 名来源、顺序与去重规则一致 | unit | cd frontend && pnpm -s test -- --run src/components/workspace/input-box |
✅ | ⬜ pending |
| 07-01-03 | 01 | 1 | P7-04 | T-07-03 | 所有发送入口行为一致,不出现分叉 | e2e | `cd frontend && pnpm -s test:e2e --grep "send | suggestion | compose"` |
Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky
Wave 0 Requirements
frontend/src/core/threads/hooks.test.ts— 补提交态增强文本断言frontend/src/components/workspace/input-box.test.tsx— 补 selectedSkills/references 组装断言frontend/tests/e2e/input-and-compose.spec.ts— 增加“消息区不显示拼接文案”回归
Manual-Only Verifications
| Behavior | Requirement | Why Manual | Test Instructions |
|---|---|---|---|
| 多语言文案下拼接语句可读性 | P7-01 | 文案自然性主观 | 在中文/英文 UI 下分别发送含附件+Skill消息,人工检查生成文本 |
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 < 300s
nyquist_compliant: trueset in frontmatter
Approval: pending