@claudexor/schema 3.10.5 → 3.11.0

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 (157) hide show
  1. package/dist/agent-capabilities.d.ts +24 -0
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +5 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/attempt-execution.d.ts +112 -0
  6. package/dist/attempt-execution.d.ts.map +1 -0
  7. package/dist/attempt-execution.js +15 -0
  8. package/dist/attempt-execution.js.map +1 -0
  9. package/dist/budget.d.ts +76 -0
  10. package/dist/budget.d.ts.map +1 -1
  11. package/dist/budget.js +12 -0
  12. package/dist/budget.js.map +1 -1
  13. package/dist/control-harness-list.d.ts +18 -0
  14. package/dist/control-harness-list.d.ts.map +1 -1
  15. package/dist/control-harness-models.d.ts +1042 -0
  16. package/dist/control-harness-models.d.ts.map +1 -0
  17. package/dist/control-harness-models.js +47 -0
  18. package/dist/control-harness-models.js.map +1 -0
  19. package/dist/control-operation-responses.d.ts +73 -21
  20. package/dist/control-operation-responses.d.ts.map +1 -1
  21. package/dist/control-operation-responses.js +6 -0
  22. package/dist/control-operation-responses.js.map +1 -1
  23. package/dist/control-run-detail.d.ts +270 -85
  24. package/dist/control-run-detail.d.ts.map +1 -1
  25. package/dist/control-run-detail.js +12 -1
  26. package/dist/control-run-detail.js.map +1 -1
  27. package/dist/control-run-execution.d.ts +6 -0
  28. package/dist/control-run-execution.d.ts.map +1 -1
  29. package/dist/control-run-execution.js +6 -0
  30. package/dist/control-run-execution.js.map +1 -1
  31. package/dist/control-thread-apply.d.ts +12 -0
  32. package/dist/control-thread-apply.d.ts.map +1 -1
  33. package/dist/control.d.ts +181 -146
  34. package/dist/control.d.ts.map +1 -1
  35. package/dist/control.js +25 -33
  36. package/dist/control.js.map +1 -1
  37. package/dist/credential-profile-snapshot.d.ts +36 -0
  38. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  39. package/dist/decision.d.ts +16 -8
  40. package/dist/decision.d.ts.map +1 -1
  41. package/dist/decision.js +5 -0
  42. package/dist/decision.js.map +1 -1
  43. package/dist/delivery.d.ts +8 -0
  44. package/dist/delivery.d.ts.map +1 -1
  45. package/dist/delivery.js +1 -0
  46. package/dist/delivery.js.map +1 -1
  47. package/dist/files-manifest.d.ts +501 -0
  48. package/dist/files-manifest.d.ts.map +1 -0
  49. package/dist/files-manifest.js +77 -0
  50. package/dist/files-manifest.js.map +1 -0
  51. package/dist/harness-model.d.ts +86 -0
  52. package/dist/harness-model.d.ts.map +1 -0
  53. package/dist/harness-model.js +34 -0
  54. package/dist/harness-model.js.map +1 -0
  55. package/dist/harness.d.ts +183 -27
  56. package/dist/harness.d.ts.map +1 -1
  57. package/dist/harness.js +19 -31
  58. package/dist/harness.js.map +1 -1
  59. package/dist/index.d.ts +3 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +3 -0
  62. package/dist/index.js.map +1 -1
  63. package/dist/mcp-run-result.d.ts +379 -56
  64. package/dist/mcp-run-result.d.ts.map +1 -1
  65. package/dist/mcp-run-result.js +3 -0
  66. package/dist/mcp-run-result.js.map +1 -1
  67. package/dist/model-operation.d.ts +1371 -0
  68. package/dist/model-operation.d.ts.map +1 -1
  69. package/dist/model-operation.js +36 -0
  70. package/dist/model-operation.js.map +1 -1
  71. package/dist/processing.d.ts +94 -0
  72. package/dist/processing.d.ts.map +1 -0
  73. package/dist/processing.js +45 -0
  74. package/dist/processing.js.map +1 -0
  75. package/dist/readiness.d.ts +14 -0
  76. package/dist/readiness.d.ts.map +1 -1
  77. package/dist/run-facts.d.ts +28 -28
  78. package/dist/run-facts.js +4 -4
  79. package/dist/run-facts.js.map +1 -1
  80. package/dist/run-strategy.d.ts +1 -0
  81. package/dist/run-strategy.d.ts.map +1 -1
  82. package/dist/run-strategy.js +2 -0
  83. package/dist/run-strategy.js.map +1 -1
  84. package/dist/status-projection.d.ts.map +1 -1
  85. package/dist/status-projection.js +3 -1
  86. package/dist/status-projection.js.map +1 -1
  87. package/dist/surface-run-controls.d.ts.map +1 -1
  88. package/dist/surface-run-controls.js +22 -1
  89. package/dist/surface-run-controls.js.map +1 -1
  90. package/dist/task.d.ts +9 -0
  91. package/dist/task.d.ts.map +1 -1
  92. package/dist/task.js +2 -0
  93. package/dist/task.js.map +1 -1
  94. package/dist/telemetry.d.ts +263 -41
  95. package/dist/telemetry.d.ts.map +1 -1
  96. package/dist/telemetry.js +5 -8
  97. package/dist/telemetry.js.map +1 -1
  98. package/dist/workproduct.d.ts +4 -4
  99. package/dist/workproduct.d.ts.map +1 -1
  100. package/dist/workproduct.js +4 -4
  101. package/dist/workproduct.js.map +1 -1
  102. package/dist/workspace.d.ts +14 -11
  103. package/dist/workspace.d.ts.map +1 -1
  104. package/dist/workspace.js +14 -9
  105. package/dist/workspace.js.map +1 -1
  106. package/generated/AgentCapabilityCatalog.schema.json +25 -0
  107. package/generated/AttemptExecutionEvidence.schema.json +187 -0
  108. package/generated/BudgetLease.schema.json +39 -0
  109. package/generated/ControlApplyCheckRequest.schema.json +7 -0
  110. package/generated/ControlApplyRequest.schema.json +7 -0
  111. package/generated/ControlCredentialProfilesQueryResponse.schema.json +25 -0
  112. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +25 -0
  113. package/generated/ControlDeliveryResponse.schema.json +10 -0
  114. package/generated/ControlHarnessAccountCatalog.schema.json +208 -0
  115. package/generated/ControlHarnessAccountModelsResponse.schema.json +320 -0
  116. package/generated/ControlHarnessListResponse.schema.json +25 -0
  117. package/generated/ControlHarnessModelsQueryResponse.schema.json +347 -0
  118. package/generated/ControlHarnessModelsResponse.schema.json +89 -0
  119. package/generated/ControlModelAccountCatalogResponse.schema.json +339 -0
  120. package/generated/ControlModelCatalogQueryResponse.schema.json +346 -0
  121. package/generated/ControlModelCatalogResponse.schema.json +86 -0
  122. package/generated/ControlModelOperationDetail.schema.json +39 -0
  123. package/generated/ControlModelSourcesAccountsResponse.schema.json +61 -0
  124. package/generated/ControlModelSourcesQueryResponse.schema.json +98 -0
  125. package/generated/ControlRunAgainDraft.schema.json +29 -0
  126. package/generated/ControlRunDecisionRequest.schema.json +4 -3
  127. package/generated/ControlRunDecisionResponse.schema.json +2 -1
  128. package/generated/ControlRunDetail.schema.json +234 -28
  129. package/generated/ControlRunListResponse.schema.json +18 -4
  130. package/generated/ControlRunStartRequest.schema.json +29 -0
  131. package/generated/ControlRunSummary.schema.json +18 -4
  132. package/generated/ControlThreadApplyResponse.schema.json +10 -0
  133. package/generated/ControlThreadDetail.schema.json +9 -4
  134. package/generated/ControlThreadTurnRequest.schema.json +45 -0
  135. package/generated/DecisionRecord.schema.json +8 -1
  136. package/generated/HarnessEvent.schema.json +146 -0
  137. package/generated/HarnessManifest.schema.json +25 -0
  138. package/generated/HarnessModel.schema.json +89 -0
  139. package/generated/HarnessStatusDto.schema.json +25 -0
  140. package/generated/McpRunHandleResult.schema.json +205 -9
  141. package/generated/McpRunToolResult.schema.json +196 -9
  142. package/generated/ModelCallRequest.schema.json +9 -0
  143. package/generated/ModelCallResult.schema.json +124 -0
  144. package/generated/ProcessingCapability.schema.json +95 -0
  145. package/generated/ProcessingCostBasis.schema.json +45 -0
  146. package/generated/ProcessingPreference.schema.json +15 -0
  147. package/generated/ProcessingReceipt.schema.json +94 -0
  148. package/generated/RunFacts.schema.json +6 -1
  149. package/generated/RunTelemetry.schema.json +168 -1
  150. package/generated/TaskContract.schema.json +9 -0
  151. package/generated/UsageCostBasis.schema.json +31 -0
  152. package/generated/UsageCostSummary.schema.json +44 -0
  153. package/generated/WorkProduct.schema.json +4 -3
  154. package/generated/WorkspaceEnvelope.schema.json +25 -5
  155. package/generated/WorkspaceFilesManifest.schema.json +160 -0
  156. package/generated/WorkspaceKind.schema.json +13 -0
  157. package/package.json +2 -2
