@claudexor/schema 5.0.2 → 6.0.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 (281) hide show
  1. package/dist/account-routing-evidence.d.ts +324 -0
  2. package/dist/account-routing-evidence.d.ts.map +1 -1
  3. package/dist/account-routing-evidence.js +27 -2
  4. package/dist/account-routing-evidence.js.map +1 -1
  5. package/dist/agent-capabilities.d.ts +3 -0
  6. package/dist/agent-capabilities.d.ts.map +1 -1
  7. package/dist/agent-capabilities.js +6 -2
  8. package/dist/agent-capabilities.js.map +1 -1
  9. package/dist/attachment.d.ts +103 -6
  10. package/dist/attachment.d.ts.map +1 -1
  11. package/dist/attachment.js +32 -6
  12. package/dist/attachment.js.map +1 -1
  13. package/dist/attempt-execution.d.ts +23 -0
  14. package/dist/attempt-execution.d.ts.map +1 -1
  15. package/dist/attempt-execution.js +2 -0
  16. package/dist/attempt-execution.js.map +1 -1
  17. package/dist/browser-evidence.d.ts +85 -0
  18. package/dist/browser-evidence.d.ts.map +1 -0
  19. package/dist/browser-evidence.js +72 -0
  20. package/dist/browser-evidence.js.map +1 -0
  21. package/dist/config.d.ts.map +1 -1
  22. package/dist/config.js +1 -1
  23. package/dist/config.js.map +1 -1
  24. package/dist/control-gc.d.ts +30 -0
  25. package/dist/control-gc.d.ts.map +1 -1
  26. package/dist/control-gc.js +28 -1
  27. package/dist/control-gc.js.map +1 -1
  28. package/dist/control-harness-list.d.ts +34 -0
  29. package/dist/control-harness-list.d.ts.map +1 -1
  30. package/dist/control-harness-models.d.ts +122 -0
  31. package/dist/control-harness-models.d.ts.map +1 -1
  32. package/dist/control-harness-models.js +2 -0
  33. package/dist/control-harness-models.js.map +1 -1
  34. package/dist/control-operation-responses.d.ts +459 -36
  35. package/dist/control-operation-responses.d.ts.map +1 -1
  36. package/dist/control-operation-responses.js +11 -2
  37. package/dist/control-operation-responses.js.map +1 -1
  38. package/dist/control-pending-interaction.d.ts +96 -0
  39. package/dist/control-pending-interaction.d.ts.map +1 -0
  40. package/dist/control-pending-interaction.js +42 -0
  41. package/dist/control-pending-interaction.js.map +1 -0
  42. package/dist/control-process-scope.d.ts +34 -0
  43. package/dist/control-process-scope.d.ts.map +1 -1
  44. package/dist/control-process-scope.js +13 -0
  45. package/dist/control-process-scope.js.map +1 -1
  46. package/dist/control-run-detail.d.ts +877 -89
  47. package/dist/control-run-detail.d.ts.map +1 -1
  48. package/dist/control-run-detail.js +2 -1
  49. package/dist/control-run-detail.js.map +1 -1
  50. package/dist/control-run-failure.d.ts +40 -6
  51. package/dist/control-run-failure.d.ts.map +1 -1
  52. package/dist/control-run-failure.js +34 -3
  53. package/dist/control-run-failure.js.map +1 -1
  54. package/dist/control-run-message.js +1 -1
  55. package/dist/control-run-message.js.map +1 -1
  56. package/dist/control-trust.d.ts +8 -0
  57. package/dist/control-trust.d.ts.map +1 -1
  58. package/dist/control-trust.js +4 -0
  59. package/dist/control-trust.js.map +1 -1
  60. package/dist/control-web-evidence.d.ts +125 -0
  61. package/dist/control-web-evidence.d.ts.map +1 -0
  62. package/dist/control-web-evidence.js +109 -0
  63. package/dist/control-web-evidence.js.map +1 -0
  64. package/dist/control.d.ts +322 -179
  65. package/dist/control.d.ts.map +1 -1
  66. package/dist/control.js +52 -75
  67. package/dist/control.js.map +1 -1
  68. package/dist/credential-profile-snapshot.d.ts +136 -0
  69. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  70. package/dist/credential-profile.d.ts +4 -3
  71. package/dist/credential-profile.d.ts.map +1 -1
  72. package/dist/credential-profile.js +4 -3
  73. package/dist/credential-profile.js.map +1 -1
  74. package/dist/decision.d.ts +9 -9
  75. package/dist/decision.d.ts.map +1 -1
  76. package/dist/decision.js +2 -0
  77. package/dist/decision.js.map +1 -1
  78. package/dist/deferred-message.d.ts +646 -0
  79. package/dist/deferred-message.d.ts.map +1 -1
  80. package/dist/deferred-message.js +16 -2
  81. package/dist/deferred-message.js.map +1 -1
  82. package/dist/events.d.ts +6 -6
  83. package/dist/events.d.ts.map +1 -1
  84. package/dist/events.js +1 -0
  85. package/dist/events.js.map +1 -1
  86. package/dist/harness-confinement.js +1 -1
  87. package/dist/harness-confinement.js.map +1 -1
  88. package/dist/harness-input.d.ts +12 -0
  89. package/dist/harness-input.d.ts.map +1 -1
  90. package/dist/harness-input.js +11 -1
  91. package/dist/harness-input.js.map +1 -1
  92. package/dist/harness-interaction.d.ts +32 -0
  93. package/dist/harness-interaction.d.ts.map +1 -1
  94. package/dist/harness-interaction.js +47 -0
  95. package/dist/harness-interaction.js.map +1 -1
  96. package/dist/harness-maintenance.d.ts +3561 -717
  97. package/dist/harness-maintenance.d.ts.map +1 -1
  98. package/dist/harness-maintenance.js +107 -111
  99. package/dist/harness-maintenance.js.map +1 -1
  100. package/dist/harness-program.d.ts +2164 -0
  101. package/dist/harness-program.d.ts.map +1 -0
  102. package/dist/harness-program.js +110 -0
  103. package/dist/harness-program.js.map +1 -0
  104. package/dist/harness.d.ts +162 -19
  105. package/dist/harness.d.ts.map +1 -1
  106. package/dist/harness.js +25 -15
  107. package/dist/harness.js.map +1 -1
  108. package/dist/index.d.ts +6 -0
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +6 -0
  111. package/dist/index.js.map +1 -1
  112. package/dist/mcp-run-result.d.ts +453 -50
  113. package/dist/mcp-run-result.d.ts.map +1 -1
  114. package/dist/mcp-run-wait.d.ts +131 -0
  115. package/dist/mcp-run-wait.d.ts.map +1 -1
  116. package/dist/mcp-run-wait.js +3 -2
  117. package/dist/mcp-run-wait.js.map +1 -1
  118. package/dist/model-operation.d.ts +107 -0
  119. package/dist/model-operation.d.ts.map +1 -1
  120. package/dist/model-operation.js +3 -0
  121. package/dist/model-operation.js.map +1 -1
  122. package/dist/operation.d.ts +1 -1
  123. package/dist/operation.d.ts.map +1 -1
  124. package/dist/operation.js +1 -1
  125. package/dist/operation.js.map +1 -1
  126. package/dist/process-scope.d.ts +154 -0
  127. package/dist/process-scope.d.ts.map +1 -1
  128. package/dist/process-scope.js +16 -1
  129. package/dist/process-scope.js.map +1 -1
  130. package/dist/quota.d.ts +15 -0
  131. package/dist/quota.d.ts.map +1 -1
  132. package/dist/quota.js +15 -0
  133. package/dist/quota.js.map +1 -1
  134. package/dist/rate-limit.d.ts +3 -0
  135. package/dist/rate-limit.d.ts.map +1 -1
  136. package/dist/rate-limit.js +4 -0
  137. package/dist/rate-limit.js.map +1 -1
  138. package/dist/raw.d.ts.map +1 -1
  139. package/dist/raw.js +11 -5
  140. package/dist/raw.js.map +1 -1
  141. package/dist/readiness.d.ts +26 -0
  142. package/dist/readiness.d.ts.map +1 -1
  143. package/dist/route-controls.d.ts +49 -0
  144. package/dist/route-controls.d.ts.map +1 -0
  145. package/dist/route-controls.js +53 -0
  146. package/dist/route-controls.js.map +1 -0
  147. package/dist/route-health.d.ts +23 -23
  148. package/dist/route-health.js +1 -1
  149. package/dist/route-health.js.map +1 -1
  150. package/dist/run-continuation.d.ts +6 -6
  151. package/dist/run-continuity.d.ts +7 -7
  152. package/dist/run-continuity.d.ts.map +1 -1
  153. package/dist/run-continuity.js +2 -1
  154. package/dist/run-continuity.js.map +1 -1
  155. package/dist/run-facts.d.ts +5 -5
  156. package/dist/run-facts.js +1 -1
  157. package/dist/run-facts.js.map +1 -1
  158. package/dist/run-observation.d.ts +70 -0
  159. package/dist/run-observation.d.ts.map +1 -1
  160. package/dist/run-observation.js +31 -12
  161. package/dist/run-observation.js.map +1 -1
  162. package/dist/status-projection.d.ts +3 -2
  163. package/dist/status-projection.d.ts.map +1 -1
  164. package/dist/status-projection.js +5 -2
  165. package/dist/status-projection.js.map +1 -1
  166. package/dist/task-group.d.ts +3 -0
  167. package/dist/task-group.d.ts.map +1 -1
  168. package/dist/task-group.js +11 -1
  169. package/dist/task-group.js.map +1 -1
  170. package/dist/task.d.ts +2 -2
  171. package/dist/task.d.ts.map +1 -1
  172. package/dist/task.js +4 -4
  173. package/dist/task.js.map +1 -1
  174. package/dist/telemetry.d.ts +658 -117
  175. package/dist/telemetry.d.ts.map +1 -1
  176. package/dist/telemetry.js +19 -88
  177. package/dist/telemetry.js.map +1 -1
  178. package/dist/thread-export.d.ts +847 -0
  179. package/dist/thread-export.d.ts.map +1 -0
  180. package/dist/thread-export.js +238 -0
  181. package/dist/thread-export.js.map +1 -0
  182. package/dist/thread-history.d.ts +356 -132
  183. package/dist/thread-history.d.ts.map +1 -1
  184. package/dist/thread.d.ts +72 -6
  185. package/dist/thread.d.ts.map +1 -1
  186. package/dist/thread.js +19 -3
  187. package/dist/thread.js.map +1 -1
  188. package/dist/tool-ref.d.ts +172 -21
  189. package/dist/tool-ref.d.ts.map +1 -1
  190. package/dist/tool-ref.js +114 -29
  191. package/dist/tool-ref.js.map +1 -1
  192. package/dist/web-evidence.d.ts +91 -0
  193. package/dist/web-evidence.d.ts.map +1 -0
  194. package/dist/web-evidence.js +77 -0
  195. package/dist/web-evidence.js.map +1 -0
  196. package/dist/workspace.js +1 -1
  197. package/dist/workspace.js.map +1 -1
  198. package/generated/AgentCapabilityCatalog.schema.json +20 -2
  199. package/generated/AttemptExecutionEvidence.schema.json +35 -0
  200. package/generated/ConformanceReport.schema.json +26 -0
  201. package/generated/ControlAccountRoutingEvidenceResponse.schema.json +61 -1
  202. package/generated/ControlCredentialProfilesQueryResponse.schema.json +28 -2
  203. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +28 -2
  204. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +28 -2
  205. package/generated/ControlGcLastResponse.schema.json +22 -0
  206. package/generated/ControlGcReceipt.schema.json +13 -1
  207. package/generated/ControlHarnessAccountCatalog.schema.json +27 -0
  208. package/generated/ControlHarnessAccountModelsResponse.schema.json +27 -0
  209. package/generated/ControlHarnessListResponse.schema.json +28 -2
  210. package/generated/ControlHarnessMaintenanceCreateRequest.schema.json +2 -28
  211. package/generated/ControlHarnessMaintenanceInventory.schema.json +547 -184
  212. package/generated/ControlHarnessMaintenanceOperation.schema.json +211 -63
  213. package/generated/ControlHarnessModelsQueryResponse.schema.json +30 -0
  214. package/generated/ControlHarnessModelsResponse.schema.json +27 -0
  215. package/generated/ControlModelAccountCatalogResponse.schema.json +27 -0
  216. package/generated/ControlModelCatalogQueryResponse.schema.json +27 -0
  217. package/generated/ControlModelCatalogResponse.schema.json +27 -0
  218. package/generated/ControlPendingInteraction.schema.json +10 -1
  219. package/generated/ControlQueuedRunInfo.schema.json +1 -1
  220. package/generated/ControlResource.schema.json +5 -0
  221. package/generated/ControlResourceRelease.schema.json +44 -0
  222. package/generated/ControlResourceReleaseRequest.schema.json +27 -0
  223. package/generated/ControlRetainedEnvelope.schema.json +2 -1
  224. package/generated/ControlRouteHealth.schema.json +13 -1
  225. package/generated/ControlRunControlResponse.schema.json +41 -3
  226. package/generated/ControlRunDecisionRequest.schema.json +8 -2
  227. package/generated/ControlRunDecisionResponse.schema.json +4 -3
  228. package/generated/ControlRunDetail.schema.json +403 -11
  229. package/generated/ControlRunListResponse.schema.json +317 -7
  230. package/generated/ControlRunMessageResponse.schema.json +1 -1
  231. package/generated/ControlRunRetryResponse.schema.json +1 -1
  232. package/generated/ControlRunStartInfo.schema.json +1 -1
  233. package/generated/ControlRunStartResponse.schema.json +2 -2
  234. package/generated/ControlRunSummary.schema.json +317 -7
  235. package/generated/ControlThreadDetail.schema.json +6 -0
  236. package/generated/ControlThreadTurnResponse.schema.json +9 -0
  237. package/generated/ControlTrustListResponse.schema.json +8 -0
  238. package/generated/ControlTrustState.schema.json +8 -0
  239. package/generated/ControlUploadImport.schema.json +12 -2
  240. package/generated/ControlUploadImportRequest.schema.json +5 -0
  241. package/generated/DecisionRecord.schema.json +1 -0
  242. package/generated/DeferredMessageDetail.schema.json +43 -7
  243. package/generated/DeferredMessageProjection.schema.json +41 -3
  244. package/generated/DeferredMessageReadResult.schema.json +42 -4
  245. package/generated/DeferredMessageReceipt.schema.json +41 -3
  246. package/generated/EnvelopeCustody.schema.json +3 -2
  247. package/generated/GlobalConfig.schema.json +1 -1
  248. package/generated/HarnessEvent.schema.json +181 -4
  249. package/generated/HarnessManifest.schema.json +28 -2
  250. package/generated/HarnessProgram.schema.json +278 -0
  251. package/generated/HarnessProgramIdentity.schema.json +25 -0
  252. package/generated/HarnessStatusDto.schema.json +28 -2
  253. package/generated/McpAccountsToolResult.schema.json +88 -2
  254. package/generated/McpRunHandleResult.schema.json +141 -6
  255. package/generated/McpRunToolResult.schema.json +140 -6
  256. package/generated/McpRunWaitResult.schema.json +52 -5
  257. package/generated/McpThreadTurnResult.schema.json +9 -0
  258. package/generated/NativeProgramEvidence.schema.json +38 -0
  259. package/generated/RawContextPacket.schema.json +6 -4
  260. package/generated/RawGitPatchEnvelope.schema.json +1 -1
  261. package/generated/RoutePoolDegradedPayload.schema.json +2 -1
  262. package/generated/RunContinuityReceipt.schema.json +2 -1
  263. package/generated/RunFacts.schema.json +1 -0
  264. package/generated/RunFailure.schema.json +62 -2
  265. package/generated/RunResumable.schema.json +2 -1
  266. package/generated/RunTelemetry.schema.json +323 -7
  267. package/generated/RunWaitManyInput.schema.json +4 -0
  268. package/generated/RunWaitManyResult.schema.json +30 -0
  269. package/generated/SelectedHarnessProgram.schema.json +56 -0
  270. package/generated/TaskContract.schema.json +3 -3
  271. package/generated/TaskGroupReceipt.schema.json +1 -1
  272. package/generated/Thread.schema.json +41 -0
  273. package/generated/ThreadExportManifest.schema.json +461 -0
  274. package/generated/ThreadExportReceipt.schema.json +94 -0
  275. package/generated/ThreadHistoryPage.schema.json +71 -2
  276. package/generated/ThreadRetireAbandonRequest.schema.json +21 -0
  277. package/generated/ThreadRetireRequest.schema.json +41 -0
  278. package/generated/ThreadRetirement.schema.json +175 -0
  279. package/generated/ThreadTurn.schema.json +1 -1
  280. package/generated/WorkspaceEnvelope.schema.json +1 -1
  281. package/package.json +2 -2
