@claudexor/schema 4.7.0 → 4.8.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.
Files changed (174) hide show
  1. package/dist/account-resources.d.ts +37 -37
  2. package/dist/account-routing-evidence.d.ts +14 -14
  3. package/dist/attachment.d.ts +178 -0
  4. package/dist/attachment.d.ts.map +1 -1
  5. package/dist/attachment.js +46 -0
  6. package/dist/attachment.js.map +1 -1
  7. package/dist/captured-run-start.d.ts +1105 -0
  8. package/dist/captured-run-start.d.ts.map +1 -0
  9. package/dist/captured-run-start.js +41 -0
  10. package/dist/captured-run-start.js.map +1 -0
  11. package/dist/command-summary.d.ts +1 -1
  12. package/dist/command-summary.d.ts.map +1 -1
  13. package/dist/command-summary.js +1 -0
  14. package/dist/command-summary.js.map +1 -1
  15. package/dist/control-harness-models.js +1 -1
  16. package/dist/control-harness-models.js.map +1 -1
  17. package/dist/control-operation-responses.d.ts +201 -9
  18. package/dist/control-operation-responses.d.ts.map +1 -1
  19. package/dist/control-operation-responses.js +7 -1
  20. package/dist/control-operation-responses.js.map +1 -1
  21. package/dist/control-run-detail.d.ts +277 -19
  22. package/dist/control-run-detail.d.ts.map +1 -1
  23. package/dist/control-run-detail.js +2 -0
  24. package/dist/control-run-detail.js.map +1 -1
  25. package/dist/control-run-failure.d.ts +29 -4
  26. package/dist/control-run-failure.d.ts.map +1 -1
  27. package/dist/control-run-failure.js +3 -0
  28. package/dist/control-run-failure.js.map +1 -1
  29. package/dist/control-run-retry.d.ts +31 -0
  30. package/dist/control-run-retry.d.ts.map +1 -1
  31. package/dist/control-run-retry.js +12 -1
  32. package/dist/control-run-retry.js.map +1 -1
  33. package/dist/control.d.ts +69 -5
  34. package/dist/control.d.ts.map +1 -1
  35. package/dist/control.js +3 -7
  36. package/dist/control.js.map +1 -1
  37. package/dist/credential-profile-snapshot.d.ts +28 -28
  38. package/dist/credential-profile.d.ts +1 -1
  39. package/dist/credential-profile.js +2 -2
  40. package/dist/credential-profile.js.map +1 -1
  41. package/dist/credential-store.d.ts +3 -2
  42. package/dist/credential-store.d.ts.map +1 -1
  43. package/dist/credential-store.js +5 -4
  44. package/dist/credential-store.js.map +1 -1
  45. package/dist/deferred-message.d.ts +2450 -0
  46. package/dist/deferred-message.d.ts.map +1 -0
  47. package/dist/deferred-message.js +186 -0
  48. package/dist/deferred-message.js.map +1 -0
  49. package/dist/events.d.ts +3 -3
  50. package/dist/events.js +1 -1
  51. package/dist/events.js.map +1 -1
  52. package/dist/harness-input.d.ts +15 -0
  53. package/dist/harness-input.d.ts.map +1 -1
  54. package/dist/harness-input.js +10 -1
  55. package/dist/harness-input.js.map +1 -1
  56. package/dist/harness-model.d.ts +65 -0
  57. package/dist/harness-model.d.ts.map +1 -1
  58. package/dist/harness-model.js +42 -0
  59. package/dist/harness-model.js.map +1 -1
  60. package/dist/harness-quota.d.ts +3 -3
  61. package/dist/harness.d.ts +61 -9
  62. package/dist/harness.d.ts.map +1 -1
  63. package/dist/harness.js +2 -2
  64. package/dist/harness.js.map +1 -1
  65. package/dist/index.d.ts +8 -0
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +8 -0
  68. package/dist/index.js.map +1 -1
  69. package/dist/mcp-run-result.d.ts +356 -12
  70. package/dist/mcp-run-result.d.ts.map +1 -1
  71. package/dist/mcp-run-result.js +5 -0
  72. package/dist/mcp-run-result.js.map +1 -1
  73. package/dist/mcp-run-wait.d.ts +133 -0
  74. package/dist/mcp-run-wait.d.ts.map +1 -1
  75. package/dist/mcp-run-wait.js +4 -0
  76. package/dist/mcp-run-wait.js.map +1 -1
  77. package/dist/mcp-upload.d.ts +133 -0
  78. package/dist/mcp-upload.d.ts.map +1 -0
  79. package/dist/mcp-upload.js +40 -0
  80. package/dist/mcp-upload.js.map +1 -0
  81. package/dist/quota-read.d.ts +8 -8
  82. package/dist/quota.d.ts +26 -20
  83. package/dist/quota.d.ts.map +1 -1
  84. package/dist/quota.js +11 -1
  85. package/dist/quota.js.map +1 -1
  86. package/dist/run-observation.d.ts +189 -0
  87. package/dist/run-observation.d.ts.map +1 -0
  88. package/dist/run-observation.js +93 -0
  89. package/dist/run-observation.js.map +1 -0
  90. package/dist/setup-login.d.ts +5 -5
  91. package/dist/setup.d.ts +63 -63
  92. package/dist/setup.d.ts.map +1 -1
  93. package/dist/setup.js +1 -1
  94. package/dist/setup.js.map +1 -1
  95. package/dist/task-group-runs.d.ts +257 -0
  96. package/dist/task-group-runs.d.ts.map +1 -0
  97. package/dist/task-group-runs.js +91 -0
  98. package/dist/task-group-runs.js.map +1 -0
  99. package/dist/task-group.d.ts +23 -0
  100. package/dist/task-group.d.ts.map +1 -0
  101. package/dist/task-group.js +38 -0
  102. package/dist/task-group.js.map +1 -0
  103. package/dist/telemetry.d.ts +136 -8
  104. package/dist/telemetry.d.ts.map +1 -1
  105. package/dist/telemetry.js +2 -5
  106. package/dist/telemetry.js.map +1 -1
  107. package/dist/thread-history.d.ts +12553 -0
  108. package/dist/thread-history.d.ts.map +1 -0
  109. package/dist/thread-history.js +291 -0
  110. package/dist/thread-history.js.map +1 -0
  111. package/generated/ControlAccountResetResponse.schema.json +1 -0
  112. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +1 -0
  113. package/generated/ControlAccountResourcesResponse.schema.json +1 -0
  114. package/generated/ControlCredentialProfileCreateRequest.schema.json +1 -1
  115. package/generated/ControlCredentialProfilesQueryResponse.schema.json +1 -0
  116. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +1 -0
  117. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +1 -0
  118. package/generated/ControlQueuedRunInfo.schema.json +10 -0
  119. package/generated/ControlQuotaFreshnessResponse.schema.json +1 -0
  120. package/generated/ControlQuotaQueryResponse.schema.json +1 -0
  121. package/generated/ControlQuotaResponse.schema.json +1 -0
  122. package/generated/ControlRunAgainDraft.schema.json +5 -0
  123. package/generated/ControlRunControlResponse.schema.json +169 -0
  124. package/generated/ControlRunDetail.schema.json +208 -1
  125. package/generated/ControlRunListResponse.schema.json +31 -1
  126. package/generated/ControlRunRetryResponse.schema.json +10 -0
  127. package/generated/ControlRunStartInfo.schema.json +10 -0
  128. package/generated/ControlRunStartRequest.schema.json +5 -0
  129. package/generated/ControlRunStartResponse.schema.json +18 -0
  130. package/generated/ControlRunSummary.schema.json +31 -1
  131. package/generated/ControlSetupJob.schema.json +2 -1
  132. package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
  133. package/generated/ControlSetupJobEvent.schema.json +2 -1
  134. package/generated/ControlSetupJobListFilter.schema.json +2 -1
  135. package/generated/ControlSetupJobListResponse.schema.json +2 -1
  136. package/generated/ControlSetupJobSnapshot.schema.json +2 -1
  137. package/generated/ControlUploadImport.schema.json +124 -0
  138. package/generated/ControlUploadImportRequest.schema.json +66 -0
  139. package/generated/DeferredMessageCall.schema.json +331 -0
  140. package/generated/DeferredMessageDetail.schema.json +917 -0
  141. package/generated/DeferredMessageMutation.schema.json +315 -0
  142. package/generated/DeferredMessageProjection.schema.json +177 -0
  143. package/generated/DeferredMessageReadInput.schema.json +20 -0
  144. package/generated/DeferredMessageReadResult.schema.json +399 -0
  145. package/generated/DeferredMessageReceipt.schema.json +193 -0
  146. package/generated/HarnessEvent.schema.json +75 -1
  147. package/generated/McpAccountsToolResult.schema.json +1 -0
  148. package/generated/McpRunHandleResult.schema.json +226 -19
  149. package/generated/McpRunToolResult.schema.json +228 -11
  150. package/generated/McpRunWaitResult.schema.json +180 -2
  151. package/generated/McpStoreIdentityInput.schema.json +11 -0
  152. package/generated/McpUploadCreateInput.schema.json +54 -0
  153. package/generated/McpUploadFinalizeInput.schema.json +40 -0
  154. package/generated/McpUploadImportInput.schema.json +52 -0
  155. package/generated/McpUploadImportLocalInput.schema.json +27 -0
  156. package/generated/McpUploadImportLocalResult.schema.json +45 -0
  157. package/generated/McpUploadTargetInput.schema.json +20 -0
  158. package/generated/ResourceAttachmentRef.schema.json +21 -0
  159. package/generated/RoutePrimaryDivergedPayload.schema.json +23 -14
  160. package/generated/RunFailure.schema.json +31 -1
  161. package/generated/RunObservationRecord.schema.json +64 -0
  162. package/generated/RunTelemetry.schema.json +83 -1
  163. package/generated/RunWaitManyInput.schema.json +47 -0
  164. package/generated/RunWaitManyResult.schema.json +110 -0
  165. package/generated/RunWaitManySummary.schema.json +75 -0
  166. package/generated/TaskGroupId.schema.json +11 -0
  167. package/generated/TaskGroupReceipt.schema.json +26 -0
  168. package/generated/TaskGroupRunsInput.schema.json +46 -0
  169. package/generated/TaskGroupRunsResult.schema.json +162 -0
  170. package/generated/ThreadHistoryInput.schema.json +48 -0
  171. package/generated/ThreadHistoryPage.schema.json +2857 -0
  172. package/generated/ThreadPromptPart.schema.json +57 -0
  173. package/generated/ThreadPromptPartInput.schema.json +41 -0
  174. package/package.json +2 -2
