perttool 0.11.1 → 0.12.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 (176) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/README.md +8 -1
  3. package/dist/application/cli-facade.d.ts +2 -1
  4. package/dist/application/cli-facade.d.ts.map +1 -1
  5. package/dist/application/cli-facade.js +2 -1
  6. package/dist/application/cli-facade.js.map +1 -1
  7. package/dist/application/contract11-candidate.d.ts +23 -0
  8. package/dist/application/contract11-candidate.d.ts.map +1 -0
  9. package/dist/application/contract11-candidate.js +48 -0
  10. package/dist/application/contract11-candidate.js.map +1 -0
  11. package/dist/application/contract11-migration.d.ts +35 -0
  12. package/dist/application/contract11-migration.d.ts.map +1 -0
  13. package/dist/application/contract11-migration.js +46 -0
  14. package/dist/application/contract11-migration.js.map +1 -0
  15. package/dist/application/contract11-runtime.d.ts +11 -0
  16. package/dist/application/contract11-runtime.d.ts.map +1 -0
  17. package/dist/application/contract11-runtime.js +65 -0
  18. package/dist/application/contract11-runtime.js.map +1 -0
  19. package/dist/application/contract8-milestone-acceptance.d.ts +6 -0
  20. package/dist/application/contract8-milestone-acceptance.d.ts.map +1 -1
  21. package/dist/application/contract8-milestone-acceptance.js +10 -1
  22. package/dist/application/contract8-milestone-acceptance.js.map +1 -1
  23. package/dist/application/contract9-projection.d.ts +1 -1
  24. package/dist/application/contract9-projection.d.ts.map +1 -1
  25. package/dist/application/contract9-projection.js.map +1 -1
  26. package/dist/application/plan-review-mutation.d.ts +52 -0
  27. package/dist/application/plan-review-mutation.d.ts.map +1 -0
  28. package/dist/application/plan-review-mutation.js +86 -0
  29. package/dist/application/plan-review-mutation.js.map +1 -0
  30. package/dist/assurance/canonical.d.ts +3 -1
  31. package/dist/assurance/canonical.d.ts.map +1 -1
  32. package/dist/assurance/canonical.js +2 -2
  33. package/dist/assurance/canonical.js.map +1 -1
  34. package/dist/cli.js +490 -132
  35. package/dist/cli.js.map +1 -1
  36. package/dist/command/contract11-discovery.d.ts +17 -0
  37. package/dist/command/contract11-discovery.d.ts.map +1 -0
  38. package/dist/command/contract11-discovery.js +129 -0
  39. package/dist/command/contract11-discovery.js.map +1 -0
  40. package/dist/command/contract11-usage.d.ts +24 -0
  41. package/dist/command/contract11-usage.d.ts.map +1 -0
  42. package/dist/command/contract11-usage.js +39 -0
  43. package/dist/command/contract11-usage.js.map +1 -0
  44. package/dist/core/index.d.ts +2 -2
  45. package/dist/core/index.d.ts.map +1 -1
  46. package/dist/core/index.js +2 -1
  47. package/dist/core/index.js.map +1 -1
  48. package/dist/help/contract11-guide.d.ts +10 -0
  49. package/dist/help/contract11-guide.d.ts.map +1 -0
  50. package/dist/help/contract11-guide.js +73 -0
  51. package/dist/help/contract11-guide.js.map +1 -0
  52. package/dist/index.d.ts +19 -5
  53. package/dist/index.d.ts.map +1 -1
  54. package/dist/index.js +15 -4
  55. package/dist/index.js.map +1 -1
  56. package/dist/model/canonical-json.d.ts +3 -0
  57. package/dist/model/canonical-json.d.ts.map +1 -0
  58. package/dist/model/canonical-json.js +47 -0
  59. package/dist/model/canonical-json.js.map +1 -0
  60. package/dist/model/rfc8785.d.ts +2 -0
  61. package/dist/model/rfc8785.d.ts.map +1 -0
  62. package/dist/model/rfc8785.js +47 -0
  63. package/dist/model/rfc8785.js.map +1 -0
  64. package/dist/plan-review/advance.d.ts +28 -0
  65. package/dist/plan-review/advance.d.ts.map +1 -0
  66. package/dist/plan-review/advance.js +67 -0
  67. package/dist/plan-review/advance.js.map +1 -0
  68. package/dist/plan-review/authority.d.ts +4 -0
  69. package/dist/plan-review/authority.d.ts.map +1 -0
  70. package/dist/plan-review/authority.js +21 -0
  71. package/dist/plan-review/authority.js.map +1 -0
  72. package/dist/plan-review/basis.d.ts +25 -0
  73. package/dist/plan-review/basis.d.ts.map +1 -0
  74. package/dist/plan-review/basis.js +287 -0
  75. package/dist/plan-review/basis.js.map +1 -0
  76. package/dist/plan-review/format.d.ts +5 -0
  77. package/dist/plan-review/format.d.ts.map +1 -0
  78. package/dist/plan-review/format.js +54 -0
  79. package/dist/plan-review/format.js.map +1 -0
  80. package/dist/plan-review/lifecycle.d.ts +11 -0
  81. package/dist/plan-review/lifecycle.d.ts.map +1 -0
  82. package/dist/plan-review/lifecycle.js +80 -0
  83. package/dist/plan-review/lifecycle.js.map +1 -0
  84. package/dist/plan-review/mutation-types.d.ts +112 -0
  85. package/dist/plan-review/mutation-types.d.ts.map +1 -0
  86. package/dist/plan-review/mutation-types.js +4 -0
  87. package/dist/plan-review/mutation-types.js.map +1 -0
  88. package/dist/plan-review/mutation.d.ts +4 -0
  89. package/dist/plan-review/mutation.d.ts.map +1 -0
  90. package/dist/plan-review/mutation.js +421 -0
  91. package/dist/plan-review/mutation.js.map +1 -0
  92. package/dist/plan-review/projection.d.ts +4 -0
  93. package/dist/plan-review/projection.d.ts.map +1 -0
  94. package/dist/plan-review/projection.js +19 -0
  95. package/dist/plan-review/projection.js.map +1 -0
  96. package/dist/plan-review/request-size.d.ts +3 -0
  97. package/dist/plan-review/request-size.d.ts.map +1 -0
  98. package/dist/plan-review/request-size.js +86 -0
  99. package/dist/plan-review/request-size.js.map +1 -0
  100. package/dist/plan-review/request.d.ts +11 -0
  101. package/dist/plan-review/request.d.ts.map +1 -0
  102. package/dist/plan-review/request.js +268 -0
  103. package/dist/plan-review/request.js.map +1 -0
  104. package/dist/plan-review/source-lexical.d.ts +23 -0
  105. package/dist/plan-review/source-lexical.d.ts.map +1 -0
  106. package/dist/plan-review/source-lexical.js +75 -0
  107. package/dist/plan-review/source-lexical.js.map +1 -0
  108. package/dist/plan-review/source-types.d.ts +81 -0
  109. package/dist/plan-review/source-types.d.ts.map +1 -0
  110. package/dist/plan-review/source-types.js +2 -0
  111. package/dist/plan-review/source-types.js.map +1 -0
  112. package/dist/plan-review/source.d.ts +16 -0
  113. package/dist/plan-review/source.d.ts.map +1 -0
  114. package/dist/plan-review/source.js +346 -0
  115. package/dist/plan-review/source.js.map +1 -0
  116. package/dist/plan-review/write.d.ts +4 -0
  117. package/dist/plan-review/write.d.ts.map +1 -0
  118. package/dist/plan-review/write.js +51 -0
  119. package/dist/plan-review/write.js.map +1 -0
  120. package/dist/planning-pool/history-guard.d.ts +7 -1
  121. package/dist/planning-pool/history-guard.d.ts.map +1 -1
  122. package/dist/planning-pool/history-guard.js +13 -12
  123. package/dist/planning-pool/history-guard.js.map +1 -1
  124. package/dist/planning-pool/projection.d.ts +1 -1
  125. package/dist/planning-pool/projection.d.ts.map +1 -1
  126. package/dist/planning-pool/projection.js.map +1 -1
  127. package/dist/planning-pool/source-lexical.d.ts.map +1 -1
  128. package/dist/planning-pool/source-lexical.js +2 -22
  129. package/dist/planning-pool/source-lexical.js.map +1 -1
  130. package/dist/recommendation/override-types.d.ts +2 -2
  131. package/dist/recommendation/override-types.d.ts.map +1 -1
  132. package/dist/recommendation/override.d.ts +1 -1
  133. package/dist/recommendation/override.d.ts.map +1 -1
  134. package/dist/recommendation/override.js +6 -5
  135. package/dist/recommendation/override.js.map +1 -1
  136. package/dist/schema/registry.d.ts +1 -1
  137. package/dist/schema/registry.d.ts.map +1 -1
  138. package/dist/schema/registry.js +5 -2
  139. package/dist/schema/registry.js.map +1 -1
  140. package/dist/temporal-schedule/source-lexical.d.ts +5 -0
  141. package/dist/temporal-schedule/source-lexical.d.ts.map +1 -1
  142. package/dist/temporal-schedule/source-lexical.js +21 -4
  143. package/dist/temporal-schedule/source-lexical.js.map +1 -1
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.d.ts.map +1 -1
  146. package/dist/version.js +2 -1
  147. package/dist/version.js.map +1 -1
  148. package/package.json +1 -1
  149. package/schemas/Perttool.AdvanceResult.v4.schema.json +4 -1
  150. package/schemas/Perttool.AgentGuidanceResult.v1.schema.json +1 -1
  151. package/schemas/Perttool.AnalysisResult.v7.schema.json +1 -1
  152. package/schemas/Perttool.CheckResult.v6.schema.json +1 -1
  153. package/schemas/Perttool.CliError.v1.schema.json +1 -1
  154. package/schemas/Perttool.CommandHelpResult.v1.schema.json +2 -2
  155. package/schemas/Perttool.ExportResult.v1.schema.json +1 -1
  156. package/schemas/Perttool.FormatResult.v1.schema.json +1 -1
  157. package/schemas/Perttool.GuideResult.v1.schema.json +1 -1
  158. package/schemas/Perttool.HistoricalGraphResult.v1.schema.json +1 -1
  159. package/schemas/Perttool.ImportResult.v1.schema.json +1 -1
  160. package/schemas/Perttool.InitResult.v1.schema.json +1 -1
  161. package/schemas/Perttool.MilestoneAcceptanceMigrationResult.v1.schema.json +1 -1
  162. package/schemas/Perttool.MilestoneAcceptanceResult.v1.schema.json +1 -1
  163. package/schemas/Perttool.MutationResult.v6.schema.json +1 -1
  164. package/schemas/{Perttool.NextResult.v8.schema.json → Perttool.NextResult.v9.schema.json} +40 -7
  165. package/schemas/Perttool.PlanAssuranceResult.v2.schema.json +1 -1
  166. package/schemas/Perttool.PlanReviewMutationResult.v1.schema.json +2203 -0
  167. package/schemas/Perttool.PlanReviewResult.v1.schema.json +245 -0
  168. package/schemas/Perttool.PlanningMutationResult.v1.schema.json +1 -1
  169. package/schemas/Perttool.PlanningPoolResult.v1.schema.json +1 -1
  170. package/schemas/Perttool.PlanningReshapePreflightResult.v1.schema.json +1 -1
  171. package/schemas/Perttool.ProjectHistoryResult.v1.schema.json +1 -1
  172. package/schemas/Perttool.ProjectResult.v5.schema.json +1 -1
  173. package/schemas/Perttool.SchemaResult.v1.schema.json +1 -1
  174. package/schemas/Perttool.UnitMigrationResult.v5.schema.json +1 -1
  175. package/schemas/Perttool.VelocityObservationResult.v1.schema.json +1 -1
  176. package/dist/perttool-vscode-private-0.0.0-d1578b9.vsix +0 -0