@@ -85,7 +85,7 @@
85
85
  "retryable": {
86
86
  "type": "boolean",
87
87
  "default": true,
88
- "description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay."
88
+ "description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay or a managed resource it names was released."
89
89
  },
90
90
  "required_actions": {
91
91
  "type": "array",
@@ -116,13 +116,51 @@
116
116
  "code"
117
117
  ],
118
118
  "additionalProperties": false,
119
- "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
119
+ "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation. One exception: an unchanged settlement_unknown draft returns by itself when a later settlement of the predecessor's run, by the live daemon that ran it, proves its processes gone (see resumed); a Stop first keeps it held."
120
120
  },
121
121
  {
122
122
  "type": "null"
123
123
  }
124
124
  ],
125
- "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
125
+ "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation. One exception: an unchanged settlement_unknown draft returns by itself when a later settlement of the predecessor's run, by the live daemon that ran it, proves its processes gone (see resumed); a Stop first keeps it held."
126
+ },
127
+ "resumed": {
128
+ "type": "object",
129
+ "properties": {
130
+ "from": {
131
+ "type": "object",
132
+ "properties": {
133
+ "code": {
134
+ "$ref": "#/definitions/DeferredMessageProjection/properties/hold/anyOf/0/properties/code"
135
+ },
136
+ "problem": {
137
+ "$ref": "#/definitions/DeferredMessageProjection/properties/hold/anyOf/0/properties/problem"
138
+ }
139
+ },
140
+ "required": [
141
+ "code"
142
+ ],
143
+ "additionalProperties": false,
144
+ "description": "The hold the draft was returned from."
145
+ },
146
+ "reason": {
147
+ "type": "string",
148
+ "const": "process_scope_settled",
149
+ "description": "A later settlement of the predecessor's run proved its processes gone; the draft was unchanged, not cleared, replaced or stopped."
150
+ },
151
+ "at": {
152
+ "type": "string",
153
+ "minLength": 1,
154
+ "description": "ISO-8601 timestamp string."
155
+ }
156
+ },
157
+ "required": [
158
+ "from",
159
+ "reason",
160
+ "at"
161
+ ],
162
+ "additionalProperties": false,
163
+ "description": "Why this draft left its hold automatically. It then took the existing revision and admission path; any other reason holds it again."
126
164
  },
