Phase 4 Testing: WorkflowSpec Compiler #238
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
验证目标
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