Phase 1 Testing: Engine finalize 生成 LLM summary (#187) #188

Closed
opened 2026-05-11 10:01:25 +00:00 by xiaoju · 0 comments
Owner

验证目标

moderator 返回 END 后,engine 调用 LLM 生成有意义的 summary 替代硬编码字符串。

前置条件

npm run build 通过,npm test 全部通过。

测试步骤

  • Step 1: 硬编码 summary 已移除

    grep -r '"completed: moderator returned END"' packages/ --include='*.ts' -l
    

    预期: 无匹配(hardcoded summary 已替换为 LLM 调用)

  • Step 2: build 通过

    npm run build
    

    预期: exit 0, 无 type error

  • Step 3: 现有测试通过

    npm test
    

    预期: 全部通过(engine test 中 mock 的 summary 生成器正常工作)

  • Step 4: 端到端验证 - 跑一个 workflow

    uncaged-workflow run develop --prompt 'write a hello world python script'
    

    预期: workflow 完成后,end node 的 summary 是 LLM 生成的有意义文本,不再是 'completed: moderator returned END'

  • Step 5: thread scan 验证 end node content

    uncaged-workflow thread scan <thread-id>
    

    预期: end node 的 content 和 meta.summary 都是 LLM 生成的文本

验证完成标准

所有 checkbox 打勾
CI 构建成功
end node summary 不再硬编码

Ref: #187

## 验证目标 moderator 返回 END 后,engine 调用 LLM 生成有意义的 summary 替代硬编码字符串。 ## 前置条件 `npm run build` 通过,`npm test` 全部通过。 ## 测试步骤 - [ ] **Step 1: 硬编码 summary 已移除** ```bash grep -r '"completed: moderator returned END"' packages/ --include='*.ts' -l ``` **预期:** 无匹配(hardcoded summary 已替换为 LLM 调用) - [ ] **Step 2: build 通过** ```bash npm run build ``` **预期:** exit 0, 无 type error - [ ] **Step 3: 现有测试通过** ```bash npm test ``` **预期:** 全部通过(engine test 中 mock 的 summary 生成器正常工作) - [ ] **Step 4: 端到端验证 - 跑一个 workflow** ```bash uncaged-workflow run develop --prompt 'write a hello world python script' ``` **预期:** workflow 完成后,end node 的 summary 是 LLM 生成的有意义文本,不再是 'completed: moderator returned END' - [ ] **Step 5: thread scan 验证 end node content** ```bash uncaged-workflow thread scan <thread-id> ``` **预期:** __end__ node 的 content 和 meta.summary 都是 LLM 生成的文本 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ CI 构建成功 ✅ end node summary 不再硬编码 Ref: #187
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#188