127
165
  "dispatchedRevision": {
128
166
  "anyOf": [
@@ -88,7 +88,7 @@
88
88
  "retryable": {
89
89
  "type": "boolean",
90
90
  "default": true,
91
- "description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay."
91
+ "description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay or a managed resource it names was released."
92
92
  },
93
93
  "required_actions": {
94
94
  "type": "array",
@@ -119,13 +119,51 @@
119
119
  "code"
120
120
  ],
121
121
  "additionalProperties": false,
122
- "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
122
+ "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation. One exception: an unchanged settlement_unknown draft returns by itself when a later settlement of the predecessor's run, by the live daemon that ran it, proves its processes gone (see resumed); a Stop first keeps it held."
123
123
  },
124
124
  {
125
125
  "type": "null"
126
126
  }
127
127
  ],
128
- "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
128
+ "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation. One exception: an unchanged settlement_unknown draft returns by itself when a later settlement of the predecessor's run, by the live daemon that ran it, proves its processes gone (see resumed); a Stop first keeps it held."
129
+ },
130
+ "resumed": {
131
+ "type": "object",
132
+ "properties": {
133
+ "from": {
134
+ "type": "object",
135
+ "properties": {
136
+ "code": {
137
+ "$ref": "#/definitions/DeferredMessageReadResult/properties/draft/properties/hold/anyOf/0/properties/code"
138
+ },
139
+ "problem": {
140
+ "$ref": "#/definitions/DeferredMessageReadResult/properties/draft/properties/hold/anyOf/0/properties/problem"
141
+ }
142
+ },
143
+ "required": [
144
+ "code"
145
+ ],
146
+ "additionalProperties": false,
147
+ "description": "The hold the draft was returned from."
148
+ },
149
+ "reason": {
150
+ "type": "string",
151
+ "const": "process_scope_settled",
152
+ "description": "A later settlement of the predecessor's run proved its processes gone; the draft was unchanged, not cleared, replaced or stopped."
153
+ },
154
+ "at": {
155
+ "type": "string",
156
+ "minLength": 1,
157
+ "description": "ISO-8601 timestamp string."
158
+ }
159
+ },
160
+ "required": [
161
+ "from",
162
+ "reason",
163
+ "at"
164
+ ],
165
+ "additionalProperties": false,
166
+ "description": "Why this draft left its hold automatically. It then took the existing revision and admission path; any other reason holds it again."
129
167
  },
