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

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 (125) hide show
  1. package/README.md +22 -2
  2. package/docs/contracts.md +309 -35
  3. package/docs/release-notes/0.1.0-alpha.35.md +27 -0
  4. package/docs/release-notes/0.1.0-alpha.36.md +26 -0
  5. package/docs/release-notes/0.1.0-alpha.37.md +40 -0
  6. package/docs/standalone.md +20 -0
  7. package/docs/toolchains.md +57 -2
  8. package/docs/upgrade.md +143 -0
  9. package/lib/agents/cli-adapter.d.ts +10 -1
  10. package/lib/agents/cli-adapter.js +38 -7
  11. package/lib/agents/schemas.d.ts +84 -2
  12. package/lib/agents/schemas.js +49 -1
  13. package/lib/agents/usage.d.ts +9 -0
  14. package/lib/agents/usage.js +22 -1
  15. package/lib/cli.js +149 -1
  16. package/lib/contracts/cli.d.ts +1544 -171
  17. package/lib/contracts/cli.js +233 -2
  18. package/lib/contracts/diagnosis.d.ts +10 -4
  19. package/lib/contracts/diagnosis.js +4 -0
  20. package/lib/contracts/errors.d.ts +9 -1
  21. package/lib/contracts/errors.js +8 -0
  22. package/lib/contracts/events.d.ts +468 -60
  23. package/lib/contracts/events.js +79 -0
  24. package/lib/contracts/execution.d.ts +301 -50
  25. package/lib/contracts/execution.js +60 -0
  26. package/lib/contracts/failure.d.ts +20 -3
  27. package/lib/contracts/failure.js +14 -2
  28. package/lib/contracts/handoff.d.ts +79 -20
  29. package/lib/contracts/handoff.js +42 -1
  30. package/lib/contracts/index.d.ts +1 -0
  31. package/lib/contracts/index.js +1 -0
  32. package/lib/contracts/input-state.d.ts +13 -0
  33. package/lib/contracts/input-state.js +32 -0
  34. package/lib/contracts/input.d.ts +442 -0
  35. package/lib/contracts/input.js +321 -0
  36. package/lib/contracts/planning.d.ts +4 -0
  37. package/lib/contracts/policy.d.ts +17 -2
  38. package/lib/contracts/policy.js +31 -2
  39. package/lib/contracts/ports.d.ts +64 -2
  40. package/lib/contracts/project.d.ts +127 -0
  41. package/lib/contracts/project.js +99 -0
  42. package/lib/contracts/published.d.ts +631 -92
  43. package/lib/contracts/published.js +4 -1
  44. package/lib/contracts/repair-policy.d.ts +30 -1
  45. package/lib/contracts/repair-policy.js +52 -0
  46. package/lib/contracts/report.d.ts +55 -21
  47. package/lib/contracts/report.js +33 -2
  48. package/lib/contracts/result.d.ts +28 -24
  49. package/lib/contracts/review.d.ts +47 -8
  50. package/lib/contracts/review.js +21 -1
  51. package/lib/control/harness.d.ts +2555 -51
  52. package/lib/control/harness.js +112 -6
  53. package/lib/control/recovery.d.ts +2 -2
  54. package/lib/control/report.js +1 -0
  55. package/lib/control/status.d.ts +30 -22
  56. package/lib/control/status.js +11 -1
  57. package/lib/control/workflow.d.ts +8 -8
  58. package/lib/engine/budget.d.ts +86 -3
  59. package/lib/engine/budget.js +45 -10
  60. package/lib/engine/classify.js +1 -1
  61. package/lib/engine/engine.d.ts +3091 -83
  62. package/lib/engine/engine.js +1209 -101
  63. package/lib/engine/failure.d.ts +1 -1
  64. package/lib/engine/failure.js +1 -1
  65. package/lib/engine/input-policy.d.ts +68 -0
  66. package/lib/engine/input-policy.js +285 -0
  67. package/lib/engine/input-requests.d.ts +64 -0
  68. package/lib/engine/input-requests.js +187 -0
  69. package/lib/engine/measured.d.ts +6 -1
  70. package/lib/engine/measured.js +12 -1
  71. package/lib/engine/prompt.d.ts +4 -2
  72. package/lib/engine/prompt.js +13 -1
  73. package/lib/engine/property-recovery.js +4 -0
  74. package/lib/engine/repair.d.ts +2 -0
  75. package/lib/engine/repair.js +13 -4
  76. package/lib/engine/reuse.js +2 -0
  77. package/lib/engine/runner.d.ts +33 -4
  78. package/lib/engine/runner.js +275 -23
  79. package/lib/environment/lifecycle.d.ts +8 -0
  80. package/lib/environment/lifecycle.js +15 -2
  81. package/lib/explain/state.d.ts +16 -2
  82. package/lib/explain/state.js +262 -79
  83. package/lib/handoff/markdown.js +10 -0
  84. package/lib/handoff/pack.js +42 -1
  85. package/lib/index.d.ts +11 -1
  86. package/lib/index.js +11 -1
  87. package/lib/init/inspect.d.ts +34 -0
  88. package/lib/init/inspect.js +292 -0
  89. package/lib/init/project.js +14 -31
  90. package/lib/integrations/connector/commands.d.ts +12 -12
  91. package/lib/integrations/connector/config.d.ts +4 -4
  92. package/lib/integrations/connector/delivery.d.ts +1 -1
  93. package/lib/integrations/relay-v2/protocol.d.ts +4 -4
  94. package/lib/profiles/resolve.d.ts +2 -1
  95. package/lib/projections/enums.d.ts +1 -1
  96. package/lib/projections/enums.js +4 -0
  97. package/lib/projections/index.d.ts +1 -0
  98. package/lib/projections/index.js +1 -0
  99. package/lib/projections/input.d.ts +17 -0
  100. package/lib/projections/input.js +28 -0
  101. package/lib/projections/stop.d.ts +42 -1
  102. package/lib/projections/stop.js +117 -6
  103. package/lib/report/compute.d.ts +4 -1
  104. package/lib/report/compute.js +26 -0
  105. package/lib/report/document.js +2 -1
  106. package/lib/storage/document.d.ts +68 -28
  107. package/lib/testing/index.d.ts +1 -1
  108. package/lib/testing/index.js +1 -1
  109. package/lib/testing/store-contract.d.ts +8 -1
  110. package/lib/testing/store-contract.js +194 -1
  111. package/lib/verification/confirm.d.ts +3 -3
  112. package/lib/verification/corpus.d.ts +9 -9
  113. package/lib/verification/gates.d.ts +119 -0
  114. package/lib/verification/gates.js +311 -4
  115. package/package.json +1 -1
  116. package/schemas/execution-document.schema.json +141 -0
  117. package/schemas/execution-policy.schema.json +26 -0
  118. package/schemas/handoff-pack.schema.json +155 -4
  119. package/schemas/input-request.schema.json +665 -0
  120. package/schemas/project-facts.schema.json +393 -0
  121. package/schemas/result-envelope.schema.json +2 -0
  122. package/schemas/run-event.schema.json +628 -0
  123. package/schemas/run-result.schema.json +2 -0
  124. package/schemas/stop-diagnosis.schema.json +7 -1
  125. package/schemas/value-report.schema.json +79 -7
