devcontour-harness 0.1.0-alpha.35 → 0.1.0-alpha.37

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 (116) hide show
  1. package/README.md +16 -2
  2. package/docs/contracts.md +261 -33
  3. package/docs/release-notes/0.1.0-alpha.36.md +26 -0
  4. package/docs/release-notes/0.1.0-alpha.37.md +40 -0
  5. package/docs/standalone.md +20 -0
  6. package/docs/toolchains.md +57 -2
  7. package/docs/upgrade.md +108 -0
  8. package/lib/agents/schemas.d.ts +84 -2
  9. package/lib/agents/schemas.js +49 -1
  10. package/lib/cli.js +149 -1
  11. package/lib/contracts/cli.d.ts +1495 -170
  12. package/lib/contracts/cli.js +232 -2
  13. package/lib/contracts/diagnosis.d.ts +8 -4
  14. package/lib/contracts/diagnosis.js +3 -0
  15. package/lib/contracts/errors.d.ts +7 -1
  16. package/lib/contracts/errors.js +6 -0
  17. package/lib/contracts/events.d.ts +453 -60
  18. package/lib/contracts/events.js +79 -0
  19. package/lib/contracts/execution.d.ts +270 -50
  20. package/lib/contracts/execution.js +41 -0
  21. package/lib/contracts/failure.d.ts +14 -1
  22. package/lib/contracts/failure.js +9 -1
  23. package/lib/contracts/handoff.d.ts +70 -20
  24. package/lib/contracts/handoff.js +42 -1
  25. package/lib/contracts/index.d.ts +1 -0
  26. package/lib/contracts/index.js +1 -0
  27. package/lib/contracts/input-state.d.ts +13 -0
  28. package/lib/contracts/input-state.js +32 -0
  29. package/lib/contracts/input.d.ts +442 -0
  30. package/lib/contracts/input.js +321 -0
  31. package/lib/contracts/planning.d.ts +2 -0
  32. package/lib/contracts/policy.d.ts +17 -2
  33. package/lib/contracts/policy.js +31 -2
  34. package/lib/contracts/ports.d.ts +54 -0
  35. package/lib/contracts/project.d.ts +127 -0
  36. package/lib/contracts/project.js +99 -0
  37. package/lib/contracts/published.d.ts +603 -92
  38. package/lib/contracts/published.js +4 -1
  39. package/lib/contracts/repair-policy.d.ts +20 -0
  40. package/lib/contracts/repair-policy.js +34 -0
  41. package/lib/contracts/report.d.ts +53 -21
  42. package/lib/contracts/report.js +33 -2
  43. package/lib/contracts/result.d.ts +26 -24
  44. package/lib/contracts/review.d.ts +47 -8
  45. package/lib/contracts/review.js +21 -1
  46. package/lib/control/harness.d.ts +2555 -51
  47. package/lib/control/harness.js +112 -6
  48. package/lib/control/recovery.d.ts +2 -2
  49. package/lib/control/report.js +1 -0
  50. package/lib/control/status.d.ts +30 -22
  51. package/lib/control/status.js +11 -1
  52. package/lib/control/workflow.d.ts +8 -8
  53. package/lib/engine/budget.d.ts +86 -3
  54. package/lib/engine/budget.js +45 -10
  55. package/lib/engine/engine.d.ts +3091 -85
  56. package/lib/engine/engine.js +1206 -101
  57. package/lib/engine/input-policy.d.ts +68 -0
  58. package/lib/engine/input-policy.js +285 -0
  59. package/lib/engine/input-requests.d.ts +64 -0
  60. package/lib/engine/input-requests.js +187 -0
  61. package/lib/engine/measured.d.ts +6 -1
  62. package/lib/engine/measured.js +12 -1
  63. package/lib/engine/prompt.d.ts +4 -2
  64. package/lib/engine/prompt.js +3 -1
  65. package/lib/engine/property-recovery.js +2 -0
  66. package/lib/engine/repair.d.ts +2 -0
  67. package/lib/engine/repair.js +10 -3
  68. package/lib/engine/runner.d.ts +33 -4
  69. package/lib/engine/runner.js +266 -23
  70. package/lib/environment/lifecycle.d.ts +8 -0
  71. package/lib/environment/lifecycle.js +15 -2
  72. package/lib/explain/state.d.ts +16 -2
  73. package/lib/explain/state.js +254 -77
  74. package/lib/handoff/markdown.js +10 -0
  75. package/lib/handoff/pack.js +42 -1
  76. package/lib/index.d.ts +10 -0
  77. package/lib/index.js +10 -0
  78. package/lib/init/inspect.d.ts +34 -0
  79. package/lib/init/inspect.js +292 -0
  80. package/lib/init/project.js +14 -31
  81. package/lib/integrations/connector/commands.d.ts +12 -12
  82. package/lib/integrations/connector/config.d.ts +4 -4
  83. package/lib/integrations/connector/delivery.d.ts +1 -1
  84. package/lib/integrations/relay-v2/protocol.d.ts +4 -4
  85. package/lib/profiles/resolve.d.ts +2 -1
  86. package/lib/projections/enums.d.ts +1 -1
  87. package/lib/projections/enums.js +4 -0
  88. package/lib/projections/index.d.ts +1 -0
  89. package/lib/projections/index.js +1 -0
  90. package/lib/projections/input.d.ts +17 -0
  91. package/lib/projections/input.js +28 -0
  92. package/lib/projections/stop.d.ts +40 -1
  93. package/lib/projections/stop.js +87 -4
  94. package/lib/report/compute.d.ts +4 -1
  95. package/lib/report/compute.js +25 -0
  96. package/lib/report/document.js +1 -0
  97. package/lib/storage/document.d.ts +66 -28
  98. package/lib/testing/index.d.ts +1 -1
  99. package/lib/testing/index.js +1 -1
  100. package/lib/testing/store-contract.d.ts +8 -1
  101. package/lib/testing/store-contract.js +194 -1
  102. package/lib/verification/confirm.d.ts +3 -3
  103. package/lib/verification/corpus.d.ts +9 -9
  104. package/lib/verification/gates.d.ts +119 -0
  105. package/lib/verification/gates.js +311 -4
  106. package/package.json +1 -1
  107. package/schemas/execution-document.schema.json +130 -0
  108. package/schemas/execution-policy.schema.json +26 -0
  109. package/schemas/handoff-pack.schema.json +146 -4
  110. package/schemas/input-request.schema.json +665 -0
  111. package/schemas/project-facts.schema.json +393 -0
  112. package/schemas/result-envelope.schema.json +1 -0
  113. package/schemas/run-event.schema.json +625 -0
  114. package/schemas/run-result.schema.json +1 -0
  115. package/schemas/stop-diagnosis.schema.json +5 -1
  116. package/schemas/value-report.schema.json +78 -7
