code60-transmission-server 0.1.0-staging.2 → 0.1.0-staging.20

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 (94) hide show
  1. package/INTENT.md +47 -0
  2. package/README.md +58 -253
  3. package/dist/src/acp.js +115 -0
  4. package/dist/src/contract.js +108 -0
  5. package/dist/src/engine.js +596 -0
  6. package/dist/src/main.js +72 -22
  7. package/dist/src/repository.js +94 -0
  8. package/dist/src/service.js +188 -0
  9. package/package.json +16 -32
  10. package/reference/openapi.json +834 -0
  11. package/README.engine.md +0 -401
  12. package/dist/src/broker/filesystem.js +0 -385
  13. package/dist/src/broker/index.js +0 -734
  14. package/dist/src/broker/native/README.md +0 -192
  15. package/dist/src/broker/native/build.js +0 -43
  16. package/dist/src/broker/native/fs-helper.c +0 -529
  17. package/dist/src/broker/native/git-helper.c +0 -205
  18. package/dist/src/broker/policy.js +0 -149
  19. package/dist/src/broker/startup-lock.js +0 -14
  20. package/dist/src/broker/types.js +0 -11
  21. package/dist/src/cli/daemon.js +0 -365
  22. package/dist/src/cli/helpers.js +0 -104
  23. package/dist/src/cli/main.js +0 -180
  24. package/dist/src/config/deployment.js +0 -163
  25. package/dist/src/config/documents.js +0 -29
  26. package/dist/src/config/profile-validation.js +0 -123
  27. package/dist/src/config/schema-graph.js +0 -237
  28. package/dist/src/config/schema-loader.js +0 -185
  29. package/dist/src/config/validation-pool.js +0 -105
  30. package/dist/src/config/validation-protocol.js +0 -1
  31. package/dist/src/config/validation-worker.js +0 -106
  32. package/dist/src/config/workflow-language.js +0 -9
  33. package/dist/src/config/workflow-schema.json +0 -534
  34. package/dist/src/config/workflow-types.js +0 -1
  35. package/dist/src/config/workflow-validation.js +0 -95
  36. package/dist/src/engine/budgets.js +0 -50
  37. package/dist/src/engine/clocks.js +0 -27
  38. package/dist/src/engine/commands.js +0 -441
  39. package/dist/src/engine/contracts.js +0 -11
  40. package/dist/src/engine/drain-state.js +0 -31
  41. package/dist/src/engine/effective-permissions.js +0 -120
  42. package/dist/src/engine/instruction-pins.js +0 -205
  43. package/dist/src/engine/retries.js +0 -50
  44. package/dist/src/engine/state.js +0 -1
  45. package/dist/src/engine/timing.js +0 -23
  46. package/dist/src/engine/tool-observations.js +0 -87
  47. package/dist/src/engine/workflow-engine.js +0 -1807
  48. package/dist/src/mcp/catalog.js +0 -71
  49. package/dist/src/mcp/main.js +0 -24
  50. package/dist/src/mcp/server.js +0 -104
  51. package/dist/src/runtime/codex-app-server.js +0 -91
  52. package/dist/src/runtime/containment.js +0 -82
  53. package/dist/src/runtime/engine-driver.js +0 -212
  54. package/dist/src/runtime/json-line-writer.js +0 -192
  55. package/dist/src/runtime/pinned-instruction-sources.js +0 -24
  56. package/dist/src/runtime/protocol-client.js +0 -264
  57. package/dist/src/runtime/protocol-pool.js +0 -183
  58. package/dist/src/runtime/protocol-projection.js +0 -393
  59. package/dist/src/runtime/protocol-types.js +0 -1
  60. package/dist/src/runtime/protocol-worker.js +0 -18
  61. package/dist/src/runtime/provider-bridge.js +0 -288
  62. package/dist/src/runtime/provider-credentials.js +0 -41
  63. package/dist/src/runtime/provider-transport.js +0 -404
  64. package/dist/src/runtime/runtime-broker.js +0 -213
  65. package/dist/src/runtime/workspace-instructions.js +0 -120
  66. package/dist/src/runtime/workspace-view.js +0 -74
  67. package/dist/src/server/api-contract.json +0 -11078
  68. package/dist/src/server/api-types.js +0 -1
  69. package/dist/src/server/application.js +0 -38
  70. package/dist/src/server/auth.js +0 -67
  71. package/dist/src/server/broker-handlers.js +0 -242
  72. package/dist/src/server/control-plane.js +0 -50
  73. package/dist/src/server/deployment.js +0 -237
  74. package/dist/src/server/errors.js +0 -22
  75. package/dist/src/server/history-handlers.js +0 -113
  76. package/dist/src/server/http.js +0 -124
  77. package/dist/src/server/paging.js +0 -56
  78. package/dist/src/server/publication.js +0 -119
  79. package/dist/src/server/tool-event-handler.js +0 -77
  80. package/dist/src/server/workspace-handlers.js +0 -34
  81. package/dist/src/storage/coordinator.js +0 -224
  82. package/dist/src/storage/startup-lock.js +0 -71
  83. package/dist/src/storage/store.js +0 -167
  84. package/dist/src/tools/check-worker.js +0 -81
  85. package/dist/src/tools/checks.js +0 -106
  86. package/dist/src/tools/dns.js +0 -248
  87. package/dist/src/tools/http-contract.js +0 -38
  88. package/dist/src/tools/http.js +0 -358
  89. package/dist/src/tools/index.js +0 -177
  90. package/dist/src/tools/worker-check.js +0 -73
  91. package/dist/src/workspaces/git.js +0 -227
  92. package/dist/src/workspaces/index.js +0 -715
  93. package/examples/deployment.local.json +0 -22
  94. package/scripts/postinstall.mjs +0 -25
