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

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 (53) hide show
  1. package/README.md +56 -2
  2. package/docs/architecture.md +64 -5
  3. package/docs/contracts.md +45 -22
  4. package/docs/release-notes/0.1.0-alpha.38.md +31 -0
  5. package/docs/release-notes/0.1.0-alpha.39.md +38 -0
  6. package/docs/release-notes/0.1.0-alpha.40.md +27 -0
  7. package/docs/release-notes/0.1.0-alpha.41.md +49 -0
  8. package/docs/release-notes/0.1.0-alpha.42.md +44 -0
  9. package/docs/release-notes/0.1.0-alpha.43.md +40 -0
  10. package/docs/release-notes/0.1.0-alpha.44.md +44 -0
  11. package/docs/upgrade.md +197 -17
  12. package/lib/agents/review-probe.d.ts +3 -1
  13. package/lib/agents/review-probe.js +8 -4
  14. package/lib/contracts/cli.d.ts +48 -4
  15. package/lib/contracts/events.d.ts +60 -5
  16. package/lib/contracts/events.js +16 -1
  17. package/lib/contracts/execution.d.ts +37 -0
  18. package/lib/contracts/execution.js +24 -3
  19. package/lib/contracts/policy.d.ts +19 -0
  20. package/lib/contracts/policy.js +30 -0
  21. package/lib/contracts/published.d.ts +29 -2
  22. package/lib/contracts/report.d.ts +8 -0
  23. package/lib/contracts/report.js +7 -1
  24. package/lib/contracts/result.d.ts +2 -0
  25. package/lib/contracts/result.js +6 -0
  26. package/lib/control/harness.d.ts +5 -0
  27. package/lib/engine/engine.d.ts +36 -3
  28. package/lib/engine/engine.js +140 -21
  29. package/lib/engine/joint-runner.d.ts +2 -0
  30. package/lib/engine/joint-runner.js +14 -4
  31. package/lib/engine/runner.d.ts +11 -0
  32. package/lib/engine/runner.js +82 -13
  33. package/lib/environment/isolation.d.ts +41 -1
  34. package/lib/environment/isolation.js +203 -7
  35. package/lib/environment/lifecycle.d.ts +46 -2
  36. package/lib/environment/lifecycle.js +81 -2
  37. package/lib/report/compute.js +19 -6
  38. package/lib/report/document.js +3 -3
  39. package/lib/storage/document.d.ts +2 -0
  40. package/lib/testing/store-contract.d.ts +8 -2
  41. package/lib/testing/store-contract.js +56 -1
  42. package/lib/verification/confirm.js +6 -4
  43. package/lib/verification/gates-at.js +3 -1
  44. package/lib/verification/gates.d.ts +36 -2
  45. package/lib/verification/gates.js +71 -11
  46. package/lib/verification/joint.d.ts +179 -1
  47. package/lib/verification/joint.js +23 -3
  48. package/package.json +1 -1
  49. package/schemas/execution-document.schema.json +4 -0
  50. package/schemas/execution-policy.schema.json +5 -0
  51. package/schemas/joint-verification.schema.json +4 -0
  52. package/schemas/run-event.schema.json +96 -0
  53. package/schemas/value-report.schema.json +20 -0
@@ -578,6 +578,10 @@
578
578
  "error": {
579
579
  "type": "string",
580
580
  "minLength": 1
581
+ },
582
+ "interrupted": {
583
+ "type": "boolean",
584
+ "const": true
581
585
  }
582
586
  },
583
587
  "required": [
@@ -2656,6 +2656,10 @@
2656
2656
  "error": {
2657
2657
  "type": "string",
2658
2658
  "maxLength": 4000
2659
+ },
2660
+ "interrupted": {
2661
+ "type": "boolean",
2662
+ "const": true
2659
2663
  }
2660
2664
  },
2661
2665
  "required": [
@@ -2674,6 +2678,98 @@
2674
2678
  ],
2675
2679
  "additionalProperties": false
2676
2680
  },
2681
+ {
2682
+ "type": "object",
2683
+ "properties": {
2684
+ "apiVersion": {
2685
+ "type": "string",
2686
+ "const": "devcontour-harness/v1alpha1"
2687
+ },
2688
+ "seq": {
2689
+ "type": "integer",
2690
+ "exclusiveMinimum": 0,
2691
+ "maximum": 9007199254740991
2692
+ },
2693
+ "at": {
2694
+ "type": "string",
2695
+ "format": "date-time",
2696
+ "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)))$"
2697
+ },
2698
+ "graphId": {
2699
+ "type": "string",
2700
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2701
+ },
2702
+ "workId": {
2703
+ "type": "string",
2704
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2705
+ },
2706
+ "runId": {
2707
+ "type": "string",
2708
+ "minLength": 1,
2709
+ "maxLength": 200
2710
+ },
2711
+ "attempt": {
2712
+ "type": "integer",
2713
+ "exclusiveMinimum": 0,
2714
+ "maximum": 9007199254740991
2715
+ },
2716
+ "type": {
2717
+ "type": "string",
2718
+ "const": "joint.budget-reset"
2719
+ },
2720
+ "payload": {
2721
+ "type": "object",
2722
+ "properties": {
2723
+ "resetId": {
2724
+ "type": "string",
2725
+ "minLength": 1,
2726
+ "maxLength": 200
2727
+ },
2728
+ "workIds": {
2729
+ "maxItems": 500,
2730
+ "type": "array",
2731
+ "items": {
2732
+ "type": "string",
2733
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2734
+ }
2735
+ },
2736
+ "by": {
2737
+ "type": "string",
2738
+ "enum": [
2739
+ "operator",
2740
+ "host"
2741
+ ]
2742
+ },
2743
+ "settled": {
2744
+ "type": "integer",
2745
+ "minimum": 0,
2746
+ "maximum": 9007199254740991
2747
+ },
2748
+ "reasonLength": {
2749
+ "type": "integer",
2750
+ "minimum": 0,
2751
+ "maximum": 9007199254740991
2752
+ }
2753
+ },
2754
+ "required": [
2755
+ "resetId",
2756
+ "workIds",
2757
+ "by",
2758
+ "settled",
2759
+ "reasonLength"
2760
+ ],
2761
+ "additionalProperties": false
2762
+ }
2763
+ },
2764
+ "required": [
2765
+ "apiVersion",
2766
+ "seq",
2767
+ "at",
2768
+ "type",
2769
+ "payload"
2770
+ ],
2771
+ "additionalProperties": false
2772
+ },
2677
2773
  {
2678
2774
  "type": "object",
2679
2775
  "properties": {
@@ -1065,6 +1065,26 @@
1065
1065
  ],
1066
1066
  "additionalProperties": false
1067
1067
  },
1068
+ "jointResets": {
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "operator": {
1072
+ "type": "integer",
1073
+ "minimum": 0,
1074
+ "maximum": 9007199254740991
1075
+ },
1076
+ "host": {
1077
+ "type": "integer",
1078
+ "minimum": 0,
1079
+ "maximum": 9007199254740991
1080
+ }
1081
+ },
1082
+ "required": [
1083
+ "operator",
1084
+ "host"
1085
+ ],
1086
+ "additionalProperties": false
1087
+ },
1068
1088
  "baseMovesBound": {
1069
1089
  "type": "string",
1070
1090
  "const": "lower"