@claudexor/schema 1.0.0 → 2.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 (248) hide show
  1. package/dist/agent-capabilities.d.ts +88 -16
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +49 -18
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts.map +1 -1
  6. package/dist/apply-eligibility.js +22 -6
  7. package/dist/apply-eligibility.js.map +1 -1
  8. package/dist/attachment.d.ts +113 -48
  9. package/dist/attachment.d.ts.map +1 -1
  10. package/dist/attachment.js +60 -45
  11. package/dist/attachment.js.map +1 -1
  12. package/dist/auth.d.ts +1423 -0
  13. package/dist/auth.d.ts.map +1 -0
  14. package/dist/auth.js +317 -0
  15. package/dist/auth.js.map +1 -0
  16. package/dist/budget.d.ts +133 -16
  17. package/dist/budget.d.ts.map +1 -1
  18. package/dist/budget.js +65 -22
  19. package/dist/budget.js.map +1 -1
  20. package/dist/config.d.ts +449 -115
  21. package/dist/config.d.ts.map +1 -1
  22. package/dist/config.js +114 -41
  23. package/dist/config.js.map +1 -1
  24. package/dist/context.d.ts +6 -6
  25. package/dist/context.d.ts.map +1 -1
  26. package/dist/context.js +31 -7
  27. package/dist/context.js.map +1 -1
  28. package/dist/control-operation-responses.d.ts +1172 -0
  29. package/dist/control-operation-responses.d.ts.map +1 -0
  30. package/dist/control-operation-responses.js +35 -0
  31. package/dist/control-operation-responses.js.map +1 -0
  32. package/dist/control-run-detail.d.ts +443 -242
  33. package/dist/control-run-detail.d.ts.map +1 -1
  34. package/dist/control-run-detail.js +72 -17
  35. package/dist/control-run-detail.js.map +1 -1
  36. package/dist/control-run-retry.d.ts +88 -0
  37. package/dist/control-run-retry.d.ts.map +1 -0
  38. package/dist/control-run-retry.js +40 -0
  39. package/dist/control-run-retry.js.map +1 -0
  40. package/dist/control-run-scope.d.ts +25 -0
  41. package/dist/control-run-scope.d.ts.map +1 -0
  42. package/dist/control-run-scope.js +22 -0
  43. package/dist/control-run-scope.js.map +1 -0
  44. package/dist/control-secret.d.ts +90 -0
  45. package/dist/control-secret.d.ts.map +1 -0
  46. package/dist/control-secret.js +35 -0
  47. package/dist/control-secret.js.map +1 -0
  48. package/dist/control-spec.d.ts +592 -0
  49. package/dist/control-spec.d.ts.map +1 -0
  50. package/dist/control-spec.js +85 -0
  51. package/dist/control-spec.js.map +1 -0
  52. package/dist/control-thread-apply.d.ts +175 -0
  53. package/dist/control-thread-apply.d.ts.map +1 -0
  54. package/dist/control-thread-apply.js +31 -0
  55. package/dist/control-thread-apply.js.map +1 -0
  56. package/dist/control-trust.d.ts +74 -10
  57. package/dist/control-trust.d.ts.map +1 -1
  58. package/dist/control-trust.js +31 -11
  59. package/dist/control-trust.js.map +1 -1
  60. package/dist/control.d.ts +1391 -878
  61. package/dist/control.d.ts.map +1 -1
  62. package/dist/control.js +468 -310
  63. package/dist/control.js.map +1 -1
  64. package/dist/decision.d.ts +10 -10
  65. package/dist/decision.d.ts.map +1 -1
  66. package/dist/decision.js +62 -15
  67. package/dist/decision.js.map +1 -1
  68. package/dist/delivery.d.ts +99 -0
  69. package/dist/delivery.d.ts.map +1 -0
  70. package/dist/delivery.js +19 -0
  71. package/dist/delivery.js.map +1 -0
  72. package/dist/events.d.ts +25 -2
  73. package/dist/events.d.ts.map +1 -1
  74. package/dist/events.js +25 -4
  75. package/dist/events.js.map +1 -1
  76. package/dist/gate.d.ts +2 -2
  77. package/dist/gate.d.ts.map +1 -1
  78. package/dist/gate.js +25 -5
  79. package/dist/gate.js.map +1 -1
  80. package/dist/harness.d.ts +558 -175
  81. package/dist/harness.d.ts.map +1 -1
  82. package/dist/harness.js +207 -82
  83. package/dist/harness.js.map +1 -1
  84. package/dist/index.d.ts +15 -0
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +15 -0
  87. package/dist/index.js.map +1 -1
  88. package/dist/operation.d.ts +185 -0
  89. package/dist/operation.d.ts.map +1 -0
  90. package/dist/operation.js +50 -0
  91. package/dist/operation.js.map +1 -0
  92. package/dist/orchestrate.d.ts +127 -22
  93. package/dist/orchestrate.d.ts.map +1 -1
  94. package/dist/orchestrate.js +61 -7
  95. package/dist/orchestrate.js.map +1 -1
  96. package/dist/primitives.d.ts.map +1 -1
  97. package/dist/primitives.js +4 -1
  98. package/dist/primitives.js.map +1 -1
  99. package/dist/problem.d.ts +29 -0
  100. package/dist/problem.d.ts.map +1 -0
  101. package/dist/problem.js +17 -0
  102. package/dist/problem.js.map +1 -0
  103. package/dist/project.d.ts +97 -0
  104. package/dist/project.d.ts.map +1 -0
  105. package/dist/project.js +27 -0
  106. package/dist/project.js.map +1 -0
  107. package/dist/quota.d.ts +251 -0
  108. package/dist/quota.d.ts.map +1 -0
  109. package/dist/quota.js +46 -0
  110. package/dist/quota.js.map +1 -0
  111. package/dist/raw.d.ts +195 -0
  112. package/dist/raw.d.ts.map +1 -0
  113. package/dist/raw.js +58 -0
  114. package/dist/raw.js.map +1 -0
  115. package/dist/recovery.d.ts +515 -0
  116. package/dist/recovery.d.ts.map +1 -0
  117. package/dist/recovery.js +93 -0
  118. package/dist/recovery.js.map +1 -0
  119. package/dist/request-requirements.d.ts +36 -0
  120. package/dist/request-requirements.d.ts.map +1 -0
  121. package/dist/request-requirements.js +26 -0
  122. package/dist/request-requirements.js.map +1 -0
  123. package/dist/review.d.ts +26 -26
  124. package/dist/review.d.ts.map +1 -1
  125. package/dist/review.js +50 -10
  126. package/dist/review.js.map +1 -1
  127. package/dist/route.d.ts +10 -10
  128. package/dist/route.d.ts.map +1 -1
  129. package/dist/route.js +19 -4
  130. package/dist/route.js.map +1 -1
  131. package/dist/setup.d.ts +9766 -0
  132. package/dist/setup.d.ts.map +1 -0
  133. package/dist/setup.js +450 -0
  134. package/dist/setup.js.map +1 -0
  135. package/dist/spec.d.ts +174 -57
  136. package/dist/spec.d.ts.map +1 -1
  137. package/dist/spec.js +69 -16
  138. package/dist/spec.js.map +1 -1
  139. package/dist/surface-run-controls.d.ts.map +1 -1
  140. package/dist/surface-run-controls.js +25 -21
  141. package/dist/surface-run-controls.js.map +1 -1
  142. package/dist/task.d.ts +1560 -58
  143. package/dist/task.d.ts.map +1 -1
  144. package/dist/task.js +97 -18
  145. package/dist/task.js.map +1 -1
  146. package/dist/telemetry.d.ts +233 -60
  147. package/dist/telemetry.d.ts.map +1 -1
  148. package/dist/telemetry.js +97 -15
  149. package/dist/telemetry.js.map +1 -1
  150. package/dist/thread.d.ts +68 -41
  151. package/dist/thread.d.ts.map +1 -1
  152. package/dist/thread.js +45 -11
  153. package/dist/thread.js.map +1 -1
  154. package/dist/workproduct.d.ts +3 -3
  155. package/dist/workproduct.d.ts.map +1 -1
  156. package/dist/workproduct.js.map +1 -1
  157. package/dist/workspace.d.ts +1 -1
  158. package/dist/workspace.d.ts.map +1 -1
  159. package/dist/workspace.js +12 -3
  160. package/dist/workspace.js.map +1 -1
  161. package/generated/AgentCapabilityCatalog.schema.json +53 -11
  162. package/generated/BudgetLease.schema.json +55 -6
  163. package/generated/BudgetObservation.schema.json +28 -7
  164. package/generated/ConformanceReport.schema.json +49 -0
  165. package/generated/ControlApplyCheckResponse.schema.json +34 -0
  166. package/generated/ControlArtifactListResponse.schema.json +57 -0
  167. package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
  168. package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
  169. package/generated/ControlDeliveryResponse.schema.json +136 -0
  170. package/generated/ControlHandshakeRequest.schema.json +26 -0
  171. package/generated/ControlHandshakeResponse.schema.json +30 -0
  172. package/generated/ControlHarnessListResponse.schema.json +103 -12
  173. package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
  174. package/generated/ControlJournalEvent.schema.json +42 -0
  175. package/generated/ControlJournalExportReceipt.schema.json +49 -0
  176. package/generated/ControlJournalInspection.schema.json +149 -0
  177. package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
  178. package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
  179. package/generated/ControlJournalValidation.schema.json +181 -0
  180. package/generated/ControlOperationCatalog.schema.json +128 -0
  181. package/generated/ControlOperationDescriptor.schema.json +110 -0
  182. package/generated/ControlProblem.schema.json +59 -0
  183. package/generated/ControlProject.schema.json +42 -0
  184. package/generated/ControlProjectListResponse.schema.json +54 -0
  185. package/generated/ControlProjectRegisterRequest.schema.json +19 -0
  186. package/generated/ControlProjectRelinkRequest.schema.json +19 -0
  187. package/generated/ControlQueuedRunInfo.schema.json +4 -2
  188. package/generated/ControlQuotaResponse.schema.json +176 -0
  189. package/generated/ControlResource.schema.json +59 -0
  190. package/generated/ControlRunAgainDraft.schema.json +499 -0
  191. package/generated/ControlRunDetail.schema.json +197 -30
  192. package/generated/ControlRunListResponse.schema.json +797 -0
  193. package/generated/ControlRunRetryResponse.schema.json +54 -0
  194. package/generated/ControlRunStartRequest.schema.json +83 -55
  195. package/generated/ControlRunStartResponse.schema.json +78 -0
  196. package/generated/ControlRunSummary.schema.json +140 -20
  197. package/generated/ControlSecretListResponse.schema.json +8 -14
  198. package/generated/ControlSecretMutationResponse.schema.json +32 -0
  199. package/generated/ControlSecretSetRequest.schema.json +27 -0
  200. package/generated/ControlSettingsSnapshot.schema.json +118 -44
  201. package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
  202. package/generated/ControlSetupJob.schema.json +763 -65
  203. package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
  204. package/generated/ControlSetupJobEvent.schema.json +861 -5
  205. package/generated/ControlSetupJobListFilter.schema.json +35 -0
  206. package/generated/ControlSetupJobListResponse.schema.json +763 -65
  207. package/generated/ControlSetupJobSnapshot.schema.json +870 -0
  208. package/generated/ControlSpecAnswersRequest.schema.json +74 -0
  209. package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
  210. package/generated/ControlSpecSession.schema.json +249 -0
  211. package/generated/ControlSpecSessionListResponse.schema.json +261 -0
  212. package/generated/ControlThread.schema.json +20 -2
  213. package/generated/ControlThreadApplyResponse.schema.json +139 -0
  214. package/generated/ControlThreadDetail.schema.json +32 -4
  215. package/generated/ControlThreadListResponse.schema.json +20 -2
  216. package/generated/ControlThreadTurnRequest.schema.json +373 -0
  217. package/generated/ControlThreadTurnResponse.schema.json +73 -0
  218. package/generated/ControlThreadUpdateRequest.schema.json +1 -1
  219. package/generated/ControlTrustListResponse.schema.json +6 -0
  220. package/generated/ControlTrustState.schema.json +6 -0
  221. package/generated/ControlTrustUpdateRequest.schema.json +65 -3
  222. package/generated/ControlUploadCreateRequest.schema.json +37 -0
  223. package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
  224. package/generated/ControlUploadStatus.schema.json +40 -0
  225. package/generated/DecisionRecord.schema.json +6 -3
  226. package/generated/GlobalConfig.schema.json +105 -58
  227. package/generated/HarnessEvent.schema.json +201 -10
  228. package/generated/HarnessManifest.schema.json +63 -12
  229. package/generated/HarnessStatusDto.schema.json +103 -12
  230. package/generated/OrchestrateContract.schema.json +32 -6
  231. package/generated/OrchestratePlan.schema.json +20 -0
  232. package/generated/OrchestratePlanProgress.schema.json +61 -0
  233. package/generated/PaidBudget.schema.json +42 -0
  234. package/generated/Project.schema.json +45 -0
  235. package/generated/ProjectConfig.schema.json +45 -18
  236. package/generated/RawContextPacket.schema.json +184 -0
  237. package/generated/RawGitPatchEnvelope.schema.json +70 -0
  238. package/generated/RunTelemetry.schema.json +80 -0
  239. package/generated/SecretMetadata.schema.json +4 -7
  240. package/generated/SpecPack.schema.json +118 -7
  241. package/generated/TaskContract.schema.json +159 -26
  242. package/generated/TestCommandInvocation.schema.json +45 -0
  243. package/generated/Thread.schema.json +62 -6
  244. package/generated/ThreadTurn.schema.json +24 -11
  245. package/generated/TrustConfig.schema.json +77 -0
  246. package/package.json +1 -1
  247. package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
  248. package/generated/ControlSpecFreezeRequest.schema.json +0 -83