@@ -1089,6 +1089,7 @@
1089
1089
  "environment",
1090
1090
  "timeout",
1091
1091
  "stalled",
1092
+ "context-exhausted",
1092
1093
  "stale-base",
1093
1094
  "empty-result",
1094
1095
  "unfinished",
@@ -1100,6 +1101,7 @@
1100
1101
  "cancelled",
1101
1102
  "budget",
1102
1103
  "needs-lead",
1104
+ "needs-input",
1103
1105
  "unknown"
1104
1106
  ]
1105
1107
  },
@@ -1177,6 +1179,7 @@
1177
1179
  "environment",
1178
1180
  "timeout",
1179
1181
  "stalled",
1182
+ "context-exhausted",
1180
1183
  "stale-base",
1181
1184
  "empty-result",
1182
1185
  "unfinished",
@@ -1188,6 +1191,7 @@
1188
1191
  "cancelled",
1189
1192
  "budget",
1190
1193
  "needs-lead",
1194
+ "needs-input",
1191
1195
  "unknown"
1192
1196
  ]
1193
1197
  },
@@ -1772,6 +1776,7 @@
1772
1776
  "environment",
1773
1777
  "timeout",
1774
1778
  "stalled",
1779
+ "context-exhausted",
1775
1780
  "stale-base",
