@tnunamak/dalan 0.0.0-stage → 0.6.0

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 (199) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/CONTRIBUTING.md +26 -0
  3. package/LICENSE +204 -0
  4. package/PROTOCOL.md +351 -0
  5. package/README.md +215 -2
  6. package/SECURITY.md +30 -0
  7. package/bin/dalan.mjs +43 -0
  8. package/bin/dot-acp-agent.mjs +377 -0
  9. package/bin/dot-alert.mjs +9 -0
  10. package/bin/dot-deadman.mjs +82 -0
  11. package/bin/dot-heartbeat.mjs +29 -0
  12. package/bin/dot-pr-reviewer.mjs +32 -0
  13. package/bin/dot-worker.mjs +764 -0
  14. package/docs/chatgpt-worker-onboarding.md +112 -0
  15. package/docs/claude-worker-onboarding.md +113 -0
  16. package/docs/codex-to-muse.md +175 -0
  17. package/docs/connect-chatgpt.md +83 -0
  18. package/docs/connection-longevity.md +43 -0
  19. package/docs/dalan-upgrade.md +246 -0
  20. package/docs/deadman.md +61 -0
  21. package/docs/dot-pr-reviewer.config.example.json +9 -0
  22. package/docs/durability-audit.md +27 -0
  23. package/docs/keycloak-client-chatgpt-dot-bridge.json +59 -0
  24. package/docs/keycloak-oauth-setup.md +30 -0
  25. package/docs/local-agent-mcp.md +41 -0
  26. package/docs/manual-setup.md +135 -0
  27. package/docs/mirror-fetch.md +97 -0
  28. package/docs/operations.md +799 -0
  29. package/docs/operator-duties.md +68 -0
  30. package/docs/owner-integrator.md +27 -0
  31. package/docs/portable-auth-profile.md +107 -0
  32. package/docs/pr-head-reviewer.md +70 -0
  33. package/docs/pr-preflight.md +28 -0
  34. package/docs/pull-queue.md +131 -0
  35. package/docs/pull-workers.md +94 -0
  36. package/docs/redaction.md +27 -0
  37. package/docs/service-setup.md +219 -0
  38. package/docs/setup-reference.md +80 -0
  39. package/docs/t3-connector-icon.png +0 -0
  40. package/docs/t3-integration.md +51 -0
  41. package/docs/t3-result-retry-delivery.md +41 -0
  42. package/docs/t3-reverse-control.md +107 -0
  43. package/docs/usage.md +443 -0
  44. package/docs/worker-clients.md +290 -0
  45. package/integrations/t3/acp-kit/src/capability.mjs +25 -0
  46. package/integrations/t3/acp-kit/src/errors.mjs +13 -0
  47. package/integrations/t3/acp-kit/src/index.mjs +5 -0
  48. package/integrations/t3/acp-kit/src/lock.mjs +155 -0
  49. package/integrations/t3/acp-kit/src/session-store.mjs +36 -0
  50. package/integrations/t3/acp-kit/src/t3-envelope.mjs +62 -0
  51. package/package.json +67 -4
  52. package/packages/job-core/README.md +18 -0
  53. package/packages/job-core/index.mjs +2 -0
  54. package/packages/job-core/package.json +8 -0
  55. package/packages/job-core/protocol/canonical.mjs +11 -0
  56. package/packages/job-core/protocol/v0/command.schema.json +1154 -0
  57. package/packages/job-core/protocol/v0/event.schema.json +77 -0
  58. package/packages/job-core/protocol/v0/reply.schema.json +59 -0
  59. package/packages/job-core/transitions.mjs +25 -0
  60. package/scripts/daily-selfcheck.mjs +135 -0
  61. package/scripts/dalan-try-selfcheck.mjs +29 -0
  62. package/scripts/lib/expose-tailscale.mjs +408 -0
  63. package/scripts/live-trial/common.mjs +272 -0
  64. package/scripts/monitor-targets.mjs +44 -0
  65. package/scripts/upgrade-drain.mjs +39 -0
  66. package/scripts/worker-bridge-setup.mjs +925 -0
  67. package/src/ack-ledger.mjs +37 -0
  68. package/src/acp-bridge.mjs +418 -0
  69. package/src/acp-context.mjs +138 -0
  70. package/src/admin-socket.mjs +14 -0
  71. package/src/alerts.mjs +147 -0
  72. package/src/artifact-journal.mjs +75 -0
  73. package/src/as-files.mjs +347 -0
  74. package/src/as-store.mjs +456 -0
  75. package/src/as.mjs +538 -0
  76. package/src/auth.mjs +166 -0
  77. package/src/builtin-http.mjs +22 -0
  78. package/src/check-coverage.mjs +38 -0
  79. package/src/check-lint.mjs +88 -0
  80. package/src/check-readiness.mjs +112 -0
  81. package/src/check-response.mjs +19 -0
  82. package/src/child-exit.mjs +18 -0
  83. package/src/child-registry.mjs +94 -0
  84. package/src/claim-command-ledger.mjs +51 -0
  85. package/src/cli-help.mjs +186 -0
  86. package/src/cli-name.mjs +16 -0
  87. package/src/connect-cli.mjs +126 -0
  88. package/src/consumers.mjs +61 -0
  89. package/src/deadman.mjs +329 -0
  90. package/src/delivery.mjs +19 -0
  91. package/src/demo-worker.mjs +150 -0
  92. package/src/destinations/index.mjs +23 -0
  93. package/src/destinations/none.mjs +15 -0
  94. package/src/destinations/t3.mjs +109 -0
  95. package/src/diagnostic.mjs +78 -0
  96. package/src/docs-url.mjs +9 -0
  97. package/src/drain-runner.mjs +9 -0
  98. package/src/drained-owner.mjs +26 -0
  99. package/src/drained-slot.mjs +70 -0
  100. package/src/drained.mjs +40 -0
  101. package/src/durable-waiters.mjs +236 -0
  102. package/src/env.mjs +19 -0
  103. package/src/execution.mjs +112 -0
  104. package/src/failure-type.mjs +28 -0
  105. package/src/get-summary.mjs +32 -0
  106. package/src/git-env.mjs +15 -0
  107. package/src/host-budget-receipts.mjs +154 -0
  108. package/src/host-budget-seccomp.py +33 -0
  109. package/src/host-budget-service.mjs +54 -0
  110. package/src/host-budget-stop.mjs +26 -0
  111. package/src/host-budget-storage.py +259 -0
  112. package/src/host-budget.mjs +149 -0
  113. package/src/host-cgroup.mjs +23 -0
  114. package/src/host-check-allowlist.mjs +42 -0
  115. package/src/host-execution-policy.mjs +38 -0
  116. package/src/host-health.mjs +34 -0
  117. package/src/host-stop-reverify.mjs +44 -0
  118. package/src/inbox.mjs +55 -0
  119. package/src/integrator.mjs +322 -0
  120. package/src/job-retention.mjs +69 -0
  121. package/src/legacy-names.mjs +8 -0
  122. package/src/lifecycle.mjs +291 -0
  123. package/src/limits.mjs +31 -0
  124. package/src/loopback.mjs +9 -0
  125. package/src/mcp-outcome.mjs +79 -0
  126. package/src/mcp-sse.mjs +62 -0
  127. package/src/mcp-stdio.mjs +191 -0
  128. package/src/mirror-fetch-lock.py +164 -0
  129. package/src/mirror-fetch.mjs +174 -0
  130. package/src/notify-ledger.mjs +82 -0
  131. package/src/objectives.mjs +129 -0
  132. package/src/owner-report-artifact.mjs +66 -0
  133. package/src/patch-apply.mjs +84 -0
  134. package/src/path-syntax.mjs +16 -0
  135. package/src/paths.mjs +67 -0
  136. package/src/pr-head-reviewer.mjs +596 -0
  137. package/src/pr-preflight.mjs +51 -0
  138. package/src/prepared-node-modules.mjs +129 -0
  139. package/src/process-inspection.mjs +36 -0
  140. package/src/projects.mjs +480 -0
  141. package/src/protocol-artifact-commands.mjs +52 -0
  142. package/src/protocol-delivery-driver.mjs +167 -0
  143. package/src/protocol-finish.mjs +100 -0
  144. package/src/protocol-owner-command.mjs +35 -0
  145. package/src/protocol-owner-mutations.mjs +22 -0
  146. package/src/protocol-owner-waiters.mjs +67 -0
  147. package/src/protocol-retention.mjs +52 -0
  148. package/src/protocol-services.mjs +61 -0
  149. package/src/protocol-stop-observer.mjs +131 -0
  150. package/src/publish-plan.mjs +245 -0
  151. package/src/pull-queue.mjs +159 -0
  152. package/src/redaction.mjs +763 -0
  153. package/src/rejections.mjs +18 -0
  154. package/src/request-log.mjs +102 -0
  155. package/src/restore-check.mjs +90 -0
  156. package/src/result-binding.mjs +65 -0
  157. package/src/route-setting.mjs +24 -0
  158. package/src/runtime-check.mjs +13 -0
  159. package/src/sandbox-supervisor.mjs +105 -0
  160. package/src/schema-subset.mjs +186 -0
  161. package/src/scopes.mjs +15 -0
  162. package/src/server.mjs +1468 -0
  163. package/src/service-migrate-workers.mjs +113 -0
  164. package/src/service.mjs +388 -0
  165. package/src/setup.mjs +63 -0
  166. package/src/shutdown-signal.mjs +12 -0
  167. package/src/signal-sandbox-processes.py +56 -0
  168. package/src/signal.mjs +119 -0
  169. package/src/status-evidence.mjs +47 -0
  170. package/src/status-summary.mjs +54 -0
  171. package/src/store.mjs +3069 -0
  172. package/src/submission-policy.mjs +623 -0
  173. package/src/subscription-storage.mjs +64 -0
  174. package/src/t3-audit.mjs +120 -0
  175. package/src/t3-control.mjs +102 -0
  176. package/src/t3-transport.mjs +158 -0
  177. package/src/t3.mjs +209 -0
  178. package/src/terminal-safe.mjs +19 -0
  179. package/src/tool-registry.mjs +453 -0
  180. package/src/try-command.mjs +11 -0
  181. package/src/try-exposure.mjs +908 -0
  182. package/src/try-hosted-clients.mjs +46 -0
  183. package/src/try-hosted.mjs +444 -0
  184. package/src/try-selfcheck.mjs +168 -0
  185. package/src/try.mjs +635 -0
  186. package/src/webhooks.mjs +86 -0
  187. package/src/work-order.mjs +265 -0
  188. package/src/worker-instructions.mjs +26 -0
  189. package/src/worker-prompt.mjs +4 -0
  190. package/src/workers.mjs +632 -0
  191. package/src/workspace.mjs +1065 -0
  192. package/systemd/dot-bridge-heartbeat.service +18 -0
  193. package/systemd/dot-bridge-heartbeat.timer +10 -0
  194. package/systemd/dot-bridge-selfcheck.service +12 -0
  195. package/systemd/dot-bridge-selfcheck.timer +11 -0
  196. package/systemd/dot-bridge.service +17 -0
  197. package/systemd/dot-deadman.service +30 -0
  198. package/systemd/dot-pr-reviewer.service +11 -0
  199. package/systemd/dot-pr-reviewer.timer +10 -0
