@mininglamp-oss/octo-runtime-client 0.0.0-stage → 1.1.11

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 (87) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +38 -2
  3. package/build-info.json +5 -0
  4. package/dist/async-question-reply.d.ts +30 -0
  5. package/dist/async-question-reply.js +199 -0
  6. package/dist/browser.d.ts +1 -0
  7. package/dist/browser.js +1 -0
  8. package/dist/client.d.ts +10 -0
  9. package/dist/client.js +465 -0
  10. package/dist/index.d.ts +6 -0
  11. package/dist/index.js +6 -0
  12. package/dist/internal.d.ts +4 -0
  13. package/dist/internal.js +5 -0
  14. package/dist/invocation-lifecycle.d.ts +59 -0
  15. package/dist/invocation-lifecycle.js +287 -0
  16. package/dist/notification.d.ts +1 -0
  17. package/dist/notification.js +1 -0
  18. package/dist/protocol.d.ts +1 -0
  19. package/dist/protocol.js +1 -0
  20. package/dist/runtime-path.d.ts +21 -0
  21. package/dist/runtime-path.js +138 -0
  22. package/dist/startup-catalog.d.ts +8 -0
  23. package/dist/startup-catalog.js +65 -0
  24. package/dist/startup-diagnostics.d.ts +82 -0
  25. package/dist/startup-diagnostics.js +371 -0
  26. package/dist/submission-error.d.ts +10 -0
  27. package/dist/submission-error.js +23 -0
  28. package/dist/types.d.ts +72 -0
  29. package/dist/types.js +10 -0
  30. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.d.ts +4 -0
  31. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/actmode.js +36 -0
  32. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.d.ts +7 -0
  33. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/adapter-metadata.js +1 -0
  34. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +7 -0
  35. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +6 -0
  36. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +11 -0
  37. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +33 -0
  38. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.d.ts +5 -0
  39. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +58 -0
  40. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-hash.d.ts +2 -0
  41. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-hash.js +5 -0
  42. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +29 -0
  43. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +566 -0
  44. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +3 -0
  45. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +80 -0
  46. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.d.ts +4 -0
  47. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/experience.js +166 -0
  48. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +82 -0
  49. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +562 -0
  50. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +3022 -0
  51. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +6 -0
  52. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +124 -0
  53. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +709 -0
  54. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +129 -0
  55. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +177 -0
  56. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-size.d.ts +3 -0
  57. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-size.js +11 -0
  58. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/json-size.d.ts +2 -0
  59. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/json-size.js +91 -0
  60. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +3 -0
  61. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +9 -0
  62. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.d.ts +15 -0
  63. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +166 -0
  64. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/notification.d.ts +2 -0
  65. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/notification.js +137 -0
  66. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.d.ts +9 -0
  67. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/questions.js +84 -0
  68. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +20 -0
  69. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +294 -0
  70. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.d.ts +3 -0
  71. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/runtime-selection.js +68 -0
  72. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.d.ts +5 -0
  73. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +65 -0
  74. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/stream-limits.d.ts +27 -0
  75. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/stream-limits.js +56 -0
  76. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +15 -0
  77. package/package.json +55 -4
  78. package/schema/context-configuration-fixtures.json +1219 -0
  79. package/schema/context-fixtures.json +5988 -0
  80. package/schema/kernel-client.behavior.json +56 -0
  81. package/schema/kernel-ipc-fixtures.json +53 -0
  82. package/schema/kernel-ipc.schema.json +538 -0
  83. package/schema/native-invoke-fixtures.json +116 -0
  84. package/schema/protocol.schema.json +4525 -0
  85. package/schema/run-protocol-fixtures.json +761 -0
  86. package/schema/runtime-selection-fixtures.json +663 -0
  87. package/schema/session-name-fixtures.json +191 -0