@@ -0,0 +1,27 @@
1
+ {
2
+ "$ref": "#/definitions/McpUploadImportLocalInput",
3
+ "definitions": {
4
+ "McpUploadImportLocalInput": {
5
+ "type": "object",
6
+ "properties": {
7
+ "uploadId": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Non-empty identifier string."
11
+ },
12
+ "path": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "pattern": "\\S",
16
+ "description": "Explicit absolute regular file on the MCP-server host, never the remote client's filesystem."
17
+ }
18
+ },
19
+ "required": [
20
+ "uploadId",
21
+ "path"
22
+ ],
23
+ "additionalProperties": false
24
+ }
25
+ },
26
+ "$schema": "http://json-schema.org/draft-07/schema#"
27
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "$ref": "#/definitions/McpUploadImportLocalResult",
3
+ "definitions": {
4
+ "McpUploadImportLocalResult": {
5
+ "type": "object",
6
+ "properties": {
7
+ "uploadId": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Non-empty identifier string."
11
+ },
12
+ "state": {
13
+ "type": "string",
14
+ "enum": [
15
+ "open",
16
+ "uploading",
17
+ "uploaded",
18
+ "cancelled"
19
+ ]
20
+ },
21
+ "receivedBytes": {
22
+ "type": "integer",
23
+ "minimum": 0
24
+ },
25
+ "expectedBytes": {
26
+ "type": "integer",
27
+ "minimum": 0
28
+ },
29
+ "expectedSha256": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "description": "Digest of the verified local bytes. Save it for finalize; absent while uploading or cancelled."
33
+ }
34
+ },
35
+ "required": [
36
+ "uploadId",
37
+ "state",
38
+ "receivedBytes",
39
+ "expectedBytes"
40
+ ],
41
+ "additionalProperties": false
42
+ }
43
+ },
44
+ "$schema": "http://json-schema.org/draft-07/schema#"
45
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$ref": "#/definitions/McpUploadTargetInput",
3
+ "definitions": {
4
+ "McpUploadTargetInput": {
5
+ "type": "object",
6
+ "properties": {
7
+ "uploadId": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Non-empty identifier string."
11
+ }
12
+ },
13
+ "required": [
14
+ "uploadId"
15
+ ],
16
+ "additionalProperties": false
17
+ }
18
+ },
19
+ "$schema": "http://json-schema.org/draft-07/schema#"
20
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$ref": "#/definitions/ResourceAttachmentRef",
3
+ "definitions": {
4
+ "ResourceAttachmentRef": {
5
+ "type": "object",
6
+ "properties": {
7
+ "resourceId": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Immutable daemon resource id returned by upload finalize."
11
+ }
12
+ },
13
+ "required": [
14
+ "resourceId"
15
+ ],
16
+ "additionalProperties": false,
17
+ "description": "Reference to an immutable daemon-owned uploaded resource."
18
+ }
19
+ },
20
+ "$schema": "http://json-schema.org/draft-07/schema#"
21
+ }
@@ -18,20 +18,29 @@
18
18
  "description": "The harness that actually ran first, or null when nothing remained routable."