@@ -0,0 +1,1154 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:job-protocol:fixture-v0:command",
4
+ "oneOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "v": {
9
+ "const": 0
10
+ },
11
+ "op": {
12
+ "const": "submit"
13
+ },
14
+ "job": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 256
18
+ },
19
+ "key": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 256
23
+ },
24
+ "body": {
25
+ "type": "object",
26
+ "properties": {
27
+ "source": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 256
31
+ },
32
+ "scope": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 256
36
+ },
37
+ "policy": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 256
41
+ },
42
+ "destination": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 256
46
+ },
47
+ "retainUntil": {
48
+ "type": "integer",
49
+ "minimum": 1,
50
+ "maximum": 9007199254740991
51
+ }
52
+ },
53
+ "required": [
54
+ "source",
55
+ "scope",
56
+ "policy",
57
+ "destination",
58
+ "retainUntil"
59
+ ],
60
+ "additionalProperties": false
61
+ }
62
+ },
63
+ "required": [
64
+ "v",
65
+ "op",
66
+ "job",
67
+ "key",
68
+ "body"
69
+ ],
70
+ "additionalProperties": false
71
+ },
72
+ {
73
+ "type": "object",
74
+ "properties": {
75
+ "v": {
76
+ "const": 0
77
+ },
78
+ "op": {
79
+ "const": "claim"
80
+ },
81
+ "job": {
82
+ "type": "string",
83
+ "minLength": 1,
84
+ "maxLength": 256
85
+ },
86
+ "key": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 256
90
+ },
91
+ "body": {
92
+ "type": "object",
93
+ "properties": {
94
+ "leaseMs": {
95
+ "type": "integer",
96
+ "minimum": 1,
97
+ "maximum": 9007199254740991
98
+ }
99
+ },
100
+ "required": [
101
+ "leaseMs"
102
+ ],
103
+ "additionalProperties": false
104
+ },
105
+ "revision": {
106
+ "type": "integer",
107
+ "minimum": 0,
108
+ "maximum": 9007199254740991
109
+ }
110
+ },
111
+ "required": [
112
+ "v",
113
+ "op",
114
+ "job",
115
+ "key",
116
+ "body",
117
+ "revision"
118
+ ],
119
+ "additionalProperties": false
120
+ },
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "v": {
125
+ "const": 0
126
+ },
127
+ "op": {
128
+ "const": "renew"
129
+ },
130
+ "job": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "maxLength": 256
134
+ },
135
+ "key": {
136
+ "type": "string",
137
+ "minLength": 1,
138
+ "maxLength": 256
139
+ },
140
+ "body": {
141
+ "type": "object",
142
+ "properties": {
143
+ "leaseMs": {
144
+ "type": "integer",
145
+ "minimum": 1,
146
+ "maximum": 9007199254740991
147
+ }
148
+ },
149
+ "required": [
150
+ "leaseMs"
151
+ ],
152
+ "additionalProperties": false
153
+ },
154
+ "revision": {
155
+ "type": "integer",
156
+ "minimum": 0,
157
+ "maximum": 9007199254740991
158
+ },
159
+ "epoch": {
160
+ "type": "integer",
161
+ "minimum": 1,
162
+ "maximum": 9007199254740991
163
+ },
164
+ "claim": {
165
+ "type": "string",
166
+ "minLength": 1,
167
+ "maxLength": 256
168
+ }
169
+ },
170
+ "required": [
171
+ "v",
172
+ "op",
173
+ "job",
174
+ "key",
175
+ "body",
176
+ "revision",
177
+ "epoch",
178
+ "claim"
179
+ ],
180
+ "additionalProperties": false
181
+ },
182
+ {
183
+ "type": "object",
184
+ "properties": {
185
+ "v": {
186
+ "const": 0
187
+ },
188
+ "op": {
189
+ "const": "progress"
190
+ },
191
+ "job": {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 256
195
+ },
196
+ "key": {
197
+ "type": "string",
198
+ "minLength": 1,
199
+ "maxLength": 256
200
+ },
201
+ "body": {
202
+ "type": "object",
203
+ "properties": {
204
+ "note": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 256
208
+ }
209
+ },
210
+ "required": [
211
+ "note"
212
+ ],
213
+ "additionalProperties": false
214
+ },
215
+ "revision": {
216
+ "type": "integer",
217
+ "minimum": 0,
218
+ "maximum": 9007199254740991
219
+ },
220
+ "epoch": {
221
+ "type": "integer",
222
+ "minimum": 1,
223
+ "maximum": 9007199254740991
224
+ },
225
+ "claim": {
226
+ "type": "string",
227
+ "minLength": 1,
228
+ "maxLength": 256
229
+ }
230
+ },
231
+ "required": [
232
+ "v",
233
+ "op",
234
+ "job",
235
+ "key",
236
+ "body",
237
+ "revision",
238
+ "epoch",
239
+ "claim"
240
+ ],
241
+ "additionalProperties": false
242
+ },
243
+ {
244
+ "type": "object",
245
+ "properties": {
246
+ "v": {
247
+ "const": 0
248
+ },
249
+ "op": {
250
+ "const": "ask"
251
+ },
252
+ "job": {
253
+ "type": "string",
254
+ "minLength": 1,
255
+ "maxLength": 256
256
+ },
257
+ "key": {
258
+ "type": "string",
259
+ "minLength": 1,
260
+ "maxLength": 256
261
+ },
262
+ "body": {
263
+ "type": "object",
264
+ "properties": {
265
+ "question": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "maxLength": 256
269
+ },
270
+ "text": {
271
+ "type": "string",
272
+ "minLength": 1,
273
+ "maxLength": 256
274
+ }
275
+ },
276
+ "required": [
277
+ "question",
278
+ "text"
279
+ ],
280
+ "additionalProperties": false
281
+ },
282
+ "revision": {
283
+ "type": "integer",
284
+ "minimum": 0,
285
+ "maximum": 9007199254740991
286
+ },
287
+ "epoch": {
288
+ "type": "integer",
289
+ "minimum": 1,
290
+ "maximum": 9007199254740991
291
+ },
292
+ "claim": {
293
+ "type": "string",
294
+ "minLength": 1,
295
+ "maxLength": 256
296
+ }
297
+ },
298
+ "required": [
299
+ "v",
300
+ "op",
301
+ "job",
302
+ "key",
303
+ "body",
304
+ "revision",
305
+ "epoch",
306
+ "claim"
307
+ ],
308
+ "additionalProperties": false
309
+ },
310
+ {
311
+ "type": "object",
312
+ "properties": {
313
+ "v": {
314
+ "const": 0
315
+ },
316
+ "op": {
317
+ "const": "answer"
318
+ },
319
+ "job": {
320
+ "type": "string",
321
+ "minLength": 1,
322
+ "maxLength": 256
323
+ },
324
+ "key": {
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "maxLength": 256
328
+ },
329
+ "body": {
330
+ "type": "object",
331
+ "properties": {
332
+ "question": {
333
+ "type": "string",
334
+ "minLength": 1,
335
+ "maxLength": 256
336
+ },
337
+ "text": {
338
+ "type": "string",
339
+ "minLength": 1,
340
+ "maxLength": 256
341
+ }
342
+ },
343
+ "required": [
344
+ "question",
345
+ "text"
346
+ ],
347
+ "additionalProperties": false
348
+ },
349
+ "revision": {
350
+ "type": "integer",
351
+ "minimum": 0,
352
+ "maximum": 9007199254740991
353
+ }
354
+ },
355
+ "required": [
356
+ "v",
357
+ "op",
358
+ "job",
359
+ "key",
360
+ "body",
361
+ "revision"
362
+ ],
363
+ "additionalProperties": false
364
+ },
365
+ {
366
+ "type": "object",
367
+ "properties": {
368
+ "v": {
369
+ "const": 0
370
+ },
371
+ "op": {
372
+ "const": "consume"
373
+ },
374
+ "job": {
375
+ "type": "string",
376
+ "minLength": 1,
377
+ "maxLength": 256
378
+ },
379
+ "key": {
380
+ "type": "string",
381
+ "minLength": 1,
382
+ "maxLength": 256
383
+ },
384
+ "body": {
385
+ "type": "object",
386
+ "properties": {
387
+ "question": {
388
+ "type": "string",
389
+ "minLength": 1,
390
+ "maxLength": 256
391
+ }
392
+ },
393
+ "required": [
394
+ "question"
395
+ ],
396
+ "additionalProperties": false
397
+ },
398
+ "revision": {
399
+ "type": "integer",
400
+ "minimum": 0,
401
+ "maximum": 9007199254740991
402
+ },
403
+ "epoch": {
404
+ "type": "integer",
405
+ "minimum": 1,
406
+ "maximum": 9007199254740991
407
+ },
408
+ "claim": {
409
+ "type": "string",
410
+ "minLength": 1,
411
+ "maxLength": 256
412
+ }
413
+ },
414
+ "required": [
415
+ "v",
416
+ "op",
417
+ "job",
418
+ "key",
419
+ "body",
420
+ "revision",
421
+ "epoch",
422
+ "claim"
423
+ ],
424
+ "additionalProperties": false
425
+ },
426
+ {
427
+ "type": "object",
428
+ "properties": {
429
+ "v": {
430
+ "const": 0
431
+ },
432
+ "op": {
433
+ "const": "upload"
434
+ },
435
+ "job": {
436
+ "type": "string",
437
+ "minLength": 1,
438
+ "maxLength": 256
439
+ },
440
+ "key": {
441
+ "type": "string",
442
+ "minLength": 1,
443
+ "maxLength": 256
444
+ },
445
+ "body": {
446
+ "type": "object",
447
+ "properties": {
448
+ "artifact": {
449
+ "type": "string",
450
+ "minLength": 1,
451
+ "maxLength": 256
452
+ },
453
+ "bytesBase64": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 256
457
+ }
458
+ },
459
+ "required": [
460
+ "artifact",
461
+ "bytesBase64"
462
+ ],
463
+ "additionalProperties": false
464
+ },
465
+ "revision": {
466
+ "type": "integer",
467
+ "minimum": 0,
468
+ "maximum": 9007199254740991
469
+ },
470
+ "epoch": {
471
+ "type": "integer",
472
+ "minimum": 1,
473
+ "maximum": 9007199254740991
474
+ },
475
+ "claim": {
476
+ "type": "string",
477
+ "minLength": 1,
478
+ "maxLength": 256
479
+ }
480
+ },
481
+ "required": [
482
+ "v",
483
+ "op",
484
+ "job",
485
+ "key",
486
+ "body",
487
+ "revision",
488
+ "epoch",
489
+ "claim"
490
+ ],
491
+ "additionalProperties": false
492
+ },
493
+ {
494
+ "type": "object",
495
+ "properties": {
496
+ "v": {
497
+ "const": 0
498
+ },
499
+ "op": {
500
+ "const": "seal"
501
+ },
502
+ "job": {
503
+ "type": "string",
504
+ "minLength": 1,
505
+ "maxLength": 256
506
+ },
507
+ "key": {
508
+ "type": "string",
509
+ "minLength": 1,
510
+ "maxLength": 256
511
+ },
512
+ "body": {
513
+ "type": "object",
514
+ "properties": {
515
+ "artifact": {
516
+ "type": "string",
517
+ "minLength": 1,
518
+ "maxLength": 256
519
+ },
520
+ "sha256": {
521
+ "type": "string",
522
+ "pattern": "^[0-9a-f]{64}$"
523
+ },
524
+ "size": {
525
+ "type": "integer",
526
+ "minimum": 0,
527
+ "maximum": 9007199254740991
528
+ }
529
+ },
530
+ "required": [
531
+ "artifact",
532
+ "sha256",
533
+ "size"
534
+ ],
535
+ "additionalProperties": false
536
+ },
537
+ "revision": {
538
+ "type": "integer",
539
+ "minimum": 0,
540
+ "maximum": 9007199254740991
541
+ },
542
+ "epoch": {
543
+ "type": "integer",
544
+ "minimum": 1,
545
+ "maximum": 9007199254740991
546
+ },
547
+ "claim": {
548
+ "type": "string",
549
+ "minLength": 1,
550
+ "maxLength": 256
551
+ }
552
+ },
553
+ "required": [
554
+ "v",
555
+ "op",
556
+ "job",
557
+ "key",
558
+ "body",
559
+ "revision",
560
+ "epoch",
561
+ "claim"
562
+ ],
563
+ "additionalProperties": false
564
+ },
565
+ {
566
+ "type": "object",
567
+ "properties": {
568
+ "v": {
569
+ "const": 0
570
+ },
571
+ "op": {
572
+ "const": "finish"
573
+ },
574
+ "job": {
575
+ "type": "string",
576
+ "minLength": 1,
577
+ "maxLength": 256
578
+ },
579
+ "key": {
580
+ "type": "string",
581
+ "minLength": 1,
582
+ "maxLength": 256
583
+ },
584
+ "body": {
585
+ "type": "object",
586
+ "properties": {
587
+ "outcome": {
588
+ "enum": [
589
+ "completed",
590
+ "blocked",
591
+ "failed"
592
+ ]
593
+ },
594
+ "summary": {
595
+ "type": "string",
596
+ "minLength": 1,
597
+ "maxLength": 256
598
+ },
599
+ "artifacts": {
600
+ "type": "array",
601
+ "items": {
602
+ "type": "string",
603
+ "minLength": 1,
604
+ "maxLength": 256
605
+ }
606
+ },
607
+ "source": {
608
+ "type": "string",
609
+ "minLength": 1,
610
+ "maxLength": 256
611
+ },
612
+ "policy": {
613
+ "type": "string",
614
+ "minLength": 1,
615
+ "maxLength": 256
616
+ }
617
+ },
618
+ "required": [
619
+ "outcome",
620
+ "summary",
621
+ "artifacts",
622
+ "source",
623
+ "policy"
624
+ ],
625
+ "additionalProperties": false
626
+ },
627
+ "revision": {
628
+ "type": "integer",
629
+ "minimum": 0,
630
+ "maximum": 9007199254740991
631
+ },
632
+ "epoch": {
633
+ "type": "integer",
634
+ "minimum": 1,
635
+ "maximum": 9007199254740991
636
+ },
637
+ "claim": {
638
+ "type": "string",
639
+ "minLength": 1,
640
+ "maxLength": 256
641
+ }
642
+ },
643
+ "required": [
644
+ "v",
645
+ "op",
646
+ "job",
647
+ "key",
648
+ "body",
649
+ "revision",
650
+ "epoch",
651
+ "claim"
652
+ ],
653
+ "additionalProperties": false
654
+ },
655
+ {
656
+ "type": "object",
657
+ "properties": {
658
+ "v": {
659
+ "const": 0
660
+ },
661
+ "op": {
662
+ "const": "cancel"
663
+ },
664
+ "job": {
665
+ "type": "string",
666
+ "minLength": 1,
667
+ "maxLength": 256
668
+ },
669
+ "key": {
670
+ "type": "string",
671
+ "minLength": 1,
672
+ "maxLength": 256
673
+ },
674
+ "body": {
675
+ "type": "object",
676
+ "properties": {
677
+ "reason": {
678
+ "type": "string",
679
+ "minLength": 1,
680
+ "maxLength": 256
681
+ }
682
+ },
683
+ "required": [
684
+ "reason"
685
+ ],
686
+ "additionalProperties": false
687
+ },
688
+ "revision": {
689
+ "type": "integer",
690
+ "minimum": 0,
691
+ "maximum": 9007199254740991
692
+ }
693
+ },
694
+ "required": [
695
+ "v",
696
+ "op",
697
+ "job",
698
+ "key",
699
+ "body",
700
+ "revision"
701
+ ],
702
+ "additionalProperties": false
703
+ },
704
+ {
705
+ "type": "object",
706
+ "properties": {
707
+ "v": {
708
+ "const": 0
709
+ },
710
+ "op": {
711
+ "const": "expire"
712
+ },
713
+ "job": {
714
+ "type": "string",
715
+ "minLength": 1,
716
+ "maxLength": 256
717
+ },
718
+ "key": {
719
+ "type": "string",
720
+ "minLength": 1,
721
+ "maxLength": 256
722
+ },
723
+ "body": {
724
+ "type": "object",
725
+ "properties": {},
726
+ "required": [],
727
+ "additionalProperties": false
728
+ },
729
+ "revision": {
730
+ "type": "integer",
731
+ "minimum": 0,
732
+ "maximum": 9007199254740991
733
+ }
734
+ },
735
+ "required": [
736
+ "v",
737
+ "op",
738
+ "job",
739
+ "key",
740
+ "body",
741
+ "revision"
742
+ ],
743
+ "additionalProperties": false
744
+ },
745
+ {
746
+ "type": "object",
747
+ "properties": {
748
+ "v": {
749
+ "const": 0
750
+ },
751
+ "op": {
752
+ "const": "get"
753
+ },
754
+ "job": {
755
+ "type": "string",
756
+ "minLength": 1,
757
+ "maxLength": 256
758
+ },
759
+ "key": {
760
+ "type": "string",
761
+ "minLength": 1,
762
+ "maxLength": 256
763
+ },
764
+ "body": {
765
+ "type": "object",
766
+ "properties": {},
767
+ "required": [],
768
+ "additionalProperties": false
769
+ }
770
+ },
771
+ "required": [
772
+ "v",
773
+ "op",
774
+ "job",
775
+ "key",
776
+ "body"
777
+ ],
778
+ "additionalProperties": false
779
+ },
780
+ {
781
+ "type": "object",
782
+ "properties": {
783
+ "v": {
784
+ "const": 0
785
+ },
786
+ "op": {
787
+ "const": "wait"
788
+ },
789
+ "job": {
790
+ "type": "string",
791
+ "minLength": 1,
792
+ "maxLength": 256
793
+ },
794
+ "key": {
795
+ "type": "string",
796
+ "minLength": 1,
797
+ "maxLength": 256
798
+ },
799
+ "body": {
800
+ "type": "object",
801
+ "properties": {
802
+ "waiter": {
803
+ "type": "string",
804
+ "minLength": 1,
805
+ "maxLength": 256
806
+ },
807
+ "predicate": {
808
+ "enum": [
809
+ "terminal",
810
+ "input"
811
+ ]
812
+ },
813
+ "afterSeq": {
814
+ "type": "integer",
815
+ "minimum": 0,
816
+ "maximum": 9007199254740991
817
+ },
818
+ "expiresAt": {
819
+ "type": "integer",
820
+ "minimum": 1,
821
+ "maximum": 9007199254740991
822
+ }
823
+ },
824
+ "required": [
825
+ "waiter",
826
+ "predicate",
827
+ "afterSeq",
828
+ "expiresAt"
829
+ ],
830
+ "additionalProperties": false
831
+ },
832
+ "revision": {
833
+ "type": "integer",
834
+ "minimum": 0,
835
+ "maximum": 9007199254740991
836
+ }
837
+ },
838
+ "required": [
839
+ "v",
840
+ "op",
841
+ "job",
842
+ "key",
843
+ "body",
844
+ "revision"
845
+ ],
846
+ "additionalProperties": false
847
+ },
848
+ {
849
+ "type": "object",
850
+ "properties": {
851
+ "v": {
852
+ "const": 0
853
+ },
854
+ "op": {
855
+ "const": "inbox"
856
+ },
857
+ "job": {
858
+ "type": "string",
859
+ "minLength": 1,
860
+ "maxLength": 256
861
+ },
862
+ "key": {
863
+ "type": "string",
864
+ "minLength": 1,
865
+ "maxLength": 256
866
+ },
867
+ "body": {
868
+ "type": "object",
869
+ "properties": {
870
+ "waiter": {
871
+ "type": "string",
872
+ "minLength": 1,
873
+ "maxLength": 256
874
+ }
875
+ },
876
+ "required": [
877
+ "waiter"
878
+ ],
879
+ "additionalProperties": false
880
+ }
881
+ },
882
+ "required": [
883
+ "v",
884
+ "op",
885
+ "job",
886
+ "key",
887
+ "body"
888
+ ],
889
+ "additionalProperties": false
890
+ },
891
+ {
892
+ "type": "object",
893
+ "properties": {
894
+ "v": {
895
+ "const": 0
896
+ },
897
+ "op": {
898
+ "const": "ack"
899
+ },
900
+ "job": {
901
+ "type": "string",
902
+ "minLength": 1,
903
+ "maxLength": 256
904
+ },
905
+ "key": {
906
+ "type": "string",
907
+ "minLength": 1,
908
+ "maxLength": 256
909
+ },
910
+ "body": {
911
+ "type": "object",
912
+ "properties": {
913
+ "waiter": {
914
+ "type": "string",
915
+ "minLength": 1,
916
+ "maxLength": 256
917
+ },
918
+ "delivery": {
919
+ "type": "string",
920
+ "minLength": 1,
921
+ "maxLength": 256
922
+ }
923
+ },
924
+ "required": [
925
+ "waiter",
926
+ "delivery"
927
+ ],
928
+ "additionalProperties": false
929
+ }
930
+ },
931
+ "required": [
932
+ "v",
933
+ "op",
934
+ "job",
935
+ "key",
936
+ "body"
937
+ ],
938
+ "additionalProperties": false
939
+ },
940
+ {
941
+ "type": "object",
942
+ "properties": {
943
+ "v": {
944
+ "const": 0
945
+ },
946
+ "op": {
947
+ "const": "dispatch"
948
+ },
949
+ "job": {
950
+ "type": "string",
951
+ "minLength": 1,
952
+ "maxLength": 256
953
+ },
954
+ "key": {
955
+ "type": "string",
956
+ "minLength": 1,
957
+ "maxLength": 256
958
+ },
959
+ "body": {
960
+ "type": "object",
961
+ "properties": {
962
+ "delivery": {
963
+ "type": "string",
964
+ "minLength": 1,
965
+ "maxLength": 256
966
+ }
967
+ },
968
+ "required": [
969
+ "delivery"
970
+ ],
971
+ "additionalProperties": false
972
+ }
973
+ },
974
+ "required": [
975
+ "v",
976
+ "op",
977
+ "job",
978
+ "key",
979
+ "body"
980
+ ],
981
+ "additionalProperties": false
982
+ },
983
+ {
984
+ "type": "object",
985
+ "properties": {
986
+ "v": {
987
+ "const": 0
988
+ },
989
+ "op": {
990
+ "const": "delivery_result"
991
+ },
992
+ "job": {
993
+ "type": "string",
994
+ "minLength": 1,
995
+ "maxLength": 256
996
+ },
997
+ "key": {
998
+ "type": "string",
999
+ "minLength": 1,
1000
+ "maxLength": 256
1001
+ },
1002
+ "body": {
1003
+ "type": "object",
1004
+ "properties": {
1005
+ "delivery": {
1006
+ "type": "string",
1007
+ "minLength": 1,
1008
+ "maxLength": 256
1009
+ },
1010
+ "outcome": {
1011
+ "enum": [
1012
+ "acknowledged",
1013
+ "not_sent",
1014
+ "unknown"
1015
+ ]
1016
+ },
1017
+ "receipt": {
1018
+ "type": "string",
1019
+ "minLength": 1,
1020
+ "maxLength": 256
1021
+ }
1022
+ },
1023
+ "required": [
1024
+ "delivery",
1025
+ "outcome",
1026
+ "receipt"
1027
+ ],
1028
+ "additionalProperties": false
1029
+ }
1030
+ },
1031
+ "required": [
1032
+ "v",
1033
+ "op",
1034
+ "job",
1035
+ "key",
1036
+ "body"
1037
+ ],
1038
+ "additionalProperties": false
1039
+ },
1040
+ {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "v": {
1044
+ "const": 0
1045
+ },
1046
+ "op": {
1047
+ "const": "reconcile"
1048
+ },
1049
+ "job": {
1050
+ "type": "string",
1051
+ "minLength": 1,
1052
+ "maxLength": 256
1053
+ },
1054
+ "key": {
1055
+ "type": "string",
1056
+ "minLength": 1,
1057
+ "maxLength": 256
1058
+ },
1059
+ "body": {
1060
+ "type": "object",
1061
+ "properties": {
1062
+ "delivery": {
1063
+ "type": "string",
1064
+ "minLength": 1,
1065
+ "maxLength": 256
1066
+ },
1067
+ "outcome": {
1068
+ "enum": [
1069
+ "found",
1070
+ "not_found",
1071
+ "unknown"
1072
+ ]
1073
+ },
1074
+ "receipt": {
1075
+ "type": "string",
1076
+ "minLength": 1,
1077
+ "maxLength": 256
1078
+ }
1079
+ },
1080
+ "required": [
1081
+ "delivery",
1082
+ "outcome",
1083
+ "receipt"
1084
+ ],
1085
+ "additionalProperties": false
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "v",
1090
+ "op",
1091
+ "job",
1092
+ "key",
1093
+ "body"
1094
+ ],
1095
+ "additionalProperties": false
1096
+ },
1097
+ {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "v": {
1101
+ "const": 0
1102
+ },
1103
+ "op": {
1104
+ "const": "observe_stop"
1105
+ },
1106
+ "job": {
1107
+ "type": "string",
1108
+ "minLength": 1,
1109
+ "maxLength": 256
1110
+ },
1111
+ "key": {
1112
+ "type": "string",
1113
+ "minLength": 1,
1114
+ "maxLength": 256
1115
+ },
1116
+ "body": {
1117
+ "type": "object",
1118
+ "properties": {
1119
+ "stop": {
1120
+ "enum": [
1121
+ "confirmed",
1122
+ "unverified"
1123
+ ]
1124
+ },
1125
+ "evidence": {
1126
+ "type": "string",
1127
+ "minLength": 1,
1128
+ "maxLength": 256
1129
+ }
1130
+ },
1131
+ "required": [
1132
+ "stop",
1133
+ "evidence"
1134
+ ],
1135
+ "additionalProperties": false
1136
+ },
1137
+ "revision": {
1138
+ "type": "integer",
1139
+ "minimum": 0,
1140
+ "maximum": 9007199254740991
1141
+ }
1142
+ },
1143
+ "required": [
1144
+ "v",
1145
+ "op",
1146
+ "job",
1147
+ "key",
1148
+ "body",
1149
+ "revision"
1150
+ ],
1151
+ "additionalProperties": false
1152
+ }
1153
+ ]
1154
+ }