code60-transmission-server 0.1.0-staging.13 → 0.1.0-staging.18

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.
Files changed (104) hide show
  1. package/INTENT.md +47 -0
  2. package/README.md +54 -340
  3. package/dist/src/acp.js +115 -0
  4. package/dist/src/contract.js +103 -0
  5. package/dist/src/engine.js +506 -0
  6. package/dist/src/main.js +72 -25
  7. package/dist/src/repository.js +94 -0
  8. package/dist/src/service.js +184 -0
  9. package/package.json +16 -35
  10. package/reference/openapi.json +728 -0
  11. package/README.engine.md +0 -463
  12. package/dist/src/broker/filesystem.js +0 -385
  13. package/dist/src/broker/index.js +0 -777
  14. package/dist/src/broker/native/README.md +0 -207
  15. package/dist/src/broker/native/build.js +0 -46
  16. package/dist/src/broker/native/command-helper.c +0 -93
  17. package/dist/src/broker/native/fs-helper.c +0 -529
  18. package/dist/src/broker/native/git-helper.c +0 -205
  19. package/dist/src/broker/policy.js +0 -149
  20. package/dist/src/broker/startup-lock.js +0 -14
  21. package/dist/src/broker/types.js +0 -11
  22. package/dist/src/cli/configure.js +0 -208
  23. package/dist/src/cli/daemon.js +0 -369
  24. package/dist/src/cli/helpers.js +0 -112
  25. package/dist/src/cli/main.js +0 -189
  26. package/dist/src/cli/runtime-build.js +0 -38
  27. package/dist/src/config/coding-policy.js +0 -4
  28. package/dist/src/config/deployment.js +0 -183
  29. package/dist/src/config/documents.js +0 -29
  30. package/dist/src/config/profile-validation.js +0 -129
  31. package/dist/src/config/schema-graph.js +0 -237
  32. package/dist/src/config/schema-loader.js +0 -185
  33. package/dist/src/config/validation-pool.js +0 -105
  34. package/dist/src/config/validation-protocol.js +0 -1
  35. package/dist/src/config/validation-worker.js +0 -106
  36. package/dist/src/config/workflow-language.js +0 -9
  37. package/dist/src/config/workflow-schema.json +0 -545
  38. package/dist/src/config/workflow-types.js +0 -1
  39. package/dist/src/config/workflow-validation.js +0 -95
  40. package/dist/src/engine/budgets.js +0 -50
  41. package/dist/src/engine/clocks.js +0 -27
  42. package/dist/src/engine/commands.js +0 -477
  43. package/dist/src/engine/contracts.js +0 -11
  44. package/dist/src/engine/drain-state.js +0 -31
  45. package/dist/src/engine/effective-permissions.js +0 -120
  46. package/dist/src/engine/instruction-pins.js +0 -205
  47. package/dist/src/engine/retries.js +0 -50
  48. package/dist/src/engine/state.js +0 -1
  49. package/dist/src/engine/timing.js +0 -23
  50. package/dist/src/engine/tool-observations.js +0 -87
  51. package/dist/src/engine/workflow-engine.js +0 -1864
  52. package/dist/src/mcp/catalog.js +0 -71
  53. package/dist/src/mcp/main.js +0 -26
  54. package/dist/src/mcp/server.js +0 -177
  55. package/dist/src/runtime/codex-app-server.js +0 -91
  56. package/dist/src/runtime/codex-executable.js +0 -50
  57. package/dist/src/runtime/containment.js +0 -82
  58. package/dist/src/runtime/engine-driver.js +0 -221
  59. package/dist/src/runtime/json-line-writer.js +0 -192
  60. package/dist/src/runtime/pinned-instruction-sources.js +0 -24
  61. package/dist/src/runtime/protocol-client.js +0 -264
  62. package/dist/src/runtime/protocol-pool.js +0 -183
  63. package/dist/src/runtime/protocol-projection.js +0 -393
  64. package/dist/src/runtime/protocol-types.js +0 -1
  65. package/dist/src/runtime/protocol-worker.js +0 -18
  66. package/dist/src/runtime/provider-bridge.js +0 -290
  67. package/dist/src/runtime/provider-credentials.js +0 -41
  68. package/dist/src/runtime/provider-transport.js +0 -406
  69. package/dist/src/runtime/runtime-broker.js +0 -213
  70. package/dist/src/runtime/workspace-instructions.js +0 -120
  71. package/dist/src/runtime/workspace-view.js +0 -74
  72. package/dist/src/server/api-contract.json +0 -11637
  73. package/dist/src/server/api-types.js +0 -1
  74. package/dist/src/server/application.js +0 -44
  75. package/dist/src/server/auth.js +0 -67
  76. package/dist/src/server/broker-handlers.js +0 -242
  77. package/dist/src/server/coding.js +0 -281
  78. package/dist/src/server/control-plane.js +0 -50
  79. package/dist/src/server/deployment.js +0 -249
  80. package/dist/src/server/errors.js +0 -22
  81. package/dist/src/server/history-handlers.js +0 -130
  82. package/dist/src/server/http.js +0 -124
  83. package/dist/src/server/paging.js +0 -56
  84. package/dist/src/server/publication.js +0 -119
  85. package/dist/src/server/tool-event-handler.js +0 -77
  86. package/dist/src/server/workspace-handlers.js +0 -34
  87. package/dist/src/storage/coordinator.js +0 -224
  88. package/dist/src/storage/startup-lock.js +0 -71
  89. package/dist/src/storage/store.js +0 -167
  90. package/dist/src/tools/check-worker.js +0 -81
  91. package/dist/src/tools/checks.js +0 -117
  92. package/dist/src/tools/command-check.js +0 -34
  93. package/dist/src/tools/commands.js +0 -312
  94. package/dist/src/tools/developer.js +0 -355
  95. package/dist/src/tools/dns.js +0 -248
  96. package/dist/src/tools/http-contract.js +0 -38
  97. package/dist/src/tools/http.js +0 -358
  98. package/dist/src/tools/index.js +0 -194
  99. package/dist/src/tools/worker-check.js +0 -73
  100. package/dist/src/workspaces/git.js +0 -227
  101. package/dist/src/workspaces/index.js +0 -937
  102. package/dist/src/workspaces/source.js +0 -295
  103. package/examples/deployment.local.json +0 -22
  104. package/scripts/postinstall.mjs +0 -26
