Phase 4 Testing: cli-uwf thread start/show/list/kill #313

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

Ref: #309

验证目标

能创建 thread、查询状态、列出活跃 threads、终结 thread。

前置条件

Phase 3 完成,已有注册的 workflow。

测试步骤

  • Step 1: thread start
    uwf thread start solve-issue -p "Fix the login bug"
    预期: 输出 { "workflow": "<hash>", "thread": "<26-char-ULID>" }

  • Step 2: StartNode 写入 CAS
    json-cas get <head-hash>
    预期: StartNode payload 含 workflow ref 和 prompt

  • Step 3: threads.yaml 更新
    cat ~/.uncaged/workflow/threads.yaml
    预期: 包含 thread-id → head hash

  • Step 4: thread show
    uwf thread show <thread-id>
    预期: { "workflow": "...", "thread": "...", "head": "...", "done": false }

  • Step 5: thread list
    uwf thread list
    预期: JSON 数组包含活跃 thread

  • Step 6: thread kill
    uwf thread kill <thread-id>
    预期: thread 从 threads.yaml 移除

  • Step 7: 对已 kill 的 thread 调 show
    uwf thread show <thread-id>
    预期: 报错(非 active thread)

验证完成标准

所有 checkbox 打勾

Ref: #309 ## 验证目标 能创建 thread、查询状态、列出活跃 threads、终结 thread。 ## 前置条件 Phase 3 完成,已有注册的 workflow。 ## 测试步骤 - [ ] **Step 1: thread start** `uwf thread start solve-issue -p "Fix the login bug"` **预期:** 输出 `{ "workflow": "<hash>", "thread": "<26-char-ULID>" }` - [ ] **Step 2: StartNode 写入 CAS** `json-cas get <head-hash>` **预期:** StartNode payload 含 workflow ref 和 prompt - [ ] **Step 3: threads.yaml 更新** `cat ~/.uncaged/workflow/threads.yaml` **预期:** 包含 thread-id → head hash - [ ] **Step 4: thread show** `uwf thread show <thread-id>` **预期:** `{ "workflow": "...", "thread": "...", "head": "...", "done": false }` - [ ] **Step 5: thread list** `uwf thread list` **预期:** JSON 数组包含活跃 thread - [ ] **Step 6: thread kill** `uwf thread kill <thread-id>` **预期:** thread 从 threads.yaml 移除 - [ ] **Step 7: 对已 kill 的 thread 调 show** `uwf thread show <thread-id>` **预期:** 报错(非 active thread) ## 验证完成标准 ✅ 所有 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)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#313