19
19
  },
20
20
  "reason": {
21
- "type": "string",
22
- "enum": [
23
- "quota_exhausted",
24
- "money_exhausted",
25
- "subscription_exhausted",
26
- "rate_limited",
27
- "harness_error",
28
- "stall",
29
- "web_evidence_unsatisfied",
30
- "fallback_model",
31
- "not_portable",
32
- "auth_unavailable",
33
- "readiness_preferred",
34
- "manual"
21
+ "anyOf": [
22
+ {
23
+ "type": "string",
24
+ "enum": [
25
+ "quota_exhausted",
26
+ "money_exhausted",
27
+ "subscription_exhausted",
28
+ "rate_limited",
29
+ "harness_error",
30
+ "stall",
31
+ "web_evidence_unsatisfied",
32
+ "fallback_model",
33
+ "not_portable",
34
+ "auth_unavailable",
35
+ "readiness_preferred",
36
+ "manual"
37
+ ],
38
+ "description": "Typed reason an auto-fallback (route/auth switch) or session re-host happened, driven by typed budget/quota signals and events, never by regex over prose."
39
+ },
40
+ {
41
+ "type": "string",
42
+ "const": "capability_incompatible"
43
+ }
35
44
  ],
36
45
  "description": "Typed reason an auto-fallback (route/auth switch) or session re-host happened, driven by typed budget/quota signals and events, never by regex over prose.",
37
46
  "default": "quota_exhausted"
@@ -113,9 +113,38 @@
113
113
  "installed_version"
114
114
  ],
115
115
  "additionalProperties": false
116
+ },
117
+ {
118
+ "type": "object",
119
+ "properties": {
120
+ "kind": {
121
+ "type": "string",
122
+ "const": "credential_source_unconfirmed"
123
+ },
124
+ "native_code": {
125
+ "type": "string",
126
+ "const": "grok_credential_source_unconfirmed"
127
+ },
128
+ "source": {
129
+ "type": "string",
130
+ "const": "grok_init"
131
+ },
132
+ "reported_source": {
133
+ "type": "string",
134
+ "maxLength": 80,
135
+ "description": "Redacted credential source the vendor's startup frame reported."
136
+ }
137
+ },
138
+ "required": [
139
+ "kind",
140
+ "native_code",
141
+ "source",
142
+ "reported_source"
143
+ ],
144
+ "additionalProperties": false
116
145
  }