@@ -0,0 +1,728 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "Transmission workflow service",
5
+ "version": "1"
6
+ },
7
+ "paths": {
8
+ "/start_workflow": {
9
+ "post": {
10
+ "operationId": "start_workflow",
11
+ "description": "Run the exact workflow confirmed by the user. Design ordered tasks, each with implementation instructions and an independent verification prompt. Show the project, tasks and criteria to the user and obtain confirmation before calling. Reuse the same key on reconnect.",
12
+ "security": [
13
+ {
14
+ "localToken": []
15
+ }
16
+ ],
17
+ "requestBody": {
18
+ "required": true,
19
+ "content": {
20
+ "application/json": {
21
+ "schema": {
22
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
23
+ "type": "object",
24
+ "properties": {
25
+ "repository": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 65536
29
+ },
30
+ "tasks": {
31
+ "minItems": 1,
32
+ "maxItems": 100,
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "name": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 65536
41
+ },
42
+ "instructions": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 65536
46
+ },
47
+ "verify": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "maxLength": 65536
51
+ },
52
+ "checks": {
53
+ "maxItems": 30,
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 65536
59
+ }
60
+ }
61
+ },
62
+ "required": [
63
+ "name",
64
+ "instructions",
65
+ "verify"
66
+ ],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "confirmed": {
71
+ "type": "boolean",
72
+ "const": true
73
+ },
74
+ "idempotencyKey": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "maxLength": 256
78
+ },
79
+ "repairs": {
80
+ "default": 2,
81
+ "type": "integer",
82
+ "minimum": 0,
83
+ "maximum": 30
84
+ },
85
+ "retries": {
86
+ "default": 2,
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "maximum": 30
90
+ },
91
+ "autoApprove": {
92
+ "default": true,
93
+ "type": "boolean"
94
+ }
95
+ },
96
+ "required": [
97
+ "repository",
98
+ "tasks",
99
+ "confirmed",
100
+ "idempotencyKey"
101
+ ],
102
+ "additionalProperties": false
103
+ }
104
+ }
105
+ }
106
+ },
107
+ "responses": {
108
+ "200": {
109
+ "description": "Workflow snapshot",
110
+ "content": {
111
+ "application/json": {
112
+ "schema": {
113
+ "$ref": "#/components/schemas/WorkflowSnapshot"
114
+ }
115
+ }
116
+ }
117
+ },
118
+ "400": {
119
+ "description": "Invalid input or workflow state"
120
+ },
121
+ "403": {
122
+ "description": "Invalid engine token"
123
+ }
124
+ }
125
+ }
126
+ },
127
+ "/get_workflow": {
128
+ "post": {
129
+ "operationId": "get_workflow",
130
+ "description": "Read an ordered task snapshot by run ID, including the active task index, decision, accepted results, and event cursor. Pass eventCursor as after to get_workflow_events for subsequent activity.",
131
+ "security": [
132
+ {
133
+ "localToken": []
134
+ }
135
+ ],
136
+ "requestBody": {
137
+ "required": true,
138
+ "content": {
139
+ "application/json": {
140
+ "schema": {
141
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
142
+ "type": "object",
143
+ "properties": {
144
+ "runId": {
145
+ "type": "string",
146
+ "format": "uuid",
147
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
148
+ }
149
+ },
150
+ "required": [
151
+ "runId"
152
+ ],
153
+ "additionalProperties": false
154
+ }
155
+ }
156
+ }
157
+ },
158
+ "responses": {
159
+ "200": {
160
+ "description": "Workflow snapshot",
161
+ "content": {
162
+ "application/json": {
163
+ "schema": {
164
+ "$ref": "#/components/schemas/WorkflowSnapshot"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ "400": {
170
+ "description": "Invalid input or workflow state"
171
+ },
172
+ "403": {
173
+ "description": "Invalid engine token"
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "/get_workflow_events": {
179
+ "post": {
180
+ "operationId": "get_workflow_events",
181
+ "description": "Read the next page of progress, sessions, native tools and verifier feedback. Use the last sequence number as after.",
182
+ "security": [
183
+ {
184
+ "localToken": []
185
+ }
186
+ ],
187
+ "requestBody": {
188
+ "required": true,
189
+ "content": {
190
+ "application/json": {
191
+ "schema": {
192
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
193
+ "type": "object",
194
+ "properties": {
195
+ "runId": {
196
+ "type": "string",
197
+ "format": "uuid",
198
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
199
+ },
200
+ "after": {
201
+ "default": 0,
202
+ "type": "integer",
203
+ "minimum": 0,
204
+ "maximum": 9007199254740991
205
+ }
206
+ },
207
+ "required": [
208
+ "runId"
209
+ ],
210
+ "additionalProperties": false
211
+ }
212
+ }
213
+ }
214
+ },
215
+ "responses": {
216
+ "200": {
217
+ "description": "Workflow receipt"
218
+ },
219
+ "400": {
220
+ "description": "Invalid input or workflow state"
221
+ },
222
+ "403": {
223
+ "description": "Invalid engine token"
224
+ }
225
+ }
226
+ }
227
+ },
228
+ "/get_workflow_diff": {
229
+ "post": {
230
+ "operationId": "get_workflow_diff",
231
+ "description": "Read a page of the accepted patch relative to the initial working tree. Offset is in bytes; content is base64.",
232
+ "security": [
233
+ {
234
+ "localToken": []
235
+ }
236
+ ],
237
+ "requestBody": {
238
+ "required": true,
239
+ "content": {
240
+ "application/json": {
241
+ "schema": {
242
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
243
+ "type": "object",
244
+ "properties": {
245
+ "runId": {
246
+ "type": "string",
247
+ "format": "uuid",
248
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
249
+ },
250
+ "offset": {
251
+ "default": 0,
252
+ "type": "integer",
253
+ "minimum": 0,
254
+ "maximum": 9007199254740991
255
+ }
256
+ },
257
+ "required": [
258
+ "runId"
259
+ ],
260
+ "additionalProperties": false
261
+ }
262
+ }
263
+ }
264
+ },
265
+ "responses": {
266
+ "200": {
267
+ "description": "Workflow receipt"
268
+ },
269
+ "400": {
270
+ "description": "Invalid input or workflow state"
271
+ },
272
+ "403": {
273
+ "description": "Invalid engine token"
274
+ }
275
+ }
276
+ }
277
+ },
278
+ "/answer_workflow_question": {
279
+ "post": {
280
+ "operationId": "answer_workflow_question",
281
+ "description": "Answer the outstanding decision by ID. For a permission question select an offered option ID.",
282
+ "security": [
283
+ {
284
+ "localToken": []
285
+ }
286
+ ],
287
+ "requestBody": {
288
+ "required": true,
289
+ "content": {
290
+ "application/json": {
291
+ "schema": {
292
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
293
+ "type": "object",
294
+ "properties": {
295
+ "runId": {
296
+ "type": "string",
297
+ "format": "uuid",
298
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
299
+ },
300
+ "questionId": {
301
+ "type": "string",
302
+ "format": "uuid",
303
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
304
+ },
305
+ "answer": {
306
+ "type": "string",
307
+ "minLength": 1,
308
+ "maxLength": 65536
309
+ }
310
+ },
311
+ "required": [
312
+ "runId",
313
+ "questionId",
314
+ "answer"
315
+ ],
316
+ "additionalProperties": false
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "responses": {
322
+ "200": {
323
+ "description": "Workflow snapshot",
324
+ "content": {
325
+ "application/json": {
326
+ "schema": {
327
+ "$ref": "#/components/schemas/WorkflowSnapshot"
328
+ }
329
+ }
330
+ }
331
+ },
332
+ "400": {
333
+ "description": "Invalid input or workflow state"
334
+ },
335
+ "403": {
336
+ "description": "Invalid engine token"
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "/send_workflow_message": {
342
+ "post": {
343
+ "operationId": "send_workflow_message",
344
+ "description": "Deliver new guidance before the current task is accepted.",
345
+ "security": [
346
+ {
347
+ "localToken": []
348
+ }
349
+ ],
350
+ "requestBody": {
351
+ "required": true,
352
+ "content": {
353
+ "application/json": {
354
+ "schema": {
355
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
356
+ "type": "object",
357
+ "properties": {
358
+ "runId": {
359
+ "type": "string",
360
+ "format": "uuid",
361
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
362
+ },
363
+ "message": {
364
+ "type": "string",
365
+ "minLength": 1,
366
+ "maxLength": 65536
367
+ }
368
+ },
369
+ "required": [
370
+ "runId",
371
+ "message"
372
+ ],
373
+ "additionalProperties": false
374
+ }
375
+ }
376
+ }
377
+ },
378
+ "responses": {
379
+ "200": {
380
+ "description": "Workflow snapshot",
381
+ "content": {
382
+ "application/json": {
383
+ "schema": {
384
+ "$ref": "#/components/schemas/WorkflowSnapshot"
385
+ }
386
+ }
387
+ }
388
+ },
389
+ "400": {
390
+ "description": "Invalid input or workflow state"
391
+ },
392
+ "403": {
393
+ "description": "Invalid engine token"
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "/cancel_workflow": {
399
+ "post": {
400
+ "operationId": "cancel_workflow",
401
+ "description": "Stop the workflow and its active agent sessions. Leave working files available for review.",
402
+ "security": [
403
+ {
404
+ "localToken": []
405
+ }
406
+ ],
407
+ "requestBody": {
408
+ "required": true,
409
+ "content": {
410
+ "application/json": {
411
+ "schema": {
412
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
413
+ "type": "object",
414
+ "properties": {
415
+ "runId": {
416
+ "type": "string",
417
+ "format": "uuid",
418
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
419
+ }
420
+ },
421
+ "required": [
422
+ "runId"
423
+ ],
424
+ "additionalProperties": false
425
+ }
426
+ }
427
+ }
428
+ },
429
+ "responses": {
430
+ "200": {
431
+ "description": "Workflow snapshot",
432
+ "content": {
433
+ "application/json": {
434
+ "schema": {
435
+ "$ref": "#/components/schemas/WorkflowSnapshot"
436
+ }
437
+ }
438
+ }
439
+ },
440
+ "400": {
441
+ "description": "Invalid input or workflow state"
442
+ },
443
+ "403": {
444
+ "description": "Invalid engine token"
445
+ }
446
+ }
447
+ }
448
+ }
449
+ },
450
+ "components": {
451
+ "schemas": {
452
+ "WorkflowSnapshot": {
453
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
454
+ "type": "object",
455
+ "properties": {
456
+ "runId": {
457
+ "type": "string",
458
+ "format": "uuid",
459
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
460
+ },
461
+ "status": {
462
+ "type": "string",
463
+ "enum": [
464
+ "running",
465
+ "completed",
466
+ "needs_input",
467
+ "failed",
468
+ "cancelled"
469
+ ]
470
+ },
471
+ "tasks": {
472
+ "type": "array",
473
+ "items": {
474
+ "type": "object",
475
+ "properties": {
476
+ "index": {
477
+ "type": "integer",
478
+ "minimum": 0,
479
+ "maximum": 9007199254740991
480
+ },
481
+ "name": {
482
+ "type": "string"
483
+ },
484
+ "state": {
485
+ "type": "string",
486
+ "enum": [
487
+ "pending",
488
+ "implementing",
489
+ "verifying",
490
+ "repairing",
491
+ "needs_input",
492
+ "accepted",
493
+ "failed",
494
+ "cancelled"
495
+ ]
496
+ }
497
+ },
498
+ "required": [
499
+ "index",
500
+ "name",
501
+ "state"
502
+ ],
503
+ "additionalProperties": false
504
+ }
505
+ },
506
+ "activeTaskIndex": {
507
+ "anyOf": [
508
+ {
509
+ "type": "integer",
510
+ "minimum": 0,
511
+ "maximum": 9007199254740991
512
+ },
513
+ {
514
+ "type": "null"
515
+ }
516
+ ]
517
+ },
518
+ "eventCursor": {
519
+ "type": "integer",
520
+ "minimum": 0,
521
+ "maximum": 9007199254740991
522
+ },
523
+ "task": {
524
+ "type": "string"
525
+ },
526
+ "phase": {
527
+ "type": "string",
528
+ "enum": [
529
+ "worker",
530
+ "verifier"
531
+ ]
532
+ },
533
+ "decision": {
534
+ "type": "object",
535
+ "properties": {
536
+ "id": {
537
+ "type": "string",
538
+ "format": "uuid",
539
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
540
+ },
541
+ "text": {
542
+ "type": "string"
543
+ },
544
+ "options": {
545
+ "type": "array",
546
+ "items": {
547
+ "type": "object",
548
+ "properties": {
549
+ "id": {
550
+ "type": "string"
551
+ },
552
+ "name": {
553
+ "type": "string"
554
+ }
555
+ },
556
+ "required": [
557
+ "id",
558
+ "name"
559
+ ],
560
+ "additionalProperties": false
561
+ }
562
+ }
563
+ },
564
+ "required": [
565
+ "id",
566
+ "text"
567
+ ],
568
+ "additionalProperties": false
569
+ },
570
+ "reason": {
571
+ "type": "string"
572
+ },
573
+ "attempts": {
574
+ "type": "array",
575
+ "items": {
576
+ "type": "string"
577
+ }
578
+ },
579
+ "accepted": {
580
+ "type": "array",
581
+ "items": {
582
+ "type": "object",
583
+ "properties": {
584
+ "name": {
585
+ "type": "string"
586
+ },
587
+ "result": {
588
+ "type": "string"
589
+ },
590
+ "verdict": {
591
+ "type": "object",
592
+ "properties": {
593
+ "decision": {
594
+ "type": "string",
595
+ "enum": [
596
+ "accept",
597
+ "reject"
598
+ ]
599
+ },
600
+ "reason": {
601
+ "type": "string"
602
+ },
603
+ "checks": {
604
+ "type": "array",
605
+ "items": {
606
+ "type": "object",
607
+ "properties": {
608
+ "command": {
609
+ "type": "string",
610
+ "minLength": 1,
611
+ "maxLength": 65536
612
+ },
613
+ "passed": {
614
+ "type": "boolean"
615
+ },
616
+ "evidence": {
617
+ "type": "string",
618
+ "minLength": 1,
619
+ "maxLength": 65536
620
+ }
621
+ },
622
+ "required": [
623
+ "command",
624
+ "passed",
625
+ "evidence"
626
+ ],
627
+ "additionalProperties": false
628
+ }
629
+ }
630
+ },
631
+ "required": [
632
+ "decision",
633
+ "reason"
634
+ ],
635
+ "additionalProperties": false
636
+ },
637
+ "worker": {
638
+ "type": "string"
639
+ },
640
+ "verifier": {
641
+ "type": "string"
642
+ },
643
+ "revision": {
644
+ "type": "string"
645
+ }
646
+ },
647
+ "required": [
648
+ "name",
649
+ "result",
650
+ "verdict",
651
+ "worker",
652
+ "verifier",
653
+ "revision"
654
+ ],
655
+ "additionalProperties": false
656
+ }
657
+ },
658
+ "result": {
659
+ "type": "string"
660
+ },
661
+ "verdict": {
662
+ "type": "object",
663
+ "properties": {
664
+ "decision": {
665
+ "type": "string",
666
+ "enum": [
667
+ "accept",
668
+ "reject"
669
+ ]
670
+ },
671
+ "reason": {
672
+ "type": "string"
673
+ },
674
+ "checks": {
675
+ "type": "array",
676
+ "items": {
677
+ "type": "object",
678
+ "properties": {
679
+ "command": {
680
+ "type": "string",
681
+ "minLength": 1,
682
+ "maxLength": 65536
683
+ },
684
+ "passed": {
685
+ "type": "boolean"
686
+ },
687
+ "evidence": {
688
+ "type": "string",
689
+ "minLength": 1,
690
+ "maxLength": 65536
691
+ }
692
+ },
693
+ "required": [
694
+ "command",
695
+ "passed",
696
+ "evidence"
697
+ ],
698
+ "additionalProperties": false
699
+ }
700
+ }
701
+ },
702
+ "required": [
703
+ "decision",
704
+ "reason"
705
+ ],
706
+ "additionalProperties": false
707
+ }
708
+ },
709
+ "required": [
710
+ "runId",
711
+ "status",
712
+ "tasks",
713
+ "activeTaskIndex",
714
+ "eventCursor",
715
+ "attempts",
716
+ "accepted"
717
+ ],
718
+ "additionalProperties": false
719
+ }
720
+ },
721
+ "securitySchemes": {
722
+ "localToken": {
723
+ "type": "http",
724
+ "scheme": "bearer"
725
+ }
726
+ }
727
+ }
728
+ }