76 lines
3.5 KiB
Markdown
76 lines
3.5 KiB
Markdown
---
|
||
phase: 06
|
||
slug: 06-
|
||
status: draft
|
||
nyquist_compliant: true
|
||
wave_0_complete: true
|
||
created: 2026-04-15
|
||
---
|
||
|
||
# Phase 06 — Validation Strategy
|
||
|
||
> Per-phase validation contract for feedback sampling during execution.
|
||
|
||
---
|
||
|
||
## Test Infrastructure
|
||
|
||
| Property | Value |
|
||
|----------|-------|
|
||
| **Framework** | Playwright E2E + TypeScript static checks |
|
||
| **Config file** | `frontend/playwright.config.ts` |
|
||
| **Quick run command** | `cd frontend && pnpm -s typecheck` |
|
||
| **Full suite command** | `cd frontend && pnpm -s test:e2e` |
|
||
| **Estimated runtime** | ~180 seconds |
|
||
|
||
---
|
||
|
||
## Sampling Rate
|
||
|
||
- **After every task commit:** Run `cd frontend && pnpm -s typecheck`
|
||
- **After every plan wave:** Run `cd frontend && pnpm -s test:e2e`
|
||
- **Before `/gsd-verify-work`:** Full suite must be green
|
||
- **Max feedback latency:** 180 seconds
|
||
|
||
---
|
||
|
||
## Per-Task Verification Map
|
||
|
||
| Task ID | Plan | Wave | Requirement | Threat Ref | Secure Behavior | Test Type | Automated Command | File Exists | Status |
|
||
|---------|------|------|-------------|------------|-----------------|-----------|-------------------|-------------|--------|
|
||
| 06-01-01 | 01 | 1 | ATREF-03 | T-06-01-01 | 提交结构保持 `additional_kwargs.files` 且包含引用元信息 | unit | `cd frontend && node --test src/core/threads/hooks.test.ts` | ✅ | ✅ green |
|
||
| 06-02-01 | 02 | 2 | ATREF-01, ATREF-02 | T-06-02-01 | 输入 `@` 显示 thread 内候选并支持 chip 选择 | e2e | `cd frontend && pnpm -s test:e2e --grep "DF-INPUT-007"` | ✅ | ⚠️ 环境未启动(ERR_CONNECTION_REFUSED) |
|
||
| 06-03-01 | 03 | 3 | ATREF-04 | T-06-03-02 | 失效引用场景具备可解释 skip 与单测兜底 | e2e+unit | `cd frontend && pnpm -s test:e2e --grep "DF-INPUT-008" && node --test src/core/threads/hooks.test.ts` | ✅ | ⚠️ E2E 环境依赖,单测已通过 |
|
||
| 06-04-ARCHIVE | archived | — | ATREF-01..04 | revision | 原 `06-04-PLAN.md` 已归档,不再参与 execute-phase 发现,避免延续与 D-08 冲突的“上限 6”指令 | docs | `cd /home/mt/Project/deerflow2 && test ! -f .planning/phases/06-/06-04-PLAN.md && test -f .planning/phases/06-/06-04-ARCHIVED.md` | ✅ | ✅ archived |
|
||
| 06-05-01 | 05 | 4 | ATREF-02 | T-06-05-01 | 引用展示合同恢复为“文件名 + 类型 + 路径尾段”,且上限 10 | e2e | `cd frontend && pnpm -s test:e2e --grep "DF-INPUT-007|DF-INPUT-009"` | ✅ | ⬜ pending |
|
||
| 06-05-02 | 05 | 4 | ATREF-04 | T-06-05-02 | DF-INPUT-008/009 不再永久 skip 或 strict-locator flaky | e2e | `cd frontend && pnpm -s test:e2e --grep "DF-INPUT-008|DF-INPUT-009"` | ✅ | ⬜ pending |
|
||
|
||
*Status: ⬜ pending · ✅ green · ❌ red · ⚠️ flaky*
|
||
|
||
---
|
||
|
||
## Wave 0 Requirements
|
||
|
||
Existing infrastructure covers all phase requirements; revision pass archives invalid `06-04` and promotes `06-05` as the only active gap-closure execution plan.
|
||
|
||
---
|
||
|
||
## Manual-Only Verifications
|
||
|
||
| Behavior | Requirement | Why Manual | Test Instructions |
|
||
|----------|-------------|------------|-------------------|
|
||
| 中文输入法组合态下 `@` 不误触发 | TBD | 浏览器/输入法差异较大 | 在 macOS/Windows 中文输入法下输入拼音并含 `@`,确认只在非 composing 触发候选 |
|
||
|
||
---
|
||
|
||
## 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 < 180s
|
||
- [ ] `nyquist_compliant: true` set in frontmatter
|
||
|
||
**Approval:** pending
|