117
146
  ],
118
- "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
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."
119
148
  },
120
149
  "captureFailure": {
121
150
  "type": "object",
@@ -215,6 +244,7 @@
215
244
  "credential_pool_exhausted",
216
245
  "input_too_large",
217
246
  "vendor_cli_too_old",
247
+ "credential_source_unconfirmed",
218
248
  "delegated_home_unavailable",
219
249
  "delegated_confinement_unavailable",
220
250
  "delegated_evidence_incomplete",
@@ -0,0 +1,64 @@
1
+ {
2
+ "$ref": "#/definitions/RunObservationRecord",
3
+ "definitions": {
4
+ "RunObservationRecord": {
5
+ "type": "object",
6
+ "properties": {
7
+ "jobId": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "runId": {
12
+ "anyOf": [
13
+ {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ {
18
+ "type": "null"
19
+ }
20
+ ]
21
+ },
22
+ "partition": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "epoch": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "state": {
31
+ "type": "string",
32
+ "enum": [
33
+ "queued",
34
+ "running",
35
+ "succeeded",
36
+ "failed",
37
+ "cancelled",
38
+ "interrupted"
39
+ ],
40
+ "description": "Control-plane run state = the run LIFECYCLE (D8): queued/running while live, then exactly one of succeeded / failed / cancelled / interrupted. Outcome quality (checks/review/delivery) is orthogonal — see outcomeFacts."
41
+ },
42
+ "createdAt": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "taskGroupId": {
47
+ "type": "string",
48
+ "format": "uuid",
49
+ "description": "Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority."
50
+ }
51
+ },
52
+ "required": [
53
+ "jobId",
54
+ "runId",
55
+ "partition",
56
+ "epoch",
57
+ "state",
58
+ "createdAt"
59
+ ],
60
+ "additionalProperties": false
61
+ }
62
+ },
63
+ "$schema": "http://json-schema.org/draft-07/schema#"
64
+ }
@@ -287,9 +287,38 @@
287
287
  "installed_version"
288
288
  ],
289
289
  "additionalProperties": false
290
+ },
291
+ {
292
+ "type": "object",
293
+ "properties": {
294
+ "kind": {
295
+ "type": "string",
296
+ "const": "credential_source_unconfirmed"
297
+ },
298
+ "native_code": {
299
+ "type": "string",
300
+ "const": "grok_credential_source_unconfirmed"
301
+ },
302
+ "source": {
303
+ "type": "string",
304
+ "const": "grok_init"
305
+ },
306
+ "reported_source": {
307
+ "type": "string",
308
+ "maxLength": 80,
309
+ "description": "Redacted credential source the vendor's startup frame reported."
310
+ }
311
+ },
312
+ "required": [
313
+ "kind",
314
+ "native_code",
315
+ "source",
316
+ "reported_source"
317
+ ],
318
+ "additionalProperties": false
290
319
  }
