devcontour-harness 0.1.0-alpha.27 → 0.1.0-alpha.28
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.
- package/README.md +8 -2
- package/docs/compatibility.md +1 -0
- package/docs/contracts.md +33 -0
- package/docs/release-notes/0.1.0-alpha.28.md +37 -0
- package/docs/upgrade.md +12 -0
- package/lib/contracts/cli.d.ts +25 -21
- package/lib/contracts/diagnosis.d.ts +1 -1
- package/lib/contracts/events.d.ts +6 -6
- package/lib/contracts/execution.d.ts +268 -16
- package/lib/contracts/execution.js +3 -1
- package/lib/contracts/policy.d.ts +7 -5
- package/lib/contracts/policy.js +19 -2
- package/lib/contracts/profiles.d.ts +2 -0
- package/lib/contracts/published.d.ts +218 -20
- package/lib/contracts/result.d.ts +268 -12
- package/lib/contracts/result.js +66 -0
- package/lib/control/harness.d.ts +52 -7
- package/lib/control/recovery.d.ts +1 -1
- package/lib/engine/engine.d.ts +117 -12
- package/lib/engine/joint-runner.d.ts +96 -6
- package/lib/engine/joint-runner.js +13 -0
- package/lib/profiles/resolve.d.ts +2 -0
- package/lib/storage/document.d.ts +132 -12
- package/lib/verification/gate-artifacts.d.ts +34 -0
- package/lib/verification/gate-artifacts.js +303 -0
- package/lib/verification/gates.js +15 -0
- package/lib/verification/joint.d.ts +48 -3
- package/package.json +1 -1
- package/schemas/execution-document.schema.json +372 -0
- package/schemas/execution-policy.schema.json +22 -0
- package/schemas/joint-verification.schema.json +279 -0
|
@@ -136,6 +136,99 @@
|
|
|
136
136
|
"additionalProperties": false
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
+
"artifactFiles": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"dir": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"minLength": 1
|
|
145
|
+
},
|
|
146
|
+
"files": {
|
|
147
|
+
"maxItems": 64,
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"path": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1,
|
|
155
|
+
"maxLength": 1000
|
|
156
|
+
},
|
|
157
|
+
"sha256": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
160
|
+
},
|
|
161
|
+
"bytes": {
|
|
162
|
+
"type": "integer",
|
|
163
|
+
"minimum": 0,
|
|
164
|
+
"maximum": 9007199254740991
|
|
165
|
+
},
|
|
166
|
+
"redacted": {
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"const": true
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"required": [
|
|
172
|
+
"path",
|
|
173
|
+
"sha256",
|
|
174
|
+
"bytes"
|
|
175
|
+
],
|
|
176
|
+
"additionalProperties": false
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"skipped": {
|
|
180
|
+
"maxItems": 100,
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"path": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1,
|
|
188
|
+
"maxLength": 1000
|
|
189
|
+
},
|
|
190
|
+
"reason": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"enum": [
|
|
193
|
+
"missing",
|
|
194
|
+
"symlink",
|
|
195
|
+
"outside",
|
|
196
|
+
"not-regular",
|
|
197
|
+
"hardlink",
|
|
198
|
+
"secret",
|
|
199
|
+
"extension",
|
|
200
|
+
"file-limit",
|
|
201
|
+
"total-limit",
|
|
202
|
+
"count-limit",
|
|
203
|
+
"scan-limit",
|
|
204
|
+
"copy-failed"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"detail": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"maxLength": 500
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"path",
|
|
214
|
+
"reason"
|
|
215
|
+
],
|
|
216
|
+
"additionalProperties": false
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"skippedMore": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"exclusiveMinimum": 0,
|
|
222
|
+
"maximum": 9007199254740991
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": [
|
|
226
|
+
"dir",
|
|
227
|
+
"files",
|
|
228
|
+
"skipped"
|
|
229
|
+
],
|
|
230
|
+
"additionalProperties": false
|
|
231
|
+
},
|
|
139
232
|
"durationMs": {
|
|
140
233
|
"type": "number",
|
|
141
234
|
"minimum": 0
|
|
@@ -333,6 +426,99 @@
|
|
|
333
426
|
"additionalProperties": false
|
|
334
427
|
}
|
|
335
428
|
},
|
|
429
|
+
"artifactFiles": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"properties": {
|
|
432
|
+
"dir": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"minLength": 1
|
|
435
|
+
},
|
|
436
|
+
"files": {
|
|
437
|
+
"maxItems": 64,
|
|
438
|
+
"type": "array",
|
|
439
|
+
"items": {
|
|
440
|
+
"type": "object",
|
|
441
|
+
"properties": {
|
|
442
|
+
"path": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"minLength": 1,
|
|
445
|
+
"maxLength": 1000
|
|
446
|
+
},
|
|
447
|
+
"sha256": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
450
|
+
},
|
|
451
|
+
"bytes": {
|
|
452
|
+
"type": "integer",
|
|
453
|
+
"minimum": 0,
|
|
454
|
+
"maximum": 9007199254740991
|
|
455
|
+
},
|
|
456
|
+
"redacted": {
|
|
457
|
+
"type": "boolean",
|
|
458
|
+
"const": true
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"required": [
|
|
462
|
+
"path",
|
|
463
|
+
"sha256",
|
|
464
|
+
"bytes"
|
|
465
|
+
],
|
|
466
|
+
"additionalProperties": false
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"skipped": {
|
|
470
|
+
"maxItems": 100,
|
|
471
|
+
"type": "array",
|
|
472
|
+
"items": {
|
|
473
|
+
"type": "object",
|
|
474
|
+
"properties": {
|
|
475
|
+
"path": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"minLength": 1,
|
|
478
|
+
"maxLength": 1000
|
|
479
|
+
},
|
|
480
|
+
"reason": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"enum": [
|
|
483
|
+
"missing",
|
|
484
|
+
"symlink",
|
|
485
|
+
"outside",
|
|
486
|
+
"not-regular",
|
|
487
|
+
"hardlink",
|
|
488
|
+
"secret",
|
|
489
|
+
"extension",
|
|
490
|
+
"file-limit",
|
|
491
|
+
"total-limit",
|
|
492
|
+
"count-limit",
|
|
493
|
+
"scan-limit",
|
|
494
|
+
"copy-failed"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"detail": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"maxLength": 500
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"required": [
|
|
503
|
+
"path",
|
|
504
|
+
"reason"
|
|
505
|
+
],
|
|
506
|
+
"additionalProperties": false
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"skippedMore": {
|
|
510
|
+
"type": "integer",
|
|
511
|
+
"exclusiveMinimum": 0,
|
|
512
|
+
"maximum": 9007199254740991
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": [
|
|
516
|
+
"dir",
|
|
517
|
+
"files",
|
|
518
|
+
"skipped"
|
|
519
|
+
],
|
|
520
|
+
"additionalProperties": false
|
|
521
|
+
},
|
|
336
522
|
"durationMs": {
|
|
337
523
|
"type": "number",
|
|
338
524
|
"minimum": 0
|
|
@@ -541,6 +727,99 @@
|
|
|
541
727
|
"additionalProperties": false
|
|
542
728
|
}
|
|
543
729
|
},
|
|
730
|
+
"artifactFiles": {
|
|
731
|
+
"type": "object",
|
|
732
|
+
"properties": {
|
|
733
|
+
"dir": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"minLength": 1
|
|
736
|
+
},
|
|
737
|
+
"files": {
|
|
738
|
+
"maxItems": 64,
|
|
739
|
+
"type": "array",
|
|
740
|
+
"items": {
|
|
741
|
+
"type": "object",
|
|
742
|
+
"properties": {
|
|
743
|
+
"path": {
|
|
744
|
+
"type": "string",
|
|
745
|
+
"minLength": 1,
|
|
746
|
+
"maxLength": 1000
|
|
747
|
+
},
|
|
748
|
+
"sha256": {
|
|
749
|
+
"type": "string",
|
|
750
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
751
|
+
},
|
|
752
|
+
"bytes": {
|
|
753
|
+
"type": "integer",
|
|
754
|
+
"minimum": 0,
|
|
755
|
+
"maximum": 9007199254740991
|
|
756
|
+
},
|
|
757
|
+
"redacted": {
|
|
758
|
+
"type": "boolean",
|
|
759
|
+
"const": true
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"required": [
|
|
763
|
+
"path",
|
|
764
|
+
"sha256",
|
|
765
|
+
"bytes"
|
|
766
|
+
],
|
|
767
|
+
"additionalProperties": false
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"skipped": {
|
|
771
|
+
"maxItems": 100,
|
|
772
|
+
"type": "array",
|
|
773
|
+
"items": {
|
|
774
|
+
"type": "object",
|
|
775
|
+
"properties": {
|
|
776
|
+
"path": {
|
|
777
|
+
"type": "string",
|
|
778
|
+
"minLength": 1,
|
|
779
|
+
"maxLength": 1000
|
|
780
|
+
},
|
|
781
|
+
"reason": {
|
|
782
|
+
"type": "string",
|
|
783
|
+
"enum": [
|
|
784
|
+
"missing",
|
|
785
|
+
"symlink",
|
|
786
|
+
"outside",
|
|
787
|
+
"not-regular",
|
|
788
|
+
"hardlink",
|
|
789
|
+
"secret",
|
|
790
|
+
"extension",
|
|
791
|
+
"file-limit",
|
|
792
|
+
"total-limit",
|
|
793
|
+
"count-limit",
|
|
794
|
+
"scan-limit",
|
|
795
|
+
"copy-failed"
|
|
796
|
+
]
|
|
797
|
+
},
|
|
798
|
+
"detail": {
|
|
799
|
+
"type": "string",
|
|
800
|
+
"maxLength": 500
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"required": [
|
|
804
|
+
"path",
|
|
805
|
+
"reason"
|
|
806
|
+
],
|
|
807
|
+
"additionalProperties": false
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"skippedMore": {
|
|
811
|
+
"type": "integer",
|
|
812
|
+
"exclusiveMinimum": 0,
|
|
813
|
+
"maximum": 9007199254740991
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
"required": [
|
|
817
|
+
"dir",
|
|
818
|
+
"files",
|
|
819
|
+
"skipped"
|
|
820
|
+
],
|
|
821
|
+
"additionalProperties": false
|
|
822
|
+
},
|
|
544
823
|
"durationMs": {
|
|
545
824
|
"type": "number",
|
|
546
825
|
"minimum": 0
|