1776
1781
  "empty-result",
1777
1782
  "unfinished",
@@ -1783,6 +1788,7 @@
1783
1788
  "cancelled",
1784
1789
  "budget",
1785
1790
  "needs-lead",
1791
+ "needs-input",
1786
1792
  "unknown"
1787
1793
  ]
1788
1794
  }
@@ -2828,6 +2834,628 @@
2828
2834
  ],
2829
2835
  "additionalProperties": false
2830
2836
  },
2837
+ {
2838
+ "type": "object",
2839
+ "properties": {
2840
+ "apiVersion": {
2841
+ "type": "string",
2842
+ "const": "devcontour-harness/v1alpha1"
2843
+ },
2844
+ "seq": {
2845
+ "type": "integer",
2846
+ "exclusiveMinimum": 0,
2847
+ "maximum": 9007199254740991
2848
+ },
2849
+ "at": {
2850
+ "type": "string",
2851
+ "format": "date-time",
2852
+ "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)))$"
2853
+ },
2854
+ "graphId": {
2855
+ "type": "string",
2856
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2857
+ },
2858
+ "workId": {
2859
+ "type": "string",
2860
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2861
+ },
2862
+ "runId": {
2863
+ "type": "string",
2864
+ "minLength": 1,
2865
+ "maxLength": 200
2866
+ },
2867
+ "attempt": {
2868
+ "type": "integer",
2869
+ "exclusiveMinimum": 0,
2870
+ "maximum": 9007199254740991
2871
+ },
2872
+ "type": {
2873
+ "type": "string",
2874
+ "const": "input.requested"
2875
+ },
2876
+ "payload": {
2877
+ "type": "object",
2878
+ "properties": {
2879
+ "requestId": {
2880
+ "type": "string",
2881
+ "pattern": "^IR-[a-f0-9]{24}$"
2882
+ },
2883
+ "kind": {
2884
+ "type": "string",
2885
+ "enum": [
2886
+ "question",
2887
+ "follow-up"
2888
+ ]
2889
+ },
2890
+ "blocking": {
2891
+ "type": "boolean"
2892
+ },
2893
+ "lifecycle": {
2894
+ "type": "string",
2895
+ "enum": [
2896
+ "pending",
2897
+ "cancelled"
2898
+ ]
2899
+ },
2900
+ "effectiveSeverity": {
2901
+ "type": "integer",
2902
+ "minimum": 1,
2903
+ "maximum": 10
2904
+ },
2905
+ "floors": {
2906
+ "maxItems": 2,
2907
+ "type": "array",
2908
+ "items": {
2909
+ "type": "string",
2910
+ "enum": [
2911
+ "declared",
2912
+ "critical-path"
2913
+ ]
2914
+ }
2915
+ },
2916
+ "criticalHits": {
2917
+ "type": "integer",
2918
+ "minimum": 0,
2919
+ "maximum": 9007199254740991
2920
+ },
2921
+ "questionDigest": {
2922
+ "type": "string",
2923
+ "pattern": "^[a-f0-9]{64}$"
2924
+ },
2925
+ "draftDigest": {
2926
+ "anyOf": [
2927
+ {
2928
+ "type": "string",
2929
+ "pattern": "^[a-f0-9]{64}$"
2930
+ },
2931
+ {
2932
+ "type": "null"
2933
+ }
2934
+ ]
2935
+ }
2936
+ },
2937
+ "required": [
2938
+ "requestId",
2939
+ "kind",
2940
+ "blocking",
2941
+ "lifecycle",
2942
+ "effectiveSeverity",
2943
+ "floors",
2944
+ "criticalHits",
2945
+ "questionDigest",
2946
+ "draftDigest"
2947
+ ],
2948
+ "additionalProperties": false
2949
+ }
2950
+ },
2951
+ "required": [
2952
+ "apiVersion",
2953
+ "seq",
2954
+ "at",
2955
+ "type",
2956
+ "payload"
2957
+ ],
2958
+ "additionalProperties": false
2959
+ },
2960
+ {
2961
+ "type": "object",
2962
+ "properties": {
2963
+ "apiVersion": {
2964
+ "type": "string",
2965
+ "const": "devcontour-harness/v1alpha1"
2966
+ },
2967
+ "seq": {
2968
+ "type": "integer",
2969
+ "exclusiveMinimum": 0,
2970
+ "maximum": 9007199254740991
2971
+ },
2972
+ "at": {
2973
+ "type": "string",
2974
+ "format": "date-time",
2975
+ "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)))$"
2976
+ },
2977
+ "graphId": {
2978
+ "type": "string",
2979
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2980
+ },
2981
+ "workId": {
2982
+ "type": "string",
2983
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
2984
+ },
2985
+ "runId": {
2986
+ "type": "string",
2987
+ "minLength": 1,
2988
+ "maxLength": 200
2989
+ },
2990
+ "attempt": {
2991
+ "type": "integer",
2992
+ "exclusiveMinimum": 0,
2993
+ "maximum": 9007199254740991
2994
+ },
2995
+ "type": {
2996
+ "type": "string",
2997
+ "const": "input.answered"
2998
+ },
2999
+ "payload": {
3000
+ "type": "object",
3001
+ "properties": {
3002
+ "requestId": {
3003
+ "type": "string",
3004
+ "pattern": "^IR-[a-f0-9]{24}$"
3005
+ },
3006
+ "revision": {
3007
+ "type": "integer",
3008
+ "exclusiveMinimum": 0,
3009
+ "maximum": 9007199254740991
3010
+ },
3011
+ "answerDigest": {
3012
+ "type": "string",
3013
+ "pattern": "^[a-f0-9]{64}$"
3014
+ },
3015
+ "kind": {
3016
+ "type": "string",
3017
+ "enum": [
3018
+ "clarification",
3019
+ "requirement-change"
3020
+ ]
3021
+ },
3022
+ "actor": {
3023
+ "type": "string",
3024
+ "enum": [
3025
+ "operator",
3026
+ "lead",
3027
+ "host"
3028
+ ]
3029
+ }
3030
+ },
3031
+ "required": [
3032
+ "requestId",
3033
+ "revision",
3034
+ "answerDigest",
3035
+ "kind",
3036
+ "actor"
3037
+ ],
3038
+ "additionalProperties": false
3039
+ }
3040
+ },
3041
+ "required": [
3042
+ "apiVersion",
3043
+ "seq",
3044
+ "at",
3045
+ "type",
3046
+ "payload"
3047
+ ],
3048
+ "additionalProperties": false
3049
+ },
3050
+ {
3051
+ "type": "object",
3052
+ "properties": {
3053
+ "apiVersion": {
3054
+ "type": "string",
3055
+ "const": "devcontour-harness/v1alpha1"
3056
+ },
3057
+ "seq": {
3058
+ "type": "integer",
3059
+ "exclusiveMinimum": 0,
3060
+ "maximum": 9007199254740991
3061
+ },
3062
+ "at": {
3063
+ "type": "string",
3064
+ "format": "date-time",
3065
+ "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)))$"
3066
+ },
3067
+ "graphId": {
3068
+ "type": "string",
3069
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3070
+ },
3071
+ "workId": {
3072
+ "type": "string",
3073
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3074
+ },
3075
+ "runId": {
3076
+ "type": "string",
3077
+ "minLength": 1,
3078
+ "maxLength": 200
3079
+ },
3080
+ "attempt": {
3081
+ "type": "integer",
3082
+ "exclusiveMinimum": 0,
3083
+ "maximum": 9007199254740991
3084
+ },
3085
+ "type": {
3086
+ "type": "string",
3087
+ "const": "input.applied"
3088
+ },
3089
+ "payload": {
3090
+ "type": "object",
3091
+ "properties": {
3092
+ "requestId": {
3093
+ "type": "string",
3094
+ "pattern": "^IR-[a-f0-9]{24}$"
3095
+ },
3096
+ "answerDigest": {
3097
+ "type": "string",
3098
+ "pattern": "^[a-f0-9]{64}$"
3099
+ },
3100
+ "targetDigest": {
3101
+ "type": "string",
3102
+ "pattern": "^[a-f0-9]{64}$"
3103
+ },
3104
+ "contextDigest": {
3105
+ "anyOf": [
3106
+ {
3107
+ "type": "string",
3108
+ "pattern": "^[a-f0-9]{64}$"
3109
+ },
3110
+ {
3111
+ "type": "null"
3112
+ }
3113
+ ]
3114
+ },
3115
+ "retried": {
3116
+ "type": "boolean"
3117
+ }
3118
+ },
3119
+ "required": [
3120
+ "requestId",
3121
+ "answerDigest",
3122
+ "targetDigest",
3123
+ "contextDigest",
3124
+ "retried"
3125
+ ],
3126
+ "additionalProperties": false
3127
+ }
3128
+ },
3129
+ "required": [
3130
+ "apiVersion",
3131
+ "seq",
3132
+ "at",
3133
+ "type",
3134
+ "payload"
3135
+ ],
3136
+ "additionalProperties": false
3137
+ },
3138
+ {
3139
+ "type": "object",
3140
+ "properties": {
3141
+ "apiVersion": {
3142
+ "type": "string",
3143
+ "const": "devcontour-harness/v1alpha1"
3144
+ },
3145
+ "seq": {
3146
+ "type": "integer",
3147
+ "exclusiveMinimum": 0,
3148
+ "maximum": 9007199254740991
3149
+ },
3150
+ "at": {
3151
+ "type": "string",
3152
+ "format": "date-time",
3153
+ "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)))$"
3154
+ },
3155
+ "graphId": {
3156
+ "type": "string",
3157
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3158
+ },
3159
+ "workId": {
3160
+ "type": "string",
3161
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3162
+ },
3163
+ "runId": {
3164
+ "type": "string",
3165
+ "minLength": 1,
3166
+ "maxLength": 200
3167
+ },
3168
+ "attempt": {
3169
+ "type": "integer",
3170
+ "exclusiveMinimum": 0,
3171
+ "maximum": 9007199254740991
3172
+ },
3173
+ "type": {
3174
+ "type": "string",
3175
+ "const": "input.closed"
3176
+ },
3177
+ "payload": {
3178
+ "type": "object",
3179
+ "properties": {
3180
+ "requestId": {
3181
+ "type": "string",
3182
+ "pattern": "^IR-[a-f0-9]{24}$"
3183
+ },
3184
+ "lifecycle": {
3185
+ "type": "string",
3186
+ "enum": [
3187
+ "cancelled",
3188
+ "superseded"
3189
+ ]
3190
+ },
3191
+ "by": {
3192
+ "type": "string",
3193
+ "enum": [
3194
+ "operator",
3195
+ "lead",
3196
+ "host",
3197
+ "controller"
3198
+ ]
3199
+ },
3200
+ "successor": {
3201
+ "type": "string",
3202
+ "minLength": 1,
3203
+ "maxLength": 200
3204
+ }
3205
+ },
3206
+ "required": [
3207
+ "requestId",
3208
+ "lifecycle",
3209
+ "by"
3210
+ ],
3211
+ "additionalProperties": false
3212
+ }
3213
+ },
3214
+ "required": [
3215
+ "apiVersion",
3216
+ "seq",
3217
+ "at",
3218
+ "type",
3219
+ "payload"
3220
+ ],
3221
+ "additionalProperties": false
3222
+ },
3223
+ {
3224
+ "type": "object",
3225
+ "properties": {
3226
+ "apiVersion": {
3227
+ "type": "string",
3228
+ "const": "devcontour-harness/v1alpha1"
3229
+ },
3230
+ "seq": {
3231
+ "type": "integer",
3232
+ "exclusiveMinimum": 0,
3233
+ "maximum": 9007199254740991
3234
+ },
3235
+ "at": {
3236
+ "type": "string",
3237
+ "format": "date-time",
3238
+ "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)))$"
3239
+ },
3240
+ "graphId": {
3241
+ "type": "string",
3242
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3243
+ },
3244
+ "workId": {
3245
+ "type": "string",
3246
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3247
+ },
3248
+ "runId": {
3249
+ "type": "string",
3250
+ "minLength": 1,
3251
+ "maxLength": 200
3252
+ },
3253
+ "attempt": {
3254
+ "type": "integer",
3255
+ "exclusiveMinimum": 0,
3256
+ "maximum": 9007199254740991
3257
+ },
3258
+ "type": {
3259
+ "type": "string",
3260
+ "const": "input.stale"
3261
+ },
3262
+ "payload": {
3263
+ "type": "object",
3264
+ "properties": {
3265
+ "requestId": {
3266
+ "type": "string",
3267
+ "pattern": "^IR-[a-f0-9]{24}$"
3268
+ },
3269
+ "targetDigest": {
3270
+ "type": "string",
3271
+ "pattern": "^[a-f0-9]{64}$"
3272
+ },
3273
+ "reason": {
3274
+ "type": "string",
3275
+ "enum": [
3276
+ "context",
3277
+ "graph",
3278
+ "order",
3279
+ "policy"
3280
+ ]
3281
+ }
3282
+ },
3283
+ "required": [
3284
+ "requestId",
3285
+ "targetDigest",
3286
+ "reason"
3287
+ ],
3288
+ "additionalProperties": false
3289
+ }
3290
+ },
3291
+ "required": [
3292
+ "apiVersion",
3293
+ "seq",
3294
+ "at",
3295
+ "type",
3296
+ "payload"
3297
+ ],
3298
+ "additionalProperties": false
3299
+ },
3300
+ {
3301
+ "type": "object",
3302
+ "properties": {
3303
+ "apiVersion": {
3304
+ "type": "string",
3305
+ "const": "devcontour-harness/v1alpha1"
3306
+ },
3307
+ "seq": {
3308
+ "type": "integer",
3309
+ "exclusiveMinimum": 0,
3310
+ "maximum": 9007199254740991
3311
+ },
3312
+ "at": {
3313
+ "type": "string",
3314
+ "format": "date-time",
3315
+ "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)))$"
3316
+ },
3317
+ "graphId": {
3318
+ "type": "string",
3319
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3320
+ },
3321
+ "workId": {
3322
+ "type": "string",
3323
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3324
+ },
3325
+ "runId": {
3326
+ "type": "string",
3327
+ "minLength": 1,
3328
+ "maxLength": 200
3329
+ },
3330
+ "attempt": {
3331
+ "type": "integer",
3332
+ "exclusiveMinimum": 0,
3333
+ "maximum": 9007199254740991
3334
+ },
3335
+ "type": {
3336
+ "type": "string",
3337
+ "const": "input.delivered"
3338
+ },
3339
+ "payload": {
3340
+ "type": "object",
3341
+ "properties": {
3342
+ "requestId": {
3343
+ "type": "string",
3344
+ "pattern": "^IR-[a-f0-9]{24}$"
3345
+ },
3346
+ "answerDigest": {
3347
+ "type": "string",
3348
+ "pattern": "^[a-f0-9]{64}$"
3349
+ },
3350
+ "callId": {
3351
+ "type": "string",
3352
+ "minLength": 1,
3353
+ "maxLength": 200
3354
+ }
3355
+ },
3356
+ "required": [
3357
+ "requestId",
3358
+ "answerDigest",
3359
+ "callId"
3360
+ ],
3361
+ "additionalProperties": false
3362
+ }
3363
+ },
3364
+ "required": [
3365
+ "apiVersion",
3366
+ "seq",
3367
+ "at",
3368
+ "type",
3369
+ "payload"
3370
+ ],
3371
+ "additionalProperties": false
3372
+ },
3373
+ {
3374
+ "type": "object",
3375
+ "properties": {
3376
+ "apiVersion": {
3377
+ "type": "string",
3378
+ "const": "devcontour-harness/v1alpha1"
3379
+ },
3380
+ "seq": {
3381
+ "type": "integer",
3382
+ "exclusiveMinimum": 0,
3383
+ "maximum": 9007199254740991
3384
+ },
3385
+ "at": {
3386
+ "type": "string",
3387
+ "format": "date-time",
3388
+ "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)))$"
3389
+ },
3390
+ "graphId": {
3391
+ "type": "string",
3392
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3393
+ },
3394
+ "workId": {
3395
+ "type": "string",
3396
+ "pattern": "^[A-Za-z0-9_-]{1,80}$"
3397
+ },
3398
+ "runId": {
3399
+ "type": "string",
3400
+ "minLength": 1,
3401
+ "maxLength": 200
3402
+ },
3403
+ "attempt": {
3404
+ "type": "integer",
3405
+ "exclusiveMinimum": 0,
3406
+ "maximum": 9007199254740991
3407
+ },
3408
+ "type": {
3409
+ "type": "string",
3410
+ "const": "attempt.assumptions"
3411
+ },
3412
+ "payload": {
3413
+ "type": "object",
3414
+ "properties": {
3415
+ "count": {
3416
+ "type": "integer",
3417
+ "minimum": 0,
3418
+ "maximum": 20
3419
+ },
3420
+ "maxSeverity": {
3421
+ "type": "integer",
3422
+ "minimum": 0,
3423
+ "maximum": 10
3424
+ },
3425
+ "floors": {
3426
+ "type": "integer",
3427
+ "minimum": 0,
3428
+ "maximum": 9007199254740991
3429
+ },
3430
+ "followUps": {
3431
+ "type": "integer",
3432
+ "minimum": 0,
3433
+ "maximum": 9007199254740991
3434
+ },
3435
+ "digest": {
3436
+ "type": "string",
3437
+ "pattern": "^[a-f0-9]{64}$"
3438
+ }
3439
+ },
3440
+ "required": [
3441
+ "count",
3442
+ "maxSeverity",
3443
+ "floors",
3444
+ "followUps",
3445
+ "digest"
3446
+ ],
3447
+ "additionalProperties": false
3448
+ }
3449
+ },
3450
+ "required": [
3451
+ "apiVersion",
3452
+ "seq",
3453
+ "at",
3454
+ "type",
3455
+ "payload"
3456
+ ],
3457
+ "additionalProperties": false
3458
+ },
2831
3459
  {
2832
3460
  "type": "object",
2833
3461
  "properties": {
@@ -1522,6 +1522,8 @@
1522
1522
  "BUDGET_EXHAUSTED",
1523
1523
  "BUDGET_UNKNOWN",
1524
1524
  "ATTEMPTS_EXHAUSTED",
1525
+ "CONTEXT_EXHAUSTED",
1526
+ "INPUT_REQUIRED",
1525
1527
  "REVISION_CONFLICT",
1526
1528
  "CANCELLED",
1527
1529
  "NOT_FOUND",