@@ -0,0 +1,2203 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/mako10k/perttool/schemas/Perttool.PlanReviewMutationResult.v1.schema.json",
4
+ "title": "Perttool.PlanReviewMutationResult.v1",
5
+ "$defs": {
6
+ "authority": {
7
+ "type": "object",
8
+ "required": [
9
+ "model_version",
10
+ "request_id",
11
+ "source_digest",
12
+ "candidate_digest",
13
+ "actor",
14
+ "effective_dag_owner",
15
+ "effective_dag_delegates",
16
+ "actor_direct",
17
+ "owner_confirmation_required",
18
+ "owner_confirmation_satisfied",
19
+ "authorized"
20
+ ],
21
+ "properties": {
22
+ "model_version": {
23
+ "const": 1
24
+ },
25
+ "request_id": {
26
+ "type": "string"
27
+ },
28
+ "source_digest": {
29
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
30
+ },
31
+ "candidate_digest": {
32
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
33
+ },
34
+ "actor": {
35
+ "type": "string"
36
+ },
37
+ "effective_dag_owner": {
38
+ "type": "string"
39
+ },
40
+ "effective_dag_delegates": {
41
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
42
+ },
43
+ "actor_direct": {
44
+ "type": "boolean"
45
+ },
46
+ "owner_confirmation_required": {
47
+ "type": "boolean"
48
+ },
49
+ "owner_confirmation_satisfied": {
50
+ "type": "boolean"
51
+ },
52
+ "authorized": {
53
+ "type": "boolean"
54
+ }
55
+ },
56
+ "additionalProperties": false,
57
+ "title": "Perttool.PlanReviewAuthorityDecision.v1"
58
+ },
59
+ "createRequest": {
60
+ "type": "object",
61
+ "required": [
62
+ "schema_version",
63
+ "request_id",
64
+ "task_id",
65
+ "reason",
66
+ "created_at",
67
+ "actor"
68
+ ],
69
+ "properties": {
70
+ "schema_version": {
71
+ "const": "Perttool.PlanReviewCreateRequest.v1"
72
+ },
73
+ "request_id": {
74
+ "type": "string"
75
+ },
76
+ "task_id": {
77
+ "type": "string"
78
+ },
79
+ "reason": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ },
83
+ "created_at": {
84
+ "type": "string"
85
+ },
86
+ "actor": {
87
+ "type": "string"
88
+ },
89
+ "locator": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ "additionalProperties": false,
94
+ "title": "Perttool.PlanReviewCreateRequest.v1"
95
+ },
96
+ "resolveRequest": {
97
+ "oneOf": [
98
+ {
99
+ "type": "object",
100
+ "required": [
101
+ "schema_version",
102
+ "request_id",
103
+ "outcome",
104
+ "resolved_at",
105
+ "actor",
106
+ "resolution_reason"
107
+ ],
108
+ "properties": {
109
+ "schema_version": {
110
+ "const": "Perttool.PlanReviewResolveRequest.v1"
111
+ },
112
+ "request_id": {
113
+ "type": "string"
114
+ },
115
+ "resolved_at": {
116
+ "type": "string"
117
+ },
118
+ "actor": {
119
+ "type": "string"
120
+ },
121
+ "resolution_reason": {
122
+ "type": "string",
123
+ "minLength": 1
124
+ },
125
+ "accepted_owners": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "outcome": {
132
+ "const": "plan_retained"
133
+ }
134
+ },
135
+ "additionalProperties": false
136
+ },
137
+ {
138
+ "type": "object",
139
+ "required": [
140
+ "schema_version",
141
+ "request_id",
142
+ "outcome",
143
+ "resolved_at",
144
+ "actor",
145
+ "resolution_reason",
146
+ "request"
147
+ ],
148
+ "properties": {
149
+ "schema_version": {
150
+ "const": "Perttool.PlanReviewResolveRequest.v1"
151
+ },
152
+ "request_id": {
153
+ "type": "string"
154
+ },
155
+ "resolved_at": {
156
+ "type": "string"
157
+ },
158
+ "actor": {
159
+ "type": "string"
160
+ },
161
+ "resolution_reason": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ },
165
+ "accepted_owners": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "string"
169
+ }
170
+ },
171
+ "outcome": {
172
+ "const": "plan_changed"
173
+ },
174
+ "request": {
175
+ "$ref": "#/$defs/batchRequest"
176
+ }
177
+ },
178
+ "additionalProperties": false
179
+ }
180
+ ],
181
+ "title": "Perttool.PlanReviewResolveRequest.v1"
182
+ },
183
+ "basisRational": {
184
+ "type": "object",
185
+ "required": [
186
+ "numerator",
187
+ "denominator"
188
+ ],
189
+ "properties": {
190
+ "numerator": {
191
+ "type": "string"
192
+ },
193
+ "denominator": {
194
+ "type": "string"
195
+ }
196
+ },
197
+ "additionalProperties": false
198
+ },
199
+ "basisExact": {
200
+ "type": "object",
201
+ "required": [
202
+ "numerator",
203
+ "denominator",
204
+ "unit"
205
+ ],
206
+ "properties": {
207
+ "numerator": {
208
+ "type": "string"
209
+ },
210
+ "denominator": {
211
+ "type": "string"
212
+ },
213
+ "unit": {
214
+ "enum": [
215
+ "day",
216
+ "hour",
217
+ "point"
218
+ ]
219
+ }
220
+ },
221
+ "additionalProperties": false
222
+ },
223
+ "basisWindow": {
224
+ "type": "object",
225
+ "required": [
226
+ "start_minute",
227
+ "end_minute"
228
+ ],
229
+ "properties": {
230
+ "start_minute": {
231
+ "type": "integer"
232
+ },
233
+ "end_minute": {
234
+ "type": "integer"
235
+ }
236
+ },
237
+ "additionalProperties": false
238
+ },
239
+ "basisConstraint": {
240
+ "type": "object",
241
+ "required": [
242
+ "event",
243
+ "direction",
244
+ "value"
245
+ ],
246
+ "properties": {
247
+ "event": {
248
+ "type": "string"
249
+ },
250
+ "direction": {
251
+ "enum": [
252
+ "earliest",
253
+ "latest"
254
+ ]
255
+ },
256
+ "value": {
257
+ "type": "string"
258
+ }
259
+ },
260
+ "additionalProperties": false
261
+ },
262
+ "basisRequirement": {
263
+ "type": "object",
264
+ "required": [
265
+ "resource_id",
266
+ "units"
267
+ ],
268
+ "properties": {
269
+ "resource_id": {
270
+ "type": "string"
271
+ },
272
+ "units": {
273
+ "type": "number"
274
+ }
275
+ },
276
+ "additionalProperties": false
277
+ },
278
+ "basisDate": {
279
+ "type": "object",
280
+ "required": [
281
+ "kind",
282
+ "year",
283
+ "month",
284
+ "day"
285
+ ],
286
+ "properties": {
287
+ "kind": {
288
+ "const": "date"
289
+ },
290
+ "year": {
291
+ "type": "integer"
292
+ },
293
+ "month": {
294
+ "type": "integer"
295
+ },
296
+ "day": {
297
+ "type": "integer"
298
+ }
299
+ },
300
+ "additionalProperties": false
301
+ },
302
+ "basisDateTime": {
303
+ "type": "object",
304
+ "required": [
305
+ "kind",
306
+ "year",
307
+ "month",
308
+ "day",
309
+ "hour",
310
+ "minute",
311
+ "second",
312
+ "offset_minutes"
313
+ ],
314
+ "properties": {
315
+ "kind": {
316
+ "const": "date_time"
317
+ },
318
+ "year": {
319
+ "type": "integer"
320
+ },
321
+ "month": {
322
+ "type": "integer"
323
+ },
324
+ "day": {
325
+ "type": "integer"
326
+ },
327
+ "hour": {
328
+ "type": "integer"
329
+ },
330
+ "minute": {
331
+ "type": "integer"
332
+ },
333
+ "second": {
334
+ "$ref": "#/$defs/basisRational"
335
+ },
336
+ "offset_minutes": {
337
+ "type": "integer"
338
+ }
339
+ },
340
+ "additionalProperties": false
341
+ },
342
+ "basisCalendarValue": {
343
+ "oneOf": [
344
+ {
345
+ "$ref": "#/$defs/basisDate"
346
+ },
347
+ {
348
+ "$ref": "#/$defs/basisDateTime"
349
+ },
350
+ {
351
+ "type": "null"
352
+ }
353
+ ]
354
+ },
355
+ "basisTiming": {
356
+ "oneOf": [
357
+ {
358
+ "type": "object",
359
+ "required": [
360
+ "kind",
361
+ "value"
362
+ ],
363
+ "properties": {
364
+ "kind": {
365
+ "const": "duration"
366
+ },
367
+ "value": {
368
+ "$ref": "#/$defs/basisExact"
369
+ }
370
+ },
371
+ "additionalProperties": false
372
+ },
373
+ {
374
+ "type": "object",
375
+ "required": [
376
+ "kind",
377
+ "optimistic",
378
+ "most_likely",
379
+ "pessimistic"
380
+ ],
381
+ "properties": {
382
+ "kind": {
383
+ "const": "estimate"
384
+ },
385
+ "optimistic": {
386
+ "$ref": "#/$defs/basisExact"
387
+ },
388
+ "most_likely": {
389
+ "$ref": "#/$defs/basisExact"
390
+ },
391
+ "pessimistic": {
392
+ "$ref": "#/$defs/basisExact"
393
+ }
394
+ },
395
+ "additionalProperties": false
396
+ },
397
+ {
398
+ "type": "null"
399
+ }
400
+ ]
401
+ },
402
+ "basisCalendarProfile": {
403
+ "oneOf": [
404
+ {
405
+ "type": "object",
406
+ "required": [
407
+ "kind"
408
+ ],
409
+ "properties": {
410
+ "kind": {
411
+ "const": "continuous_fixed_offset"
412
+ }
413
+ },
414
+ "additionalProperties": false
415
+ },
416
+ {
417
+ "type": "object",
418
+ "required": [
419
+ "kind",
420
+ "zone_id",
421
+ "tzdb_release",
422
+ "calendar_id",
423
+ "workday_hours"
424
+ ],
425
+ "properties": {
426
+ "kind": {
427
+ "const": "named_zone"
428
+ },
429
+ "zone_id": {
430
+ "type": "string"
431
+ },
432
+ "tzdb_release": {
433
+ "type": "string"
434
+ },
435
+ "calendar_id": {
436
+ "type": "string"
437
+ },
438
+ "workday_hours": {
439
+ "oneOf": [
440
+ {
441
+ "$ref": "#/$defs/basisRational"
442
+ },
443
+ {
444
+ "type": "null"
445
+ }
446
+ ]
447
+ }
448
+ },
449
+ "additionalProperties": false
450
+ }
451
+ ]
452
+ },
453
+ "basisCalendar": {
454
+ "type": "object",
455
+ "required": [
456
+ "id",
457
+ "profile",
458
+ "weekdays",
459
+ "exceptions"
460
+ ],
461
+ "properties": {
462
+ "id": {
463
+ "type": "string"
464
+ },
465
+ "profile": {
466
+ "$ref": "#/$defs/basisCalendarProfile"
467
+ },
468
+ "weekdays": {
469
+ "type": "array",
470
+ "items": {
471
+ "type": "object",
472
+ "required": [
473
+ "weekday",
474
+ "windows"
475
+ ],
476
+ "properties": {
477
+ "weekday": {
478
+ "enum": [
479
+ "mon",
480
+ "tue",
481
+ "wed",
482
+ "thu",
483
+ "fri",
484
+ "sat",
485
+ "sun"
486
+ ]
487
+ },
488
+ "windows": {
489
+ "type": "array",
490
+ "items": {
491
+ "$ref": "#/$defs/basisWindow"
492
+ }
493
+ }
494
+ },
495
+ "additionalProperties": false
496
+ }
497
+ },
498
+ "exceptions": {
499
+ "type": "array",
500
+ "items": {
501
+ "type": "object",
502
+ "required": [
503
+ "date",
504
+ "windows"
505
+ ],
506
+ "properties": {
507
+ "date": {
508
+ "type": "string"
509
+ },
510
+ "windows": {
511
+ "type": "array",
512
+ "items": {
513
+ "$ref": "#/$defs/basisWindow"
514
+ }
515
+ }
516
+ },
517
+ "additionalProperties": false
518
+ }
519
+ }
520
+ },
521
+ "additionalProperties": false
522
+ },
523
+ "basisResource": {
524
+ "type": "object",
525
+ "required": [
526
+ "id",
527
+ "capacity",
528
+ "calendar_id",
529
+ "available_from",
530
+ "available_until",
531
+ "overrides"
532
+ ],
533
+ "properties": {
534
+ "id": {
535
+ "type": "string"
536
+ },
537
+ "capacity": {
538
+ "type": "integer"
539
+ },
540
+ "calendar_id": {
541
+ "oneOf": [
542
+ {
543
+ "type": "string"
544
+ },
545
+ {
546
+ "type": "null"
547
+ }
548
+ ]
549
+ },
550
+ "available_from": {
551
+ "oneOf": [
552
+ {
553
+ "type": "string"
554
+ },
555
+ {
556
+ "type": "null"
557
+ }
558
+ ]
559
+ },
560
+ "available_until": {
561
+ "oneOf": [
562
+ {
563
+ "type": "string"
564
+ },
565
+ {
566
+ "type": "null"
567
+ }
568
+ ]
569
+ },
570
+ "overrides": {
571
+ "type": "array",
572
+ "items": {
573
+ "type": "object",
574
+ "required": [
575
+ "start",
576
+ "end",
577
+ "capacity"
578
+ ],
579
+ "properties": {
580
+ "start": {
581
+ "type": "string"
582
+ },
583
+ "end": {
584
+ "type": "string"
585
+ },
586
+ "capacity": {
587
+ "type": "number"
588
+ }
589
+ },
590
+ "additionalProperties": false
591
+ }
592
+ }
593
+ },
594
+ "additionalProperties": false
595
+ },
596
+ "basisMilestone": {
597
+ "type": "object",
598
+ "required": [
599
+ "id",
600
+ "deadline",
601
+ "temporal_constraints"
602
+ ],
603
+ "properties": {
604
+ "id": {
605
+ "type": "string"
606
+ },
607
+ "deadline": {
608
+ "oneOf": [
609
+ {
610
+ "type": "string"
611
+ },
612
+ {
613
+ "type": "null"
614
+ }
615
+ ]
616
+ },
617
+ "temporal_constraints": {
618
+ "type": "array",
619
+ "items": {
620
+ "$ref": "#/$defs/basisConstraint"
621
+ }
622
+ }
623
+ },
624
+ "additionalProperties": false
625
+ },
626
+ "basisTask": {
627
+ "type": "object",
628
+ "required": [
629
+ "id",
630
+ "from_milestone_id",
631
+ "to_milestone_id",
632
+ "description",
633
+ "timing",
634
+ "not_before",
635
+ "deadline",
636
+ "priority",
637
+ "requirements",
638
+ "owner",
639
+ "tags",
640
+ "source",
641
+ "temporal_constraints"
642
+ ],
643
+ "properties": {
644
+ "id": {
645
+ "type": "string"
646
+ },
647
+ "from_milestone_id": {
648
+ "type": "string"
649
+ },
650
+ "to_milestone_id": {
651
+ "type": "string"
652
+ },
653
+ "description": {
654
+ "type": "string"
655
+ },
656
+ "timing": {
657
+ "$ref": "#/$defs/basisTiming"
658
+ },
659
+ "not_before": {
660
+ "$ref": "#/$defs/basisCalendarValue"
661
+ },
662
+ "deadline": {
663
+ "$ref": "#/$defs/basisCalendarValue"
664
+ },
665
+ "priority": {
666
+ "type": "integer"
667
+ },
668
+ "requirements": {
669
+ "type": "array",
670
+ "items": {
671
+ "$ref": "#/$defs/basisRequirement"
672
+ }
673
+ },
674
+ "owner": {
675
+ "oneOf": [
676
+ {
677
+ "type": "string"
678
+ },
679
+ {
680
+ "type": "null"
681
+ }
682
+ ]
683
+ },
684
+ "tags": {
685
+ "type": "array",
686
+ "items": {
687
+ "type": "string"
688
+ }
689
+ },
690
+ "source": {
691
+ "oneOf": [
692
+ {
693
+ "type": "string"
694
+ },
695
+ {
696
+ "type": "null"
697
+ }
698
+ ]
699
+ },
700
+ "temporal_constraints": {
701
+ "type": "array",
702
+ "items": {
703
+ "$ref": "#/$defs/basisConstraint"
704
+ }
705
+ }
706
+ },
707
+ "additionalProperties": false
708
+ },
709
+ "basisGate": {
710
+ "type": "object",
711
+ "required": [
712
+ "id",
713
+ "from_milestone_id",
714
+ "to_milestone_id",
715
+ "reason"
716
+ ],
717
+ "properties": {
718
+ "id": {
719
+ "type": "string"
720
+ },
721
+ "from_milestone_id": {
722
+ "type": "string"
723
+ },
724
+ "to_milestone_id": {
725
+ "type": "string"
726
+ },
727
+ "reason": {
728
+ "type": "string"
729
+ }
730
+ },
731
+ "additionalProperties": false
732
+ },
733
+ "basisRelation": {
734
+ "type": "object",
735
+ "required": [
736
+ "relation_id",
737
+ "predecessor_task_id",
738
+ "successor_task_id",
739
+ "mode",
740
+ "explicit"
741
+ ],
742
+ "properties": {
743
+ "relation_id": {
744
+ "type": "string"
745
+ },
746
+ "predecessor_task_id": {
747
+ "type": "string"
748
+ },
749
+ "successor_task_id": {
750
+ "type": "string"
751
+ },
752
+ "mode": {
753
+ "type": "string"
754
+ },
755
+ "explicit": {
756
+ "type": "boolean"
757
+ }
758
+ },
759
+ "additionalProperties": false
760
+ },
761
+ "basisWork": {
762
+ "type": "object",
763
+ "required": [
764
+ "id",
765
+ "title",
766
+ "description",
767
+ "event_ids",
768
+ "activity_ids",
769
+ "milestone_link_ids",
770
+ "task_link_ids",
771
+ "depends_on_ids"
772
+ ],
773
+ "properties": {
774
+ "id": {
775
+ "type": "string"
776
+ },
777
+ "title": {
778
+ "type": "string"
779
+ },
780
+ "description": {
781
+ "oneOf": [
782
+ {
783
+ "type": "string"
784
+ },
785
+ {
786
+ "type": "null"
787
+ }
788
+ ]
789
+ },
790
+ "event_ids": {
791
+ "type": "array",
792
+ "items": {
793
+ "type": "string"
794
+ }
795
+ },
796
+ "activity_ids": {
797
+ "type": "array",
798
+ "items": {
799
+ "type": "string"
800
+ }
801
+ },
802
+ "milestone_link_ids": {
803
+ "type": "array",
804
+ "items": {
805
+ "type": "string"
806
+ }
807
+ },
808
+ "task_link_ids": {
809
+ "type": "array",
810
+ "items": {
811
+ "type": "string"
812
+ }
813
+ },
814
+ "depends_on_ids": {
815
+ "type": "array",
816
+ "items": {
817
+ "type": "string"
818
+ }
819
+ }
820
+ },
821
+ "additionalProperties": false
822
+ },
823
+ "basisEvent": {
824
+ "type": "object",
825
+ "required": [
826
+ "id",
827
+ "title",
828
+ "description",
829
+ "tags",
830
+ "source"
831
+ ],
832
+ "properties": {
833
+ "id": {
834
+ "type": "string"
835
+ },
836
+ "title": {
837
+ "type": "string"
838
+ },
839
+ "description": {
840
+ "oneOf": [
841
+ {
842
+ "type": "string"
843
+ },
844
+ {
845
+ "type": "null"
846
+ }
847
+ ]
848
+ },
849
+ "tags": {
850
+ "type": "array",
851
+ "items": {
852
+ "type": "string"
853
+ }
854
+ },
855
+ "source": {
856
+ "oneOf": [
857
+ {
858
+ "type": "string"
859
+ },
860
+ {
861
+ "type": "null"
862
+ }
863
+ ]
864
+ }
865
+ },
866
+ "additionalProperties": false
867
+ },
868
+ "basisActivity": {
869
+ "type": "object",
870
+ "required": [
871
+ "id",
872
+ "from_id",
873
+ "to_id",
874
+ "title",
875
+ "description",
876
+ "timing",
877
+ "priority",
878
+ "requirements",
879
+ "owner",
880
+ "tags",
881
+ "source",
882
+ "calendar_id",
883
+ "when",
884
+ "deadline"
885
+ ],
886
+ "properties": {
887
+ "id": {
888
+ "type": "string"
889
+ },
890
+ "from_id": {
891
+ "type": "string"
892
+ },
893
+ "to_id": {
894
+ "type": "string"
895
+ },
896
+ "title": {
897
+ "type": "string"
898
+ },
899
+ "description": {
900
+ "oneOf": [
901
+ {
902
+ "type": "string"
903
+ },
904
+ {
905
+ "type": "null"
906
+ }
907
+ ]
908
+ },
909
+ "timing": {
910
+ "$ref": "#/$defs/basisTiming"
911
+ },
912
+ "priority": {
913
+ "type": "integer"
914
+ },
915
+ "requirements": {
916
+ "type": "array",
917
+ "items": {
918
+ "$ref": "#/$defs/basisRequirement"
919
+ }
920
+ },
921
+ "owner": {
922
+ "oneOf": [
923
+ {
924
+ "type": "string"
925
+ },
926
+ {
927
+ "type": "null"
928
+ }
929
+ ]
930
+ },
931
+ "tags": {
932
+ "type": "array",
933
+ "items": {
934
+ "type": "string"
935
+ }
936
+ },
937
+ "source": {
938
+ "oneOf": [
939
+ {
940
+ "type": "string"
941
+ },
942
+ {
943
+ "type": "null"
944
+ }
945
+ ]
946
+ },
947
+ "calendar_id": {
948
+ "oneOf": [
949
+ {
950
+ "type": "string"
951
+ },
952
+ {
953
+ "type": "null"
954
+ }
955
+ ]
956
+ },
957
+ "when": {
958
+ "type": "array",
959
+ "items": {
960
+ "$ref": "#/$defs/basisConstraint"
961
+ }
962
+ },
963
+ "deadline": {
964
+ "oneOf": [
965
+ {
966
+ "type": "string"
967
+ },
968
+ {
969
+ "type": "null"
970
+ }
971
+ ]
972
+ }
973
+ },
974
+ "additionalProperties": false
975
+ },
976
+ "basisPlanningPool": {
977
+ "type": "object",
978
+ "required": [
979
+ "works",
980
+ "events",
981
+ "activities",
982
+ "windows",
983
+ "work_order"
984
+ ],
985
+ "properties": {
986
+ "works": {
987
+ "type": "array",
988
+ "items": {
989
+ "$ref": "#/$defs/basisWork"
990
+ }
991
+ },
992
+ "events": {
993
+ "type": "array",
994
+ "items": {
995
+ "$ref": "#/$defs/basisEvent"
996
+ }
997
+ },
998
+ "activities": {
999
+ "type": "array",
1000
+ "items": {
1001
+ "$ref": "#/$defs/basisActivity"
1002
+ }
1003
+ },
1004
+ "windows": {
1005
+ "type": "array",
1006
+ "items": {
1007
+ "type": "object",
1008
+ "required": [
1009
+ "id",
1010
+ "title",
1011
+ "objective",
1012
+ "start",
1013
+ "end",
1014
+ "work_ids"
1015
+ ],
1016
+ "properties": {
1017
+ "id": {
1018
+ "type": "string"
1019
+ },
1020
+ "title": {
1021
+ "type": "string"
1022
+ },
1023
+ "objective": {
1024
+ "type": "string"
1025
+ },
1026
+ "start": {
1027
+ "oneOf": [
1028
+ {
1029
+ "type": "string"
1030
+ },
1031
+ {
1032
+ "type": "null"
1033
+ }
1034
+ ]
1035
+ },
1036
+ "end": {
1037
+ "oneOf": [
1038
+ {
1039
+ "type": "string"
1040
+ },
1041
+ {
1042
+ "type": "null"
1043
+ }
1044
+ ]
1045
+ },
1046
+ "work_ids": {
1047
+ "type": "array",
1048
+ "items": {
1049
+ "type": "string"
1050
+ }
1051
+ }
1052
+ },
1053
+ "additionalProperties": false
1054
+ }
1055
+ },
1056
+ "work_order": {
1057
+ "type": "array",
1058
+ "items": {
1059
+ "type": "string"
1060
+ }
1061
+ }
1062
+ },
1063
+ "additionalProperties": false
1064
+ },
1065
+ "basis": {
1066
+ "type": "object",
1067
+ "required": [
1068
+ "model_version",
1069
+ "project",
1070
+ "calendars",
1071
+ "resources",
1072
+ "milestones",
1073
+ "tasks",
1074
+ "gates",
1075
+ "assurance_relations",
1076
+ "planning_pool"
1077
+ ],
1078
+ "properties": {
1079
+ "model_version": {
1080
+ "const": 1
1081
+ },
1082
+ "project": {
1083
+ "type": "object",
1084
+ "required": [
1085
+ "id",
1086
+ "finish_milestone_id",
1087
+ "duration_unit",
1088
+ "velocity",
1089
+ "target_duration",
1090
+ "critical_epsilon"
1091
+ ],
1092
+ "properties": {
1093
+ "id": {
1094
+ "type": "string"
1095
+ },
1096
+ "finish_milestone_id": {
1097
+ "type": "string"
1098
+ },
1099
+ "duration_unit": {
1100
+ "enum": [
1101
+ "day",
1102
+ "hour",
1103
+ "point"
1104
+ ]
1105
+ },
1106
+ "velocity": {
1107
+ "oneOf": [
1108
+ {
1109
+ "type": "string"
1110
+ },
1111
+ {
1112
+ "type": "null"
1113
+ }
1114
+ ]
1115
+ },
1116
+ "target_duration": {
1117
+ "oneOf": [
1118
+ {
1119
+ "type": "string"
1120
+ },
1121
+ {
1122
+ "type": "null"
1123
+ }
1124
+ ]
1125
+ },
1126
+ "critical_epsilon": {
1127
+ "type": "string"
1128
+ }
1129
+ },
1130
+ "additionalProperties": false
1131
+ },
1132
+ "calendars": {
1133
+ "type": "array",
1134
+ "items": {
1135
+ "$ref": "#/$defs/basisCalendar"
1136
+ }
1137
+ },
1138
+ "resources": {
1139
+ "type": "array",
1140
+ "items": {
1141
+ "$ref": "#/$defs/basisResource"
1142
+ }
1143
+ },
1144
+ "milestones": {
1145
+ "type": "array",
1146
+ "items": {
1147
+ "$ref": "#/$defs/basisMilestone"
1148
+ }
1149
+ },
1150
+ "tasks": {
1151
+ "type": "array",
1152
+ "items": {
1153
+ "$ref": "#/$defs/basisTask"
1154
+ }
1155
+ },
1156
+ "gates": {
1157
+ "type": "array",
1158
+ "items": {
1159
+ "$ref": "#/$defs/basisGate"
1160
+ }
1161
+ },
1162
+ "assurance_relations": {
1163
+ "type": "array",
1164
+ "items": {
1165
+ "$ref": "#/$defs/basisRelation"
1166
+ }
1167
+ },
1168
+ "planning_pool": {
1169
+ "oneOf": [
1170
+ {
1171
+ "$ref": "#/$defs/basisPlanningPool"
1172
+ },
1173
+ {
1174
+ "type": "null"
1175
+ }
1176
+ ]
1177
+ }
1178
+ },
1179
+ "additionalProperties": false,
1180
+ "title": "Perttool.PlanReviewBasis.v1"
1181
+ },
1182
+ "createRequestSummary": {
1183
+ "type": "object",
1184
+ "required": [
1185
+ "schema_version",
1186
+ "request_id",
1187
+ "task_id",
1188
+ "reason",
1189
+ "created_at",
1190
+ "actor",
1191
+ "locator"
1192
+ ],
1193
+ "properties": {
1194
+ "schema_version": {
1195
+ "const": "Perttool.PlanReviewCreateRequest.v1"
1196
+ },
1197
+ "request_id": {
1198
+ "type": "string"
1199
+ },
1200
+ "task_id": {
1201
+ "type": "string"
1202
+ },
1203
+ "reason": {
1204
+ "type": "string",
1205
+ "minLength": 1
1206
+ },
1207
+ "created_at": {
1208
+ "type": "string"
1209
+ },
1210
+ "actor": {
1211
+ "type": "string"
1212
+ },
1213
+ "locator": {
1214
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
1215
+ }
1216
+ },
1217
+ "additionalProperties": false,
1218
+ "title": "Perttool.PlanReviewCreateRequestSummary.v1"
1219
+ },
1220
+ "resolveRequestSummary": {
1221
+ "type": "object",
1222
+ "required": [
1223
+ "schema_version",
1224
+ "request_id",
1225
+ "outcome",
1226
+ "resolved_at",
1227
+ "actor",
1228
+ "resolution_reason",
1229
+ "accepted_owners",
1230
+ "change_request_digest"
1231
+ ],
1232
+ "properties": {
1233
+ "schema_version": {
1234
+ "const": "Perttool.PlanReviewResolveRequest.v1"
1235
+ },
1236
+ "request_id": {
1237
+ "type": "string"
1238
+ },
1239
+ "outcome": {
1240
+ "enum": [
1241
+ "plan_retained",
1242
+ "plan_changed"
1243
+ ]
1244
+ },
1245
+ "resolved_at": {
1246
+ "type": "string"
1247
+ },
1248
+ "actor": {
1249
+ "type": "string"
1250
+ },
1251
+ "resolution_reason": {
1252
+ "type": "string",
1253
+ "minLength": 1
1254
+ },
1255
+ "accepted_owners": {
1256
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/stringArray"
1257
+ },
1258
+ "change_request_digest": {
1259
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
1260
+ }
1261
+ },
1262
+ "additionalProperties": false,
1263
+ "title": "Perttool.PlanReviewResolveRequestSummary.v1"
1264
+ },
1265
+ "batchRequirement": {
1266
+ "type": "object",
1267
+ "required": [
1268
+ "resourceId",
1269
+ "units"
1270
+ ],
1271
+ "properties": {
1272
+ "resourceId": {
1273
+ "type": "string"
1274
+ },
1275
+ "units": {
1276
+ "type": "number"
1277
+ }
1278
+ },
1279
+ "additionalProperties": false
1280
+ },
1281
+ "batchEstimate": {
1282
+ "type": "object",
1283
+ "required": [
1284
+ "optimistic",
1285
+ "mostLikely",
1286
+ "pessimistic"
1287
+ ],
1288
+ "properties": {
1289
+ "optimistic": {
1290
+ "type": "string"
1291
+ },
1292
+ "mostLikely": {
1293
+ "type": "string"
1294
+ },
1295
+ "pessimistic": {
1296
+ "type": "string"
1297
+ }
1298
+ },
1299
+ "additionalProperties": false
1300
+ },
1301
+ "batchProjectFields": {
1302
+ "type": "object",
1303
+ "required": [],
1304
+ "properties": {
1305
+ "id": {
1306
+ "type": "string"
1307
+ },
1308
+ "title": {
1309
+ "type": "string"
1310
+ },
1311
+ "description": {
1312
+ "type": "string"
1313
+ },
1314
+ "asOf": {
1315
+ "type": "string"
1316
+ },
1317
+ "durationUnit": {
1318
+ "type": "string"
1319
+ },
1320
+ "velocity": {
1321
+ "type": "string"
1322
+ },
1323
+ "finish": {
1324
+ "type": "string"
1325
+ },
1326
+ "goalOwner": {
1327
+ "type": "string"
1328
+ },
1329
+ "dagOwner": {
1330
+ "type": "string"
1331
+ },
1332
+ "criticalEpsilon": {
1333
+ "type": "string"
1334
+ },
1335
+ "targetDuration": {
1336
+ "type": "string"
1337
+ },
1338
+ "version": {
1339
+ "type": "integer"
1340
+ },
1341
+ "goalDelegates": {
1342
+ "type": "array",
1343
+ "items": {
1344
+ "type": "string"
1345
+ }
1346
+ },
1347
+ "dagDelegates": {
1348
+ "type": "array",
1349
+ "items": {
1350
+ "type": "string"
1351
+ }
1352
+ }
1353
+ },
1354
+ "additionalProperties": false
1355
+ },
1356
+ "batchTaskDefinition": {
1357
+ "type": "object",
1358
+ "required": [
1359
+ "title"
1360
+ ],
1361
+ "properties": {
1362
+ "title": {
1363
+ "type": "string"
1364
+ },
1365
+ "description": {
1366
+ "type": "string"
1367
+ },
1368
+ "duration": {
1369
+ "type": "string"
1370
+ },
1371
+ "estimate": {
1372
+ "$ref": "#/$defs/batchEstimate"
1373
+ },
1374
+ "notBefore": {
1375
+ "type": "string"
1376
+ },
1377
+ "deadline": {
1378
+ "type": "string"
1379
+ },
1380
+ "status": {
1381
+ "enum": [
1382
+ "planned",
1383
+ "active",
1384
+ "blocked",
1385
+ "done"
1386
+ ]
1387
+ },
1388
+ "priority": {
1389
+ "type": "integer"
1390
+ },
1391
+ "owner": {
1392
+ "type": "string"
1393
+ },
1394
+ "blockedReason": {
1395
+ "type": "string"
1396
+ },
1397
+ "source": {
1398
+ "type": "string"
1399
+ },
1400
+ "requirements": {
1401
+ "type": "array",
1402
+ "items": {
1403
+ "$ref": "#/$defs/batchRequirement"
1404
+ }
1405
+ },
1406
+ "tags": {
1407
+ "type": "array",
1408
+ "items": {
1409
+ "type": "string"
1410
+ }
1411
+ }
1412
+ },
1413
+ "additionalProperties": false
1414
+ },
1415
+ "batchTaskFields": {
1416
+ "type": "object",
1417
+ "required": [],
1418
+ "properties": {
1419
+ "title": {
1420
+ "type": "string"
1421
+ },
1422
+ "description": {
1423
+ "type": "string"
1424
+ },
1425
+ "duration": {
1426
+ "type": "string"
1427
+ },
1428
+ "estimate": {
1429
+ "$ref": "#/$defs/batchEstimate"
1430
+ },
1431
+ "notBefore": {
1432
+ "type": "string"
1433
+ },
1434
+ "deadline": {
1435
+ "type": "string"
1436
+ },
1437
+ "status": {
1438
+ "enum": [
1439
+ "planned",
1440
+ "active",
1441
+ "blocked",
1442
+ "done"
1443
+ ]
1444
+ },
1445
+ "priority": {
1446
+ "type": "integer"
1447
+ },
1448
+ "owner": {
1449
+ "type": "string"
1450
+ },
1451
+ "blockedReason": {
1452
+ "type": "string"
1453
+ },
1454
+ "source": {
1455
+ "type": "string"
1456
+ }
1457
+ },
1458
+ "additionalProperties": false
1459
+ },
1460
+ "batchGateDefinition": {
1461
+ "type": "object",
1462
+ "required": [
1463
+ "reason"
1464
+ ],
1465
+ "properties": {
1466
+ "reason": {
1467
+ "type": "string"
1468
+ }
1469
+ },
1470
+ "additionalProperties": false
1471
+ },
1472
+ "batchGateFields": {
1473
+ "type": "object",
1474
+ "required": [],
1475
+ "properties": {
1476
+ "reason": {
1477
+ "type": "string"
1478
+ }
1479
+ },
1480
+ "additionalProperties": false
1481
+ },
1482
+ "batchMilestoneDefinition": {
1483
+ "type": "object",
1484
+ "required": [
1485
+ "title"
1486
+ ],
1487
+ "properties": {
1488
+ "title": {
1489
+ "type": "string"
1490
+ },
1491
+ "description": {
1492
+ "type": "string"
1493
+ },
1494
+ "state": {
1495
+ "enum": [
1496
+ "planned",
1497
+ "reached"
1498
+ ]
1499
+ },
1500
+ "deadline": {
1501
+ "type": "string"
1502
+ },
1503
+ "tags": {
1504
+ "type": "array",
1505
+ "items": {
1506
+ "type": "string"
1507
+ }
1508
+ }
1509
+ },
1510
+ "additionalProperties": false
1511
+ },
1512
+ "batchMilestoneFields": {
1513
+ "type": "object",
1514
+ "required": [],
1515
+ "properties": {
1516
+ "title": {
1517
+ "type": "string"
1518
+ },
1519
+ "description": {
1520
+ "type": "string"
1521
+ },
1522
+ "state": {
1523
+ "enum": [
1524
+ "planned",
1525
+ "reached"
1526
+ ]
1527
+ },
1528
+ "deadline": {
1529
+ "type": "string"
1530
+ }
1531
+ },
1532
+ "additionalProperties": false
1533
+ },
1534
+ "batchResourceDefinition": {
1535
+ "type": "object",
1536
+ "required": [
1537
+ "title",
1538
+ "capacity"
1539
+ ],
1540
+ "properties": {
1541
+ "title": {
1542
+ "type": "string"
1543
+ },
1544
+ "capacity": {
1545
+ "type": "number"
1546
+ },
1547
+ "description": {
1548
+ "type": "string"
1549
+ }
1550
+ },
1551
+ "additionalProperties": false
1552
+ },
1553
+ "batchResourceFields": {
1554
+ "type": "object",
1555
+ "required": [],
1556
+ "properties": {
1557
+ "title": {
1558
+ "type": "string"
1559
+ },
1560
+ "description": {
1561
+ "type": "string"
1562
+ },
1563
+ "capacity": {
1564
+ "type": "number"
1565
+ }
1566
+ },
1567
+ "additionalProperties": false
1568
+ },
1569
+ "batchAtomicMutation": {
1570
+ "oneOf": [
1571
+ {
1572
+ "type": "object",
1573
+ "required": [
1574
+ "kind"
1575
+ ],
1576
+ "properties": {
1577
+ "kind": {
1578
+ "const": "project.set"
1579
+ },
1580
+ "set": {
1581
+ "$ref": "#/$defs/batchProjectFields"
1582
+ },
1583
+ "clear": {
1584
+ "type": "array",
1585
+ "items": {
1586
+ "enum": [
1587
+ "description",
1588
+ "as_of",
1589
+ "velocity",
1590
+ "goal_owner",
1591
+ "goal_delegates",
1592
+ "dag_owner",
1593
+ "dag_delegates",
1594
+ "critical_epsilon",
1595
+ "target_duration"
1596
+ ]
1597
+ }
1598
+ }
1599
+ },
1600
+ "additionalProperties": false
1601
+ },
1602
+ {
1603
+ "type": "object",
1604
+ "required": [
1605
+ "kind",
1606
+ "id",
1607
+ "from",
1608
+ "to",
1609
+ "task"
1610
+ ],
1611
+ "properties": {
1612
+ "kind": {
1613
+ "const": "task.add"
1614
+ },
1615
+ "id": {
1616
+ "type": "string"
1617
+ },
1618
+ "from": {
1619
+ "type": "string"
1620
+ },
1621
+ "to": {
1622
+ "type": "string"
1623
+ },
1624
+ "task": {
1625
+ "$ref": "#/$defs/batchTaskDefinition",
1626
+ "allOf": [
1627
+ {
1628
+ "oneOf": [
1629
+ {
1630
+ "required": [
1631
+ "duration"
1632
+ ]
1633
+ },
1634
+ {
1635
+ "required": [
1636
+ "estimate"
1637
+ ]
1638
+ }
1639
+ ]
1640
+ }
1641
+ ]
1642
+ }
1643
+ },
1644
+ "additionalProperties": false
1645
+ },
1646
+ {
1647
+ "type": "object",
1648
+ "required": [
1649
+ "kind",
1650
+ "id"
1651
+ ],
1652
+ "properties": {
1653
+ "kind": {
1654
+ "const": "task.set"
1655
+ },
1656
+ "id": {
1657
+ "type": "string"
1658
+ },
1659
+ "from": {
1660
+ "type": "string"
1661
+ },
1662
+ "to": {
1663
+ "type": "string"
1664
+ },
1665
+ "set": {
1666
+ "$ref": "#/$defs/batchTaskFields"
1667
+ },
1668
+ "clear": {
1669
+ "type": "array",
1670
+ "items": {
1671
+ "enum": [
1672
+ "description",
1673
+ "not_before",
1674
+ "deadline",
1675
+ "status",
1676
+ "priority",
1677
+ "owner",
1678
+ "blocked_reason",
1679
+ "source",
1680
+ "tags",
1681
+ "requires"
1682
+ ]
1683
+ }
1684
+ },
1685
+ "addTags": {
1686
+ "type": "array",
1687
+ "items": {
1688
+ "type": "string"
1689
+ }
1690
+ },
1691
+ "removeTags": {
1692
+ "type": "array",
1693
+ "items": {
1694
+ "type": "string"
1695
+ }
1696
+ },
1697
+ "upsertRequirements": {
1698
+ "type": "array",
1699
+ "items": {
1700
+ "$ref": "#/$defs/batchRequirement"
1701
+ }
1702
+ },
1703
+ "removeRequirements": {
1704
+ "type": "array",
1705
+ "items": {
1706
+ "type": "string"
1707
+ }
1708
+ }
1709
+ },
1710
+ "additionalProperties": false
1711
+ },
1712
+ {
1713
+ "type": "object",
1714
+ "required": [
1715
+ "kind",
1716
+ "id"
1717
+ ],
1718
+ "properties": {
1719
+ "kind": {
1720
+ "const": "task.remove"
1721
+ },
1722
+ "id": {
1723
+ "type": "string"
1724
+ }
1725
+ },
1726
+ "additionalProperties": false
1727
+ },
1728
+ {
1729
+ "type": "object",
1730
+ "required": [
1731
+ "kind",
1732
+ "id"
1733
+ ],
1734
+ "properties": {
1735
+ "kind": {
1736
+ "const": "task.finish"
1737
+ },
1738
+ "id": {
1739
+ "type": "string"
1740
+ }
1741
+ },
1742
+ "additionalProperties": false
1743
+ },
1744
+ {
1745
+ "type": "object",
1746
+ "required": [
1747
+ "kind",
1748
+ "id",
1749
+ "from",
1750
+ "to",
1751
+ "gate"
1752
+ ],
1753
+ "properties": {
1754
+ "kind": {
1755
+ "const": "gate.add"
1756
+ },
1757
+ "id": {
1758
+ "type": "string"
1759
+ },
1760
+ "from": {
1761
+ "type": "string"
1762
+ },
1763
+ "to": {
1764
+ "type": "string"
1765
+ },
1766
+ "gate": {
1767
+ "$ref": "#/$defs/batchGateDefinition"
1768
+ }
1769
+ },
1770
+ "additionalProperties": false
1771
+ },
1772
+ {
1773
+ "type": "object",
1774
+ "required": [
1775
+ "kind",
1776
+ "id"
1777
+ ],
1778
+ "properties": {
1779
+ "kind": {
1780
+ "const": "gate.set"
1781
+ },
1782
+ "id": {
1783
+ "type": "string"
1784
+ },
1785
+ "from": {
1786
+ "type": "string"
1787
+ },
1788
+ "to": {
1789
+ "type": "string"
1790
+ },
1791
+ "set": {
1792
+ "$ref": "#/$defs/batchGateFields"
1793
+ }
1794
+ },
1795
+ "additionalProperties": false
1796
+ },
1797
+ {
1798
+ "type": "object",
1799
+ "required": [
1800
+ "kind",
1801
+ "id"
1802
+ ],
1803
+ "properties": {
1804
+ "kind": {
1805
+ "const": "gate.remove"
1806
+ },
1807
+ "id": {
1808
+ "type": "string"
1809
+ }
1810
+ },
1811
+ "additionalProperties": false
1812
+ },
1813
+ {
1814
+ "type": "object",
1815
+ "required": [
1816
+ "kind",
1817
+ "id",
1818
+ "milestone"
1819
+ ],
1820
+ "properties": {
1821
+ "kind": {
1822
+ "const": "milestone.add"
1823
+ },
1824
+ "id": {
1825
+ "type": "string"
1826
+ },
1827
+ "milestone": {
1828
+ "$ref": "#/$defs/batchMilestoneDefinition"
1829
+ }
1830
+ },
1831
+ "additionalProperties": false
1832
+ },
1833
+ {
1834
+ "type": "object",
1835
+ "required": [
1836
+ "kind",
1837
+ "id"
1838
+ ],
1839
+ "properties": {
1840
+ "kind": {
1841
+ "const": "milestone.set"
1842
+ },
1843
+ "id": {
1844
+ "type": "string"
1845
+ },
1846
+ "set": {
1847
+ "$ref": "#/$defs/batchMilestoneFields"
1848
+ },
1849
+ "clear": {
1850
+ "type": "array",
1851
+ "items": {
1852
+ "enum": [
1853
+ "description",
1854
+ "state",
1855
+ "deadline",
1856
+ "tags"
1857
+ ]
1858
+ }
1859
+ },
1860
+ "addTags": {
1861
+ "type": "array",
1862
+ "items": {
1863
+ "type": "string"
1864
+ }
1865
+ },
1866
+ "removeTags": {
1867
+ "type": "array",
1868
+ "items": {
1869
+ "type": "string"
1870
+ }
1871
+ }
1872
+ },
1873
+ "additionalProperties": false
1874
+ },
1875
+ {
1876
+ "type": "object",
1877
+ "required": [
1878
+ "kind",
1879
+ "id"
1880
+ ],
1881
+ "properties": {
1882
+ "kind": {
1883
+ "const": "milestone.remove"
1884
+ },
1885
+ "id": {
1886
+ "type": "string"
1887
+ }
1888
+ },
1889
+ "additionalProperties": false
1890
+ },
1891
+ {
1892
+ "type": "object",
1893
+ "required": [
1894
+ "kind",
1895
+ "id",
1896
+ "resource"
1897
+ ],
1898
+ "properties": {
1899
+ "kind": {
1900
+ "const": "resource.add"
1901
+ },
1902
+ "id": {
1903
+ "type": "string"
1904
+ },
1905
+ "resource": {
1906
+ "$ref": "#/$defs/batchResourceDefinition"
1907
+ }
1908
+ },
1909
+ "additionalProperties": false
1910
+ },
1911
+ {
1912
+ "type": "object",
1913
+ "required": [
1914
+ "kind",
1915
+ "id"
1916
+ ],
1917
+ "properties": {
1918
+ "kind": {
1919
+ "const": "resource.set"
1920
+ },
1921
+ "id": {
1922
+ "type": "string"
1923
+ },
1924
+ "set": {
1925
+ "$ref": "#/$defs/batchResourceFields"
1926
+ },
1927
+ "clear": {
1928
+ "type": "array",
1929
+ "items": {
1930
+ "enum": [
1931
+ "description"
1932
+ ]
1933
+ }
1934
+ }
1935
+ },
1936
+ "additionalProperties": false
1937
+ },
1938
+ {
1939
+ "type": "object",
1940
+ "required": [
1941
+ "kind",
1942
+ "id"
1943
+ ],
1944
+ "properties": {
1945
+ "kind": {
1946
+ "const": "resource.remove"
1947
+ },
1948
+ "id": {
1949
+ "type": "string"
1950
+ }
1951
+ },
1952
+ "additionalProperties": false
1953
+ }
1954
+ ]
1955
+ },
1956
+ "batchRequest": {
1957
+ "type": "object",
1958
+ "required": [
1959
+ "kind",
1960
+ "mutations"
1961
+ ],
1962
+ "properties": {
1963
+ "kind": {
1964
+ "const": "batch"
1965
+ },
1966
+ "mutations": {
1967
+ "type": "array",
1968
+ "minItems": 1,
1969
+ "maxItems": 10000,
1970
+ "items": {
1971
+ "$ref": "#/$defs/batchAtomicMutation"
1972
+ }
1973
+ }
1974
+ },
1975
+ "additionalProperties": false
1976
+ }
1977
+ },
1978
+ "type": "object",
1979
+ "required": [
1980
+ "schema_version",
1981
+ "cli_contract_version",
1982
+ "tool_version",
1983
+ "operation",
1984
+ "ok",
1985
+ "document_id",
1986
+ "source",
1987
+ "request",
1988
+ "request_before",
1989
+ "request_after",
1990
+ "projection_before",
1991
+ "projection_after",
1992
+ "plan_basis",
1993
+ "plan_review_authority",
1994
+ "composed_mutation",
1995
+ "candidate",
1996
+ "edits",
1997
+ "diff",
1998
+ "write",
1999
+ "diagnostics"
2000
+ ],
2001
+ "properties": {
2002
+ "schema_version": {
2003
+ "const": "Perttool.PlanReviewMutationResult.v1"
2004
+ },
2005
+ "cli_contract_version": {
2006
+ "const": 11
2007
+ },
2008
+ "tool_version": {
2009
+ "type": "string"
2010
+ },
2011
+ "operation": {
2012
+ "enum": [
2013
+ "plan.review-request",
2014
+ "plan.review-resolve"
2015
+ ]
2016
+ },
2017
+ "ok": {
2018
+ "type": "boolean"
2019
+ },
2020
+ "document_id": {
2021
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
2022
+ },
2023
+ "source": {
2024
+ "type": "string"
2025
+ },
2026
+ "request": {
2027
+ "oneOf": [
2028
+ {
2029
+ "$ref": "#/$defs/createRequestSummary"
2030
+ },
2031
+ {
2032
+ "$ref": "#/$defs/resolveRequestSummary"
2033
+ },
2034
+ {
2035
+ "type": "null"
2036
+ }
2037
+ ]
2038
+ },
2039
+ "request_before": {
2040
+ "oneOf": [
2041
+ {
2042
+ "$ref": "Perttool.PlanReviewResult.v1.schema.json#/$defs/request"
2043
+ },
2044
+ {
2045
+ "type": "null"
2046
+ }
2047
+ ]
2048
+ },
2049
+ "request_after": {
2050
+ "oneOf": [
2051
+ {
2052
+ "$ref": "Perttool.PlanReviewResult.v1.schema.json#/$defs/request"
2053
+ },
2054
+ {
2055
+ "type": "null"
2056
+ }
2057
+ ]
2058
+ },
2059
+ "projection_before": {
2060
+ "oneOf": [
2061
+ {
2062
+ "$ref": "Perttool.PlanReviewResult.v1.schema.json#/$defs/projection"
2063
+ },
2064
+ {
2065
+ "type": "null"
2066
+ }
2067
+ ]
2068
+ },
2069
+ "projection_after": {
2070
+ "oneOf": [
2071
+ {
2072
+ "$ref": "Perttool.PlanReviewResult.v1.schema.json#/$defs/projection"
2073
+ },
2074
+ {
2075
+ "type": "null"
2076
+ }
2077
+ ]
2078
+ },
2079
+ "plan_basis": {
2080
+ "type": "object",
2081
+ "required": [
2082
+ "status",
2083
+ "before_digest",
2084
+ "after_digest"
2085
+ ],
2086
+ "properties": {
2087
+ "status": {
2088
+ "enum": [
2089
+ "unchanged",
2090
+ "changed"
2091
+ ]
2092
+ },
2093
+ "before_digest": {
2094
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
2095
+ },
2096
+ "after_digest": {
2097
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
2098
+ }
2099
+ },
2100
+ "additionalProperties": false
2101
+ },
2102
+ "plan_review_authority": {
2103
+ "oneOf": [
2104
+ {
2105
+ "$ref": "#/$defs/authority"
2106
+ },
2107
+ {
2108
+ "type": "null"
2109
+ }
2110
+ ]
2111
+ },
2112
+ "composed_mutation": {
2113
+ "oneOf": [
2114
+ {
2115
+ "type": "object",
2116
+ "required": [
2117
+ "ok",
2118
+ "changed",
2119
+ "original_digest",
2120
+ "updated_digest",
2121
+ "updated_text",
2122
+ "edits",
2123
+ "diagnostics",
2124
+ "diagnostics_truncated"
2125
+ ],
2126
+ "properties": {
2127
+ "ok": {
2128
+ "type": "boolean"
2129
+ },
2130
+ "changed": {
2131
+ "type": "boolean"
2132
+ },
2133
+ "original_digest": {
2134
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
2135
+ },
2136
+ "updated_digest": {
2137
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
2138
+ },
2139
+ "updated_text": {
2140
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
2141
+ },
2142
+ "edits": {
2143
+ "type": "array",
2144
+ "items": {
2145
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/edit"
2146
+ }
2147
+ },
2148
+ "diagnostics": {
2149
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
2150
+ },
2151
+ "diagnostics_truncated": {
2152
+ "type": "boolean"
2153
+ }
2154
+ },
2155
+ "additionalProperties": false
2156
+ },
2157
+ {
2158
+ "type": "null"
2159
+ }
2160
+ ]
2161
+ },
2162
+ "candidate": {
2163
+ "type": "object",
2164
+ "required": [
2165
+ "source_digest",
2166
+ "candidate_digest",
2167
+ "text",
2168
+ "changed"
2169
+ ],
2170
+ "properties": {
2171
+ "source_digest": {
2172
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/digest"
2173
+ },
2174
+ "candidate_digest": {
2175
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableDigest"
2176
+ },
2177
+ "text": {
2178
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
2179
+ },
2180
+ "changed": {
2181
+ "type": "boolean"
2182
+ }
2183
+ },
2184
+ "additionalProperties": false
2185
+ },
2186
+ "edits": {
2187
+ "type": "array",
2188
+ "items": {
2189
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/edit"
2190
+ }
2191
+ },
2192
+ "diff": {
2193
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/nullableString"
2194
+ },
2195
+ "write": {
2196
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/write"
2197
+ },
2198
+ "diagnostics": {
2199
+ "$ref": "Perttool.Common.v1.schema.json#/$defs/diagnostics"
2200
+ }
2201
+ },
2202
+ "additionalProperties": false
2203
+ }