@@ -0,0 +1,663 @@
1
+ [
2
+ {
3
+ "name": "explicit",
4
+ "valid": true,
5
+ "selection": {
6
+ "schema": "octo.runtime-selection/v2",
7
+ "selection_mode": "explicit",
8
+ "explicit_runtime_id": "runtime-1",
9
+ "authorized_candidates": [
10
+ {
11
+ "runtime_id": "runtime-1",
12
+ "priority": 1,
13
+ "owner_subject_type": "user",
14
+ "owner_subject_id": "user-1"
15
+ }
16
+ ],
17
+ "offline_behavior": "wait",
18
+ "failover": "none"
19
+ }
20
+ },
21
+ {
22
+ "name": "candidates",
23
+ "valid": true,
24
+ "selection": {
25
+ "schema": "octo.runtime-selection/v2",
26
+ "selection_mode": "candidates",
27
+ "authorized_candidates": [
28
+ {
29
+ "runtime_id": "runtime-1",
30
+ "priority": 1,
31
+ "owner_subject_type": "user",
32
+ "owner_subject_id": "user-1"
33
+ },
34
+ {
35
+ "runtime_id": "runtime-2",
36
+ "priority": 2,
37
+ "owner_subject_type": "user",
38
+ "owner_subject_id": "user-1"
39
+ }
40
+ ],
41
+ "offline_behavior": "wait",
42
+ "failover": "candidates"
43
+ }
44
+ },
45
+ {
46
+ "name": "candidates-no-failover",
47
+ "valid": true,
48
+ "selection": {
49
+ "schema": "octo.runtime-selection/v2",
50
+ "selection_mode": "candidates",
51
+ "authorized_candidates": [
52
+ {
53
+ "runtime_id": "runtime-1",
54
+ "priority": 1,
55
+ "owner_subject_type": "user",
56
+ "owner_subject_id": "user-1"
57
+ },
58
+ {
59
+ "runtime_id": "runtime-2",
60
+ "priority": 2,
61
+ "owner_subject_type": "user",
62
+ "owner_subject_id": "user-1"
63
+ }
64
+ ],
65
+ "offline_behavior": "wait",
66
+ "failover": "none"
67
+ }
68
+ },
69
+ {
70
+ "name": "explicit-fail-offline",
71
+ "valid": true,
72
+ "selection": {
73
+ "schema": "octo.runtime-selection/v2",
74
+ "selection_mode": "explicit",
75
+ "explicit_runtime_id": "runtime-1",
76
+ "authorized_candidates": [
77
+ {
78
+ "runtime_id": "runtime-1",
79
+ "priority": 1,
80
+ "owner_subject_type": "user",
81
+ "owner_subject_id": "user-1"
82
+ }
83
+ ],
84
+ "offline_behavior": "fail",
85
+ "failover": "none"
86
+ }
87
+ },
88
+ {
89
+ "name": "schema-missing",
90
+ "valid": false,
91
+ "selection": {
92
+ "selection_mode": "explicit",
93
+ "explicit_runtime_id": "runtime-1",
94
+ "authorized_candidates": [
95
+ {
96
+ "runtime_id": "runtime-1",
97
+ "priority": 1,
98
+ "owner_subject_type": "user",
99
+ "owner_subject_id": "user-1"
100
+ }
101
+ ],
102
+ "offline_behavior": "wait",
103
+ "failover": "none"
104
+ }
105
+ },
106
+ {
107
+ "name": "schema-null",
108
+ "valid": false,
109
+ "selection": {
110
+ "schema": null,
111
+ "selection_mode": "explicit",
112
+ "explicit_runtime_id": "runtime-1",
113
+ "authorized_candidates": [
114
+ {
115
+ "runtime_id": "runtime-1",
116
+ "priority": 1,
117
+ "owner_subject_type": "user",
118
+ "owner_subject_id": "user-1"
119
+ }
120
+ ],
121
+ "offline_behavior": "wait",
122
+ "failover": "none"
123
+ }
124
+ },
125
+ {
126
+ "name": "schema-case",
127
+ "valid": false,
128
+ "selection": {
129
+ "selection_mode": "explicit",
130
+ "explicit_runtime_id": "runtime-1",
131
+ "authorized_candidates": [
132
+ {
133
+ "runtime_id": "runtime-1",
134
+ "priority": 1,
135
+ "owner_subject_type": "user",
136
+ "owner_subject_id": "user-1"
137
+ }
138
+ ],
139
+ "offline_behavior": "wait",
140
+ "failover": "none",
141
+ "SCHEMA": "octo.runtime-selection/v2"
142
+ }
143
+ },
144
+ {
145
+ "name": "selection_mode-missing",
146
+ "valid": false,
147
+ "selection": {
148
+ "schema": "octo.runtime-selection/v2",
149
+ "explicit_runtime_id": "runtime-1",
150
+ "authorized_candidates": [
151
+ {
152
+ "runtime_id": "runtime-1",
153
+ "priority": 1,
154
+ "owner_subject_type": "user",
155
+ "owner_subject_id": "user-1"
156
+ }
157
+ ],
158
+ "offline_behavior": "wait",
159
+ "failover": "none"
160
+ }
161
+ },
162
+ {
163
+ "name": "selection_mode-null",
164
+ "valid": false,
165
+ "selection": {
166
+ "schema": "octo.runtime-selection/v2",
167
+ "selection_mode": null,
168
+ "explicit_runtime_id": "runtime-1",
169
+ "authorized_candidates": [
170
+ {
171
+ "runtime_id": "runtime-1",
172
+ "priority": 1,
173
+ "owner_subject_type": "user",
174
+ "owner_subject_id": "user-1"
175
+ }
176
+ ],
177
+ "offline_behavior": "wait",
178
+ "failover": "none"
179
+ }
180
+ },
181
+ {
182
+ "name": "selection_mode-case",
183
+ "valid": false,
184
+ "selection": {
185
+ "schema": "octo.runtime-selection/v2",
186
+ "explicit_runtime_id": "runtime-1",
187
+ "authorized_candidates": [
188
+ {
189
+ "runtime_id": "runtime-1",
190
+ "priority": 1,
191
+ "owner_subject_type": "user",
192
+ "owner_subject_id": "user-1"
193
+ }
194
+ ],
195
+ "offline_behavior": "wait",
196
+ "failover": "none",
197
+ "SELECTION_MODE": "explicit"
198
+ }
199
+ },
200
+ {
201
+ "name": "authorized_candidates-missing",
202
+ "valid": false,
203
+ "selection": {
204
+ "schema": "octo.runtime-selection/v2",
205
+ "selection_mode": "explicit",
206
+ "explicit_runtime_id": "runtime-1",
207
+ "offline_behavior": "wait",
208
+ "failover": "none"
209
+ }
210
+ },
211
+ {
212
+ "name": "authorized_candidates-null",
213
+ "valid": false,
214
+ "selection": {
215
+ "schema": "octo.runtime-selection/v2",
216
+ "selection_mode": "explicit",
217
+ "explicit_runtime_id": "runtime-1",
218
+ "authorized_candidates": null,
219
+ "offline_behavior": "wait",
220
+ "failover": "none"
221
+ }
222
+ },
223
+ {
224
+ "name": "authorized_candidates-case",
225
+ "valid": false,
226
+ "selection": {
227
+ "schema": "octo.runtime-selection/v2",
228
+ "selection_mode": "explicit",
229
+ "explicit_runtime_id": "runtime-1",
230
+ "offline_behavior": "wait",
231
+ "failover": "none",
232
+ "AUTHORIZED_CANDIDATES": [
233
+ {
234
+ "runtime_id": "runtime-1",
235
+ "priority": 1,
236
+ "owner_subject_type": "user",
237
+ "owner_subject_id": "user-1"
238
+ }
239
+ ]
240
+ }
241
+ },
242
+ {
243
+ "name": "offline_behavior-missing",
244
+ "valid": false,
245
+ "selection": {
246
+ "schema": "octo.runtime-selection/v2",
247
+ "selection_mode": "explicit",
248
+ "explicit_runtime_id": "runtime-1",
249
+ "authorized_candidates": [
250
+ {
251
+ "runtime_id": "runtime-1",
252
+ "priority": 1,
253
+ "owner_subject_type": "user",
254
+ "owner_subject_id": "user-1"
255
+ }
256
+ ],
257
+ "failover": "none"
258
+ }
259
+ },
260
+ {
261
+ "name": "offline_behavior-null",
262
+ "valid": false,
263
+ "selection": {
264
+ "schema": "octo.runtime-selection/v2",
265
+ "selection_mode": "explicit",
266
+ "explicit_runtime_id": "runtime-1",
267
+ "authorized_candidates": [
268
+ {
269
+ "runtime_id": "runtime-1",
270
+ "priority": 1,
271
+ "owner_subject_type": "user",
272
+ "owner_subject_id": "user-1"
273
+ }
274
+ ],
275
+ "offline_behavior": null,
276
+ "failover": "none"
277
+ }
278
+ },
279
+ {
280
+ "name": "offline_behavior-case",
281
+ "valid": false,
282
+ "selection": {
283
+ "schema": "octo.runtime-selection/v2",
284
+ "selection_mode": "explicit",
285
+ "explicit_runtime_id": "runtime-1",
286
+ "authorized_candidates": [
287
+ {
288
+ "runtime_id": "runtime-1",
289
+ "priority": 1,
290
+ "owner_subject_type": "user",
291
+ "owner_subject_id": "user-1"
292
+ }
293
+ ],
294
+ "failover": "none",
295
+ "OFFLINE_BEHAVIOR": "wait"
296
+ }
297
+ },
298
+ {
299
+ "name": "failover-missing",
300
+ "valid": false,
301
+ "selection": {
302
+ "schema": "octo.runtime-selection/v2",
303
+ "selection_mode": "explicit",
304
+ "explicit_runtime_id": "runtime-1",
305
+ "authorized_candidates": [
306
+ {
307
+ "runtime_id": "runtime-1",
308
+ "priority": 1,
309
+ "owner_subject_type": "user",
310
+ "owner_subject_id": "user-1"
311
+ }
312
+ ],
313
+ "offline_behavior": "wait"
314
+ }
315
+ },
316
+ {
317
+ "name": "failover-null",
318
+ "valid": false,
319
+ "selection": {
320
+ "schema": "octo.runtime-selection/v2",
321
+ "selection_mode": "explicit",
322
+ "explicit_runtime_id": "runtime-1",
323
+ "authorized_candidates": [
324
+ {
325
+ "runtime_id": "runtime-1",
326
+ "priority": 1,
327
+ "owner_subject_type": "user",
328
+ "owner_subject_id": "user-1"
329
+ }
330
+ ],
331
+ "offline_behavior": "wait",
332
+ "failover": null
333
+ }
334
+ },
335
+ {
336
+ "name": "failover-case",
337
+ "valid": false,
338
+ "selection": {
339
+ "schema": "octo.runtime-selection/v2",
340
+ "selection_mode": "explicit",
341
+ "explicit_runtime_id": "runtime-1",
342
+ "authorized_candidates": [
343
+ {
344
+ "runtime_id": "runtime-1",
345
+ "priority": 1,
346
+ "owner_subject_type": "user",
347
+ "owner_subject_id": "user-1"
348
+ }
349
+ ],
350
+ "offline_behavior": "wait",
351
+ "FAILOVER": "none"
352
+ }
353
+ },
354
+ {
355
+ "name": "old-schema",
356
+ "valid": false,
357
+ "selection": {
358
+ "schema": "octo.runtime-selection/v1",
359
+ "selection_mode": "explicit",
360
+ "explicit_runtime_id": "runtime-1",
361
+ "authorized_candidates": [
362
+ {
363
+ "runtime_id": "runtime-1",
364
+ "priority": 1,
365
+ "owner_subject_type": "user",
366
+ "owner_subject_id": "user-1"
367
+ }
368
+ ],
369
+ "offline_behavior": "wait",
370
+ "failover": "none"
371
+ }
372
+ },
373
+ {
374
+ "name": "mode",
375
+ "valid": false,
376
+ "selection": {
377
+ "schema": "octo.runtime-selection/v2",
378
+ "selection_mode": "binding",
379
+ "explicit_runtime_id": "runtime-1",
380
+ "authorized_candidates": [
381
+ {
382
+ "runtime_id": "runtime-1",
383
+ "priority": 1,
384
+ "owner_subject_type": "user",
385
+ "owner_subject_id": "user-1"
386
+ }
387
+ ],
388
+ "offline_behavior": "wait",
389
+ "failover": "none"
390
+ }
391
+ },
392
+ {
393
+ "name": "explicit-failover",
394
+ "valid": false,
395
+ "selection": {
396
+ "schema": "octo.runtime-selection/v2",
397
+ "selection_mode": "explicit",
398
+ "explicit_runtime_id": "runtime-1",
399
+ "authorized_candidates": [
400
+ {
401
+ "runtime_id": "runtime-1",
402
+ "priority": 1,
403
+ "owner_subject_type": "user",
404
+ "owner_subject_id": "user-1"
405
+ }
406
+ ],
407
+ "offline_behavior": "wait",
408
+ "failover": "candidates"
409
+ }
410
+ },
411
+ {
412
+ "name": "offline",
413
+ "valid": false,
414
+ "selection": {
415
+ "schema": "octo.runtime-selection/v2",
416
+ "selection_mode": "explicit",
417
+ "explicit_runtime_id": "runtime-1",
418
+ "authorized_candidates": [
419
+ {
420
+ "runtime_id": "runtime-1",
421
+ "priority": 1,
422
+ "owner_subject_type": "user",
423
+ "owner_subject_id": "user-1"
424
+ }
425
+ ],
426
+ "offline_behavior": "ignore",
427
+ "failover": "none"
428
+ }
429
+ },
430
+ {
431
+ "name": "old-routing",
432
+ "valid": false,
433
+ "selection": {
434
+ "schema": "octo.runtime-selection/v2",
435
+ "selection_mode": "explicit",
436
+ "explicit_runtime_id": "runtime-1",
437
+ "authorized_candidates": [
438
+ {
439
+ "runtime_id": "runtime-1",
440
+ "priority": 1,
441
+ "owner_subject_type": "user",
442
+ "owner_subject_id": "user-1"
443
+ }
444
+ ],
445
+ "offline_behavior": "wait",
446
+ "failover": "none",
447
+ "routing_mode": "bound"
448
+ }
449
+ },
450
+ {
451
+ "name": "old-binding",
452
+ "valid": false,
453
+ "selection": {
454
+ "schema": "octo.runtime-selection/v2",
455
+ "selection_mode": "explicit",
456
+ "explicit_runtime_id": "runtime-1",
457
+ "authorized_candidates": [
458
+ {
459
+ "runtime_id": "runtime-1",
460
+ "priority": 1,
461
+ "owner_subject_type": "user",
462
+ "owner_subject_id": "user-1"
463
+ }
464
+ ],
465
+ "offline_behavior": "wait",
466
+ "failover": "none",
467
+ "binding_ref": {
468
+ "id": "binding-1",
469
+ "version": 1
470
+ }
471
+ }
472
+ },
473
+ {
474
+ "name": "empty-explicit",
475
+ "valid": false,
476
+ "selection": {
477
+ "schema": "octo.runtime-selection/v2",
478
+ "selection_mode": "explicit",
479
+ "explicit_runtime_id": "",
480
+ "authorized_candidates": [
481
+ {
482
+ "runtime_id": "runtime-1",
483
+ "priority": 1,
484
+ "owner_subject_type": "user",
485
+ "owner_subject_id": "user-1"
486
+ }
487
+ ],
488
+ "offline_behavior": "wait",
489
+ "failover": "none"
490
+ }
491
+ },
492
+ {
493
+ "name": "empty-candidates",
494
+ "valid": false,
495
+ "selection": {
496
+ "schema": "octo.runtime-selection/v2",
497
+ "selection_mode": "explicit",
498
+ "explicit_runtime_id": "runtime-1",
499
+ "authorized_candidates": [],
500
+ "offline_behavior": "wait",
501
+ "failover": "none"
502
+ }
503
+ },
504
+ {
505
+ "name": "candidate-runtime_id-",
506
+ "valid": false,
507
+ "selection": {
508
+ "schema": "octo.runtime-selection/v2",
509
+ "selection_mode": "explicit",
510
+ "explicit_runtime_id": "runtime-1",
511
+ "authorized_candidates": [
512
+ {
513
+ "runtime_id": "",
514
+ "priority": 1,
515
+ "owner_subject_type": "user",
516
+ "owner_subject_id": "user-1"
517
+ }
518
+ ],
519
+ "offline_behavior": "wait",
520
+ "failover": "none"
521
+ }
522
+ },
523
+ {
524
+ "name": "candidate-priority-0",
525
+ "valid": false,
526
+ "selection": {
527
+ "schema": "octo.runtime-selection/v2",
528
+ "selection_mode": "explicit",
529
+ "explicit_runtime_id": "runtime-1",
530
+ "authorized_candidates": [
531
+ {
532
+ "runtime_id": "runtime-1",
533
+ "priority": 0,
534
+ "owner_subject_type": "user",
535
+ "owner_subject_id": "user-1"
536
+ }
537
+ ],
538
+ "offline_behavior": "wait",
539
+ "failover": "none"
540
+ }
541
+ },
542
+ {
543
+ "name": "candidate-priority-1.1",
544
+ "valid": false,
545
+ "selection": {
546
+ "schema": "octo.runtime-selection/v2",
547
+ "selection_mode": "explicit",
548
+ "explicit_runtime_id": "runtime-1",
549
+ "authorized_candidates": [
550
+ {
551
+ "runtime_id": "runtime-1",
552
+ "priority": 1.1,
553
+ "owner_subject_type": "user",
554
+ "owner_subject_id": "user-1"
555
+ }
556
+ ],
557
+ "offline_behavior": "wait",
558
+ "failover": "none"
559
+ }
560
+ },
561
+ {
562
+ "name": "candidate-owner_subject_type-service",
563
+ "valid": false,
564
+ "selection": {
565
+ "schema": "octo.runtime-selection/v2",
566
+ "selection_mode": "explicit",
567
+ "explicit_runtime_id": "runtime-1",
568
+ "authorized_candidates": [
569
+ {
570
+ "runtime_id": "runtime-1",
571
+ "priority": 1,
572
+ "owner_subject_type": "service",
573
+ "owner_subject_id": "user-1"
574
+ }
575
+ ],
576
+ "offline_behavior": "wait",
577
+ "failover": "none"
578
+ }
579
+ },
580
+ {
581
+ "name": "candidate-owner_subject_id-",
582
+ "valid": false,
583
+ "selection": {
584
+ "schema": "octo.runtime-selection/v2",
585
+ "selection_mode": "explicit",
586
+ "explicit_runtime_id": "runtime-1",
587
+ "authorized_candidates": [
588
+ {
589
+ "runtime_id": "runtime-1",
590
+ "priority": 1,
591
+ "owner_subject_type": "user",
592
+ "owner_subject_id": ""
593
+ }
594
+ ],
595
+ "offline_behavior": "wait",
596
+ "failover": "none"
597
+ }
598
+ },
599
+ {
600
+ "name": "candidate-unknown-true",
601
+ "valid": false,
602
+ "selection": {
603
+ "schema": "octo.runtime-selection/v2",
604
+ "selection_mode": "explicit",
605
+ "explicit_runtime_id": "runtime-1",
606
+ "authorized_candidates": [
607
+ {
608
+ "runtime_id": "runtime-1",
609
+ "priority": 1,
610
+ "owner_subject_type": "user",
611
+ "owner_subject_id": "user-1",
612
+ "unknown": true
613
+ }
614
+ ],
615
+ "offline_behavior": "wait",
616
+ "failover": "none"
617
+ }
618
+ },
619
+ {
620
+ "name": "top-null",
621
+ "valid": false,
622
+ "selection": null
623
+ },
624
+ {
625
+ "name": "top-array",
626
+ "valid": false,
627
+ "selection": []
628
+ },
629
+ {
630
+ "name": "top-string",
631
+ "valid": false,
632
+ "selection": "invalid"
633
+ },
634
+ {
635
+ "name": "top-bool",
636
+ "valid": false,
637
+ "selection": true
638
+ },
639
+ {
640
+ "name": "duplicate-runtime",
641
+ "valid": false,
642
+ "selection": {
643
+ "schema": "octo.runtime-selection/v2",
644
+ "selection_mode": "candidates",
645
+ "authorized_candidates": [
646
+ {
647
+ "runtime_id": "runtime-1",
648
+ "priority": 1,
649
+ "owner_subject_type": "user",
650
+ "owner_subject_id": "user-1"
651
+ },
652
+ {
653
+ "runtime_id": "runtime-1",
654
+ "priority": 2,
655
+ "owner_subject_type": "user",
656
+ "owner_subject_id": "user-1"
657
+ }
658
+ ],
659
+ "offline_behavior": "wait",
660
+ "failover": "candidates"
661
+ }
662
+ }
663
+ ]