@claudexor/schema 3.3.16 → 3.4.1
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/dist/apply-eligibility.d.ts +0 -882
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +0 -145
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/control.js +4 -4
- package/dist/control.js.map +1 -1
- package/dist/harness.d.ts +2 -3
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +2 -3
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +1932 -0
- package/dist/mcp-run-result.d.ts.map +1 -0
- package/dist/mcp-run-result.js +155 -0
- package/dist/mcp-run-result.js.map +1 -0
- package/dist/operation.d.ts +9 -0
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +10 -0
- package/dist/operation.js.map +1 -1
- package/dist/primitives.js +1 -1
- package/dist/primitives.js.map +1 -1
- package/dist/setup-login-protocol.d.ts +10 -0
- package/dist/setup-login-protocol.d.ts.map +1 -1
- package/dist/setup-login-protocol.js +13 -1
- package/dist/setup-login-protocol.js.map +1 -1
- package/dist/setup.d.ts +298 -298
- package/dist/setup.js +3 -3
- package/dist/setup.js.map +1 -1
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +1 -1
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +8 -8
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +7 -7
- package/dist/telemetry.js.map +1 -1
- package/generated/ControlHandshakeResponse.schema.json +8 -0
- package/generated/ControlRunDetail.schema.json +4 -4
- package/generated/ControlRunListResponse.schema.json +4 -4
- package/generated/ControlRunSummary.schema.json +4 -4
- package/generated/ControlSetupJob.schema.json +5 -3
- package/generated/ControlSetupJobEvent.schema.json +5 -3
- package/generated/ControlSetupJobListResponse.schema.json +5 -3
- package/generated/ControlSetupJobSnapshot.schema.json +5 -3
- package/generated/McpRunHandleResult.schema.json +538 -151
- package/generated/McpRunToolResult.schema.json +517 -130
- package/generated/RunTelemetry.schema.json +5 -5
- package/generated/TaskContract.schema.json +1 -1
- package/package.json +2 -2
|
@@ -32,181 +32,603 @@
|
|
|
32
32
|
"default": null,
|
|
33
33
|
"description": "The run's terminal or in-flight lifecycle state, when known."
|
|
34
34
|
},
|
|
35
|
-
"
|
|
36
|
-
"type": [
|
|
37
|
-
"string",
|
|
38
|
-
"null"
|
|
39
|
-
],
|
|
40
|
-
"default": null,
|
|
41
|
-
"description": "The arbitration decision status, when the run reached arbitration."
|
|
42
|
-
},
|
|
43
|
-
"pendingInteractions": {
|
|
44
|
-
"anyOf": [
|
|
45
|
-
{
|
|
46
|
-
"type": "integer",
|
|
47
|
-
"minimum": 0
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"type": "null"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"default": null,
|
|
54
|
-
"description": "Count of questions still awaiting answers, when known."
|
|
55
|
-
},
|
|
56
|
-
"outcomeFacts": {
|
|
35
|
+
"runFacts": {
|
|
57
36
|
"anyOf": [
|
|
58
37
|
{
|
|
59
38
|
"type": "object",
|
|
60
39
|
"properties": {
|
|
61
|
-
"
|
|
62
|
-
"type": "
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
"failed",
|
|
66
|
-
"cancelled",
|
|
67
|
-
"interrupted"
|
|
68
|
-
],
|
|
69
|
-
"description": "Terminal lifecycle of the run."
|
|
40
|
+
"schema_version": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"const": 2,
|
|
43
|
+
"description": "Schema version of the artifact; bumped on breaking ABI changes."
|
|
70
44
|
},
|
|
71
|
-
"
|
|
72
|
-
"type": "boolean",
|
|
73
|
-
"default": false,
|
|
74
|
-
"description": "True when the run finished without changing any files (the ex no_op fact)."
|
|
75
|
-
},
|
|
76
|
-
"checks": {
|
|
45
|
+
"run_id": {
|
|
77
46
|
"type": "string",
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
"failed",
|
|
81
|
-
"not_configured"
|
|
82
|
-
],
|
|
83
|
-
"description": "Deterministic checks axis: configured project checks passed, failed, or none are configured (a named state, never a stand-in for review results).",
|
|
84
|
-
"default": "not_configured"
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"description": "Non-empty identifier string."
|
|
85
49
|
},
|
|
86
|
-
"
|
|
50
|
+
"task_id": {
|
|
51
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
|
|
52
|
+
},
|
|
53
|
+
"mode": {
|
|
87
54
|
"type": "string",
|
|
88
55
|
"enum": [
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
56
|
+
"ask",
|
|
57
|
+
"plan",
|
|
58
|
+
"agent"
|
|
92
59
|
],
|
|
93
|
-
"description": "
|
|
94
|
-
"default": "not_run"
|
|
60
|
+
"description": "Canonical run mode: ask and plan are read-only, agent writes. Strategy controls are separate schema-owned fields, never modes."
|
|
95
61
|
},
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
62
|
+
"outcome": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"properties": {
|
|
65
|
+
"lifecycle": {
|
|
99
66
|
"type": "string",
|
|
100
67
|
"enum": [
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"budget_exhausted",
|
|
106
|
-
"budget_overshoot",
|
|
107
|
-
"cost_unverifiable",
|
|
108
|
-
"not_converged",
|
|
109
|
-
"stuck_no_progress",
|
|
110
|
-
"wall_clock_exceeded",
|
|
111
|
-
"user_cancelled",
|
|
112
|
-
"crash_interrupted",
|
|
113
|
-
"workspace_unavailable",
|
|
114
|
-
"input_required",
|
|
115
|
-
"work_incomplete",
|
|
116
|
-
"context_capacity_exhausted",
|
|
117
|
-
"work_report_contract"
|
|
68
|
+
"succeeded",
|
|
69
|
+
"failed",
|
|
70
|
+
"cancelled",
|
|
71
|
+
"interrupted"
|
|
118
72
|
],
|
|
119
|
-
"description": "
|
|
73
|
+
"description": "Terminal lifecycle of the run."
|
|
120
74
|
},
|
|
121
|
-
{
|
|
122
|
-
"type": "
|
|
75
|
+
"noChanges": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"default": false,
|
|
78
|
+
"description": "True when the run finished without changing any files (the ex no_op fact)."
|
|
79
|
+
},
|
|
80
|
+
"checks": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"enum": [
|
|
83
|
+
"passed",
|
|
84
|
+
"failed",
|
|
85
|
+
"not_configured"
|
|
86
|
+
],
|
|
87
|
+
"description": "Deterministic checks axis: configured project checks passed, failed, or none are configured (a named state, never a stand-in for review results).",
|
|
88
|
+
"default": "not_configured"
|
|
89
|
+
},
|
|
90
|
+
"review": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": [
|
|
93
|
+
"approved",
|
|
94
|
+
"blocked",
|
|
95
|
+
"not_run"
|
|
96
|
+
],
|
|
97
|
+
"description": "Review axis: approved (clean cross-family verified review), blocked (open accepted findings), or not_run.",
|
|
98
|
+
"default": "not_run"
|
|
99
|
+
},
|
|
100
|
+
"reason": {
|
|
101
|
+
"anyOf": [
|
|
102
|
+
{
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"harness_failed",
|
|
106
|
+
"no_changes",
|
|
107
|
+
"review_blocked",
|
|
108
|
+
"checks_failed",
|
|
109
|
+
"budget_exhausted",
|
|
110
|
+
"budget_overshoot",
|
|
111
|
+
"cost_unverifiable",
|
|
112
|
+
"not_converged",
|
|
113
|
+
"stuck_no_progress",
|
|
114
|
+
"wall_clock_exceeded",
|
|
115
|
+
"user_cancelled",
|
|
116
|
+
"crash_interrupted",
|
|
117
|
+
"workspace_unavailable",
|
|
118
|
+
"input_required",
|
|
119
|
+
"work_incomplete",
|
|
120
|
+
"context_capacity_exhausted",
|
|
121
|
+
"work_report_contract"
|
|
122
|
+
],
|
|
123
|
+
"description": "Typed reason qualifying a non-clean terminal; null on a clean success."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "null"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"description": "Typed reason qualifying a non-clean terminal; null on a clean success.",
|
|
130
|
+
"default": null
|
|
131
|
+
},
|
|
132
|
+
"work_state": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"state": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"enum": [
|
|
138
|
+
"completed",
|
|
139
|
+
"needs_input",
|
|
140
|
+
"incomplete",
|
|
141
|
+
"unverified"
|
|
142
|
+
],
|
|
143
|
+
"description": "Folded work state: the WorkReport state, or unverified when no report was obtainable (transport unsupported / lane gated)."
|
|
144
|
+
},
|
|
145
|
+
"source": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"enum": [
|
|
148
|
+
"constrained",
|
|
149
|
+
"validated",
|
|
150
|
+
"absent"
|
|
151
|
+
],
|
|
152
|
+
"description": "Provenance of a WorkReport: constrained (native schema transport), validated (instructed terminal metadata), or absent (no transport could carry one — a disclosed absence, not a failure)."
|
|
153
|
+
},
|
|
154
|
+
"required_inputs": {
|
|
155
|
+
"type": "array",
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"properties": {
|
|
159
|
+
"kind": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"enum": [
|
|
162
|
+
"file",
|
|
163
|
+
"context",
|
|
164
|
+
"credential",
|
|
165
|
+
"permission",
|
|
166
|
+
"decision",
|
|
167
|
+
"external_dependency"
|
|
168
|
+
],
|
|
169
|
+
"description": "Category of a missing input a needs_input/incomplete report lists: a file, additional context, a credential, a permission, a human decision, or an external dependency."
|
|
170
|
+
},
|
|
171
|
+
"locator": {
|
|
172
|
+
"anyOf": [
|
|
173
|
+
{
|
|
174
|
+
"type": "string",
|
|
175
|
+
"maxLength": 512
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "null"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"default": null,
|
|
182
|
+
"description": "Concrete pointer to the missing thing (path/url/name); null when unnameable."
|
|
183
|
+
},
|
|
184
|
+
"description": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"maxLength": 1024,
|
|
187
|
+
"description": "Human-readable description of what is needed and why."
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"required": [
|
|
191
|
+
"kind",
|
|
192
|
+
"description"
|
|
193
|
+
],
|
|
194
|
+
"additionalProperties": false,
|
|
195
|
+
"description": "One blocking input a needs_input/incomplete WorkReport lists."
|
|
196
|
+
},
|
|
197
|
+
"maxItems": 16,
|
|
198
|
+
"description": "Carried through from a needs_input/incomplete WorkReport for honest disclosure."
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"required": [
|
|
202
|
+
"state",
|
|
203
|
+
"source"
|
|
204
|
+
],
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"description": "D-16 model-attested work outcome, orthogonal to lifecycle; a needs_input/incomplete state vetoes applyability and exit 0. Absent on runs with no work_report transport."
|
|
123
207
|
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"lifecycle"
|
|
124
211
|
],
|
|
125
|
-
"
|
|
126
|
-
"
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"description": "Independent terminal outcome axes of a run (D8/D18)."
|
|
127
214
|
},
|
|
128
|
-
"
|
|
215
|
+
"deliverable": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"present": {
|
|
219
|
+
"type": "boolean",
|
|
220
|
+
"description": "Whether the canonical primary deliverable exists."
|
|
221
|
+
},
|
|
222
|
+
"kind": {
|
|
223
|
+
"anyOf": [
|
|
224
|
+
{
|
|
225
|
+
"type": "string",
|
|
226
|
+
"enum": [
|
|
227
|
+
"answer",
|
|
228
|
+
"report",
|
|
229
|
+
"plan",
|
|
230
|
+
"patch",
|
|
231
|
+
"structured_output"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "null"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"description": "Kind of canonical primary deliverable; null when none exists."
|
|
239
|
+
},
|
|
240
|
+
"path": {
|
|
241
|
+
"type": [
|
|
242
|
+
"string",
|
|
243
|
+
"null"
|
|
244
|
+
],
|
|
245
|
+
"description": "Run-relative path of the canonical primary deliverable; null when absent."
|
|
246
|
+
},
|
|
247
|
+
"producer_attempt_id": {
|
|
248
|
+
"anyOf": [
|
|
249
|
+
{
|
|
250
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "null"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"description": "Attempt that produced the deliverable, when known.",
|
|
257
|
+
"default": null
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"required": [
|
|
261
|
+
"present",
|
|
262
|
+
"kind",
|
|
263
|
+
"path"
|
|
264
|
+
],
|
|
265
|
+
"additionalProperties": false,
|
|
266
|
+
"description": "Canonical primary-output presence and identity for a terminal run."
|
|
267
|
+
},
|
|
268
|
+
"presentation": {
|
|
129
269
|
"type": "object",
|
|
130
270
|
"properties": {
|
|
131
271
|
"state": {
|
|
132
272
|
"type": "string",
|
|
133
273
|
"enum": [
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"incomplete",
|
|
137
|
-
"unverified"
|
|
274
|
+
"ready",
|
|
275
|
+
"diagnostic"
|
|
138
276
|
],
|
|
139
|
-
"description": "
|
|
277
|
+
"description": "Terminal output readiness decided by the last valid output.ready receipt."
|
|
140
278
|
},
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
279
|
+
"primary": {
|
|
280
|
+
"anyOf": [
|
|
281
|
+
{
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"kind": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"enum": [
|
|
287
|
+
"answer",
|
|
288
|
+
"report",
|
|
289
|
+
"plan",
|
|
290
|
+
"patch",
|
|
291
|
+
"structured_output",
|
|
292
|
+
"diagnostic"
|
|
293
|
+
],
|
|
294
|
+
"description": "Presentation kind of the terminal primary artifact."
|
|
295
|
+
},
|
|
296
|
+
"path": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"minLength": 1,
|
|
299
|
+
"description": "Normalized run-relative path of the terminal primary artifact."
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"required": [
|
|
303
|
+
"kind",
|
|
304
|
+
"path"
|
|
305
|
+
],
|
|
306
|
+
"additionalProperties": false,
|
|
307
|
+
"description": "Primary user-facing artifact selected once during terminal preparation."
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "null"
|
|
311
|
+
}
|
|
147
312
|
],
|
|
148
|
-
"description": "
|
|
313
|
+
"description": "Selected terminal primary artifact, or null when the receipt announces readiness without a primary deliverable."
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"required": [
|
|
317
|
+
"state",
|
|
318
|
+
"primary"
|
|
319
|
+
],
|
|
320
|
+
"additionalProperties": false,
|
|
321
|
+
"description": "Immutable terminal output state and primary artifact. Absent only on legacy RunFacts receipts."
|
|
322
|
+
},
|
|
323
|
+
"participants": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"properties": {
|
|
326
|
+
"planners": {
|
|
327
|
+
"type": "integer",
|
|
328
|
+
"minimum": 0,
|
|
329
|
+
"description": "Number of participants whose canonical role is planner."
|
|
149
330
|
},
|
|
150
|
-
"
|
|
331
|
+
"attempts": {
|
|
151
332
|
"type": "array",
|
|
152
333
|
"items": {
|
|
153
334
|
"type": "object",
|
|
154
335
|
"properties": {
|
|
155
|
-
"
|
|
336
|
+
"attempt_id": {
|
|
337
|
+
"anyOf": [
|
|
338
|
+
{
|
|
339
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"type": "null"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"description": "Attempt id when the participant owns an orchestrator attempt; null for reviewer-panel members."
|
|
346
|
+
},
|
|
347
|
+
"harness_id": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"minLength": 1,
|
|
350
|
+
"description": "Harness that served this participant role."
|
|
351
|
+
},
|
|
352
|
+
"role": {
|
|
156
353
|
"type": "string",
|
|
157
354
|
"enum": [
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
355
|
+
"planner",
|
|
356
|
+
"merge",
|
|
357
|
+
"candidate",
|
|
358
|
+
"scout",
|
|
359
|
+
"reducer",
|
|
360
|
+
"reviewer"
|
|
164
361
|
],
|
|
165
|
-
"description": "
|
|
362
|
+
"description": "Canonical role of one participant in the terminal run graph."
|
|
363
|
+
},
|
|
364
|
+
"deliverable_present": {
|
|
365
|
+
"type": "boolean",
|
|
366
|
+
"default": false,
|
|
367
|
+
"description": "Whether this participant produced the deliverable its role requested."
|
|
166
368
|
},
|
|
167
|
-
"
|
|
369
|
+
"status": {
|
|
168
370
|
"anyOf": [
|
|
169
371
|
{
|
|
170
372
|
"type": "string",
|
|
171
|
-
"
|
|
373
|
+
"enum": [
|
|
374
|
+
"success",
|
|
375
|
+
"success_with_warnings",
|
|
376
|
+
"blocked",
|
|
377
|
+
"failed"
|
|
378
|
+
],
|
|
379
|
+
"description": "Terminal outcome recorded for one run participant."
|
|
172
380
|
},
|
|
173
381
|
{
|
|
174
382
|
"type": "null"
|
|
175
383
|
}
|
|
176
384
|
],
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
},
|
|
180
|
-
"description": {
|
|
181
|
-
"type": "string",
|
|
182
|
-
"maxLength": 1024,
|
|
183
|
-
"description": "Human-readable description of what is needed and why."
|
|
385
|
+
"description": "Participant outcome when recorded; null for artifact-only reviewer membership.",
|
|
386
|
+
"default": null
|
|
184
387
|
}
|
|
185
388
|
},
|
|
186
389
|
"required": [
|
|
187
|
-
"
|
|
188
|
-
"
|
|
390
|
+
"attempt_id",
|
|
391
|
+
"harness_id",
|
|
392
|
+
"role"
|
|
189
393
|
],
|
|
190
394
|
"additionalProperties": false,
|
|
191
|
-
"description": "One
|
|
395
|
+
"description": "One role-labelled participant in the terminal run graph."
|
|
192
396
|
},
|
|
193
|
-
"
|
|
194
|
-
"description": "
|
|
397
|
+
"default": [],
|
|
398
|
+
"description": "Role-labelled participant roster."
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"required": [
|
|
402
|
+
"planners"
|
|
403
|
+
],
|
|
404
|
+
"additionalProperties": false,
|
|
405
|
+
"description": "Terminal participant graph plus its planner-lane count."
|
|
406
|
+
},
|
|
407
|
+
"gates": {
|
|
408
|
+
"type": "object",
|
|
409
|
+
"properties": {
|
|
410
|
+
"configured": {
|
|
411
|
+
"type": "boolean",
|
|
412
|
+
"description": "Whether the frozen task configured deterministic gates."
|
|
413
|
+
},
|
|
414
|
+
"required": {
|
|
415
|
+
"type": "integer",
|
|
416
|
+
"minimum": 0,
|
|
417
|
+
"description": "Number of configured required gates."
|
|
418
|
+
},
|
|
419
|
+
"total": {
|
|
420
|
+
"type": "integer",
|
|
421
|
+
"minimum": 0,
|
|
422
|
+
"description": "Total configured deterministic gates."
|
|
423
|
+
},
|
|
424
|
+
"executed": {
|
|
425
|
+
"type": "boolean",
|
|
426
|
+
"description": "Whether the terminal attempt executed the gate set."
|
|
427
|
+
},
|
|
428
|
+
"state": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"enum": [
|
|
431
|
+
"not_configured",
|
|
432
|
+
"passed",
|
|
433
|
+
"failed",
|
|
434
|
+
"skipped"
|
|
435
|
+
],
|
|
436
|
+
"description": "Terminal state of the configured deterministic gate set."
|
|
437
|
+
},
|
|
438
|
+
"receipt_attempt_id": {
|
|
439
|
+
"anyOf": [
|
|
440
|
+
{
|
|
441
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"type": "null"
|
|
445
|
+
}
|
|
446
|
+
],
|
|
447
|
+
"description": "Attempt whose gate receipt decides this projection; null when no gates executed.",
|
|
448
|
+
"default": null
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"required": [
|
|
452
|
+
"configured",
|
|
453
|
+
"required",
|
|
454
|
+
"total",
|
|
455
|
+
"executed",
|
|
456
|
+
"state"
|
|
457
|
+
],
|
|
458
|
+
"additionalProperties": false,
|
|
459
|
+
"description": "Canonical gate configuration and terminal receipt projection."
|
|
460
|
+
},
|
|
461
|
+
"review": {
|
|
462
|
+
"type": "object",
|
|
463
|
+
"properties": {
|
|
464
|
+
"state": {
|
|
465
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/outcome/properties/review"
|
|
466
|
+
},
|
|
467
|
+
"blocker_ids": {
|
|
468
|
+
"type": "array",
|
|
469
|
+
"items": {
|
|
470
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
|
|
471
|
+
},
|
|
472
|
+
"default": [],
|
|
473
|
+
"description": "Stable ids of accepted evidence-backed blocking findings."
|
|
474
|
+
},
|
|
475
|
+
"blockers": {
|
|
476
|
+
"type": "integer",
|
|
477
|
+
"minimum": 0,
|
|
478
|
+
"description": "Number of blocking findings."
|
|
195
479
|
}
|
|
196
480
|
},
|
|
197
481
|
"required": [
|
|
198
482
|
"state",
|
|
199
|
-
"
|
|
483
|
+
"blockers"
|
|
200
484
|
],
|
|
201
485
|
"additionalProperties": false,
|
|
202
|
-
"description": "
|
|
486
|
+
"description": "Canonical terminal review verdict and blocking-finding identity."
|
|
487
|
+
},
|
|
488
|
+
"apply": {
|
|
489
|
+
"type": "object",
|
|
490
|
+
"properties": {
|
|
491
|
+
"eligibility": {
|
|
492
|
+
"anyOf": [
|
|
493
|
+
{
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"eligible": {
|
|
497
|
+
"type": "boolean",
|
|
498
|
+
"description": "True when the apply gate would accept this run's patch right now."
|
|
499
|
+
},
|
|
500
|
+
"state": {
|
|
501
|
+
"type": [
|
|
502
|
+
"string",
|
|
503
|
+
"null"
|
|
504
|
+
],
|
|
505
|
+
"description": "The gate's apply-eligibility classification (e.g. needs_review | not_verified | no_changes | ok) when known."
|
|
506
|
+
},
|
|
507
|
+
"reason": {
|
|
508
|
+
"type": [
|
|
509
|
+
"string",
|
|
510
|
+
"null"
|
|
511
|
+
],
|
|
512
|
+
"description": "The gate's refusal text when not eligible (null when eligible)."
|
|
513
|
+
},
|
|
514
|
+
"requiredAction": {
|
|
515
|
+
"type": [
|
|
516
|
+
"string",
|
|
517
|
+
"null"
|
|
518
|
+
],
|
|
519
|
+
"description": "Honest guidance for what actually unblocks apply (typed operator decision, add gates, re-run, or nothing to apply)."
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"required": [
|
|
523
|
+
"eligible",
|
|
524
|
+
"state",
|
|
525
|
+
"reason",
|
|
526
|
+
"requiredAction"
|
|
527
|
+
],
|
|
528
|
+
"additionalProperties": false,
|
|
529
|
+
"description": "Derived apply-gate verdict for a run's WorkProduct (single producer in the delivery gate)."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"type": "null"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"description": "Delivery-gate eligibility at terminalization; null when nothing is applyable.",
|
|
536
|
+
"default": null
|
|
537
|
+
},
|
|
538
|
+
"operator_decision_present": {
|
|
539
|
+
"type": "boolean",
|
|
540
|
+
"default": false,
|
|
541
|
+
"description": "Whether a valid operator decision was present when the receipt was finalized."
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"additionalProperties": false,
|
|
545
|
+
"description": "Terminal apply eligibility and operator-decision state."
|
|
546
|
+
},
|
|
547
|
+
"required_actions": {
|
|
548
|
+
"type": "array",
|
|
549
|
+
"items": {
|
|
550
|
+
"type": "object",
|
|
551
|
+
"properties": {
|
|
552
|
+
"id": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"enum": [
|
|
555
|
+
"provide_required_input",
|
|
556
|
+
"complete_incomplete_work",
|
|
557
|
+
"resolve_review_block",
|
|
558
|
+
"fix_failed_checks",
|
|
559
|
+
"record_operator_decision"
|
|
560
|
+
],
|
|
561
|
+
"description": "Stable machine id for a required operator action on a blocked terminal run."
|
|
562
|
+
},
|
|
563
|
+
"detail": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"description": "Human-readable guidance for this action (English-only, INV-141)."
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"required": [
|
|
569
|
+
"id",
|
|
570
|
+
"detail"
|
|
571
|
+
],
|
|
572
|
+
"additionalProperties": false,
|
|
573
|
+
"description": "One typed required operator action derived from a run's terminal outcome facts."
|
|
574
|
+
},
|
|
575
|
+
"default": [],
|
|
576
|
+
"description": "Typed actions required to unblock this terminal outcome."
|
|
577
|
+
},
|
|
578
|
+
"generated_at": {
|
|
579
|
+
"type": "string",
|
|
580
|
+
"minLength": 1,
|
|
581
|
+
"description": "When this immutable terminal receipt was finalized."
|
|
203
582
|
}
|
|
204
583
|
},
|
|
205
584
|
"required": [
|
|
206
|
-
"
|
|
585
|
+
"schema_version",
|
|
586
|
+
"run_id",
|
|
587
|
+
"task_id",
|
|
588
|
+
"mode",
|
|
589
|
+
"outcome",
|
|
590
|
+
"deliverable",
|
|
591
|
+
"participants",
|
|
592
|
+
"gates",
|
|
593
|
+
"review",
|
|
594
|
+
"apply",
|
|
595
|
+
"generated_at"
|
|
207
596
|
],
|
|
208
597
|
"additionalProperties": false,
|
|
209
|
-
"description": "
|
|
598
|
+
"description": "Validated immutable terminal facts for one run."
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"type": "null"
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
"description": "Validated canonical terminal RunFacts receipt; null while active, unavailable, or for legacy runs.",
|
|
605
|
+
"default": null
|
|
606
|
+
},
|
|
607
|
+
"decisionStatus": {
|
|
608
|
+
"type": [
|
|
609
|
+
"string",
|
|
610
|
+
"null"
|
|
611
|
+
],
|
|
612
|
+
"default": null,
|
|
613
|
+
"description": "The arbitration decision status, when the run reached arbitration."
|
|
614
|
+
},
|
|
615
|
+
"pendingInteractions": {
|
|
616
|
+
"anyOf": [
|
|
617
|
+
{
|
|
618
|
+
"type": "integer",
|
|
619
|
+
"minimum": 0
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"type": "null"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"default": null,
|
|
626
|
+
"description": "Count of questions still awaiting answers, when known."
|
|
627
|
+
},
|
|
628
|
+
"outcomeFacts": {
|
|
629
|
+
"anyOf": [
|
|
630
|
+
{
|
|
631
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/outcome"
|
|
210
632
|
},
|
|
211
633
|
{
|
|
212
634
|
"type": "null"
|
|
@@ -367,42 +789,7 @@
|
|
|
367
789
|
"applyEligibility": {
|
|
368
790
|
"anyOf": [
|
|
369
791
|
{
|
|
370
|
-
"
|
|
371
|
-
"properties": {
|
|
372
|
-
"eligible": {
|
|
373
|
-
"type": "boolean",
|
|
374
|
-
"description": "True when the apply gate would accept this run's patch right now."
|
|
375
|
-
},
|
|
376
|
-
"state": {
|
|
377
|
-
"type": [
|
|
378
|
-
"string",
|
|
379
|
-
"null"
|
|
380
|
-
],
|
|
381
|
-
"description": "The gate's apply-eligibility classification (e.g. needs_review | not_verified | no_changes | ok) when known."
|
|
382
|
-
},
|
|
383
|
-
"reason": {
|
|
384
|
-
"type": [
|
|
385
|
-
"string",
|
|
386
|
-
"null"
|
|
387
|
-
],
|
|
388
|
-
"description": "The gate's refusal text when not eligible (null when eligible)."
|
|
389
|
-
},
|
|
390
|
-
"requiredAction": {
|
|
391
|
-
"type": [
|
|
392
|
-
"string",
|
|
393
|
-
"null"
|
|
394
|
-
],
|
|
395
|
-
"description": "Honest guidance for what actually unblocks apply (typed operator decision, add gates, re-run, or nothing to apply)."
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"required": [
|
|
399
|
-
"eligible",
|
|
400
|
-
"state",
|
|
401
|
-
"reason",
|
|
402
|
-
"requiredAction"
|
|
403
|
-
],
|
|
404
|
-
"additionalProperties": false,
|
|
405
|
-
"description": "Derived apply-gate verdict for a run's WorkProduct (single producer in the delivery gate)."
|
|
792
|
+
"$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/apply/properties/eligibility/anyOf/0"
|
|
406
793
|
},
|
|
407
794
|
{
|
|
408
795
|
"type": "null"
|