-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault-workflow.json
More file actions
170 lines (162 loc) · 5.63 KB
/
default-workflow.json
File metadata and controls
170 lines (162 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"default-workflow": {
"name": "Standard Development Workflow",
"description": "Multi-agent workflow for autonomous software development",
"version": "1.0.0",
"agents": {
"supervisor": {
"model": "opus",
"fallbackModel": "sonnet",
"subscribesTo": ["planner", "coder", "tester"],
"role": "Critique and verify output from other agents",
"tools": [
{
"name": "verificationComplete",
"description": "Signal completion of verification",
"params": [
{ "name": "score", "type": "number", "description": "Quality score 0-100" },
{ "name": "approved", "type": "boolean", "description": "Whether work can proceed" },
{ "name": "completeness", "type": "string", "enum": ["complete", "partial", "insufficient"] },
{ "name": "issues", "type": "array", "description": "List of issues found" },
{ "name": "recommendation", "type": "string", "enum": ["approve", "revise", "reject"] },
{ "name": "feedback", "type": "string", "description": "Detailed feedback" }
]
},
{
"name": "progressAssessment",
"description": "Assess overall progress toward goal",
"params": [
{ "name": "onTrack", "type": "boolean" },
{ "name": "percentComplete", "type": "number" },
{ "name": "healthScore", "type": "number" },
{ "name": "continueExecution", "type": "boolean" }
]
}
],
"thresholds": {
"approval": 70,
"revision": 50,
"rejection": 30
}
},
"planner": {
"model": "sonnet",
"fallbackModel": "haiku",
"subscribesTo": ["supervisor", "coder", "tester"],
"role": "Break down goals into actionable tasks",
"tools": [
{
"name": "planComplete",
"description": "Signal plan creation complete",
"params": [
{ "name": "tasks", "type": "array", "description": "List of task objects" },
{ "name": "risks", "type": "array" },
{ "name": "assumptions", "type": "array" }
]
},
{
"name": "replanComplete",
"description": "Signal re-planning complete for failed task",
"params": [
{ "name": "analysis", "type": "string" },
{ "name": "subtasks", "type": "array" },
{ "name": "blockerResolution", "type": "string" }
]
}
],
"settings": {
"minTasks": 2,
"maxTasks": 15,
"maxReplanDepth": 5,
"attemptsBeforeReplan": 3
}
},
"coder": {
"model": "opus",
"fallbackModel": "sonnet",
"subscribesTo": ["supervisor", "planner"],
"role": "Implement tasks to high standards",
"tools": [
{
"name": "implementationComplete",
"description": "Signal implementation complete",
"params": [
{ "name": "status", "type": "string", "enum": ["complete", "blocked", "needs_clarification"] },
{ "name": "summary", "type": "string" },
{ "name": "filesModified", "type": "array" },
{ "name": "testsAdded", "type": "array" },
{ "name": "commands", "type": "array" }
]
},
{
"name": "fixComplete",
"description": "Signal fix attempt complete",
"params": [
{ "name": "status", "type": "string", "enum": ["fixed", "still_failing", "blocked"] },
{ "name": "summary", "type": "string" },
{ "name": "filesModified", "type": "array" },
{ "name": "testsPass", "type": "boolean" }
]
}
],
"settings": {
"maxFixCycles": 3
}
},
"tester": {
"model": "opus",
"fallbackModel": "sonnet",
"subscribesTo": ["supervisor", "planner"],
"role": "Validate implementations and generate fix plans",
"tools": [
{
"name": "testComplete",
"description": "Signal test completion",
"params": [
{ "name": "status", "type": "string", "enum": ["passed", "failed", "blocked"] },
{ "name": "testsRun", "type": "number" },
{ "name": "testsPassed", "type": "number" },
{ "name": "testsFailed", "type": "number" },
{ "name": "failures", "type": "array" },
{ "name": "coverage", "type": "number" },
{ "name": "fixPlan", "type": "string" }
]
}
],
"settings": {
"requireTests": true,
"minCoverage": 60
}
}
},
"execution": {
"phases": ["planning", "plan_review", "execution", "verification"],
"maxStepAttempts": 3,
"maxFixCycles": 3,
"requirePrePlanReview": true,
"maxPlanRevisions": 3,
"verifyAllOutputs": true
},
"timeBudget": {
"planning": 0.1,
"execution": 0.8,
"verification": 0.1
},
"escalation": {
"levels": ["none", "remind", "correct", "refocus", "critical", "abort"],
"scoreThresholds": {
"none": 70,
"remind": 50,
"correct": 30,
"refocus": 0
},
"maxIssuesBeforeCritical": 4,
"maxIssuesBeforeAbort": 5
},
"planReviewFailure": {
"action": "skip_and_continue",
"options": ["skip_and_continue", "lower_threshold", "abort"],
"lowerThresholdTo": 50
}
}
}