返回 CodeWhale
issue_audit.workflow.js
根目录 / 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 "budget": { "max_steps": 4, "timeout_secs": 300 }
28 }
29 },
30 {
31 "agent": {
32 "id": "docs-audit",
33 "prompt": "Check whether docs or release notes should mention the change.",
34 "agent_type": "review",
35 "mode": "read_only",
36 "file_scope": ["docs"]
37 }
38 }
39 ]
40 }
41 },
42 {
43 "reduce": {
44 "id": "synthesize-release-risk",
45 "inputs": ["code-audit", "test-audit", "docs-audit"],
46 "prompt": "Combine specialist findings into a release-ready risk summary."
47 }
48 }
49 ]
50 });
51
51 lines JAVASCRIPT