Phase 3 Testing: Engine Read Path + Runtime #158

Closed
opened 2026-05-09 07:21:05 +00:00 by xiaoju · 0 comments
Owner

验证目标

从 CAS 链构建 ThreadContext,extractor 产出 refs。

前置

  • Phase 2 已合入 main
  • 分支: feat/155-cas-thread-phase-3

测试步骤

  • Step 1: 多步 workflow 运行

    uncaged-workflow run solve-issue --prompt "Fix a sample bug"
    

    预期: workflow 执行多个角色步骤并完成

  • Step 2: Content Merkle 节点验证

    uncaged-workflow cas get <state_hash>
    uncaged-workflow cas get <content_hash>
    

    预期: Content Merkle 节点 type: "content",payload 是角色输出文本,refs 包含 extractor 提取的 artifact hash

  • Step 3: ThreadContext 构建单元测试

    bun test packages/workflow-runtime/__tests__/build-context.test.ts
    

    预期: 从 head hash 走链正确构建 ThreadContext,start.prompt 从 CAS resolve

  • Step 4: Extractor 输出 refs

    bun test packages/workflow-execute/__tests__/extract*.test.ts
    

    预期: extractor 返回 { meta, contentPayload, refs[] }

验证完成标准

所有 checkbox 打勾
bun run check 通过

Ref: #155
小橘 🍊(NEKO Team)

## 验证目标 从 CAS 链构建 ThreadContext,extractor 产出 refs。 ## 前置 - Phase 2 已合入 main - 分支: `feat/155-cas-thread-phase-3` ## 测试步骤 - [ ] **Step 1: 多步 workflow 运行** ```bash uncaged-workflow run solve-issue --prompt "Fix a sample bug" ``` **预期:** workflow 执行多个角色步骤并完成 - [ ] **Step 2: Content Merkle 节点验证** ```bash uncaged-workflow cas get <state_hash> uncaged-workflow cas get <content_hash> ``` **预期:** Content Merkle 节点 type: "content",payload 是角色输出文本,refs 包含 extractor 提取的 artifact hash - [ ] **Step 3: ThreadContext 构建单元测试** ```bash bun test packages/workflow-runtime/__tests__/build-context.test.ts ``` **预期:** 从 head hash 走链正确构建 ThreadContext,start.prompt 从 CAS resolve - [ ] **Step 4: Extractor 输出 refs** ```bash bun test packages/workflow-execute/__tests__/extract*.test.ts ``` **预期:** extractor 返回 { meta, contentPayload, refs[] } ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ bun run check 通过 Ref: #155 小橘 🍊(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#158