prizmkit 1.1.165 → 1.1.167

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.
@@ -1,34 +1,25 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://prizmkit.dev/schemas/deploy-record.schema.json",
4
- "title": "PrizmKit Sole Local Deployment Record",
5
- "description": "The complete non-sensitive schema for .prizmkit/deploy/deploy.json. Secret values and raw command or log output are prohibited.",
4
+ "title": "PrizmKit Per-Profile Deployment Record",
5
+ "description": "Complete non-sensitive schema v2 for one .prizmkit/deploy/profiles/<profile-id>.json record. Secret values and raw command/log output are prohibited.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": [
9
9
  "schema_version",
10
- "project",
11
- "profiles",
10
+ "profile",
12
11
  "secret_references",
13
12
  "current",
14
13
  "latest_result",
15
14
  "history",
16
- "recovery",
17
- "legacy_migration"
15
+ "recovery"
18
16
  ],
19
17
  "properties": {
20
18
  "schema_version": {
21
- "const": 1
19
+ "const": 2
22
20
  },
23
- "project": {
24
- "$ref": "#/$defs/project"
25
- },
26
- "profiles": {
27
- "type": "array",
28
- "maxItems": 20,
29
- "items": {
30
- "$ref": "#/$defs/profile"
31
- }
21
+ "profile": {
22
+ "$ref": "#/$defs/profile"
32
23
  },
33
24
  "secret_references": {
34
25
  "type": "array",
@@ -46,80 +37,13 @@
46
37
  "type": "null"
47
38
  },
48
39
  {
49
- "allOf": [
50
- {
51
- "$ref": "#/$defs/terminalResult"
52
- },
53
- {
54
- "properties": {
55
- "status": {
56
- "const": "SUCCEEDED"
57
- }
58
- }
59
- }
60
- ]
61
- },
62
- {
63
- "allOf": [
64
- {
65
- "$ref": "#/$defs/terminalResult"
66
- },
67
- {
68
- "properties": {
69
- "status": {
70
- "const": "FAILED"
71
- }
72
- }
73
- }
74
- ]
75
- },
76
- {
77
- "allOf": [
78
- {
79
- "$ref": "#/$defs/terminalResult"
80
- },
81
- {
82
- "properties": {
83
- "status": {
84
- "const": "BLOCKED"
85
- }
86
- }
87
- }
88
- ]
89
- },
90
- {
91
- "allOf": [
92
- {
93
- "$ref": "#/$defs/terminalResult"
94
- },
95
- {
96
- "properties": {
97
- "status": {
98
- "const": "WAITING_USER"
99
- }
100
- }
101
- }
102
- ]
103
- },
104
- {
105
- "allOf": [
106
- {
107
- "$ref": "#/$defs/terminalResult"
108
- },
109
- {
110
- "properties": {
111
- "status": {
112
- "const": "CANCELLED"
113
- }
114
- }
115
- }
116
- ]
40
+ "$ref": "#/$defs/terminalResult"
117
41
  }
118
42
  ]
119
43
  },
120
44
  "history": {
121
45
  "type": "array",
122
- "maxItems": 50,
46
+ "maxItems": 20,
123
47
  "items": {
124
48
  "$ref": "#/$defs/historyEntry"
125
49
  }
@@ -133,9 +57,6 @@
133
57
  "$ref": "#/$defs/recovery"
134
58
  }
135
59
  ]
136
- },
137
- "legacy_migration": {
138
- "$ref": "#/$defs/legacyMigration"
139
60
  }
140
61
  },
141
62
  "allOf": [
@@ -153,7 +74,10 @@
153
74
  "status"
154
75
  ]
155
76
  }
156
- }
77
+ },
78
+ "required": [
79
+ "latest_result"
80
+ ]
157
81
  },
158
82
  "then": {
159
83
  "properties": {
@@ -172,7 +96,7 @@
172
96
  "status": {
173
97
  "enum": [
174
98
  "SUCCEEDED",
175
- "CANCELLED"
99
+ "FAILED"
176
100
  ]
177
101
  }
178
102
  },
@@ -180,7 +104,10 @@
180
104
  "status"
181
105
  ]
182
106
  }
183
- }
107
+ },
108
+ "required": [
109
+ "latest_result"
110
+ ]
184
111
  },
185
112
  "then": {
186
113
  "properties": {
@@ -189,122 +116,31 @@
189
116
  }
190
117
  }
191
118
  }