130
168
  "dispatchedRevision": {
131
169
  "anyOf": [
@@ -245,7 +283,7 @@
245
283
  "null"
246
284
  ],
247
285
  "default": null,
248
- "description": "Per-harness default model; null = the harness's own default."
286
+ "description": "Per-harness default model; null = the harness's own default, or no model on a route whose request must name one."
249
287
  },
250
288
  "effort": {
251
289
  "anyOf": [
@@ -94,7 +94,7 @@
94
94
  "retryable": {
95
95
  "type": "boolean",
96
96
  "default": true,
97
- "description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay."
97
+ "description": "True when retry can replay this turn (a job was recorded before the failure); false when no job exists to replay or a managed resource it names was released."
98
98
  },
99
99
  "required_actions": {
100
100
  "type": "array",
@@ -125,13 +125,51 @@
125
125
  "code"
126
126
  ],
127
127
  "additionalProperties": false,
128
- "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
128
+ "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation. One exception: an unchanged settlement_unknown draft returns by itself when a later settlement of the predecessor's run, by the live daemon that ran it, proves its processes gone (see resumed); a Stop first keeps it held."
129
129
  },
130
130
  {
131
131
  "type": "null"
132
132
  }
133
133
  ],
134
- "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation."
134
+ "description": "Stable hold. Editing, observation and readiness restoration never rearm it; inspect the predecessor result and clear before an ordinary continuation. One exception: an unchanged settlement_unknown draft returns by itself when a later settlement of the predecessor's run, by the live daemon that ran it, proves its processes gone (see resumed); a Stop first keeps it held."
135
+ },
136
+ "resumed": {
137
+ "type": "object",
138
+ "properties": {
139
+ "from": {
140
+ "type": "object",
141
+ "properties": {
142
+ "code": {
143
+ "$ref": "#/definitions/DeferredMessageReceipt/properties/draft/properties/hold/anyOf/0/properties/code"
144
+ },
145
+ "problem": {
146
+ "$ref": "#/definitions/DeferredMessageReceipt/properties/draft/properties/hold/anyOf/0/properties/problem"
147
+ }
148
+ },
149
+ "required": [
150
+ "code"
151
+ ],
152
+ "additionalProperties": false,
153
+ "description": "The hold the draft was returned from."
154
+ },
155
+ "reason": {
156
+ "type": "string",
157
+ "const": "process_scope_settled",
158
+ "description": "A later settlement of the predecessor's run proved its processes gone; the draft was unchanged, not cleared, replaced or stopped."
159
+ },
160
+ "at": {
161
+ "type": "string",
162
+ "minLength": 1,
163
+ "description": "ISO-8601 timestamp string."
164
+ }
165
+ },
166
+ "required": [
167
+ "from",
168
+ "reason",
169
+ "at"
170
+ ],
171
+ "additionalProperties": false,
172
+ "description": "Why this draft left its hold automatically. It then took the existing revision and admission path; any other reason holds it again."
135
173
  },
