Phase 1 Testing: Logger 核心 + CLI 接入 (RFC #411) #412

Closed
opened 2026-05-23 06:00:42 +00:00 by xiaoju · 0 comments
Owner

验证目标

进程级 JSONL logger 能正常记录调度过程。

测试步骤

  • Step 1: 编译通过

    bun run build
    

    预期: 无错误

  • Step 2: 测试通过

    bun run test
    

    预期: 所有测试通过

  • Step 3: 运行 thread step 后有日志文件

    uwf thread start solve-issue -p "test"
    uwf thread step <thread-id>
    ls ~/.uncaged/workflow/logs/
    cat ~/.uncaged/workflow/logs/$(date +%Y-%m-%d).jsonl
    

    预期: 日志文件存在,包含 moderator evaluate、agent spawn、step complete 等条目

  • Step 4: 日志包含进程 ID 和 thread 关联
    预期: 每条 log 有 pid 和 thread 字段

  • Step 5: 进程启动时有 init log
    预期: 第一条 log 包含命令、参数、node 版本等基本信息

验证完成标准

所有 checkbox 打勾
CI 构建成功

Ref: #411, #410

## 验证目标 进程级 JSONL logger 能正常记录调度过程。 ## 测试步骤 - [ ] **Step 1: 编译通过** ```bash bun run build ``` **预期:** 无错误 - [ ] **Step 2: 测试通过** ```bash bun run test ``` **预期:** 所有测试通过 - [ ] **Step 3: 运行 thread step 后有日志文件** ```bash uwf thread start solve-issue -p "test" uwf thread step <thread-id> ls ~/.uncaged/workflow/logs/ cat ~/.uncaged/workflow/logs/$(date +%Y-%m-%d).jsonl ``` **预期:** 日志文件存在,包含 moderator evaluate、agent spawn、step complete 等条目 - [ ] **Step 4: 日志包含进程 ID 和 thread 关联** **预期:** 每条 log 有 pid 和 thread 字段 - [ ] **Step 5: 进程启动时有 init log** **预期:** 第一条 log 包含命令、参数、node 版本等基本信息 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ CI 构建成功 Ref: #411, #410
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#412