devcontour-harness 0.1.0-alpha.26 → 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.
Files changed (69) hide show
  1. package/README.md +15 -2
  2. package/docs/architecture.md +59 -0
  3. package/docs/compatibility.md +25 -12
  4. package/docs/connectors.md +5 -2
  5. package/docs/contracts.md +80 -25
  6. package/docs/release-notes/0.1.0-alpha.27.md +36 -0
  7. package/docs/release-notes/0.1.0-alpha.28.md +37 -0
  8. package/docs/review-protocol.md +10 -4
  9. package/docs/toolchains.md +83 -0
  10. package/docs/upgrade.md +22 -0
  11. package/lib/cli.js +13 -0
  12. package/lib/contracts/cli.d.ts +147 -19
  13. package/lib/contracts/cli.js +66 -0
  14. package/lib/contracts/diagnosis.d.ts +1 -1
  15. package/lib/contracts/events.d.ts +6 -6
  16. package/lib/contracts/execution.d.ts +268 -16
  17. package/lib/contracts/execution.js +3 -1
  18. package/lib/contracts/policy.d.ts +37 -5
  19. package/lib/contracts/policy.js +42 -2
  20. package/lib/contracts/profiles.d.ts +2 -0
  21. package/lib/contracts/published.d.ts +226 -20
  22. package/lib/contracts/result.d.ts +268 -12
  23. package/lib/contracts/result.js +66 -0
  24. package/lib/control/harness.d.ts +64 -7
  25. package/lib/control/harness.js +4 -0
  26. package/lib/control/recovery.d.ts +1 -1
  27. package/lib/control/review.js +6 -1
  28. package/lib/engine/engine.d.ts +117 -12
  29. package/lib/engine/joint-runner.d.ts +96 -6
  30. package/lib/engine/joint-runner.js +47 -1
  31. package/lib/engine/runner.d.ts +29 -0
  32. package/lib/engine/runner.js +200 -2
  33. package/lib/engine/worktree-cleanup.d.ts +131 -0
  34. package/lib/engine/worktree-cleanup.js +520 -0
  35. package/lib/environment/isolation.d.ts +1 -0
  36. package/lib/environment/isolation.js +2 -1
  37. package/lib/environment/os-tools.d.ts +4 -2
  38. package/lib/environment/os-tools.js +4 -2
  39. package/lib/environment/process.d.ts +5 -0
  40. package/lib/environment/process.js +40 -17
  41. package/lib/environment/resources.d.ts +9 -0
  42. package/lib/environment/resources.js +24 -0
  43. package/lib/index.d.ts +1 -0
  44. package/lib/index.js +1 -0
  45. package/lib/integrations/connector/commands.d.ts +2 -1
  46. package/lib/integrations/connector/commands.js +10 -2
  47. package/lib/integrations/connector/store.d.ts +1 -1
  48. package/lib/integrations/connector/store.js +11 -6
  49. package/lib/profiles/resolve.d.ts +8 -0
  50. package/lib/storage/document.d.ts +132 -12
  51. package/lib/toolchains/inspect.d.ts +1 -1
  52. package/lib/toolchains/inspect.js +29 -1
  53. package/lib/toolchains/probe.d.ts +16 -0
  54. package/lib/toolchains/probe.js +20 -0
  55. package/lib/verification/confirm.d.ts +3 -1
  56. package/lib/verification/confirm.js +16 -2
  57. package/lib/verification/dependencies.d.ts +3 -0
  58. package/lib/verification/dependencies.js +11 -0
  59. package/lib/verification/dependency-store.d.ts +117 -0
  60. package/lib/verification/dependency-store.js +811 -0
  61. package/lib/verification/gate-artifacts.d.ts +34 -0
  62. package/lib/verification/gate-artifacts.js +303 -0
  63. package/lib/verification/gates-at.js +18 -0
  64. package/lib/verification/gates.js +15 -0
  65. package/lib/verification/joint.d.ts +48 -3
  66. package/package.json +1 -1
  67. package/schemas/execution-document.schema.json +372 -0
  68. package/schemas/execution-policy.schema.json +56 -0
  69. 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