136
174
  "dispatchedRevision": {
137
175
  "anyOf": [
@@ -106,7 +106,7 @@
106
106
  "policy_profile": {
107
107
  "type": "string",
108
108
  "default": "workspace_write",
109
- "description": "Access profile the envelope enforces."
109
+ "description": "Access profile recorded for the envelope."
110
110
  },
111
111
  "dirty_policy": {
112
112
  "type": "string",
@@ -148,13 +148,14 @@
148
148
  "transport",
149
149
  "permission_denied",
150
150
  "context_exhausted",
151
+ "turn_limit",
151
152
  "wall_clock",
152
153
  "cancelled",
153
154
  "host_restart",
154
155
  "input_required",
155
156
  "other"
156
157
  ],
157
- "description": "Typed reason the previous process stopped: a vendor limit (next account eligible), the whole pool spent, a pinned account's limit, a transport death (crash, timeout, watchdog), a confirmed native tool permission refusal, context exhaustion, the wall-clock deadline, a cancel, a daemon/host restart, a model that asked for input, or another typed cause."
158
+ "description": "Typed reason the previous process stopped: a vendor limit (next account eligible), the whole pool spent, a pinned account's limit, an error without a typed cause (`transport`: a crash, an inactivity timeout or a harness-reported error; not proof that a process died or the network failed), a confirmed native tool permission refusal, context exhaustion, the run's max-turns cap, the wall-clock deadline, a cancel, a daemon/host restart, a model that asked for input, or another typed cause."
158
159
  },
159
160
  {
160
161
  "type": "null"
@@ -418,7 +418,7 @@
418
418
  "null"
419
419
  ],
420
420
  "default": null,
421
- "description": "Per-harness default model; null = the harness's own default."
421
+ "description": "Per-harness default model; null = the harness's own default, or no model on a route whose request must name one."
422
422
  },