@@ -0,0 +1,181 @@
1
+ {
2
+ "$ref": "#/definitions/ControlJournalValidation",
3
+ "definitions": {
4
+ "ControlJournalValidation": {
5
+ "type": "object",
6
+ "properties": {
7
+ "schemaVersion": {
8
+ "type": "number",
9
+ "const": 1
10
+ },
11
+ "partition": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 256
15
+ },
16
+ "generation": {
17
+ "type": "integer",
18
+ "minimum": 0
19
+ },
20
+ "status": {
21
+ "type": "string",
22
+ "enum": [
23
+ "ready",
24
+ "recovery_required"
25
+ ]
26
+ },
27
+ "recovery": {
28
+ "anyOf": [
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "status": {
33
+ "type": "string",
34
+ "const": "ready"
35
+ },
36
+ "discardedTailBytes": {
37
+ "type": "integer",
38
+ "minimum": 0
39
+ }
40
+ },
41
+ "required": [
42
+ "status",
43
+ "discardedTailBytes"
44
+ ],
45
+ "additionalProperties": false
46
+ },
47
+ {
48
+ "type": "object",
49
+ "properties": {
50
+ "status": {
51
+ "type": "string",
52
+ "const": "recovery_required"
53
+ },
54
+ "location": {
55
+ "anyOf": [
56
+ {
57
+ "type": "object",
58
+ "properties": {
59
+ "kind": {
60
+ "type": "string",
61
+ "const": "byte"
62
+ },
63
+ "byteOffset": {
64
+ "type": "integer",
65
+ "minimum": 0
66
+ }
67
+ },
68
+ "required": [
69
+ "kind",
70
+ "byteOffset"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ {
75
+ "type": "object",
76
+ "properties": {
77
+ "kind": {
78
+ "type": "string",
79
+ "const": "cursor"
80
+ },
81
+ "epoch": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "seq": {
86
+ "type": "integer",
87
+ "minimum": 0
88
+ }
89
+ },
90
+ "required": [
91
+ "kind",
92
+ "epoch",
93
+ "seq"
94
+ ],
95
+ "additionalProperties": false
96
+ }
97
+ ]
98
+ },
99
+ "reason": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ },
103
+ "discardedTailBytes": {
104
+ "type": "integer",
105
+ "minimum": 0
106
+ }
107
+ },
108
+ "required": [
109
+ "status",
110
+ "location",
111
+ "reason",
112
+ "discardedTailBytes"
113
+ ],
114
+ "additionalProperties": false
115
+ }
116
+ ]
117
+ },
118
+ "fingerprint": {
119
+ "type": "string",
120
+ "pattern": "^[a-f0-9]{64}$"
121
+ },
122
+ "observedAt": {
123
+ "type": "string",
124
+ "format": "date-time"
125
+ },
126
+ "evidenceRefs": {
127
+ "type": "array",
128
+ "items": {
129
+ "type": "string",
130
+ "minLength": 1
131
+ },
132
+ "minItems": 1
133
+ },
134
+ "projectionStatus": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "object",
138
+ "properties": {
139
+ "name": {
140
+ "type": "string",
141
+ "minLength": 1
142
+ },
143
+ "status": {
144
+ "type": "string",
145
+ "enum": [
146
+ "valid",
147
+ "invalid"
148
+ ]
149
+ },
150
+ "detail": {
151
+ "type": [
152
+ "string",
153
+ "null"
154
+ ]
155
+ }
156
+ },
157
+ "required": [
158
+ "name",
159
+ "status",
160
+ "detail"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ }
165
+ },
166
+ "required": [
167
+ "schemaVersion",
168
+ "partition",
169
+ "generation",
170
+ "status",
171
+ "recovery",
172
+ "fingerprint",
173
+ "observedAt",
174
+ "evidenceRefs",
175
+ "projectionStatus"
176
+ ],
177
+ "additionalProperties": false
178
+ }
179
+ },
180
+ "$schema": "http://json-schema.org/draft-07/schema#"
181
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "$ref": "#/definitions/ControlOperationCatalog",
3
+ "definitions": {
4
+ "ControlOperationCatalog": {
5
+ "type": "object",
6
+ "properties": {
7
+ "protocolMajor": {
8
+ "type": "number",
9
+ "const": 2
10
+ },
11
+ "operations": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "object",
15
+ "properties": {
16
+ "id": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "method": {
21
+ "type": "string",
22
+ "enum": [
23
+ "GET",
24
+ "POST",
25
+ "PUT",
26
+ "PATCH",
27
+ "DELETE"
28
+ ]
29
+ },
30
+ "path": {
31
+ "type": "string",
32
+ "pattern": "^\\/v2\\/"
33
+ },
34
+ "requestSchema": {
35
+ "anyOf": [
36
+ {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ {
41
+ "type": "null"
42
+ }
43
+ ]
44
+ },
45
+ "responseSchema": {
46
+ "anyOf": [
47
+ {
48
+ "type": "string",
49
+ "minLength": 1
50
+ },
51
+ {
52
+ "type": "null"
53
+ }
54
+ ]
55
+ },
56
+ "errorSchema": {
57
+ "type": "string",
58
+ "const": "ControlProblem"
59
+ },
60
+ "mutability": {
61
+ "type": "string",
62
+ "enum": [
63
+ "read_only",
64
+ "mutating"
65
+ ]
66
+ },
67
+ "idempotency": {
68
+ "type": "string",
69
+ "enum": [
70
+ "none",
71
+ "natural",
72
+ "key_required"
73
+ ]
74
+ },
75
+ "applicability": {
76
+ "type": "string",
77
+ "enum": [
78
+ "global",
79
+ "project",
80
+ "thread",
81
+ "run"
82
+ ]
83
+ },
84
+ "responseKind": {
85
+ "type": "string",
86
+ "enum": [
87
+ "json",
88
+ "stream",
89
+ "binary"
90
+ ]
91
+ },
92
+ "completion": {
93
+ "type": "string",
94
+ "enum": [
95
+ "immediate",
96
+ "durable_handle",
97
+ "terminal_stream"
98
+ ]
99
+ }
100
+ },
101
+ "required": [
102
+ "id",
103
+ "method",
104
+ "path",
105
+ "requestSchema",
106
+ "responseSchema",
107
+ "errorSchema",
108
+ "mutability",
109
+ "idempotency",
110
+ "applicability",
111
+ "responseKind",
112
+ "completion"
113
+ ],
114
+ "additionalProperties": false,
115
+ "description": "Machine-readable truth for one implemented v2 operation."
116
+ }
117
+ }
118
+ },
119
+ "required": [
120
+ "protocolMajor",
121
+ "operations"
122
+ ],
123
+ "additionalProperties": false,
124
+ "description": "Implemented v2 operations; absence means unsupported."
125
+ }
126
+ },
127
+ "$schema": "http://json-schema.org/draft-07/schema#"
128
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "$ref": "#/definitions/ControlOperationDescriptor",
3
+ "definitions": {
4
+ "ControlOperationDescriptor": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "method": {
12
+ "type": "string",
13
+ "enum": [
14
+ "GET",
15
+ "POST",
16
+ "PUT",
17
+ "PATCH",
18
+ "DELETE"
19
+ ]
20
+ },
21
+ "path": {
22
+ "type": "string",
23
+ "pattern": "^\\/v2\\/"
24
+ },
25
+ "requestSchema": {
26
+ "anyOf": [
27
+ {
28
+ "type": "string",
29
+ "minLength": 1
30
+ },
31
+ {
32
+ "type": "null"
33
+ }
34
+ ]
35
+ },
36
+ "responseSchema": {
37
+ "anyOf": [
38
+ {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ {
43
+ "type": "null"
44
+ }
45
+ ]
46
+ },
47
+ "errorSchema": {
48
+ "type": "string",
49
+ "const": "ControlProblem"
50
+ },
51
+ "mutability": {
52
+ "type": "string",
53
+ "enum": [
54
+ "read_only",
55
+ "mutating"
56
+ ]
57
+ },
58
+ "idempotency": {
59
+ "type": "string",
60
+ "enum": [
61
+ "none",
62
+ "natural",
63
+ "key_required"
64
+ ]
65
+ },
66
+ "applicability": {
67
+ "type": "string",
68
+ "enum": [
69
+ "global",
70
+ "project",
71
+ "thread",
72
+ "run"
73
+ ]
74
+ },
75
+ "responseKind": {
76
+ "type": "string",
77
+ "enum": [
78
+ "json",
79
+ "stream",
80
+ "binary"
81
+ ]
82
+ },
83
+ "completion": {
84
+ "type": "string",
85
+ "enum": [
86
+ "immediate",
87
+ "durable_handle",
88
+ "terminal_stream"
89
+ ]
90
+ }
91
+ },
92
+ "required": [
93
+ "id",
94
+ "method",
95
+ "path",
96
+ "requestSchema",
97
+ "responseSchema",
98
+ "errorSchema",
99
+ "mutability",
100
+ "idempotency",
101
+ "applicability",
102
+ "responseKind",
103
+ "completion"
104
+ ],
105
+ "additionalProperties": false,
106
+ "description": "Machine-readable truth for one implemented v2 operation."
107
+ }
108
+ },
109
+ "$schema": "http://json-schema.org/draft-07/schema#"
110
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$ref": "#/definitions/ControlProblem",
3
+ "definitions": {
4
+ "ControlProblem": {
5
+ "type": "object",
6
+ "properties": {
7
+ "code": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "message": {
12
+ "type": "string"
13
+ },
14
+ "retryable": {
15
+ "type": "boolean"
16
+ },
17
+ "fieldErrors": {
18
+ "type": "object",
19
+ "additionalProperties": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "default": {}
26
+ },
27
+ "requiredActions": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "default": []
34
+ },
35
+ "evidenceRefs": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "default": []
42
+ },
43
+ "context": {
44
+ "type": "object",
45
+ "additionalProperties": {},
46
+ "default": {},
47
+ "description": "Typed route-specific recovery context; never a duplicate error message."
48
+ }
49
+ },
50
+ "required": [
51
+ "code",
52
+ "message",
53
+ "retryable"
54
+ ],
55
+ "additionalProperties": false
56
+ }
57
+ },
58
+ "$schema": "http://json-schema.org/draft-07/schema#"
59
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$ref": "#/definitions/ControlProject",
3
+ "definitions": {
4
+ "ControlProject": {
5
+ "type": "object",
6
+ "properties": {
7
+ "schemaVersion": {
8
+ "type": "number",
9
+ "const": 2,
10
+ "description": "Schema version of the artifact; bumped on breaking ABI changes."
11
+ },
12
+ "id": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Non-empty identifier string."
16
+ },
17
+ "root": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "createdAt": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "description": "ISO-8601 timestamp string."
25
+ },
26
+ "updatedAt": {
27
+ "$ref": "#/definitions/ControlProject/properties/createdAt"
28
+ }
29
+ },
30
+ "required": [
31
+ "schemaVersion",
32
+ "id",
33
+ "root",
34
+ "createdAt",
35
+ "updatedAt"
36
+ ],
37
+ "additionalProperties": false,
38
+ "description": "Control API projection of a registered project."
39
+ }
40
+ },
41
+ "$schema": "http://json-schema.org/draft-07/schema#"
42
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "$ref": "#/definitions/ControlProjectListResponse",
3
+ "definitions": {
4
+ "ControlProjectListResponse": {
5
+ "type": "object",
6
+ "properties": {
7
+ "projects": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "type": "number",
14
+ "const": 2,
15
+ "description": "Schema version of the artifact; bumped on breaking ABI changes."
16
+ },
17
+ "id": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "description": "Non-empty identifier string."
21
+ },
22
+ "root": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "createdAt": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "description": "ISO-8601 timestamp string."
30
+ },
31
+ "updatedAt": {
32
+ "$ref": "#/definitions/ControlProjectListResponse/properties/projects/items/properties/createdAt"
33
+ }
34
+ },
35
+ "required": [
36
+ "schemaVersion",
37
+ "id",
38
+ "root",
39
+ "createdAt",
40
+ "updatedAt"
41
+ ],
42
+ "additionalProperties": false,
43
+ "description": "Control API projection of a registered project."
44
+ }
45
+ }
46
+ },
47
+ "required": [
48
+ "projects"
49
+ ],
50
+ "additionalProperties": false
51
+ }
52
+ },
53
+ "$schema": "http://json-schema.org/draft-07/schema#"
54
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$ref": "#/definitions/ControlProjectRegisterRequest",
3
+ "definitions": {
4
+ "ControlProjectRegisterRequest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "root": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ }
11
+ },
12
+ "required": [
13
+ "root"
14
+ ],
15
+ "additionalProperties": false
16
+ }
17
+ },
18
+ "$schema": "http://json-schema.org/draft-07/schema#"
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$ref": "#/definitions/ControlProjectRelinkRequest",
3
+ "definitions": {
4
+ "ControlProjectRelinkRequest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "root": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ }
11
+ },
12
+ "required": [
13
+ "root"
14
+ ],
15
+ "additionalProperties": false
16
+ }
17
+ },
18
+ "$schema": "http://json-schema.org/draft-07/schema#"
19
+ }
@@ -20,12 +20,14 @@
20
20
  "review_not_run",
21
21
  "failed",
22
22
  "cancelled",
23
- "interrupted",
23
+ "interrupted_unknown",
24
+ "cost_unverifiable",
25
+ "exhausted_overshoot",
24
26
  "exhausted",
25
27
  "not_converged",
26
28
  "stuck_no_progress"
27
29
  ],
28
- "description": "Control-plane run state: queued/running while live; blocked awaiting a human; then a terminal outcome (succeeded, no_op, ungated, review_not_run, failed, cancelled, interrupted, exhausted, not_converged, stuck_no_progress)."
30
+ "description": "Control-plane run state: queued/running while live, then an honest success, block, failure, interruption, cost, exhaustion, non-convergence, or cancellation terminal."
29
31
  },
30
32
  "error": {
31
33
  "type": "string",