Phase 4 Testing: WorkflowSpec Compiler #238

Closed
opened 2026-04-29 04:33:36 +00:00 by xiaoju · 0 comments
Owner

验证目标

WorkflowSpec 作为新的 authoring format,runtime lazy compile 成 WorkflowDefinition。

前置条件

Phase 2 (#236) + Phase 3 (#237) 完成。

测试步骤

  • Step 1: WorkflowSpec 类型定义
    TypeScript 编译通过。

  • Step 2: compileWorkflowSpec 返回 WorkflowDefinition
    预期: roles 是标准 Role 函数

  • Step 3: Compiled role 调用 agent + extract
    预期: mock agent 被调用,mock extract 被调用

  • Step 4: Timeout 两级解析
    agent 默认 300s,role override 60s。
    预期: compiled role timeout 为 60s

  • Step 5: 手写 Role 兼容
    预期: 现有手写 Role 函数不需要迁移

验证完成标准

所有 checkbox 打勾 | pnpm test 通过

Ref: #234

## 验证目标 WorkflowSpec 作为新的 authoring format,runtime lazy compile 成 WorkflowDefinition。 ## 前置条件 Phase 2 (#236) + Phase 3 (#237) 完成。 ## 测试步骤 - [ ] **Step 1: WorkflowSpec 类型定义** TypeScript 编译通过。 - [ ] **Step 2: compileWorkflowSpec 返回 WorkflowDefinition** **预期:** roles 是标准 Role<Meta> 函数 - [ ] **Step 3: Compiled role 调用 agent + extract** **预期:** mock agent 被调用,mock extract 被调用 - [ ] **Step 4: Timeout 两级解析** agent 默认 300s,role override 60s。 **预期:** compiled role timeout 为 60s - [ ] **Step 5: 手写 Role 兼容** **预期:** 现有手写 Role<Meta> 函数不需要迁移 ## 验证完成标准 ✅ 所有 checkbox 打勾 | ✅ `pnpm test` 通过 Ref: #234
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/nerve#238