423
423
  "effort": {
424
424
  "anyOf": [
@@ -4,6 +4,38 @@
4
4
  "HarnessEvent": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "program": {
8
+ "type": "object",
9
+ "properties": {
10
+ "path": {
11
+ "type": [
12
+ "string",
13
+ "null"
14
+ ]
15
+ },
16
+ "version": {
17
+ "type": [
18
+ "string",
19
+ "null"
20
+ ]
21
+ },
22
+ "versionSource": {
23
+ "type": "string",
24
+ "enum": [
25
+ "vendor_stream",
26
+ "version_probe",
27
+ "remembered",
28
+ "unknown"
29
+ ]
30
+ }
31
+ },
32
+ "required": [
33
+ "path",
34
+ "version",
35
+ "versionSource"
36
+ ],
37
+ "additionalProperties": false
38
+ },
7
39
  "request_refusal": {
8
40
  "anyOf": [
9
41
  {
@@ -142,9 +174,41 @@
142
174
  "reported_source"
143
175
  ],
144
176
  "additionalProperties": false
177
+ },
178
+ {
179
+ "type": "object",
180
+ "properties": {
181
+ "kind": {
182
+ "type": "string",
183
+ "const": "vendor_not_retryable"
184
+ },
185
+ "source": {
186
+ "type": "string",
187
+ "const": "agy_stderr"
188
+ },
189
+ "error_id": {
190
+ "anyOf": [
191
+ {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 128
195
+ },
196
+ {
197
+ "type": "null"
198
+ }
199
+ ],
200
+ "description": "The vendor's own error id from the same record, verbatim; null when absent."
201
+ }
202
+ },
203
+ "required": [
204
+ "kind",
205
+ "source",
206
+ "error_id"
207
+ ],
208
+ "additionalProperties": false
145
209
  }
146
210
  ],
147
- "description": "Vendor-attested request refusal that stops retries and account rotation on its harness; input, executable and credential-source causes carry their own evidence."
211
+ "description": "Vendor-attested request refusal that stops retries and account rotation on its harness; input, executable and credential-source causes and an explicit vendor not-retryable verdict carry their own evidence."
148
212
  },
149
213
  "effort_resolution": {
150
214
  "type": "object",
@@ -456,6 +520,58 @@
456
520
  "additionalProperties": false,
457
521
  "description": "Requested, configured and observed prompt-cache lifetime facts for one attempt. Lifecycle, outcome and cost are separate facts and never derive from this receipt."
458
522
  },
523
+ "route_controls": {
524
+ "type": "object",
525
+ "properties": {
526
+ "web_mechanism": {
527
+ "type": "string",
528
+ "enum": [
529
+ "native",
530
+ "tools",
531
+ "uncontrolled",
532
+ "none"
533
+ ],
534
+ "description": "How this route's own web tools are switched for its web policy (the manifest's web_policy)."
535
+ },
536
+ "access": {
537
+ "type": "string",
538
+ "enum": [
539
+ "readonly",
540
+ "workspace_write",
541
+ "full",
542
+ "inherit_native"
543
+ ],
544
+ "description": "Access profile handed to this spawn."
545
+ },
546
+ "native_access": {
547
+ "type": [
548
+ "string",
549
+ "null"
550
+ ],
551
+ "description": "The vendor access setting the adapter builds for that profile, in the vendor's own spelling (argv or request parameters) and from the helper that passes it; null when it passes none or does not disclose it."
552
+ },
553
+ "access_mechanism": {
554
+ "type": "string",
555
+ "enum": [
556
+ "fs_sandbox",
557
+ "permission_deny",
558
+ "tool_allowlist",
559
+ "tool_policy",
560
+ "native_settings",
561
+ "none"
562
+ ],
563
+ "description": "How the route's access profile reaches the harness: fs_sandbox (the vendor's own file-system sandbox, as the vendor applies it), permission_deny, tool_allowlist or tool_policy (vendor tool permissions; the manifest declares no OS file boundary), native_settings (inherit_native: Claudexor passes no access profile, so the harness's own configuration decides and what it confines is unknown here), or none (full access, or a route that declares no control)."
564
+ }
565
+ },
566
+ "required": [
567
+ "web_mechanism",
568
+ "access",
569
+ "native_access",
570
+ "access_mechanism"
571
+ ],
572
+ "additionalProperties": false,
573
+ "description": "Per-spawn receipt of the native web and access controls prepared for a route, recorded just before dispatch; not proof that a native process ran with them. Claudexor adds no outer boundary."
574
+ },
459
575
  "type": {
460
576
  "type": "string",
461
577
  "enum": [
@@ -584,9 +700,10 @@
584
700
  "exited",
585
701
  "timed_out",
586
702
  "backgrounded",
703
+ "completion_reported",
587
704
  "unknown"
588
705
  ],
589
- "description": "exited: the tool observed the command end; timed_out: the tool's timeout elapsed before an observed end (the process may still run or may have been signalled); backgrounded: the command was handed to a background shell and was still running when the result returned; unknown: the native result established none of these."
706
+ "description": "exited: the tool observed the command end; timed_out: the tool's timeout elapsed before an observed end (the process may still run or may have been signalled); backgrounded: the command was handed to a background shell and was still running when the result returned; completion_reported: after such a handoff, a later vendor notification reported that the command ended, without an exit code; unknown: the native result established none of these."
590
707
  },
591
708
  "signal": {
592
709
  "type": "string",
@@ -615,6 +732,15 @@
615
732
  "type": "integer",
616
733
  "exclusiveMinimum": 0,
617
734
  "description": "Vendor-reported process id."
735
+ },
736
+ "completion_status": {
737
+ "type": "string",
738
+ "enum": [
739
+ "success",
740
+ "error",
741
+ "aborted"
742
+ ],
743
+ "description": "What the vendor reported about a completion_reported command; never an exit code."
618
744
  }
619
745
  },
