@elvis1513/auto-coding-skill 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,475 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/elvis1513/auto-coding-skill/blob/main/src/auto-coding-skill/data/contracts/orchestration-v1.schema.json",
4
+ "title": "Auto Coding Orchestration Contract v1",
5
+ "type": "object",
6
+ "$ref": "#/$defs/classifyResult",
7
+ "$defs": {
8
+ "stringArray": {
9
+ "type": "array",
10
+ "items": {
11
+ "type": "string"
12
+ }
13
+ },
14
+ "fingerprint": {
15
+ "type": "string",
16
+ "pattern": "^$|^[0-9a-f]{64}$"
17
+ },
18
+ "assignmentContractDescriptor": {
19
+ "type": "object",
20
+ "required": [
21
+ "common",
22
+ "writer",
23
+ "reviewer"
24
+ ],
25
+ "properties": {
26
+ "common": {
27
+ "$ref": "#/$defs/stringArray"
28
+ },
29
+ "writer": {
30
+ "$ref": "#/$defs/stringArray"
31
+ },
32
+ "reviewer": {
33
+ "$ref": "#/$defs/stringArray"
34
+ }
35
+ },
36
+ "additionalProperties": false
37
+ },
38
+ "agentAssignment": {
39
+ "type": "object",
40
+ "required": [
41
+ "contract_version",
42
+ "node_id",
43
+ "task_id",
44
+ "role",
45
+ "base_sha",
46
+ "scope",
47
+ "depends_on",
48
+ "acceptance"
49
+ ],
50
+ "properties": {
51
+ "contract_version": {
52
+ "const": 1
53
+ },
54
+ "node_id": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "task_id": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ },
62
+ "role": {
63
+ "enum": [
64
+ "explorer",
65
+ "docs_researcher",
66
+ "browser_debugger",
67
+ "fixer",
68
+ "reviewer"
69
+ ]
70
+ },
71
+ "base_sha": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "scope": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "depends_on": {
80
+ "$ref": "#/$defs/stringArray"
81
+ },
82
+ "acceptance": {
83
+ "$ref": "#/$defs/stringArray"
84
+ },
85
+ "task_branch": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "worktree_path": {
90
+ "type": "string",
91
+ "minLength": 1
92
+ },
93
+ "owned_paths": {
94
+ "$ref": "#/$defs/stringArray"
95
+ },
96
+ "diff_base": {
97
+ "type": "string",
98
+ "minLength": 1
99
+ },
100
+ "diff_head": {
101
+ "type": "string",
102
+ "minLength": 1
103
+ },
104
+ "diff_fingerprint": {
105
+ "$ref": "#/$defs/fingerprint"
106
+ },
107
+ "owning_fixer": {
108
+ "type": "string",
109
+ "minLength": 1
110
+ }
111
+ },
112
+ "allOf": [
113
+ {
114
+ "if": {
115
+ "properties": {
116
+ "role": {
117
+ "const": "fixer"
118
+ }
119
+ },
120
+ "required": [
121
+ "role"
122
+ ]
123
+ },
124
+ "then": {
125
+ "required": [
126
+ "task_branch",
127
+ "worktree_path",
128
+ "owned_paths"
129
+ ]
130
+ }
131
+ },
132
+ {
133
+ "if": {
134
+ "properties": {
135
+ "role": {
136
+ "const": "reviewer"
137
+ }
138
+ },
139
+ "required": [
140
+ "role"
141
+ ]
142
+ },
143
+ "then": {
144
+ "required": [
145
+ "diff_base",
146
+ "diff_head",
147
+ "diff_fingerprint",
148
+ "owning_fixer"
149
+ ]
150
+ }
151
+ }
152
+ ],
153
+ "additionalProperties": false
154
+ },
155
+ "agentResult": {
156
+ "type": "object",
157
+ "required": [
158
+ "contract_version",
159
+ "node_id",
160
+ "role",
161
+ "task_id",
162
+ "base_sha",
163
+ "status",
164
+ "summary",
165
+ "depends_on",
166
+ "owned_paths",
167
+ "changed_paths",
168
+ "diff_fingerprint",
169
+ "evidence",
170
+ "findings",
171
+ "verdict",
172
+ "risks",
173
+ "next_owner"
174
+ ],
175
+ "properties": {
176
+ "contract_version": {
177
+ "const": 1
178
+ },
179
+ "node_id": {
180
+ "type": "string",
181
+ "minLength": 1
182
+ },
183
+ "role": {
184
+ "enum": [
185
+ "explorer",
186
+ "docs_researcher",
187
+ "browser_debugger",
188
+ "fixer",
189
+ "reviewer"
190
+ ]
191
+ },
192
+ "task_id": {
193
+ "type": "string",
194
+ "minLength": 1
195
+ },
196
+ "base_sha": {
197
+ "type": "string",
198
+ "minLength": 1
199
+ },
200
+ "status": {
201
+ "enum": [
202
+ "completed",
203
+ "blocked",
204
+ "failed"
205
+ ]
206
+ },
207
+ "summary": {
208
+ "type": "string"
209
+ },
210
+ "depends_on": {
211
+ "$ref": "#/$defs/stringArray"
212
+ },
213
+ "owned_paths": {
214
+ "$ref": "#/$defs/stringArray"
215
+ },
216
+ "changed_paths": {
217
+ "$ref": "#/$defs/stringArray"
218
+ },
219
+ "diff_fingerprint": {
220
+ "$ref": "#/$defs/fingerprint"
221
+ },
222
+ "evidence": {
223
+ "$ref": "#/$defs/stringArray"
224
+ },
225
+ "findings": {
226
+ "$ref": "#/$defs/stringArray"
227
+ },
228
+ "verdict": {
229
+ "enum": [
230
+ "not-applicable",
231
+ "ready-for-review",
232
+ "approved",
233
+ "changes-requested",
234
+ "blocked"
235
+ ]
236
+ },
237
+ "risks": {
238
+ "$ref": "#/$defs/stringArray"
239
+ },
240
+ "next_owner": {
241
+ "type": [
242
+ "string",
243
+ "null"
244
+ ]
245
+ }
246
+ },
247
+ "allOf": [
248
+ {
249
+ "if": {
250
+ "properties": {
251
+ "role": {
252
+ "enum": [
253
+ "explorer",
254
+ "docs_researcher",
255
+ "browser_debugger",
256
+ "reviewer"
257
+ ]
258
+ }
259
+ },
260
+ "required": [
261
+ "role"
262
+ ]
263
+ },
264
+ "then": {
265
+ "properties": {
266
+ "changed_paths": {
267
+ "maxItems": 0
268
+ }
269
+ }
270
+ }
271
+ },
272
+ {
273
+ "if": {
274
+ "properties": {
275
+ "role": {
276
+ "enum": [
277
+ "explorer",
278
+ "docs_researcher",
279
+ "browser_debugger"
280
+ ]
281
+ }
282
+ },
283
+ "required": [
284
+ "role"
285
+ ]
286
+ },
287
+ "then": {
288
+ "properties": {
289
+ "owned_paths": {
290
+ "maxItems": 0
291
+ },
292
+ "verdict": {
293
+ "enum": [
294
+ "not-applicable",
295
+ "blocked"
296
+ ]
297
+ }
298
+ }
299
+ }
300
+ },
301
+ {
302
+ "if": {
303
+ "properties": {
304
+ "role": {
305
+ "const": "fixer"
306
+ }
307
+ },
308
+ "required": [
309
+ "role"
310
+ ]
311
+ },
312
+ "then": {
313
+ "properties": {
314
+ "verdict": {
315
+ "enum": [
316
+ "ready-for-review",
317
+ "blocked"
318
+ ]
319
+ }
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "if": {
325
+ "properties": {
326
+ "role": {
327
+ "const": "reviewer"
328
+ }
329
+ },
330
+ "required": [
331
+ "role"
332
+ ]
333
+ },
334
+ "then": {
335
+ "properties": {
336
+ "verdict": {
337
+ "enum": [
338
+ "approved",
339
+ "changes-requested",
340
+ "blocked"
341
+ ]
342
+ }
343
+ }
344
+ }
345
+ }
346
+ ],
347
+ "additionalProperties": false
348
+ },
349
+ "agentPlan": {
350
+ "type": "object",
351
+ "required": [
352
+ "contract_version",
353
+ "contract_schema",
354
+ "strategy",
355
+ "policies",
356
+ "assignment_contract",
357
+ "result_contract",
358
+ "stages",
359
+ "constraints"
360
+ ],
361
+ "properties": {
362
+ "contract_version": {
363
+ "const": 1
364
+ },
365
+ "contract_schema": {
366
+ "const": "data/contracts/orchestration-v1.schema.json"
367
+ },
368
+ "strategy": {
369
+ "enum": [
370
+ "main-only",
371
+ "orchestrated-subagents"
372
+ ]
373
+ },
374
+ "policies": {
375
+ "type": "object"
376
+ },
377
+ "assignment_contract": {
378
+ "$ref": "#/$defs/assignmentContractDescriptor"
379
+ },
380
+ "result_contract": {
381
+ "$ref": "#/$defs/stringArray"
382
+ },
383
+ "stages": {
384
+ "type": "array",
385
+ "items": {
386
+ "type": "object",
387
+ "required": [
388
+ "id",
389
+ "mode",
390
+ "roles",
391
+ "depends_on"
392
+ ],
393
+ "properties": {
394
+ "id": {
395
+ "type": "string",
396
+ "minLength": 1
397
+ },
398
+ "mode": {
399
+ "type": "string",
400
+ "minLength": 1
401
+ },
402
+ "roles": {
403
+ "$ref": "#/$defs/stringArray"
404
+ },
405
+ "depends_on": {
406
+ "$ref": "#/$defs/stringArray"
407
+ }
408
+ },
409
+ "additionalProperties": true
410
+ }
411
+ },
412
+ "constraints": {
413
+ "$ref": "#/$defs/stringArray"
414
+ }
415
+ },
416
+ "additionalProperties": false
417
+ },
418
+ "classifyResult": {
419
+ "type": "object",
420
+ "required": [
421
+ "contract_version",
422
+ "contract_schema",
423
+ "changed_files",
424
+ "planned_files",
425
+ "classification_files",
426
+ "intent_provided",
427
+ "intent_categories",
428
+ "profile",
429
+ "categories",
430
+ "recommended_agents",
431
+ "agent_plan"
432
+ ],
433
+ "properties": {
434
+ "contract_version": {
435
+ "const": 1
436
+ },
437
+ "contract_schema": {
438
+ "const": "data/contracts/orchestration-v1.schema.json"
439
+ },
440
+ "changed_files": {
441
+ "$ref": "#/$defs/stringArray"
442
+ },
443
+ "planned_files": {
444
+ "$ref": "#/$defs/stringArray"
445
+ },
446
+ "classification_files": {
447
+ "$ref": "#/$defs/stringArray"
448
+ },
449
+ "intent_provided": {
450
+ "type": "boolean"
451
+ },
452
+ "intent_categories": {
453
+ "$ref": "#/$defs/stringArray"
454
+ },
455
+ "profile": {
456
+ "enum": [
457
+ "micro",
458
+ "standard",
459
+ "high-risk"
460
+ ]
461
+ },
462
+ "categories": {
463
+ "$ref": "#/$defs/stringArray"
464
+ },
465
+ "recommended_agents": {
466
+ "$ref": "#/$defs/stringArray"
467
+ },
468
+ "agent_plan": {
469
+ "$ref": "#/$defs/agentPlan"
470
+ }
471
+ },
472
+ "additionalProperties": true
473
+ }
474
+ }
475
+ }