deerflow2/.planning/phases/07-phase-06-mention-upload/07-VALIDATION.md

75 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
phase: 07
slug: phase-06-mention-upload
status: draft
nyquist_compliant: false
wave_0_complete: false
created: 2026-04-17
---
# Phase 07 — Validation Strategy
> Per-phase validation contract for feedback sampling during execution.
---
## Test Infrastructure
| Property | Value |
|----------|-------|
| **Framework** | Vitest + Playwrightfrontend |
| **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|compose|mention"` |
| **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"` | ✅ | ⬜ pending |
*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: true` set in frontmatter
**Approval:** pending