devcontour-harness 0.1.0-alpha.30 → 0.1.0-alpha.34
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 +43 -16
- package/docs/architecture.md +12 -0
- package/docs/compatibility.md +21 -18
- package/docs/contracts.md +270 -12
- package/docs/release-notes/0.1.0-alpha.31.md +44 -0
- package/docs/release-notes/0.1.0-alpha.32.md +33 -0
- package/docs/release-notes/0.1.0-alpha.33.md +29 -0
- package/docs/release-notes/0.1.0-alpha.34.md +32 -0
- package/docs/upgrade.md +181 -0
- package/lib/agents/cli-adapter.js +1 -0
- package/lib/cli.js +25 -3
- package/lib/contracts/cli.d.ts +1381 -18
- package/lib/contracts/cli.js +43 -1
- package/lib/contracts/diagnosis.d.ts +2 -1
- package/lib/contracts/diagnosis.js +1 -0
- package/lib/contracts/events.d.ts +760 -5
- package/lib/contracts/events.js +109 -3
- package/lib/contracts/execution.d.ts +112 -1
- package/lib/contracts/execution.js +38 -0
- package/lib/contracts/failure.d.ts +6 -1
- package/lib/contracts/failure.js +5 -1
- package/lib/contracts/handoff.d.ts +702 -0
- package/lib/contracts/handoff.js +305 -0
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/policy.d.ts +27 -1
- package/lib/contracts/policy.js +38 -2
- package/lib/contracts/published.d.ts +1016 -3
- package/lib/contracts/published.js +2 -0
- package/lib/contracts/repair-policy.js +5 -0
- package/lib/contracts/report.d.ts +118 -2
- package/lib/contracts/report.js +61 -3
- package/lib/control/base-move.d.ts +7 -2
- package/lib/control/base-move.js +14 -1
- package/lib/control/harness.d.ts +81 -19
- package/lib/control/harness.js +8 -93
- package/lib/control/recovery.d.ts +1 -1
- package/lib/control/status.d.ts +235 -0
- package/lib/control/status.js +101 -0
- package/lib/engine/budget.d.ts +78 -0
- package/lib/engine/budget.js +13 -2
- package/lib/engine/classify.d.ts +14 -1
- package/lib/engine/classify.js +34 -0
- package/lib/engine/engine.d.ts +31 -11
- package/lib/engine/engine.js +99 -5
- package/lib/engine/joint-runner.d.ts +6 -0
- package/lib/engine/joint-runner.js +20 -4
- package/lib/engine/property-recovery.js +1 -0
- package/lib/engine/reuse.js +1 -0
- package/lib/engine/runner.d.ts +8 -0
- package/lib/engine/runner.js +120 -16
- package/lib/engine/stall-sweep.d.ts +137 -0
- package/lib/engine/stall-sweep.js +393 -0
- package/lib/environment/activity.d.ts +34 -0
- package/lib/environment/activity.js +55 -0
- package/lib/environment/isolation.d.ts +67 -3
- package/lib/environment/isolation.js +148 -5
- package/lib/environment/lifecycle.js +2 -1
- package/lib/environment/process.d.ts +7 -1
- package/lib/environment/process.js +14 -0
- package/lib/environment/redaction.d.ts +2 -0
- package/lib/environment/redaction.js +19 -0
- package/lib/explain/state.d.ts +26 -5
- package/lib/explain/state.js +41 -0
- package/lib/handoff/index.d.ts +2 -0
- package/lib/handoff/index.js +3 -0
- package/lib/handoff/markdown.d.ts +6 -0
- package/lib/handoff/markdown.js +155 -0
- package/lib/handoff/pack.d.ts +79 -0
- package/lib/handoff/pack.js +531 -0
- package/lib/index.d.ts +19 -3
- package/lib/index.js +18 -1
- package/lib/integrations/connector/redact.d.ts +2 -13
- package/lib/integrations/connector/redact.js +2 -21
- package/lib/integrations/connector/testing.js +1 -1
- package/lib/projections/attempt.d.ts +28 -0
- package/lib/projections/attempt.js +14 -0
- package/lib/projections/next.d.ts +3 -1
- package/lib/projections/next.js +4 -1
- package/lib/projections/stop.d.ts +22 -1
- package/lib/projections/stop.js +73 -15
- package/lib/report/compute.js +229 -21
- package/lib/report/document.js +31 -7
- package/lib/storage/document.d.ts +28 -6
- package/lib/storage/sqlite.d.ts +2 -0
- package/lib/storage/sqlite.js +9 -1
- package/lib/verification/gates-at.d.ts +11 -1
- package/lib/verification/gates-at.js +28 -2
- package/lib/verification/gates.d.ts +3 -1
- package/lib/verification/gates.js +25 -4
- package/package.json +1 -1
- package/schemas/execution-document.schema.json +68 -0
- package/schemas/execution-policy.schema.json +32 -0
- package/schemas/handoff-pack.schema.json +1430 -0
- package/schemas/run-event.schema.json +679 -0
- package/schemas/stop-diagnosis.schema.json +1 -0
- package/schemas/value-report.schema.json +236 -3
|
@@ -938,6 +938,160 @@
|
|
|
938
938
|
"type": "null"
|
|
939
939
|
}
|
|
940
940
|
]
|
|
941
|
+
},
|
|
942
|
+
"recorded": {
|
|
943
|
+
"anyOf": [
|
|
944
|
+
{
|
|
945
|
+
"type": "object",
|
|
946
|
+
"properties": {
|
|
947
|
+
"from": {
|
|
948
|
+
"type": "string",
|
|
949
|
+
"format": "date-time",
|
|
950
|
+
"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)))$"
|
|
951
|
+
},
|
|
952
|
+
"bound": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"enum": [
|
|
955
|
+
"exact",
|
|
956
|
+
"lower"
|
|
957
|
+
]
|
|
958
|
+
},
|
|
959
|
+
"retries": {
|
|
960
|
+
"type": "object",
|
|
961
|
+
"properties": {
|
|
962
|
+
"operator": {
|
|
963
|
+
"type": "integer",
|
|
964
|
+
"minimum": 0,
|
|
965
|
+
"maximum": 9007199254740991
|
|
966
|
+
},
|
|
967
|
+
"recovery": {
|
|
968
|
+
"type": "integer",
|
|
969
|
+
"minimum": 0,
|
|
970
|
+
"maximum": 9007199254740991
|
|
971
|
+
},
|
|
972
|
+
"host": {
|
|
973
|
+
"type": "integer",
|
|
974
|
+
"minimum": 0,
|
|
975
|
+
"maximum": 9007199254740991
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
"required": [
|
|
979
|
+
"operator",
|
|
980
|
+
"recovery",
|
|
981
|
+
"host"
|
|
982
|
+
],
|
|
983
|
+
"additionalProperties": false
|
|
984
|
+
},
|
|
985
|
+
"resets": {
|
|
986
|
+
"type": "object",
|
|
987
|
+
"properties": {
|
|
988
|
+
"operator": {
|
|
989
|
+
"type": "integer",
|
|
990
|
+
"minimum": 0,
|
|
991
|
+
"maximum": 9007199254740991
|
|
992
|
+
},
|
|
993
|
+
"recovery": {
|
|
994
|
+
"type": "integer",
|
|
995
|
+
"minimum": 0,
|
|
996
|
+
"maximum": 9007199254740991
|
|
997
|
+
},
|
|
998
|
+
"host": {
|
|
999
|
+
"type": "integer",
|
|
1000
|
+
"minimum": 0,
|
|
1001
|
+
"maximum": 9007199254740991
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"required": [
|
|
1005
|
+
"operator",
|
|
1006
|
+
"recovery",
|
|
1007
|
+
"host"
|
|
1008
|
+
],
|
|
1009
|
+
"additionalProperties": false
|
|
1010
|
+
},
|
|
1011
|
+
"cancellations": {
|
|
1012
|
+
"type": "object",
|
|
1013
|
+
"properties": {
|
|
1014
|
+
"operator": {
|
|
1015
|
+
"type": "integer",
|
|
1016
|
+
"minimum": 0,
|
|
1017
|
+
"maximum": 9007199254740991
|
|
1018
|
+
},
|
|
1019
|
+
"host": {
|
|
1020
|
+
"type": "integer",
|
|
1021
|
+
"minimum": 0,
|
|
1022
|
+
"maximum": 9007199254740991
|
|
1023
|
+
},
|
|
1024
|
+
"graph": {
|
|
1025
|
+
"type": "integer",
|
|
1026
|
+
"minimum": 0,
|
|
1027
|
+
"maximum": 9007199254740991
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"required": [
|
|
1031
|
+
"operator",
|
|
1032
|
+
"host",
|
|
1033
|
+
"graph"
|
|
1034
|
+
],
|
|
1035
|
+
"additionalProperties": false
|
|
1036
|
+
},
|
|
1037
|
+
"cancelledWithoutAttempt": {
|
|
1038
|
+
"type": "integer",
|
|
1039
|
+
"minimum": 0,
|
|
1040
|
+
"maximum": 9007199254740991
|
|
1041
|
+
},
|
|
1042
|
+
"baseMoves": {
|
|
1043
|
+
"type": "object",
|
|
1044
|
+
"properties": {
|
|
1045
|
+
"operator": {
|
|
1046
|
+
"type": "integer",
|
|
1047
|
+
"minimum": 0,
|
|
1048
|
+
"maximum": 9007199254740991
|
|
1049
|
+
},
|
|
1050
|
+
"controller": {
|
|
1051
|
+
"type": "integer",
|
|
1052
|
+
"minimum": 0,
|
|
1053
|
+
"maximum": 9007199254740991
|
|
1054
|
+
},
|
|
1055
|
+
"host": {
|
|
1056
|
+
"type": "integer",
|
|
1057
|
+
"minimum": 0,
|
|
1058
|
+
"maximum": 9007199254740991
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"required": [
|
|
1062
|
+
"operator",
|
|
1063
|
+
"controller",
|
|
1064
|
+
"host"
|
|
1065
|
+
],
|
|
1066
|
+
"additionalProperties": false
|
|
1067
|
+
},
|
|
1068
|
+
"baseMovesBound": {
|
|
1069
|
+
"type": "string",
|
|
1070
|
+
"const": "lower"
|
|
1071
|
+
},
|
|
1072
|
+
"gaps": {
|
|
1073
|
+
"type": "integer",
|
|
1074
|
+
"minimum": 0,
|
|
1075
|
+
"maximum": 9007199254740991
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
"required": [
|
|
1079
|
+
"from",
|
|
1080
|
+
"bound",
|
|
1081
|
+
"retries",
|
|
1082
|
+
"resets",
|
|
1083
|
+
"cancellations",
|
|
1084
|
+
"cancelledWithoutAttempt",
|
|
1085
|
+
"baseMoves",
|
|
1086
|
+
"baseMovesBound",
|
|
1087
|
+
"gaps"
|
|
1088
|
+
],
|
|
1089
|
+
"additionalProperties": false
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"type": "null"
|
|
1093
|
+
}
|
|
1094
|
+
]
|
|
941
1095
|
}
|
|
942
1096
|
},
|
|
943
1097
|
"required": [
|
|
@@ -946,7 +1100,8 @@
|
|
|
946
1100
|
"cancelledAttempts",
|
|
947
1101
|
"retries",
|
|
948
1102
|
"resets",
|
|
949
|
-
"baseMoves"
|
|
1103
|
+
"baseMoves",
|
|
1104
|
+
"recorded"
|
|
950
1105
|
],
|
|
951
1106
|
"additionalProperties": false
|
|
952
1107
|
},
|
|
@@ -1020,6 +1175,7 @@
|
|
|
1020
1175
|
"provider-auth",
|
|
1021
1176
|
"environment",
|
|
1022
1177
|
"timeout",
|
|
1178
|
+
"stalled",
|
|
1023
1179
|
"stale-base",
|
|
1024
1180
|
"empty-result",
|
|
1025
1181
|
"unfinished",
|
|
@@ -2053,7 +2209,84 @@
|
|
|
2053
2209
|
"maximum": 9007199254740991
|
|
2054
2210
|
},
|
|
2055
2211
|
"causes": {
|
|
2056
|
-
"
|
|
2212
|
+
"anyOf": [
|
|
2213
|
+
{
|
|
2214
|
+
"type": "object",
|
|
2215
|
+
"properties": {
|
|
2216
|
+
"rows": {
|
|
2217
|
+
"maxItems": 14,
|
|
2218
|
+
"type": "array",
|
|
2219
|
+
"items": {
|
|
2220
|
+
"type": "object",
|
|
2221
|
+
"properties": {
|
|
2222
|
+
"cause": {
|
|
2223
|
+
"type": "string",
|
|
2224
|
+
"enum": [
|
|
2225
|
+
"sandbox-launch",
|
|
2226
|
+
"sandbox-network",
|
|
2227
|
+
"sandbox-filesystem",
|
|
2228
|
+
"sandbox-policy",
|
|
2229
|
+
"dependency-network",
|
|
2230
|
+
"provider-auth",
|
|
2231
|
+
"provider-limit",
|
|
2232
|
+
"transport",
|
|
2233
|
+
"preflight",
|
|
2234
|
+
"lease-expired",
|
|
2235
|
+
"stalled",
|
|
2236
|
+
"shutdown",
|
|
2237
|
+
"other",
|
|
2238
|
+
"none"
|
|
2239
|
+
]
|
|
2240
|
+
},
|
|
2241
|
+
"count": {
|
|
2242
|
+
"type": "integer",
|
|
2243
|
+
"minimum": 0,
|
|
2244
|
+
"maximum": 9007199254740991
|
|
2245
|
+
},
|
|
2246
|
+
"counted": {
|
|
2247
|
+
"type": "integer",
|
|
2248
|
+
"minimum": 0,
|
|
2249
|
+
"maximum": 9007199254740991
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
"required": [
|
|
2253
|
+
"cause",
|
|
2254
|
+
"count",
|
|
2255
|
+
"counted"
|
|
2256
|
+
],
|
|
2257
|
+
"additionalProperties": false
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
"diagnosed": {
|
|
2261
|
+
"type": "integer",
|
|
2262
|
+
"minimum": 0,
|
|
2263
|
+
"maximum": 9007199254740991
|
|
2264
|
+
},
|
|
2265
|
+
"undiagnosed": {
|
|
2266
|
+
"type": "integer",
|
|
2267
|
+
"minimum": 0,
|
|
2268
|
+
"maximum": 9007199254740991
|
|
2269
|
+
},
|
|
2270
|
+
"bound": {
|
|
2271
|
+
"type": "string",
|
|
2272
|
+
"enum": [
|
|
2273
|
+
"exact",
|
|
2274
|
+
"lower"
|
|
2275
|
+
]
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
"required": [
|
|
2279
|
+
"rows",
|
|
2280
|
+
"diagnosed",
|
|
2281
|
+
"undiagnosed",
|
|
2282
|
+
"bound"
|
|
2283
|
+
],
|
|
2284
|
+
"additionalProperties": false
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"type": "null"
|
|
2288
|
+
}
|
|
2289
|
+
]
|
|
2057
2290
|
},
|
|
2058
2291
|
"neutral": {
|
|
2059
2292
|
"type": "object",
|
|
@@ -2497,7 +2730,7 @@
|
|
|
2497
2730
|
},
|
|
2498
2731
|
"limitations": {
|
|
2499
2732
|
"minItems": 1,
|
|
2500
|
-
"maxItems":
|
|
2733
|
+
"maxItems": 40,
|
|
2501
2734
|
"type": "array",
|
|
2502
2735
|
"items": {
|
|
2503
2736
|
"type": "object",
|