@@ -4,6 +4,190 @@
4
4
  "McpRunHandleResult": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "attemptExecution": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "attemptId": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Non-empty identifier string."
16
+ },
17
+ "harnessId": {
18
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
19
+ },
20
+ "processing": {
21
+ "type": "object",
22
+ "properties": {
23
+ "requested": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string",
27
+ "enum": [
28
+ "standard",
29
+ "fast",
30
+ "economy"
31
+ ],
32
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
33
+ },
34
+ {
35
+ "type": "null"
36
+ }
37
+ ],
38
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
39
+ },
40
+ "submitted": {
41
+ "anyOf": [
42
+ {
43
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/processing/properties/requested/anyOf/0"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ],
49
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
50
+ },
51
+ "submittedNative": {
52
+ "anyOf": [
53
+ {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "pattern": "\\S",
57
+ "description": "User-supplied string that must contain visible content, not just whitespace."
58
+ },
59
+ {
60
+ "type": "null"
61
+ }
62
+ ],
63
+ "description": "User-supplied string that must contain visible content, not just whitespace."
64
+ },
65
+ "observed": {
66
+ "type": "string",
67
+ "enum": [
68
+ "standard",
69
+ "fast",
70
+ "economy",
71
+ "mixed",
72
+ "unknown"
73
+ ]
74
+ },
75
+ "observedNative": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
79
+ }
80
+ },
81
+ "reason": {
82
+ "anyOf": [
83
+ {
84
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ],
90
+ "description": "User-supplied string that must contain visible content, not just whitespace."
91
+ },
92
+ "source": {
93
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
94
+ }
95
+ },
96
+ "required": [
97
+ "requested",
98
+ "submitted",
99
+ "submittedNative",
100
+ "observed",
101
+ "observedNative",
102
+ "reason",
103
+ "source"
104
+ ],
105
+ "additionalProperties": false,
106
+ "description": "Requested intent, submitted native control, and observed execution are independent facts. A submitted flag never proves observed service; mixed or missing session observations remain explicit."
107
+ },
108
+ "processingCostBasis": {
109
+ "type": "object",
110
+ "properties": {
111
+ "nativeMode": {
112
+ "anyOf": [
113
+ {
114
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ],
120
+ "description": "User-supplied string that must contain visible content, not just whitespace."
121
+ },
122
+ "kind": {
123
+ "type": "string",
124
+ "enum": [
125
+ "included",
126
+ "paid_credits",
127
+ "cash",
128
+ "valuation",
129
+ "unknown"
130
+ ]
131
+ },
132
+ "source": {
133
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
134
+ }
135
+ },
136
+ "required": [
137
+ "nativeMode",
138
+ "kind",
139
+ "source"
140
+ ],
141
+ "additionalProperties": false,
142
+ "description": "Mode-qualified billing evidence for an existing cost record. Authentication alone does not establish included premium service; credits, cash, and token valuation stay distinct."
143
+ },
144
+ "usageCost": {
145
+ "type": "object",
146
+ "properties": {
147
+ "cashUsd": {
148
+ "type": "number",
149
+ "minimum": 0
150
+ },
151
+ "valuationUsd": {
152
+ "type": "number",
153
+ "minimum": 0
154
+ },
155
+ "unknownUsd": {
156
+ "type": "number",
157
+ "minimum": 0
158
+ },
159
+ "cashKnowledge": {
160
+ "type": "string",
161
+ "enum": [
162
+ "exact",
163
+ "estimated",
164
+ "unknown"
165
+ ],
166
+ "description": "Quality of incremental-cash cost evidence for an operation."
167
+ },
168
+ "valuationKnowledge": {
169
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/usageCost/properties/cashKnowledge"
170
+ }
171
+ },
172
+ "required": [
173
+ "cashUsd",
174
+ "valuationUsd",
175
+ "unknownUsd",
176
+ "cashKnowledge",
177
+ "valuationKnowledge"
178
+ ],
179
+ "additionalProperties": false,
180
+ "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash."
181
+ }
182
+ },
183
+ "required": [
184
+ "attemptId",
185
+ "harnessId"
186
+ ],
187
+ "additionalProperties": false,
188
+ "description": "Compact projection of existing attempt execution and amount evidence."
189
+ }
190
+ },
7
191
  "summary": {
8
192
  "type": "string",
9
193
  "description": "Human-readable outcome/status text (same as the tool's text content)."
@@ -43,12 +227,10 @@
43
227
  "description": "Schema version of the artifact; bumped on breaking ABI changes."
44
228
  },
