Phase 6 Testing: cli-uwf thread step 单步执行 #315

Closed
opened 2026-05-18 08:48:03 +00:00 by xiaoju · 1 comment
Owner

Ref: #309

验证目标

完整的 moderator 决策 → agent 调用 → 链头更新 → done 判断流程。

前置条件

Phase 1-5 完成。

测试步骤

  • Step 1: 首次 step
    uwf thread start solve-issue -p "Fix login bug" 然后 uwf thread step <thread-id>
    预期: 输出含 head 和 done: false

  • Step 2: 链头更新
    threads.yaml 中 head 已更新为新 StepNode hash
    预期: hash 变化

  • Step 3: StepNode 正确性
    json-cas get <new-head>
    预期: 含正确的 start、prev(null for first)、role、output、detail、agent

  • Step 4: 连续 step
    再次 uwf thread step <thread-id>
    预期: moderator 选下一个 role,prev 指向上一个 StepNode

  • Step 5: --agent override
    uwf thread step <thread-id> --agent "bunx uwf-cursor"
    预期: StepNode 中 agent 为 "bunx uwf-cursor"

  • Step 6: done = true
    moderator 返回 $END
    预期: done: true,thread 从 threads.yaml 移除

  • Step 7: 对已完成 thread 调 step
    预期: 报错

验证完成标准

所有 checkbox 打勾

Ref: #309 ## 验证目标 完整的 moderator 决策 → agent 调用 → 链头更新 → done 判断流程。 ## 前置条件 Phase 1-5 完成。 ## 测试步骤 - [ ] **Step 1: 首次 step** `uwf thread start solve-issue -p "Fix login bug"` 然后 `uwf thread step <thread-id>` **预期:** 输出含 head 和 done: false - [ ] **Step 2: 链头更新** threads.yaml 中 head 已更新为新 StepNode hash **预期:** hash 变化 - [ ] **Step 3: StepNode 正确性** `json-cas get <new-head>` **预期:** 含正确的 start、prev(null for first)、role、output、detail、agent - [ ] **Step 4: 连续 step** 再次 `uwf thread step <thread-id>` **预期:** moderator 选下一个 role,prev 指向上一个 StepNode - [ ] **Step 5: --agent override** `uwf thread step <thread-id> --agent "bunx uwf-cursor"` **预期:** StepNode 中 agent 为 "bunx uwf-cursor" - [ ] **Step 6: done = true** moderator 返回 $END **预期:** done: true,thread 从 threads.yaml 移除 - [ ] **Step 7: 对已完成 thread 调 step** **预期:** 报错 ## 验证完成标准 ✅ 所有 checkbox 打勾
Author
Owner

Closing: old architecture testing phase, superseded by uwf redesign.

— 小橘 🍊(NEKO Team)

Closing: old architecture testing phase, superseded by uwf redesign. — 小橘 🍊(NEKO Team)
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#315