192
- }
193
- ],
194
- "$defs": {
195
- "operation": {
196
- "enum": [
197
- "deploy",
198
- "status",
199
- "health",
200
- "logs",
201
- "stop",
202
- "restart",
203
- "rollback",
204
- "history",
205
- "validate",
206
- "diagnose",
207
- "takeover",
208
- "resume",
209
- "cancel"
210
- ]
211
- },
212
- "projectRelativePath": {
213
- "type": "string",
214
- "minLength": 1,
215
- "maxLength": 512,
216
- "pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*//)(?!.*\/$)(?!\\.{1,2}(?:/|$))(?!.*(?:/)\\.{1,2}(?:/|$))[^\\u0000-\\u001f\\u007f-\\u009f\\ud800-\\udfff]+$"
217
- },
218
- "legacyDeployPath": {
219
- "allOf": [
220
- {
221
- "$ref": "#/$defs/projectRelativePath"
222
- },
223
- {
224
- "pattern": "^\\.prizmkit/deploy/.+"
225
- }
226
- ]
227
- },
228
- "evidence": {
229
- "type": "object",
230
- "additionalProperties": false,
231
- "required": [
232
- "origin",
233
- "observation",
234
- "method",
235
- "observed_at"
236
- ],
237
- "properties": {
238
- "origin": {
239
- "type": "string",
240
- "minLength": 1,
241
- "maxLength": 256
242
- },
243
- "observation": {
244
- "type": "string",
245
- "minLength": 1,
246
- "maxLength": 512
247
- },
248
- "method": {
249
- "enum": [
250
- "direct_read",
251
- "read_only_probe",
252
- "official_documentation",
253
- "user_supplied",
254
- "legacy_preserved"
255
- ]
256
- },
257
- "observed_at": {
258
- "type": [
259
- "string",
260
- "null"
261
- ],
262
- "format": "date-time"
263
- }
264
- }
265
119
  },
266
- "project": {
267
- "type": "object",
268
- "additionalProperties": false,
269
- "required": [
270
- "id",
271
- "root",
272
- "revision",
273
- "native_config_files",
274
- "evidence"
275
- ],
276
- "properties": {
277
- "id": {
278
- "type": "string",
279
- "minLength": 1,
280
- "maxLength": 128
281
- },
282
- "root": {
283
- "const": "."
284
- },
285
- "revision": {
286
- "type": [
287
- "string",
288
- "null"
289
- ],
290
- "maxLength": 256
291
- },
292
- "native_config_files": {
293
- "type": "array",
294
- "maxItems": 50,
295
- "uniqueItems": true,
296
- "items": {
297
- "$ref": "#/$defs/projectRelativePath"
120
+ {
121
+ "if": {
122
+ "properties": {
123
+ "latest_result": {
124
+ "type": "null"
298
125
  }
299
126
  },
300
- "evidence": {
301
- "type": "array",
302
- "maxItems": 50,
303
- "items": {
304
- "$ref": "#/$defs/evidence"
127
+ "required": [
128
+ "latest_result"
129
+ ]
130
+ },
131
+ "then": {
132
+ "properties": {
133
+ "recovery": {
134
+ "type": "null"
305
135
  }
306
136
  }
307
137
  }
138
+ }
139
+ ],
140
+ "$defs": {
141
+ "profileId": {
142
+ "type": "string",
143
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
308
144
  },
309
145
  "profile": {
310
146
  "type": "object",
@@ -313,15 +149,11 @@
313
149
  "id",
314
150
  "environment",
315
151
  "target_ref",
316
- "endpoint_ref",
317
- "actual_ports",
318
- "native_config_files",
319
- "evidence"
152
+ "target_fingerprint"
320
153
  ],
321
154
  "properties": {
322
155
  "id": {
323
- "type": "string",
324
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"
156
+ "$ref": "#/$defs/profileId"
325
157
  },
326
158
  "environment": {
327
159
  "type": "string",
@@ -333,37 +165,10 @@
333
165
  "minLength": 1,
334
166
  "maxLength": 256
335
167
  },
336
- "endpoint_ref": {
337
- "type": [
338
- "string",
339
- "null"
340
- ],
341
- "maxLength": 512
342
- },
343
- "actual_ports": {
344
- "type": "array",
345
- "maxItems": 32,
346
- "uniqueItems": true,
347
- "items": {
348
- "type": "integer",
349
- "minimum": 1,
350
- "maximum": 65535
351
- }
352
- },
353
- "native_config_files": {
354
- "type": "array",
355
- "maxItems": 50,
356
- "uniqueItems": true,
357
- "items": {
358
- "$ref": "#/$defs/projectRelativePath"
359
- }
360
- },
361
- "evidence": {
362
- "type": "array",
363
- "maxItems": 50,
364
- "items": {
365
- "$ref": "#/$defs/evidence"
366
- }
168
+ "target_fingerprint": {
169
+ "type": "string",
170
+ "minLength": 1,
171
+ "maxLength": 256
367
172
  }
368
173
  }
369
174
  },
@@ -399,106 +204,15 @@
399
204
  }
400
205
  }
401
206
  },
402
- "healthCheck": {
403
- "type": "object",
404
- "additionalProperties": false,
405
- "required": [
406
- "name",
407
- "kind",
408
- "target_ref",
409
- "expected",
410
- "required"
411
- ],
412
- "properties": {
413
- "name": {
414
- "type": "string",
415
- "minLength": 1,
416
- "maxLength": 128
417
- },
418
- "kind": {
419
- "enum": [
420
- "command",
421
- "service_state",
422
- "network",
423
- "application",
424
- "target_native"
425
- ]
426
- },
427
- "target_ref": {
428
- "type": "string",
429
- "minLength": 1,
430
- "maxLength": 512
431
- },
432
- "expected": {
433
- "type": "string",
434
- "minLength": 1,
435
- "maxLength": 256
436
- },
437
- "required": {
438
- "type": "boolean"
439
- }
440
- }
441
- },
442
- "rollbackReference": {
443
- "type": "object",
444
- "additionalProperties": false,
445
- "required": [
446
- "availability",
447
- "release_identity",
448
- "mechanism_ref",
449
- "verified_at"
450
- ],
451
- "properties": {
452
- "availability": {
453
- "enum": [
454
- "VERIFIED",
455
- "UNVERIFIED",
456
- "ABSENT",
457
- "UNKNOWN",
458
- "NOT_APPLICABLE"
459
- ]
460
- },
461
- "release_identity": {
462
- "type": [
463
- "string",
464
- "null"
465
- ],
466
- "maxLength": 256
467
- },
468
- "mechanism_ref": {
469
- "type": [
470
- "string",
471
- "null"
472
- ],
473
- "maxLength": 512
474
- },
475
- "verified_at": {
476
- "type": [
477
- "string",
478
- "null"
479
- ],
480
- "format": "date-time"
481
- }
482
- }
483
- },
484
207
  "currentState": {
485
208
  "type": "object",
486
209
  "additionalProperties": false,
487
210
  "required": [
488
- "profile_id",
489
211
  "release_identity",
490
212
  "live_state",
491
- "health_boundary",
492
- "rollback"
213
+ "rollback_releases"
493
214
  ],
494
215
  "properties": {
495
- "profile_id": {
496
- "type": [
497
- "string",
498
- "null"
499
- ],
500
- "maxLength": 64
501
- },
502
216
  "release_identity": {
503
217
  "type": [
504
218
  "string",
@@ -511,40 +225,37 @@
511
225
  "LIVE",
512
226
  "DEGRADED",
513
227
  "OFFLINE",
514
- "UNKNOWN",
515
- "NOT_APPLICABLE"
228
+ "UNKNOWN"
516
229
  ]
517
230
  },
518
- "health_boundary": {
231
+ "rollback_releases": {
519
232
  "type": "array",
520
- "maxItems": 32,
233
+ "maxItems": 10,
234
+ "uniqueItems": true,
521
235
  "items": {
522
- "$ref": "#/$defs/healthCheck"
236
+ "type": "string",
237
+ "minLength": 1,
238
+ "maxLength": 256
523
239
  }
524
- },
525
- "rollback": {
526
- "$ref": "#/$defs/rollbackReference"
527
240
  }
528
241
  }
529
242
  },
530
- "verificationLayer": {
243
+ "verificationObservation": {
531
244
  "type": "object",
532
245
  "additionalProperties": false,
533
246
  "required": [
534
- "layer",
535
- "status",
247
+ "name",
536
248
  "required",
249
+ "status",
537
250
  "evidence"
538
251
  ],
539
252
  "properties": {
540
- "layer": {
541
- "enum": [
542
- "command_or_platform",
543
- "runtime_or_release",
544
- "configured_health",
545
- "external_url",
546
- "startup_logs"
547
- ]
253
+ "name": {
254
+ "type": "string",
255
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
256
+ },
257
+ "required": {
258
+ "type": "boolean"
548
259
  },
549
260
  "status": {
550
261
  "enum": [
@@ -554,9 +265,6 @@
554
265
  "NOT_APPLICABLE"
555
266
  ]
556
267
  },
557
- "required": {
558
- "type": "boolean"
559
- },
560
268
  "evidence": {
561
269
  "type": "string",
562
270
  "minLength": 1,
@@ -570,170 +278,59 @@
570
278
  "required": [
571
279
  "status",
572
280
  "operation",
573
- "profile_id",
574
- "plan_id",
575
- "started_at",
576
- "finished_at",
281
+ "desired_release",
282
+ "live_release",
577
283
  "summary",
578
- "live_state",
579
- "release_identity",
580
- "rollback_availability",
284
+ "reason",
581
285
  "verification",
582
286
  "residual_resources",
583
- "record_update",
584
- "recovery_guidance",
585
- "next_operations"
287
+ "next_actions"
586
288
  ],
587
289
  "properties": {
588
290
  "status": {
589
291
  "enum": [
590
292
  "SUCCEEDED",
591
- "FAILED",
592
- "BLOCKED",
593
293
  "WAITING_USER",
594
- "CANCELLED"
294
+ "FAILED"
595
295
  ]
596
296
  },
597
297
  "operation": {
598
- "$ref": "#/$defs/operation"
599
- },
600
- "profile_id": {
601
- "type": [
602
- "string",
603
- "null"
604
- ],
605
- "maxLength": 64
606
- },
607
- "plan_id": {
608
- "type": [
609
- "string",
610
- "null"
611
- ],
612
- "maxLength": 128
298
+ "type": "string",
299
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
613
300
  },
614
- "started_at": {
301
+ "desired_release": {
615
302
  "type": [
616
303
  "string",
617
304
  "null"
618
305
  ],
619
- "format": "date-time"
306
+ "maxLength": 256
620
307
  },
621
- "finished_at": {
308
+ "live_release": {
622
309
  "type": [
623
310
  "string",
624
311
  "null"
625
312
  ],
626
- "format": "date-time"
313
+ "maxLength": 256
627
314
  },
628
315
  "summary": {
629
316
  "type": "string",
630
317
  "minLength": 1,
631
318
  "maxLength": 512
632
319
  },
633
- "live_state": {
634
- "enum": [
635
- "LIVE",
636
- "DEGRADED",
637
- "OFFLINE",
638
- "UNKNOWN",
639
- "NOT_APPLICABLE"
640
- ]
641
- },
642
- "release_identity": {
320
+ "reason": {
643
321
  "type": [
644
322
  "string",
645
323
  "null"
646
324
  ],
647
- "maxLength": 256
648
- },
649
- "rollback_availability": {
650
- "enum": [
651
- "VERIFIED",
652
- "UNVERIFIED",
653
- "ABSENT",
654
- "UNKNOWN",
655
- "NOT_APPLICABLE"
656
- ]
325
+ "maxLength": 128
657
326
  },
658
327
  "verification": {
659
328
  "type": "array",
660
- "minItems": 5,
661
- "maxItems": 5,
329
+ "minItems": 1,
330
+ "maxItems": 20,
662
331
  "items": {
663
- "$ref": "#/$defs/verificationLayer"
664
- },
665
- "allOf": [
666
- {
667
- "contains": {
668
- "properties": {
669
- "layer": {
670
- "const": "command_or_platform"
671
- }
672
- },
673
- "required": [
674
- "layer"
675
- ]
676
- },
677
- "minContains": 1,
678
- "maxContains": 1
679
- },
680
- {
681
- "contains": {
682
- "properties": {
683
- "layer": {
684
- "const": "runtime_or_release"
685
- }
686
- },
687
- "required": [
688
- "layer"
689
- ]
690
- },
691
- "minContains": 1,
692
- "maxContains": 1
693
- },
694
- {
695
- "contains": {
696
- "properties": {
697
- "layer": {
698
- "const": "configured_health"
699
- }
700
- },
701
- "required": [
702
- "layer"
703
- ]
704
- },
705
- "minContains": 1,
706
- "maxContains": 1
707
- },
708
- {
709
- "contains": {
710
- "properties": {
711
- "layer": {
712
- "const": "external_url"
713
- }
714
- },
715
- "required": [
716
- "layer"
717
- ]
718
- },
719
- "minContains": 1,
720
- "maxContains": 1
721
- },
722
- {
723
- "contains": {
724
- "properties": {
725
- "layer": {
726
- "const": "startup_logs"
727
- }
728
- },
729
- "required": [
730
- "layer"
731
- ]
732
- },
733
- "minContains": 1,
734
- "maxContains": 1
735
- }
736
- ]
332
+ "$ref": "#/$defs/verificationObservation"
333
+ }
737
334
  },
738
335
  "residual_resources": {
739
336
  "type": "array",
@@ -744,15 +341,7 @@
744
341
  "maxLength": 256
745
342
  }
746
343
  },
747
- "record_update": {
748
- "enum": [
749
- "UPDATED",
750
- "UNCHANGED",
751
- "FAILED",
752
- "NOT_ATTEMPTED"
753
- ]
754
- },
755
- "recovery_guidance": {
344
+ "next_actions": {
756
345
  "type": "array",
757
346
  "maxItems": 20,
758
347
  "items": {
@@ -760,13 +349,6 @@
760
349
  "minLength": 1,
761
350
  "maxLength": 512
762
351
  }
763
- },
764
- "next_operations": {
765
- "type": "array",
766
- "maxItems": 20,
767
- "items": {
768
- "$ref": "#/$defs/operation"
769
- }
770
352
  }
771
353
  },
772
354
  "allOf": [
@@ -814,44 +396,32 @@
814
396
  "type": "object",
815
397
  "additionalProperties": false,
816
398
  "required": [
817
- "operation_id",
818
- "timestamp",
819
399
  "operation",
820
400
  "status",
821
- "profile_id",
822
- "release_identity",
401
+ "desired_release",
402
+ "live_release",
823
403
  "summary"
824
404
  ],
825
405
  "properties": {
826
- "operation_id": {
827
- "type": "string",
828
- "minLength": 1,
829
- "maxLength": 128
830
- },
831
- "timestamp": {
832
- "type": "string",
833
- "format": "date-time"
834
- },
835
406
  "operation": {
836
- "$ref": "#/$defs/operation"
407
+ "type": "string",
408
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
837
409
  },
838
410
  "status": {
839
411
  "enum": [
840
412
  "SUCCEEDED",
841
- "FAILED",
842
- "BLOCKED",
843
413
  "WAITING_USER",
844
- "CANCELLED"
414
+ "FAILED"
845
415
  ]
846
416
  },
847
- "profile_id": {
417
+ "desired_release": {
848
418
  "type": [
849
419
  "string",
850
420
  "null"
851
421
  ],
852
- "maxLength": 64
422
+ "maxLength": 256
853
423
  },
854
- "release_identity": {
424
+ "live_release": {
855
425
  "type": [
856
426
  "string",
857
427
  "null"
@@ -865,111 +435,77 @@
865
435
  }
866
436
  }
867
437
  },
868
- "recovery": {
438
+ "evidence": {
869
439
  "type": "object",
870
440
  "additionalProperties": false,
871
441
  "required": [
872
- "plan_id",
873
- "immutable_plan_digest",
874
- "operation",
875
- "profile_id",
876
- "last_proven_step",
877
- "confirmations",
878
- "pending_checkpoint",
879
- "observations"
442
+ "origin",
443
+ "observation"
880
444
  ],
881
445
  "properties": {
882
- "plan_id": {
446
+ "origin": {
883
447
  "type": "string",
884
448
  "minLength": 1,
885
- "maxLength": 128
449
+ "maxLength": 256
886
450
  },
887
- "immutable_plan_digest": {
451
+ "observation": {
888
452
  "type": "string",
889
- "pattern": "^[a-f0-9]{64}$"
453
+ "minLength": 1,
454
+ "maxLength": 512
455
+ }
456
+ }
457
+ },
458
+ "pendingAction": {
459
+ "type": "object",
460
+ "additionalProperties": false,
461
+ "required": [
462
+ "action",
463
+ "expected_postcondition"
464
+ ],
465
+ "properties": {
466
+ "action": {
467
+ "type": "string",
468
+ "minLength": 1,
469
+ "maxLength": 512
890
470
  },
471
+ "expected_postcondition": {
472
+ "type": "string",
473
+ "minLength": 1,
474
+ "maxLength": 512
475
+ }
476
+ }
477
+ },
478
+ "recovery": {
479
+ "type": "object",
480
+ "additionalProperties": false,
481
+ "required": [
482
+ "operation",
483
+ "desired_release",
484
+ "last_proven_action",
485
+ "pending_action",
486
+ "observations"
487
+ ],
488
+ "properties": {
891
489
  "operation": {
892
- "$ref": "#/$defs/operation"
490
+ "type": "string",
491
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
893
492
  },
894
- "profile_id": {
493
+ "desired_release": {
895
494
  "type": [
896
495
  "string",
897
496
  "null"
898
497
  ],
899
- "maxLength": 64
498
+ "maxLength": 256
900
499
  },
901
- "last_proven_step": {
500
+ "last_proven_action": {
902
501
  "type": [
903
502
  "string",
904
503
  "null"
905
504
  ],
906
505
  "maxLength": 128
907
506
  },
908
- "confirmations": {
909
- "type": "array",
910
- "maxItems": 20,
911
- "items": {
912
- "type": "object",
913
- "additionalProperties": false,
914
- "required": [
915
- "kind",
916
- "plan_digest",
917
- "confirmed_at"
918
- ],
919
- "properties": {
920
- "kind": {
921
- "enum": [
922
- "COMPLETE_PLAN",
923
- "PROJECT_FILE_CHANGE",
924
- "PRIVILEGED_OR_GLOBAL_DEPENDENCY",
925
- "DESTRUCTIVE_OR_IRREVERSIBLE_MIGRATION",
926
- "SHARED_INFRASTRUCTURE",
927
- "PLAN_EXPANSION",
928
- "UNKNOWN_WRITE_REPLAY",
929
- "NO_RELIABLE_ROLLBACK"
930
- ]
931
- },
932
- "plan_digest": {
933
- "type": "string",
934
- "pattern": "^[a-f0-9]{64}$"
935
- },
936
- "confirmed_at": {
937
- "type": "string",
938
- "format": "date-time"
939
- }
940
- }
941
- }
942
- },
943
- "pending_checkpoint": {
944
- "type": "object",
945
- "additionalProperties": false,
946
- "required": [
947
- "kind",
948
- "action",
949
- "expected_postcondition"
950
- ],
951
- "properties": {
952
- "kind": {
953
- "enum": [
954
- "LOGIN",
955
- "MFA",
956
- "BROWSER_APPROVAL",
957
- "MANUAL_ACTION",
958
- "CONFIRMATION",
959
- "UNKNOWN_OUTCOME_INSPECTION"
960
- ]
961
- },
962
- "action": {
963
- "type": "string",
964
- "minLength": 1,
965
- "maxLength": 512
966
- },
967
- "expected_postcondition": {
968
- "type": "string",
969
- "minLength": 1,
970
- "maxLength": 512
971
- }
972
- }
507
+ "pending_action": {
508
+ "$ref": "#/$defs/pendingAction"
973
509
  },
974
510
  "observations": {
975
511
  "type": "array",
@@ -979,75 +515,6 @@
979
515
  }
980
516
  }
981
517
  }
982
- },
983
- "legacyMigration": {
984
- "type": "object",
985
- "additionalProperties": false,
986
- "required": [
987
- "scanned",
988
- "sources",
989
- "migrated_facts",
990
- "conflicts",
991
- "preserved_paths"
992
- ],
993
- "properties": {
994
- "scanned": {
995
- "type": "boolean"
996
- },
997
- "sources": {
998
- "type": "array",
999
- "maxItems": 200,
1000
- "items": {
1001
- "type": "object",
1002
- "additionalProperties": false,
1003
- "required": [
1004
- "path",
1005
- "status"
1006
- ],
1007
- "properties": {
1008
- "path": {
1009
- "$ref": "#/$defs/legacyDeployPath"
1010
- },
1011
- "status": {
1012
- "enum": [
1013
- "VALIDATED",
1014
- "MIGRATED_NON_SECRET",
1015
- "PRESERVED_UNCERTAIN",
1016
- "PRESERVED_SECRET",
1017
- "INVALID",
1018
- "NOT_FOUND"
1019
- ]
1020
- }
1021
- }
1022
- }
1023
- },
1024
- "migrated_facts": {
1025
- "type": "array",
1026
- "maxItems": 100,
1027
- "items": {
1028
- "type": "string",
1029
- "minLength": 1,
1030
- "maxLength": 256
1031
- }
1032
- },
1033
- "conflicts": {
1034
- "type": "array",
1035
- "maxItems": 100,
1036
- "items": {
1037
- "type": "string",
1038
- "minLength": 1,
1039
- "maxLength": 512
1040
- }
1041
- },
1042
- "preserved_paths": {
1043
- "type": "array",
1044
- "maxItems": 200,
1045
- "uniqueItems": true,
1046
- "items": {
1047
- "$ref": "#/$defs/legacyDeployPath"
1048
- }
1049
- }
1050
- }
1051
518
  }
1052
519
  }
1053
520
  }