620
746
  "required": [
@@ -631,13 +757,21 @@
631
757
  "failed"
632
758
  ],
633
759
  "description": "Adapter-stamped web/browser retrieval outcome (verified/dispatched/failed), distinct from the tool-call status lifecycle."
760
+ },
761
+ "web_content": {
762
+ "type": "string",
763
+ "enum": [
764
+ "page",
765
+ "search_results"
766
+ ],
767
+ "description": "What a verified web retrieval returned: page (a fetched or loaded page) or search_results (a web search's results, not a fetched page)."
634
768
  }
635
769
  },
636
770
  "required": [
637
771
  "name"
638
772
  ],
639
773
  "additionalProperties": false,
640
- "description": "Typed tool info; set on tool_call and tool_result events."
774
+ "description": "Typed tool info; set on tool_call and tool_result events, and on a status event with payload.code command_outcome_refined, where it names the earlier call (use_id) and carries its refined command_outcome."
641
775
  },
642
776
  "interaction": {
643
777
  "type": "object",
@@ -719,6 +853,15 @@
719
853
  ],
720
854
  "default": null,
721
855
  "description": "Native tool that raised the request (e.g. \"AskUserQuestion\")."
856
+ },
857
+ "delivery": {
858
+ "type": "string",
859
+ "enum": [
860
+ "blocking",
861
+ "async"
862
+ ],
863
+ "description": "How the asking agent waits for the answer: blocking (its native tool call waits until the question is answered, declined, expired or released) or async (the agent keeps working and an answer reaches it later as its next user message). Silence, expiry and the run's end never answer either kind.",
864
+ "default": "blocking"
722
865
  }
