Files
united-workforce/packages/agent-mock/__tests__/fixtures/simple-scenario.yaml
T
xiaoju 6850826abe
CI / check (pull_request) Failing after 3m14s
feat: add agent-mock package for deterministic E2E testing (#33)
New package @united-workforce/agent-mock (uwf-mock CLI):
- Reads pre-scripted outputs from a YAML mock data file (--mock-data)
- Counts existing CAS chain steps to determine step index
- Validates expected role matches actual moderator routing
- Stores minimal detail node in CAS for valid step refs
- Zero LLM, instant execution, 100% deterministic

Usage in config.yaml:
  agents:
    mock:
      command: uwf-mock
      args: ["--mock-data", "./fixtures/scenario.yaml"]

Refs #33
2026-06-04 06:50:49 +00:00

19 lines
334 B
YAML

steps:
- role: planner
output: |
---
$status: ready
plan: test-plan-hash
repoPath: /tmp/test-repo
---
Plan: implement the feature.
- role: developer
output: |
---
$status: done
branch: fix/1-test
worktree: /tmp/worktree
---
Implemented the feature.