返回 CodeWhale
issue_audit.workflow.js
根目录 / .codewhale / workflows / issue_audit.workflow.js
1 export default workflow({
2 "id": "issue-audit-js",
3 "goal": "Audit an issue fix with parallel specialist agents, then synthesize a release note",
4 "description": "Declarative JavaScript authoring example lowered to typed Workflow IR without executing JS.",
5 "nodes": [
6 {
7 "branch": {
8 "id": "parallel-audit",
9 "parallel": true,
10 "children": [
11 {
12 "agent": {
13 "id": "code-audit",
14 "prompt": "Inspect the implementation for correctness and regression risk.",
15 "agent_type": "review",
16 "mode": "read_only",
17 "file_scope": ["crates"]
18 }
19 },
20 {
21 "agent": {
22 "id": "test-audit",
23 "prompt": "Inspect targeted tests and identify missing verification.",
24 "agent_type": "verifier",
25 "mode": "read_only",
26 "file_scope": ["crates", "tests"]
27 }
28 },
29 {
30 "agent": {
31 "id": "docs-audit",
32 "prompt": "Check whether docs or release notes should mention the change.",
33 "agent_type": "review",
34 "mode": "read_only",
35 "file_scope": ["docs"]
36 }
37 }
38 ]
39 }
40 },
41 {
42 "reduce": {
43 "id": "synthesize-release-risk",
44 "inputs": ["code-audit", "test-audit", "docs-audit"],
45 "prompt": "Combine specialist findings into a release-ready risk summary."
46 }
47 }
48 ]
49 });
50
50 lines JAVASCRIPT