45
229
  "run_id": {
46
- "type": "string",
47
- "minLength": 1,
48
- "description": "Non-empty identifier string."
230
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
49
231
  },
50
232
  "task_id": {
51
- "$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
233
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
52
234
  },
53
235
  "mode": {
54
236
  "type": "string",
@@ -73,7 +255,10 @@
73
255
  "description": "Terminal lifecycle of the run."
74
256
  },
75
257
  "noChanges": {
76
- "type": "boolean",
258
+ "type": [
259
+ "boolean",
260
+ "null"
261
+ ],
77
262
  "default": false,
78
263
  "description": "True when the run finished without changing any files (the ex no_op fact)."
79
264
  },
@@ -234,6 +419,7 @@
234
419
  "report",
235
420
  "plan",
236
421
  "patch",
422
+ "files",
237
423
  "structured_output"
238
424
  ]
239
425
  },
@@ -253,7 +439,7 @@
253
439
  "producer_attempt_id": {
254
440
  "anyOf": [
255
441
  {
256
- "$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
442
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
257
443
  },
258
444
  {
259
445
  "type": "null"
@@ -294,6 +480,7 @@
294
480
  "report",
295
481
  "plan",
296
482
  "patch",
483
+ "files",
297
484
  "structured_output",
298
485
  "diagnostic"
299
486
  ],
@@ -342,7 +529,7 @@
342
529
  "attempt_id": {
343
530
  "anyOf": [
344
531
  {
345
- "$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
532
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
346
533
  },
347
534
  {
348
535
  "type": "null"
@@ -444,7 +631,7 @@
444
631
  "receipt_attempt_id": {
445
632
  "anyOf": [
446
633
  {
447
- "$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
634
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
448
635
  },
449
636
  {
450
637
  "type": "null"
@@ -473,7 +660,7 @@
473
660
  "blocker_ids": {
474
661
  "type": "array",
475
662
  "items": {
476
- "$ref": "#/definitions/McpRunHandleResult/properties/runFacts/anyOf/0/properties/run_id"
663
+ "$ref": "#/definitions/McpRunHandleResult/properties/attemptExecution/items/properties/attemptId"
477
664
  },
478
665
  "default": [],
479
666
  "description": "Stable ids of accepted evidence-backed blocking findings."
@@ -935,6 +1122,15 @@
935
1122
  {
936
1123
  "type": "object",
937
1124
  "properties": {
1125
+ "cashKnowledge": {
1126
+ "type": "string",
1127
+ "enum": [
1128
+ "exact",
1129
+ "estimated",
1130
+ "unknown"
1131
+ ],
1132
+ "description": "Cash certainty from the ledger; explicit unknown keeps spendUsd null independently of valuation."
1133
+ },
938
1134
  "paidBudget": {
939
1135
  "anyOf": [
940
1136
  {
@@ -4,6 +4,190 @@
4
4
  "McpRunToolResult": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "attemptExecution": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "attemptId": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Non-empty identifier string."
16
+ },
17
+ "harnessId": {
18
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
19
+ },
20
+ "processing": {
21
+ "type": "object",
22
+ "properties": {
23
+ "requested": {
24
+ "anyOf": [
25
+ {
26
+ "type": "string",
27
+ "enum": [
28
+ "standard",
29
+ "fast",
30
+ "economy"
31
+ ],
32
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
33
+ },
34
+ {
35
+ "type": "null"
36
+ }
37
+ ],
38
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
39
+ },
40
+ "submitted": {
41
+ "anyOf": [
42
+ {
43
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/processing/properties/requested/anyOf/0"
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ],
49
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
50
+ },
51
+ "submittedNative": {
52
+ "anyOf": [
53
+ {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "pattern": "\\S",
57
+ "description": "User-supplied string that must contain visible content, not just whitespace."
58
+ },
59
+ {
60
+ "type": "null"
61
+ }
62
+ ],
63
+ "description": "User-supplied string that must contain visible content, not just whitespace."
64
+ },
65
+ "observed": {
66
+ "type": "string",
67
+ "enum": [
68
+ "standard",
69
+ "fast",
70
+ "economy",
71
+ "mixed",
72
+ "unknown"
73
+ ]
74
+ },
75
+ "observedNative": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
79
+ }
80
+ },
81
+ "reason": {
82
+ "anyOf": [
83
+ {
84
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
85
+ },
86
+ {
87
+ "type": "null"
88
+ }
89
+ ],
90
+ "description": "User-supplied string that must contain visible content, not just whitespace."
91
+ },
92
+ "source": {
93
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
94
+ }
95
+ },
96
+ "required": [
97
+ "requested",
98
+ "submitted",
99
+ "submittedNative",
100
+ "observed",
101
+ "observedNative",
102
+ "reason",
103
+ "source"
104
+ ],
105
+ "additionalProperties": false,
106
+ "description": "Requested intent, submitted native control, and observed execution are independent facts. A submitted flag never proves observed service; mixed or missing session observations remain explicit."
107
+ },
108
+ "processingCostBasis": {
109
+ "type": "object",
110
+ "properties": {
111
+ "nativeMode": {
112
+ "anyOf": [
113
+ {
114
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ],
120
+ "description": "User-supplied string that must contain visible content, not just whitespace."
121
+ },
122
+ "kind": {
123
+ "type": "string",
124
+ "enum": [
125
+ "included",
126
+ "paid_credits",
127
+ "cash",
128
+ "valuation",
129
+ "unknown"
130
+ ]
131
+ },
132
+ "source": {
133
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/processing/properties/submittedNative/anyOf/0"
134
+ }
135
+ },
136
+ "required": [
137
+ "nativeMode",
138
+ "kind",
139
+ "source"
140
+ ],
141
+ "additionalProperties": false,
142
+ "description": "Mode-qualified billing evidence for an existing cost record. Authentication alone does not establish included premium service; credits, cash, and token valuation stay distinct."
143
+ },
144
+ "usageCost": {
145
+ "type": "object",
146
+ "properties": {
147
+ "cashUsd": {
148
+ "type": "number",
149
+ "minimum": 0
150
+ },
151
+ "valuationUsd": {
152
+ "type": "number",
153
+ "minimum": 0
154
+ },
155
+ "unknownUsd": {
156
+ "type": "number",
157
+ "minimum": 0
158
+ },
159
+ "cashKnowledge": {
160
+ "type": "string",
161
+ "enum": [
162
+ "exact",
163
+ "estimated",
164
+ "unknown"
165
+ ],
166
+ "description": "Quality of incremental-cash cost evidence for an operation."
167
+ },
168
+ "valuationKnowledge": {
169
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/usageCost/properties/cashKnowledge"
170
+ }
171
+ },
172
+ "required": [
173
+ "cashUsd",
174
+ "valuationUsd",
175
+ "unknownUsd",
176
+ "cashKnowledge",
177
+ "valuationKnowledge"
178
+ ],
179
+ "additionalProperties": false,
180
+ "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash."
181
+ }
182
+ },
183
+ "required": [
184
+ "attemptId",
185
+ "harnessId"
186
+ ],
187
+ "additionalProperties": false,
188
+ "description": "Compact projection of existing attempt execution and amount evidence."
189
+ }
190
+ },
7
191
  "summary": {
8
192
  "type": "string",
9
193
  "description": "Human-readable outcome summary (same text as the tool's text content)."
@@ -40,12 +224,10 @@
40
224
  "description": "Schema version of the artifact; bumped on breaking ABI changes."
41
225
  },
42
226
  "run_id": {
43
- "type": "string",
44
- "minLength": 1,
45
- "description": "Non-empty identifier string."
227
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
46
228
  },
47
229
  "task_id": {
48
- "$ref": "#/definitions/McpRunToolResult/properties/runFacts/anyOf/0/properties/run_id"
230
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
49
231
  },
50
232
  "mode": {
51
233
  "type": "string",
@@ -70,7 +252,10 @@
70
252
  "description": "Terminal lifecycle of the run."
71
253
  },
72
254
  "noChanges": {
73
- "type": "boolean",
255
+ "type": [
256
+ "boolean",
257
+ "null"
258
+ ],
74
259
  "default": false,
75
260
  "description": "True when the run finished without changing any files (the ex no_op fact)."
76
261
  },
@@ -231,6 +416,7 @@
231
416
  "report",
232
417
  "plan",
233
418
  "patch",
419
+ "files",
234
420
  "structured_output"
235
421
  ]
236
422
  },
@@ -250,7 +436,7 @@
250
436
  "producer_attempt_id": {
251
437
  "anyOf": [
252
438
  {
253
- "$ref": "#/definitions/McpRunToolResult/properties/runFacts/anyOf/0/properties/run_id"
439
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
254
440
  },
255
441
  {
256
442
  "type": "null"
@@ -291,6 +477,7 @@
291
477
  "report",
292
478
  "plan",
293
479
  "patch",
480
+ "files",
294
481
  "structured_output",
295
482
  "diagnostic"
296
483
  ],
@@ -339,7 +526,7 @@
339
526
  "attempt_id": {
340
527
  "anyOf": [
341
528
  {
342
- "$ref": "#/definitions/McpRunToolResult/properties/runFacts/anyOf/0/properties/run_id"
529
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
343
530
  },
344
531
  {
345
532
  "type": "null"
@@ -441,7 +628,7 @@
441
628
  "receipt_attempt_id": {
442
629
  "anyOf": [
443
630
  {
444
- "$ref": "#/definitions/McpRunToolResult/properties/runFacts/anyOf/0/properties/run_id"
631
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
445
632
  },
446
633
  {
447
634
  "type": "null"
@@ -470,7 +657,7 @@
470
657
  "blocker_ids": {
471
658
  "type": "array",
472
659
  "items": {
473
- "$ref": "#/definitions/McpRunToolResult/properties/runFacts/anyOf/0/properties/run_id"
660
+ "$ref": "#/definitions/McpRunToolResult/properties/attemptExecution/items/properties/attemptId"
474
661
  },
475
662
  "default": [],
476
663
  "description": "Stable ids of accepted evidence-backed blocking findings."
@@ -282,6 +282,15 @@
282
282
  "$ref": "#/definitions/ModelCallRequest/properties/model",
283
283
  "description": "User-supplied string that must contain visible content, not just whitespace."
284
284
  },
285
+ "processingPreference": {
286
+ "type": "string",
287
+ "enum": [
288
+ "standard",
289
+ "fast",
290
+ "economy"
291
+ ],
292
+ "description": "Advisory service preference. Fast or Economy may use ordinary Standard service; fallback never introduces Fast. Omission preserves native defaults. Explicit native serviceTier takes precedence."
293
+ },
285
294
  "parallelToolCalls": {
286
295
  "type": "boolean"
287
296
  },