This repository was archived by the owner on Apr 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtask-schema.json
More file actions
173 lines (173 loc) · 5.4 KB
/
task-schema.json
File metadata and controls
173 lines (173 loc) · 5.4 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
171
172
173
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "DevAutopilot Task Plan",
"type": "object",
"required": ["project", "tasks"],
"properties": {
"project": {
"type": "string",
"description": "Project name or path"
},
"session_id": {
"type": "string",
"description": "Session ID from planning phase (optional)"
},
"agent": {
"type": "string",
"enum": ["claude", "opencode", "codex", "cline", "cursor", "cli"],
"description": "Default agent for execution"
},
"defaults": {
"type": "object",
"properties": {
"max_turns": { "type": "integer", "default": 30 },
"max_budget_usd": { "type": "number", "default": 2.0 },
"allowed_tools": {
"type": "array",
"items": { "type": "string" }
},
"verify_command": { "type": "string" },
"test_levels": {
"type": "array",
"items": { "$ref": "#/definitions/test_level" },
"description": "Default multi-level test definitions"
}
}
},
"max_parallel": {
"type": "integer",
"minimum": 1,
"description": "Maximum number of parallel tasks"
},
"tasks": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["id", "title", "spec"],
"properties": {
"id": { "type": "string", "pattern": "^T-[0-9]{3}$" },
"title": { "type": "string" },
"spec": { "type": "string" },
"depends_on": {
"type": "array",
"items": { "type": "string" },
"default": []
},
"agent": {
"type": "string",
"enum": ["claude", "opencode", "codex", "cline", "cursor", "cli"]
},
"verify_command": { "type": "string" },
"max_turns": { "type": "integer" },
"max_budget_usd": { "type": "number" },
"allowed_tools": {
"type": "array",
"items": { "type": "string" }
},
"fork_session": { "type": "boolean", "default": true },
"judge": {
"type": "boolean",
"description": "Enable Judge Agent review for this task"
},
"acceptance_criteria": {
"type": "array",
"items": { "type": "string" },
"description": "Acceptance criteria list — each item is an observable verification condition"
},
"user_intent": {
"type": "string",
"description": "Why this task is needed — the user's underlying goal"
},
"test_levels": {
"type": "array",
"items": { "$ref": "#/definitions/test_level" },
"description": "Multi-level test definitions (takes precedence over verify_command)"
},
"spec_score": {
"type": "number",
"description": "Spec quality score from UDS checklist scoring"
},
"spec_max_score": {
"type": "number",
"description": "Maximum possible spec quality score (10 for standard, 25 for boost)"
}
}
}
},
"test_policy": {
"$ref": "#/definitions/test_policy",
"description": "Test policy linking UDS test-governance standards"
},
"max_total_budget_usd": {
"type": "number",
"minimum": 0,
"description": "Maximum total budget for the entire plan in USD. Execution stops when cumulative cost reaches this limit."
}
},
"definitions": {
"test_level": {
"type": "object",
"required": ["name", "command"],
"properties": {
"name": {
"type": "string",
"enum": ["unit", "integration", "system", "e2e"],
"description": "Test level name"
},
"command": {
"type": "string",
"description": "Command to execute for this test level"
},
"timeout_ms": {
"type": "integer",
"minimum": 1000,
"default": 120000,
"description": "Timeout in milliseconds (default: 120000)"
}
}
},
"completion_check": {
"type": "object",
"required": ["name", "required"],
"properties": {
"name": {
"type": "string",
"description": "Completion check name"
},
"command": {
"type": "string",
"description": "Command to execute for automated verification (omit for Judge review)"
},
"required": {
"type": "boolean",
"description": "Whether this check is mandatory (failure stops pipeline)"
}
}
},
"test_policy": {
"type": "object",
"properties": {
"pyramid_ratio": {
"type": "object",
"properties": {
"unit": { "type": "number" },
"integration": { "type": "number" },
"system": { "type": "number" },
"e2e": { "type": "number" }
},
"description": "Recommended pyramid ratio (should sum to 100, empirical not mandatory)"
},
"completion_criteria": {
"type": "array",
"items": { "$ref": "#/definitions/completion_check" },
"description": "Test completion criteria (ISO 29119 / Agile DoD)"
},
"static_analysis_command": {
"type": "string",
"description": "Static analysis command"
}
}
}
}
}