723
866
  },
724
867
  "required": [
@@ -769,7 +912,7 @@
769
912
  "type": "null"
770
913
  }
771
914
  ],
772
- "description": "Base-tree blob oid, or null only when the path is absent in the base tree."
915
+ "description": "Blob oid in the packet's exact tree, or null only when that tree lacks the path."
773
916
  }
774
917
  },
775
918
  "required": [
@@ -1384,6 +1527,13 @@
1384
1527
  ],
1385
1528
  "default": null,
1386
1529
  "description": "Suggested retry delay in milliseconds, when reported."
1530
+ },
1531
+ "reopening": {
1532
+ "type": "string",
1533
+ "enum": [
1534
+ "unknown"
1535
+ ],
1536
+ "description": "unknown: the vendor's own typed code refused further usage on this account and named no reopening time, and the refusal is not known to be a timed window (Codex usage_limit_exceeded and AGY's structured `Individual quota reached` also cover refusals whose scope is not a timed window). No reset is derived from it; the vendor's original failure evidence remains alongside the signal. Admission/continuation consumers decide whether the account is retried, and a typed refusal must not be mistaken for a transport failure. Absent: resets_at, retry_delay_ms and the vendor's window say when to come back, as before."
1387
1537
  }
1388
1538
  },
1389
1539
  "additionalProperties": false,
@@ -1538,6 +1688,33 @@
1538
1688
  "additionalProperties": false,
1539
1689
  "description": "Typed context-management signal (compaction boundary / capacity exhaustion) set by the adapter; orthogonal to the transient-retry taxonomy."
1540
1690
  },
1691
+ "turn_limit": {
1692
+ "type": "object",
1693
+ "properties": {
1694
+ "native_code": {
1695
+ "type": "string",
1696
+ "description": "The vendor's own terminal subtype, verbatim."
1697
+ },
1698
+ "num_turns": {
1699
+ "anyOf": [
1700
+ {
1701
+ "type": "integer",
1702
+ "minimum": 0
1703
+ },
1704
+ {
1705
+ "type": "null"
1706
+ }
1707
+ ],
1708
+ "description": "Turns the vendor counted."
1709
+ }
1710
+ },
1711
+ "required": [
1712
+ "native_code",
1713
+ "num_turns"
1714
+ ],
1715
+ "additionalProperties": false,
1716
+ "description": "Typed max-turns stop set by the adapter on the error event that ends a capped native turn; orthogonal to the transient-retry taxonomy."
1717
+ },
1541
1718
  "error": {
1542
1719
  "type": "string",
1543
1720
  "description": "Error text for error events."
@@ -4,6 +4,32 @@
4
4
  "HarnessManifest": {
5
5
  "type": "object",
6
6
  "properties": {
7
+ "sourceProgram": {
8
+ "anyOf": [
9
+ {
10
+ "type": "object",
11
+ "properties": {
12
+ "path": {
13
+ "type": "string"
14
+ },
15
+ "version": {
16
+ "type": [
17
+ "string",
18
+ "null"
19
+ ]
20
+ }
21
+ },
22
+ "required": [
23
+ "path",
24
+ "version"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ {
29
+ "type": "null"
30
+ }
31
+ ]
32
+ },
7
33
  "id": {
8
34
  "type": "string",
9
35
  "minLength": 1,
@@ -240,7 +266,7 @@
240
266
  "tool_allowlist",
241
267
  "none"
242
268
  ],
243
- "description": "How read-only access is enforced for a harness: a filesystem sandbox, permission denial, a tool allowlist, or none (read-only intent is advisory).",
269
+ "description": "How a harness applies read-only access: a filesystem sandbox, permission denial, a tool allowlist, or none (read-only intent is advisory).",
244
270
  "default": "none"
245
271
  },
246
272
  "write_mechanism": {
@@ -741,7 +767,7 @@
741
767
  "description": "Active filesystem/command access profile for a run: readonly (no writes), workspace_write (use the harness's native workspace-write policy), full (unrestricted; requires the per-repo trust allow for a run an operator starts at a surface, not for an execution.delegated run), inherit_native (defer to the harness's own native settings)."
742
768
  },
743
769
  "default": [],
744
- "description": "Access profiles the adapter can enforce."
770
+ "description": "Access profiles the adapter can translate to its harness."
745
771
  }
746
772
  },
747
773
  "required": [