@@ -0,0 +1,834 @@
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
+ "/pause_workflow": {
399
+ "post": {
400
+ "operationId": "pause_workflow",
401
+ "description": "Interrupt active agents and pause the workflow, preserving files and accepted tasks. Returns paused after agents stop. Pause survives engine restart.",
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
+ "/resume_workflow": {
450
+ "post": {
451
+ "operationId": "resume_workflow",
452
+ "description": "Resume a paused workflow with fresh sessions for the first unfinished task without spending a retry. An unanswered scope question still requires an answer.",
453
+ "security": [
454
+ {
455
+ "localToken": []
456
+ }
457
+ ],
458
+ "requestBody": {
459
+ "required": true,
460
+ "content": {
461
+ "application/json": {
462
+ "schema": {
463
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
464
+ "type": "object",
465
+ "properties": {
466
+ "runId": {
467
+ "type": "string",
468
+ "format": "uuid",
469
+ "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)$"
470
+ }
471
+ },
472
+ "required": [
473
+ "runId"
474
+ ],
475
+ "additionalProperties": false
476
+ }
477
+ }
478
+ }
479
+ },
480
+ "responses": {
481
+ "200": {
482
+ "description": "Workflow snapshot",
483
+ "content": {
484
+ "application/json": {
485
+ "schema": {
486
+ "$ref": "#/components/schemas/WorkflowSnapshot"
487
+ }
488
+ }
489
+ }
490
+ },
491
+ "400": {
492
+ "description": "Invalid input or workflow state"
493
+ },
494
+ "403": {
495
+ "description": "Invalid engine token"
496
+ }
497
+ }
498
+ }
499
+ },
500
+ "/cancel_workflow": {
501
+ "post": {
502
+ "operationId": "cancel_workflow",
503
+ "description": "Stop the workflow and its active agent sessions. Leave working files available for review.",
504
+ "security": [
505
+ {
506
+ "localToken": []
507
+ }
508
+ ],
509
+ "requestBody": {
510
+ "required": true,
511
+ "content": {
512
+ "application/json": {
513
+ "schema": {
514
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
515
+ "type": "object",
516
+ "properties": {
517
+ "runId": {
518
+ "type": "string",
519
+ "format": "uuid",
520
+ "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)$"
521
+ }
522
+ },
523
+ "required": [
524
+ "runId"
525
+ ],
526
+ "additionalProperties": false
527
+ }
528
+ }
529
+ }
530
+ },
531
+ "responses": {
532
+ "200": {
533
+ "description": "Workflow snapshot",
534
+ "content": {
535
+ "application/json": {
536
+ "schema": {
537
+ "$ref": "#/components/schemas/WorkflowSnapshot"
538
+ }
539
+ }
540
+ }
541
+ },
542
+ "400": {
543
+ "description": "Invalid input or workflow state"
544
+ },
545
+ "403": {
546
+ "description": "Invalid engine token"
547
+ }
548
+ }
549
+ }
550
+ }
551
+ },
552
+ "components": {
553
+ "schemas": {
554
+ "WorkflowSnapshot": {
555
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
556
+ "type": "object",
557
+ "properties": {
558
+ "runId": {
559
+ "type": "string",
560
+ "format": "uuid",
561
+ "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)$"
562
+ },
563
+ "status": {
564
+ "type": "string",
565
+ "enum": [
566
+ "running",
567
+ "pausing",
568
+ "paused",
569
+ "completed",
570
+ "needs_input",
571
+ "failed",
572
+ "cancelled"
573
+ ]
574
+ },
575
+ "tasks": {
576
+ "type": "array",
577
+ "items": {
578
+ "type": "object",
579
+ "properties": {
580
+ "index": {
581
+ "type": "integer",
582
+ "minimum": 0,
583
+ "maximum": 9007199254740991
584
+ },
585
+ "name": {
586
+ "type": "string"
587
+ },
588
+ "state": {
589
+ "type": "string",
590
+ "enum": [
591
+ "pending",
592
+ "implementing",
593
+ "verifying",
594
+ "repairing",
595
+ "needs_input",
596
+ "accepted",
597
+ "failed",
598
+ "cancelled",
599
+ "pausing",
600
+ "paused"
601
+ ]
602
+ }
603
+ },
604
+ "required": [
605
+ "index",
606
+ "name",
607
+ "state"
608
+ ],
609
+ "additionalProperties": false
610
+ }
611
+ },
612
+ "activeTaskIndex": {
613
+ "anyOf": [
614
+ {
615
+ "type": "integer",
616
+ "minimum": 0,
617
+ "maximum": 9007199254740991
618
+ },
619
+ {
620
+ "type": "null"
621
+ }
622
+ ]
623
+ },
624
+ "eventCursor": {
625
+ "type": "integer",
626
+ "minimum": 0,
627
+ "maximum": 9007199254740991
628
+ },
629
+ "task": {
630
+ "type": "string"
631
+ },
632
+ "phase": {
633
+ "type": "string",
634
+ "enum": [
635
+ "worker",
636
+ "verifier"
637
+ ]
638
+ },
639
+ "decision": {
640
+ "type": "object",
641
+ "properties": {
642
+ "id": {
643
+ "type": "string",
644
+ "format": "uuid",
645
+ "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)$"
646
+ },
647
+ "text": {
648
+ "type": "string"
649
+ },
650
+ "options": {
651
+ "type": "array",
652
+ "items": {
653
+ "type": "object",
654
+ "properties": {
655
+ "id": {
656
+ "type": "string"
657
+ },
658
+ "name": {
659
+ "type": "string"
660
+ }
661
+ },
662
+ "required": [
663
+ "id",
664
+ "name"
665
+ ],
666
+ "additionalProperties": false
667
+ }
668
+ }
669
+ },
670
+ "required": [
671
+ "id",
672
+ "text"
673
+ ],
674
+ "additionalProperties": false
675
+ },
676
+ "reason": {
677
+ "type": "string"
678
+ },
679
+ "attempts": {
680
+ "type": "array",
681
+ "items": {
682
+ "type": "string"
683
+ }
684
+ },
685
+ "accepted": {
686
+ "type": "array",
687
+ "items": {
688
+ "type": "object",
689
+ "properties": {
690
+ "name": {
691
+ "type": "string"
692
+ },
693
+ "result": {
694
+ "type": "string"
695
+ },
696
+ "verdict": {
697
+ "type": "object",
698
+ "properties": {
699
+ "decision": {
700
+ "type": "string",
701
+ "enum": [
702
+ "accept",
703
+ "reject"
704
+ ]
705
+ },
706
+ "reason": {
707
+ "type": "string"
708
+ },
709
+ "checks": {
710
+ "type": "array",
711
+ "items": {
712
+ "type": "object",
713
+ "properties": {
714
+ "command": {
715
+ "type": "string",
716
+ "minLength": 1,
717
+ "maxLength": 65536
718
+ },
719
+ "passed": {
720
+ "type": "boolean"
721
+ },
722
+ "evidence": {
723
+ "type": "string",
724
+ "minLength": 1,
725
+ "maxLength": 65536
726
+ }
727
+ },
728
+ "required": [
729
+ "command",
730
+ "passed",
731
+ "evidence"
732
+ ],
733
+ "additionalProperties": false
734
+ }
735
+ }
736
+ },
737
+ "required": [
738
+ "decision",
739
+ "reason"
740
+ ],
741
+ "additionalProperties": false
742
+ },
743
+ "worker": {
744
+ "type": "string"
745
+ },
746
+ "verifier": {
747
+ "type": "string"
748
+ },
749
+ "revision": {
750
+ "type": "string"
751
+ }
752
+ },
753
+ "required": [
754
+ "name",
755
+ "result",
756
+ "verdict",
757
+ "worker",
758
+ "verifier",
759
+ "revision"
760
+ ],
761
+ "additionalProperties": false
762
+ }
763
+ },
764
+ "result": {
765
+ "type": "string"
766
+ },
767
+ "verdict": {
768
+ "type": "object",
769
+ "properties": {
770
+ "decision": {
771
+ "type": "string",
772
+ "enum": [
773
+ "accept",
774
+ "reject"
775
+ ]
776
+ },
777
+ "reason": {
778
+ "type": "string"
779
+ },
780
+ "checks": {
781
+ "type": "array",
782
+ "items": {
783
+ "type": "object",
784
+ "properties": {
785
+ "command": {
786
+ "type": "string",
787
+ "minLength": 1,
788
+ "maxLength": 65536
789
+ },
790
+ "passed": {
791
+ "type": "boolean"
792
+ },
793
+ "evidence": {
794
+ "type": "string",
795
+ "minLength": 1,
796
+ "maxLength": 65536
797
+ }
798
+ },
799
+ "required": [
800
+ "command",
801
+ "passed",
802
+ "evidence"
803
+ ],
804
+ "additionalProperties": false
805
+ }
806
+ }
807
+ },
808
+ "required": [
809
+ "decision",
810
+ "reason"
811
+ ],
812
+ "additionalProperties": false
813
+ }
814
+ },
815
+ "required": [
816
+ "runId",
817
+ "status",
818
+ "tasks",
819
+ "activeTaskIndex",
820
+ "eventCursor",
821
+ "attempts",
822
+ "accepted"
823
+ ],
824
+ "additionalProperties": false
825
+ }
826
+ },
827
+ "securitySchemes": {
828
+ "localToken": {
829
+ "type": "http",
830
+ "scheme": "bearer"
831
+ }
832
+ }
833
+ }
834
+ }