@@ -0,0 +1,665 @@
1
+ {
2
+ "$id": "devcontour-harness/v1alpha1/input-request.schema.json",
3
+ "title": "input-request",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "pattern": "^IR-[a-f0-9]{24}$"
10
+ },
11
+ "kind": {
12
+ "type": "string",
13
+ "enum": [
14
+ "question",
15
+ "follow-up"
16
+ ]
17
+ },
18
+ "blocking": {
19
+ "type": "boolean"
20
+ },
21
+ "workId": {
22
+ "type": "string",
23
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
24
+ },
25
+ "graphId": {
26
+ "type": "string",
27
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
28
+ },
29
+ "runId": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 200
33
+ },
34
+ "attempt": {
35
+ "type": "integer",
36
+ "exclusiveMinimum": 0,
37
+ "maximum": 9007199254740991
38
+ },
39
+ "callId": {
40
+ "anyOf": [
41
+ {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 200
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ },
51
+ "question": {
52
+ "type": "object",
53
+ "properties": {
54
+ "question": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 1500
58
+ },
59
+ "options": {
60
+ "maxItems": 6,
61
+ "type": "array",
62
+ "items": {
63
+ "type": "object",
64
+ "properties": {
65
+ "id": {
66
+ "type": "string",
67
+ "pattern": "^[A-Za-z0-9_-]{1,40}$"
68
+ },
69
+ "label": {
70
+ "type": "string",
71
+ "minLength": 1,
72
+ "maxLength": 300
73
+ },
74
+ "consequence": {
75
+ "anyOf": [
76
+ {
77
+ "type": "string",
78
+ "maxLength": 1000
79
+ },
80
+ {
81
+ "type": "null"
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ "required": [
87
+ "id",
88
+ "label",
89
+ "consequence"
90
+ ],
91
+ "additionalProperties": false
92
+ }
93
+ },
94
+ "recommended": {
95
+ "anyOf": [
96
+ {
97
+ "type": "string",
98
+ "maxLength": 40
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ]
104
+ },
105
+ "severity": {
106
+ "type": "integer",
107
+ "minimum": 1,
108
+ "maximum": 10
109
+ },
110
+ "rationale": {
111
+ "type": "string",
112
+ "maxLength": 2000
113
+ },
114
+ "affects": {
115
+ "maxItems": 5,
116
+ "type": "array",
117
+ "items": {
118
+ "type": "string",
119
+ "enum": [
120
+ "contract",
121
+ "acceptance",
122
+ "product",
123
+ "api",
124
+ "migration"
125
+ ]
126
+ }
127
+ }
128
+ },
129
+ "required": [
130
+ "question",
131
+ "options",
132
+ "recommended",
133
+ "severity",
134
+ "rationale",
135
+ "affects"
136
+ ],
137
+ "additionalProperties": false
138
+ },
139
+ "effectiveSeverity": {
140
+ "type": "integer",
141
+ "minimum": 1,
142
+ "maximum": 10
143
+ },
144
+ "floors": {
145
+ "maxItems": 2,
146
+ "type": "array",
147
+ "items": {
148
+ "type": "string",
149
+ "enum": [
150
+ "declared",
151
+ "critical-path"
152
+ ]
153
+ }
154
+ },
155
+ "criticalHits": {
156
+ "maxItems": 20,
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 500
162
+ }
163
+ },
164
+ "draft": {
165
+ "anyOf": [
166
+ {
167
+ "type": "object",
168
+ "properties": {
169
+ "digest": {
170
+ "type": "string",
171
+ "pattern": "^[a-f0-9]{64}$"
172
+ },
173
+ "files": {
174
+ "maxItems": 500,
175
+ "type": "array",
176
+ "items": {
177
+ "type": "string",
178
+ "maxLength": 500
179
+ }
180
+ }
181
+ },
182
+ "required": [
183
+ "digest",
184
+ "files"
185
+ ],
186
+ "additionalProperties": false
187
+ },
188
+ {
189
+ "type": "null"
190
+ }
191
+ ]
192
+ },
193
+ "createdAt": {
194
+ "type": "string",
195
+ "format": "date-time",
196
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
197
+ },
198
+ "originBasis": {
199
+ "type": "object",
200
+ "properties": {
201
+ "source": {
202
+ "type": "object",
203
+ "properties": {
204
+ "connector": {
205
+ "type": "string",
206
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
207
+ },
208
+ "ref": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 300
212
+ },
213
+ "revision": {
214
+ "type": "string",
215
+ "minLength": 1,
216
+ "maxLength": 200
217
+ }
218
+ },
219
+ "required": [
220
+ "connector",
221
+ "ref",
222
+ "revision"
223
+ ],
224
+ "additionalProperties": false
225
+ },
226
+ "graphId": {
227
+ "type": "string",
228
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
229
+ },
230
+ "graphDigest": {
231
+ "type": "string",
232
+ "pattern": "^[a-f0-9]{64}$"
233
+ },
234
+ "orderDigest": {
235
+ "type": "string",
236
+ "pattern": "^[a-f0-9]{64}$"
237
+ },
238
+ "policyDigest": {
239
+ "type": "string",
240
+ "pattern": "^[a-f0-9]{64}$"
241
+ },
242
+ "contextDigest": {
243
+ "anyOf": [
244
+ {
245
+ "type": "string",
246
+ "pattern": "^[a-f0-9]{64}$"
247
+ },
248
+ {
249
+ "type": "null"
250
+ }
251
+ ]
252
+ },
253
+ "baseSha": {
254
+ "anyOf": [
255
+ {
256
+ "type": "string",
257
+ "pattern": "^[a-f0-9]{40}([a-f0-9]{24})?$"
258
+ },
259
+ {
260
+ "type": "null"
261
+ }
262
+ ]
263
+ },
264
+ "inputPolicy": {
265
+ "type": "object",
266
+ "properties": {
267
+ "threshold": {
268
+ "default": 7,
269
+ "type": "integer",
270
+ "minimum": 1,
271
+ "maximum": 11
272
+ },
273
+ "criticalPaths": {
274
+ "default": [],
275
+ "maxItems": 50,
276
+ "type": "array",
277
+ "items": {
278
+ "type": "string",
279
+ "minLength": 1,
280
+ "maxLength": 500,
281
+ "pattern": "^(?!\\/)(?!.*[\\\\:*?\\[\\]\\x00])(?!(?:.*\\/)?\\.{1,2}(?:\\/|$))(?=.{1,500}$).+$"
282
+ }
283
+ }
284
+ },
285
+ "additionalProperties": false
286
+ },
287
+ "contentDigest": {
288
+ "type": "string",
289
+ "pattern": "^[a-f0-9]{64}$"
290
+ }
291
+ },
292
+ "required": [
293
+ "source",
294
+ "graphId",
295
+ "graphDigest",
296
+ "orderDigest",
297
+ "policyDigest",
298
+ "contextDigest",
299
+ "baseSha",
300
+ "inputPolicy"
301
+ ],
302
+ "additionalProperties": false
303
+ },
304
+ "lifecycle": {
305
+ "type": "string",
306
+ "enum": [
307
+ "pending",
308
+ "answered",
309
+ "applied",
310
+ "cancelled",
311
+ "superseded"
312
+ ]
313
+ },
314
+ "answers": {
315
+ "maxItems": 20,
316
+ "type": "array",
317
+ "items": {
318
+ "type": "object",
319
+ "properties": {
320
+ "revision": {
321
+ "type": "integer",
322
+ "exclusiveMinimum": 0,
323
+ "maximum": 9007199254740991
324
+ },
325
+ "text": {
326
+ "type": "string",
327
+ "minLength": 1,
328
+ "maxLength": 3000
329
+ },
330
+ "optionId": {
331
+ "anyOf": [
332
+ {
333
+ "type": "string",
334
+ "maxLength": 40
335
+ },
336
+ {
337
+ "type": "null"
338
+ }
339
+ ]
340
+ },
341
+ "kind": {
342
+ "type": "string",
343
+ "enum": [
344
+ "clarification",
345
+ "requirement-change"
346
+ ]
347
+ },
348
+ "actor": {
349
+ "type": "object",
350
+ "properties": {
351
+ "kind": {
352
+ "type": "string",
353
+ "enum": [
354
+ "operator",
355
+ "lead",
356
+ "host"
357
+ ]
358
+ },
359
+ "id": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "maxLength": 200
363
+ }
364
+ },
365
+ "required": [
366
+ "kind"
367
+ ],
368
+ "additionalProperties": false
369
+ },
370
+ "messageRef": {
371
+ "type": "string",
372
+ "minLength": 1,
373
+ "maxLength": 300
374
+ },
375
+ "digest": {
376
+ "type": "string",
377
+ "pattern": "^[a-f0-9]{64}$"
378
+ },
379
+ "at": {
380
+ "type": "string",
381
+ "format": "date-time",
382
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
383
+ }
384
+ },
385
+ "required": [
386
+ "revision",
387
+ "text",
388
+ "optionId",
389
+ "kind",
390
+ "actor",
391
+ "digest",
392
+ "at"
393
+ ],
394
+ "additionalProperties": false
395
+ }
396
+ },
397
+ "target": {
398
+ "type": "object",
399
+ "properties": {
400
+ "originDigest": {
401
+ "type": "string",
402
+ "pattern": "^[a-f0-9]{64}$"
403
+ },
404
+ "answerDigest": {
405
+ "type": "string",
406
+ "pattern": "^[a-f0-9]{64}$"
407
+ },
408
+ "graphDigest": {
409
+ "type": "string",
410
+ "pattern": "^[a-f0-9]{64}$"
411
+ },
412
+ "orderDigest": {
413
+ "type": "string",
414
+ "pattern": "^[a-f0-9]{64}$"
415
+ },
416
+ "contentDigest": {
417
+ "type": "string",
418
+ "pattern": "^[a-f0-9]{64}$"
419
+ },
420
+ "policyDigest": {
421
+ "type": "string",
422
+ "pattern": "^[a-f0-9]{64}$"
423
+ },
424
+ "contextDigest": {
425
+ "anyOf": [
426
+ {
427
+ "type": "string",
428
+ "pattern": "^[a-f0-9]{64}$"
429
+ },
430
+ {
431
+ "type": "null"
432
+ }
433
+ ]
434
+ },
435
+ "review": {
436
+ "anyOf": [
437
+ {
438
+ "type": "object",
439
+ "properties": {
440
+ "round": {
441
+ "type": "integer",
442
+ "exclusiveMinimum": 0,
443
+ "maximum": 9007199254740991
444
+ },
445
+ "approved": {
446
+ "type": "boolean"
447
+ },
448
+ "reviewerBinding": {
449
+ "anyOf": [
450
+ {
451
+ "type": "string",
452
+ "pattern": "^[a-f0-9]{64}$"
453
+ },
454
+ {
455
+ "type": "null"
456
+ }
457
+ ]
458
+ }
459
+ },
460
+ "required": [
461
+ "round",
462
+ "approved",
463
+ "reviewerBinding"
464
+ ],
465
+ "additionalProperties": false
466
+ },
467
+ {
468
+ "type": "null"
469
+ }
470
+ ]
471
+ },
472
+ "actor": {
473
+ "type": "string",
474
+ "enum": [
475
+ "agent",
476
+ "operator"
477
+ ]
478
+ },
479
+ "digest": {
480
+ "type": "string",
481
+ "pattern": "^[a-f0-9]{64}$"
482
+ }
483
+ },
484
+ "required": [
485
+ "originDigest",
486
+ "answerDigest",
487
+ "graphDigest",
488
+ "orderDigest",
489
+ "policyDigest",
490
+ "contextDigest",
491
+ "review",
492
+ "actor",
493
+ "digest"
494
+ ],
495
+ "additionalProperties": false
496
+ },
497
+ "delivered": {
498
+ "type": "object",
499
+ "properties": {
500
+ "runId": {
501
+ "type": "string",
502
+ "minLength": 1,
503
+ "maxLength": 200
504
+ },
505
+ "callId": {
506
+ "type": "string",
507
+ "minLength": 1,
508
+ "maxLength": 200
509
+ },
510
+ "at": {
511
+ "type": "string",
512
+ "format": "date-time",
513
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
514
+ }
515
+ },
516
+ "required": [
517
+ "runId",
518
+ "callId",
519
+ "at"
520
+ ],
521
+ "additionalProperties": false
522
+ },
523
+ "closed": {
524
+ "type": "object",
525
+ "properties": {
526
+ "at": {
527
+ "type": "string",
528
+ "format": "date-time",
529
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
530
+ },
531
+ "by": {
532
+ "type": "string",
533
+ "enum": [
534
+ "operator",
535
+ "lead",
536
+ "host",
537
+ "controller"
538
+ ]
539
+ },
540
+ "reason": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "maxLength": 1000
544
+ },
545
+ "successor": {
546
+ "type": "string",
547
+ "minLength": 1,
548
+ "maxLength": 200
549
+ },
550
+ "carry": {
551
+ "type": "boolean"
552
+ },
553
+ "previous": {
554
+ "type": "object",
555
+ "properties": {
556
+ "at": {
557
+ "type": "string",
558
+ "format": "date-time",
559
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
560
+ },
561
+ "by": {
562
+ "type": "string",
563
+ "enum": [
564
+ "operator",
565
+ "lead",
566
+ "host",
567
+ "controller"
568
+ ]
569
+ },
570
+ "reason": {
571
+ "type": "string",
572
+ "minLength": 1,
573
+ "maxLength": 1000
574
+ },
575
+ "successor": {
576
+ "type": "string",
577
+ "minLength": 1,
578
+ "maxLength": 200
579
+ },
580
+ "carry": {
581
+ "type": "boolean"
582
+ }
583
+ },
584
+ "required": [
585
+ "at",
586
+ "by",
587
+ "reason"
588
+ ],
589
+ "additionalProperties": false
590
+ }
591
+ },
592
+ "required": [
593
+ "at",
594
+ "by",
595
+ "reason"
596
+ ],
597
+ "additionalProperties": false
598
+ },
599
+ "stale": {
600
+ "type": "object",
601
+ "properties": {
602
+ "targetDigest": {
603
+ "type": "string",
604
+ "pattern": "^[a-f0-9]{64}$"
605
+ },
606
+ "reason": {
607
+ "type": "string",
608
+ "enum": [
609
+ "context",
610
+ "graph",
611
+ "order",
612
+ "policy"
613
+ ]
614
+ },
615
+ "at": {
616
+ "type": "string",
617
+ "format": "date-time",
618
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
619
+ }
620
+ },
621
+ "required": [
622
+ "targetDigest",
623
+ "reason",
624
+ "at"
625
+ ],
626
+ "additionalProperties": false
627
+ },
628
+ "normalized": {
629
+ "minItems": 1,
630
+ "maxItems": 10,
631
+ "type": "array",
632
+ "items": {
633
+ "type": "string",
634
+ "minLength": 1,
635
+ "maxLength": 300
636
+ }
637
+ },
638
+ "version": {
639
+ "type": "integer",
640
+ "exclusiveMinimum": 0,
641
+ "maximum": 9007199254740991
642
+ }
643
+ },
644
+ "required": [
645
+ "id",
646
+ "kind",
647
+ "blocking",
648
+ "workId",
649
+ "graphId",
650
+ "runId",
651
+ "attempt",
652
+ "callId",
653
+ "question",
654
+ "effectiveSeverity",
655
+ "floors",
656
+ "criticalHits",
657
+ "draft",
658
+ "createdAt",
659
+ "originBasis",
660
+ "lifecycle",
661
+ "answers",
662
+ "version"
663
+ ],
664
+ "additionalProperties": false
665
+ }