Phase 2 Testing: examples YAML migration + CLI validation #492

Closed
opened 2026-05-25 04:35:53 +00:00 by xiaoju · 0 comments
Owner

验证目标

所有 examples YAML 迁移到新的 status-based graph 格式,CLI 的 YAML 解析和校验正常工作。

Ref: #490

前置

Phase 1 已完成

测试步骤

  • Step 1: solve-issue.yaml 已迁移

    cat examples/solve-issue.yaml | grep -A3 "graph" | head -20
    

    预期: graph 为二级 map 格式(role → status → target),无 condition 字段,无 conditions 块

  • Step 2: 所有 example YAML 无 conditions 块

    grep -l "conditions:" examples/*.yaml
    

    预期: 无输出

  • Step 3: 所有 role frontmatter 包含 status enum

    grep -A3 "status:" examples/solve-issue.yaml
    

    预期: 每个 role 的 frontmatter 有 status 字段且为 enum

  • Step 4: uwf workflow register 成功

    uwf workflow register examples/solve-issue.yaml 2>&1
    

    预期: 注册成功,无 validation error

  • Step 5: uwf workflow show 展示新格式

    uwf workflow show solve-issue 2>&1
    

    预期: graph 显示 status-based 路由

  • Step 6: CLI 测试通过

    bun test packages/cli-workflow/
    

    预期: 所有测试通过

  • Step 7: 端到端 thread start + step

    THREAD=$(uwf thread start solve-issue --prompt "test task" 2>&1 | jq -r .thread)
    uwf thread step $THREAD 2>&1 | jq .done
    

    预期: thread start 成功,step 输出 done=false(planner 运行)

验证完成标准

所有 checkbox 打勾
所有 example YAML 为新格式
CLI 端到端可用

## 验证目标 所有 examples YAML 迁移到新的 status-based graph 格式,CLI 的 YAML 解析和校验正常工作。 Ref: #490 ## 前置 Phase 1 已完成 ## 测试步骤 - [ ] **Step 1: solve-issue.yaml 已迁移** ```bash cat examples/solve-issue.yaml | grep -A3 "graph" | head -20 ``` **预期:** graph 为二级 map 格式(role → status → target),无 condition 字段,无 conditions 块 - [ ] **Step 2: 所有 example YAML 无 conditions 块** ```bash grep -l "conditions:" examples/*.yaml ``` **预期:** 无输出 - [ ] **Step 3: 所有 role frontmatter 包含 status enum** ```bash grep -A3 "status:" examples/solve-issue.yaml ``` **预期:** 每个 role 的 frontmatter 有 status 字段且为 enum - [ ] **Step 4: uwf workflow register 成功** ```bash uwf workflow register examples/solve-issue.yaml 2>&1 ``` **预期:** 注册成功,无 validation error - [ ] **Step 5: uwf workflow show 展示新格式** ```bash uwf workflow show solve-issue 2>&1 ``` **预期:** graph 显示 status-based 路由 - [ ] **Step 6: CLI 测试通过** ```bash bun test packages/cli-workflow/ ``` **预期:** 所有测试通过 - [ ] **Step 7: 端到端 thread start + step** ```bash THREAD=$(uwf thread start solve-issue --prompt "test task" 2>&1 | jq -r .thread) uwf thread step $THREAD 2>&1 | jq .done ``` **预期:** thread start 成功,step 输出 done=false(planner 运行) ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ 所有 example YAML 为新格式 ✅ CLI 端到端可用
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#492