Phase 1 Testing: $status routing + _ default #500

Closed
opened 2026-05-25 06:19:55 +00:00 by xiaoju · 0 comments
Owner

Ref: #499

测试步骤

  • Step 1: evaluate() reads $status instead of status

    grep "\$status" packages/workflow-moderator/src/evaluate.ts
    

    预期: 找到 $status 引用

  • Step 2: missing $status defaults to _

    bun test packages/workflow-moderator/ --grep "default"
    

    预期: 测试通过,验证无 $status 时走 _ 路由

  • Step 3: all moderator tests pass

    bun test packages/workflow-moderator/
    

    预期: 所有测试通过

  • Step 4: examples YAML use $status

    grep "\$status" examples/*.yaml .workflows/solve-issue.yaml
    

    预期: 多出口 role 用 $status,单出口不写

  • Step 5: full build passes

    bun run build
    

    预期: 编译成功

Ref: #499 ## 测试步骤 - [ ] **Step 1: evaluate() reads $status instead of status** ```bash grep "\$status" packages/workflow-moderator/src/evaluate.ts ``` **预期:** 找到 `$status` 引用 - [ ] **Step 2: missing $status defaults to _** ```bash bun test packages/workflow-moderator/ --grep "default" ``` **预期:** 测试通过,验证无 $status 时走 _ 路由 - [ ] **Step 3: all moderator tests pass** ```bash bun test packages/workflow-moderator/ ``` **预期:** 所有测试通过 - [ ] **Step 4: examples YAML use $status** ```bash grep "\$status" examples/*.yaml .workflows/solve-issue.yaml ``` **预期:** 多出口 role 用 $status,单出口不写 - [ ] **Step 5: full build passes** ```bash bun run build ``` **预期:** 编译成功
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#500