291
320
  ],
292
- "description": "Vendor-attested request refusal that another account cannot repair; input and executable causes carry their own evidence."
321
+ "description": "Vendor-attested request refusal that stops retries and account rotation on its harness; input, executable and credential-source causes carry their own evidence."
293
322
  },
294
323
  "effort_resolution": {
295
324
  "type": "object",
@@ -657,6 +686,59 @@
657
686
  "default": null,
658
687
  "description": "Model the harness stream actually reported; null when never disclosed (rendered as unverified, never guessed)."
659
688
  },
689
+ "observed_model_catalog_match": {
690
+ "anyOf": [
691
+ {
692
+ "type": "object",
693
+ "properties": {
694
+ "label": {
695
+ "type": "string",
696
+ "minLength": 1,
697
+ "pattern": "\\S",
698
+ "description": "The observed model string, byte-identical to observed_model on the same event and to the matched entry's catalog label."
699
+ },
700
+ "id": {
701
+ "type": "string",
702
+ "minLength": 1,
703
+ "pattern": "\\S",
704
+ "description": "Id of the only catalog entry whose label is exactly `label`; no other entry has `label` as its id."
705
+ },
706
+ "source": {
707
+ "type": "string",
708
+ "enum": [
709
+ "account_catalog"
710
+ ],
711
+ "description": "The model list the spawn's own account answered before the vendor process ran."
712
+ },
713
+ "profile_id": {
714
+ "anyOf": [
715
+ {
716
+ "type": "string",
717
+ "minLength": 1
718
+ },
719
+ {
720
+ "type": "null"
721
+ }
722
+ ],
723
+ "description": "Credential profile whose catalog answered (the spawn's profile); null = engine-default credentials."
724
+ }
725
+ },
726
+ "required": [
727
+ "label",
728
+ "id",
729
+ "source",
730
+ "profile_id"
731
+ ],
732
+ "additionalProperties": false,
733
+ "description": "Exact same-spawn catalog evidence mapping an observed model label to its listed id; never derived from the requested model, normalized or fuzzy-matched."
734
+ },
735
+ {
736
+ "type": "null"
737
+ }
738
+ ],
739
+ "description": "Catalog proof carried by the same event that set observed_model, kept only while no later native try of the attempt started and no later event reported another model; null otherwise, even if a later try's event carried one.",
740
+ "default": null
741
+ },
660
742
  "auth_mode": {
661
743
  "anyOf": [
662
744
  {
@@ -0,0 +1,47 @@
1
+ {
2
+ "$ref": "#/definitions/RunWaitManyInput",
3
+ "definitions": {
4
+ "RunWaitManyInput": {
5
+ "type": "object",
6
+ "properties": {
7
+ "targets": {
8
+ "type": "array",
9
+ "items": {
10
+ "type": "object",
11
+ "properties": {
12
+ "runId": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "maxLength": 256
16
+ },
17
+ "seen": {
18
+ "type": "string",
19
+ "minLength": 43,
20
+ "maxLength": 43,
21
+ "pattern": "^[A-Za-z0-9_-]{43}$"
22
+ }
23
+ },
24
+ "required": [
25
+ "runId"
26
+ ],
27
+ "additionalProperties": false
28
+ },
29
+ "minItems": 1,
30
+ "maxItems": 1000
31
+ },
32
+ "waitMs": {
33
+ "type": "integer",
34
+ "minimum": 0,
35
+ "maximum": 50000,
36
+ "default": 25000
37
+ }
38
+ },
39
+ "required": [
40
+ "targets"
41
+ ],
42
+ "additionalProperties": false,
43
+ "description": "Read-only attention observation; compact request JSON is at most 1048576 UTF-8 bytes."
44
+ }
45
+ },
46
+ "$schema": "http://json-schema.org/draft-07/schema#"
47
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "$ref": "#/definitions/RunWaitManyResult",
3
+ "definitions": {
4
+ "RunWaitManyResult": {
5
+ "type": "object",
6
+ "properties": {
7
+ "wakeReason": {
8
+ "type": "string",
9
+ "enum": [
10
+ "attention",
11
+ "problems",
12
+ "timeout",
13
+ "aborted"
14
+ ]
15
+ },
16
+ "attention": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "integer",
20
+ "minimum": 0,
21
+ "maximum": 999
22
+ },
23
+ "maxItems": 1000
24
+ },
25
+ "summaries": {
26
+ "type": "array",
27
+ "items": {
28
+ "anyOf": [
29
+ {
30
+ "type": "object",
31
+ "properties": {
32
+ "status": {
33
+ "type": "string",
34
+ "enum": [
35
+ "queued",
36
+ "running",
37
+ "succeeded",
38
+ "failed",
39
+ "cancelled",
40
+ "interrupted"
41
+ ],
42
+ "description": "Control-plane run state = the run LIFECYCLE (D8): queued/running while live, then exactly one of succeeded / failed / cancelled / interrupted. Outcome quality (checks/review/delivery) is orthogonal — see outcomeFacts."
43
+ },
44
+ "pending": {
45
+ "type": "boolean"
46
+ },
47
+ "token": {
48
+ "type": "string",
49
+ "minLength": 43,
50
+ "maxLength": 43,
51
+ "pattern": "^[A-Za-z0-9_-]{43}$"
52
+ },
53
+ "problem": {
54
+ "type": "null"
55
+ }
56
+ },
57
+ "required": [
58
+ "status",
59
+ "pending",
60
+ "token",
61
+ "problem"
62
+ ],
63
+ "additionalProperties": false
64
+ },
65
+ {
66
+ "type": "object",
67
+ "properties": {
68
+ "status": {
69
+ "type": "null"
70
+ },
71
+ "pending": {
72
+ "type": "null"
73
+ },
74
+ "token": {
75
+ "type": "null"
76
+ },
77
+ "problem": {
78
+ "type": "string",
79
+ "enum": [
80
+ "not_found",
81
+ "snapshot_unavailable",
82
+ "not_observed"
83
+ ]
84
+ }
85
+ },
86
+ "required": [
87
+ "status",
88
+ "pending",
89
+ "token",
90
+ "problem"
91
+ ],
92
+ "additionalProperties": false
93
+ }
94
+ ]
95
+ },
96
+ "minItems": 1,
97
+ "maxItems": 1000
98
+ }
99
+ },
100
+ "required": [
101
+ "wakeReason",
102
+ "attention",
103
+ "summaries"
104
+ ],
105
+ "additionalProperties": false,
106
+ "description": "Lifecycle and pending attention only, at most 131072 UTF-8 JSON bytes; output readiness is a separate addressed read."
107
+ }
108
+ },
109
+ "$schema": "http://json-schema.org/draft-07/schema#"
110
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "$ref": "#/definitions/RunWaitManySummary",
3
+ "definitions": {
4
+ "RunWaitManySummary": {
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "status": {
10
+ "type": "string",
11
+ "enum": [
12
+ "queued",
13
+ "running",
14
+ "succeeded",
15
+ "failed",
16
+ "cancelled",
17
+ "interrupted"
18
+ ],
19
+ "description": "Control-plane run state = the run LIFECYCLE (D8): queued/running while live, then exactly one of succeeded / failed / cancelled / interrupted. Outcome quality (checks/review/delivery) is orthogonal — see outcomeFacts."
20
+ },
21
+ "pending": {
22
+ "type": "boolean"
23
+ },
24
+ "token": {
25
+ "type": "string",
26
+ "minLength": 43,
27
+ "maxLength": 43,
28
+ "pattern": "^[A-Za-z0-9_-]{43}$"
29
+ },
30
+ "problem": {
31
+ "type": "null"
32
+ }
33
+ },
34
+ "required": [
35
+ "status",
36
+ "pending",
37
+ "token",
38
+ "problem"
39
+ ],
40
+ "additionalProperties": false
41
+ },
42
+ {
43
+ "type": "object",
44
+ "properties": {
45
+ "status": {
46
+ "type": "null"
47
+ },
48
+ "pending": {
49
+ "type": "null"
50
+ },
51
+ "token": {
52
+ "type": "null"
53
+ },
54
+ "problem": {
55
+ "type": "string",
56
+ "enum": [
57
+ "not_found",
58
+ "snapshot_unavailable",
59
+ "not_observed"
60
+ ]
61
+ }
62
+ },
63
+ "required": [
64
+ "status",
65
+ "pending",
66
+ "token",
67
+ "problem"
68
+ ],
69
+ "additionalProperties": false
70
+ }
71
+ ]
72
+ }
73
+ },
74
+ "$schema": "http://json-schema.org/draft-07/schema#"
75
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$ref": "#/definitions/TaskGroupId",
3
+ "definitions": {
4
+ "TaskGroupId": {
5
+ "type": "string",
6
+ "format": "uuid",
7
+ "description": "Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority."
8
+ }
9
+ },
10
+ "$schema": "http://json-schema.org/draft-07/schema#"
11
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$ref": "#/definitions/TaskGroupReceipt",
3
+ "definitions": {
4
+ "TaskGroupReceipt": {
5
+ "type": "object",
6
+ "properties": {
7
+ "taskGroupId": {
8
+ "type": "string",
9
+ "format": "uuid",
10
+ "description": "Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority."
11
+ },
12
+ "storeId": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Identity of the durable engine store that accepted this group member, stable across restarts."
16
+ }
17
+ },
18
+ "required": [
19
+ "taskGroupId",
20
+ "storeId"
21
+ ],
22
+ "additionalProperties": false
23
+ }
24
+ },
25
+ "$schema": "http://json-schema.org/draft-07/schema#"
26
+ }