@claudexor/schema 1.0.1 → 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.
- package/dist/agent-capabilities.d.ts +88 -16
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +113 -48
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1423 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +317 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +133 -16
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +65 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +449 -115
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +114 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-operation-responses.d.ts +1172 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +443 -242
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1391 -878
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +468 -310
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +25 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +558 -175
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +207 -82
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +127 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +61 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +251 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +46 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +26 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +10 -10
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9766 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +450 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +174 -57
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1560 -58
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +97 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +233 -60
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +97 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +68 -41
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +45 -11
- package/dist/thread.js.map +1 -1
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +28 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +103 -12
- package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +176 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +499 -0
- package/generated/ControlRunDetail.schema.json +197 -30
- package/generated/ControlRunListResponse.schema.json +797 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +83 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +140 -20
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +118 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
- package/generated/ControlSetupJob.schema.json +763 -65
- package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
- package/generated/ControlSetupJobEvent.schema.json +861 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +763 -65
- package/generated/ControlSetupJobSnapshot.schema.json +870 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +20 -2
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadDetail.schema.json +32 -4
- package/generated/ControlThreadListResponse.schema.json +20 -2
- package/generated/ControlThreadTurnRequest.schema.json +373 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +105 -58
- package/generated/HarnessEvent.schema.json +201 -10
- package/generated/HarnessManifest.schema.json +63 -12
- package/generated/HarnessStatusDto.schema.json +103 -12
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunTelemetry.schema.json +80 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +159 -26
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +62 -6
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +1 -1
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlRunAgainDraft",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlRunAgainDraft": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"sourceRunId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Non-empty identifier string."
|
|
11
|
+
},
|
|
12
|
+
"request": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"prompt": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "",
|
|
18
|
+
"description": "The user's prompt for the run."
|
|
19
|
+
},
|
|
20
|
+
"attachments": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"resourceId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"description": "Immutable daemon resource id returned by upload finalize."
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"resourceId"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"description": "Reference to an immutable daemon-owned uploaded resource."
|
|
36
|
+
},
|
|
37
|
+
"description": "Immutable daemon resource ids returned by upload finalize; paths and inline bytes are not accepted."
|
|
38
|
+
},
|
|
39
|
+
"mode": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": [
|
|
42
|
+
"ask",
|
|
43
|
+
"plan",
|
|
44
|
+
"audit",
|
|
45
|
+
"agent",
|
|
46
|
+
"orchestrate"
|
|
47
|
+
],
|
|
48
|
+
"description": "Canonical run mode: ask, plan, and audit are read-only; agent writes; orchestrate is the autonomous coordinator intent. Engine strategies (race, attempts, swarm, create) are flags on a mode, not modes.",
|
|
49
|
+
"default": "agent"
|
|
50
|
+
},
|
|
51
|
+
"scope": {
|
|
52
|
+
"anyOf": [
|
|
53
|
+
{
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"kind": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"const": "project"
|
|
59
|
+
},
|
|
60
|
+
"root": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Absolute path of the project root."
|
|
63
|
+
},
|
|
64
|
+
"context": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"enum": [
|
|
67
|
+
"auto"
|
|
68
|
+
],
|
|
69
|
+
"description": "Project context depth; auto is the only mode.",
|
|
70
|
+
"default": "auto"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"kind",
|
|
75
|
+
"root"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"description": "Run anchored to a project."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"kind": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "none"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"kind"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"description": "Run with no project (pure ask)."
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"description": "What the run operates on: a project (with root) or nothing.",
|
|
96
|
+
"default": {
|
|
97
|
+
"kind": "none"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"execution": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"isolation": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"envelope",
|
|
107
|
+
"live"
|
|
108
|
+
],
|
|
109
|
+
"default": "envelope",
|
|
110
|
+
"description": "Run isolation: envelope (isolated worktree in the external per-project runtime namespace, the default) or live (the project tree itself)."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"description": "Execution isolation settings for a run.",
|
|
115
|
+
"default": {
|
|
116
|
+
"isolation": "envelope"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"harnesses": {
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"minLength": 1,
|
|
124
|
+
"pattern": "\\S",
|
|
125
|
+
"description": "User-supplied string that must contain visible content, not just whitespace."
|
|
126
|
+
},
|
|
127
|
+
"description": "Eligible harness pool for the run; omitted = engine auto-pools."
|
|
128
|
+
},
|
|
129
|
+
"primaryHarness": {
|
|
130
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items",
|
|
131
|
+
"description": "Primary harness the run should prefer."
|
|
132
|
+
},
|
|
133
|
+
"routingGoal": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": [
|
|
136
|
+
"auto",
|
|
137
|
+
"quality",
|
|
138
|
+
"economy"
|
|
139
|
+
],
|
|
140
|
+
"description": "Routing objective: pace expiring quota, choose the highest declared quality tier, or minimize incremental paid spend."
|
|
141
|
+
},
|
|
142
|
+
"model": {
|
|
143
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items",
|
|
144
|
+
"description": "Scalar model convenience: expands to the resolved primary harness only (never the pool); rejected with a multi-harness pool and no primary — use models instead."
|
|
145
|
+
},
|
|
146
|
+
"models": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": {
|
|
149
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items"
|
|
150
|
+
},
|
|
151
|
+
"propertyNames": {
|
|
152
|
+
"minLength": 1,
|
|
153
|
+
"pattern": "\\S"
|
|
154
|
+
},
|
|
155
|
+
"description": "Harness-scoped model map (harness id to model id); an entry here wins over the scalar model and over the per-harness settings default."
|
|
156
|
+
},
|
|
157
|
+
"effort": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": [
|
|
160
|
+
"low",
|
|
161
|
+
"medium",
|
|
162
|
+
"high",
|
|
163
|
+
"xhigh",
|
|
164
|
+
"max"
|
|
165
|
+
],
|
|
166
|
+
"description": "Requested reasoning effort."
|
|
167
|
+
},
|
|
168
|
+
"reviewerModels": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": {
|
|
171
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items"
|
|
172
|
+
},
|
|
173
|
+
"propertyNames": {
|
|
174
|
+
"enum": [
|
|
175
|
+
"openai",
|
|
176
|
+
"anthropic",
|
|
177
|
+
"google",
|
|
178
|
+
"cursor",
|
|
179
|
+
"opencode",
|
|
180
|
+
"xai",
|
|
181
|
+
"local",
|
|
182
|
+
"unknown"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"description": "Per-provider-family reviewer model overrides (legacy; reviewerPanel wins when present)."
|
|
186
|
+
},
|
|
187
|
+
"reviewerEfforts": {
|
|
188
|
+
"type": "object",
|
|
189
|
+
"additionalProperties": {
|
|
190
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/effort"
|
|
191
|
+
},
|
|
192
|
+
"propertyNames": {
|
|
193
|
+
"enum": [
|
|
194
|
+
"openai",
|
|
195
|
+
"anthropic",
|
|
196
|
+
"google",
|
|
197
|
+
"cursor",
|
|
198
|
+
"opencode",
|
|
199
|
+
"xai",
|
|
200
|
+
"local",
|
|
201
|
+
"unknown"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"description": "Per-provider-family reviewer effort overrides (legacy; reviewerPanel wins when present)."
|
|
205
|
+
},
|
|
206
|
+
"n": {
|
|
207
|
+
"type": "integer",
|
|
208
|
+
"exclusiveMinimum": 0,
|
|
209
|
+
"description": "Race width: number of best-of-N candidates."
|
|
210
|
+
},
|
|
211
|
+
"attempts": {
|
|
212
|
+
"anyOf": [
|
|
213
|
+
{
|
|
214
|
+
"type": "integer",
|
|
215
|
+
"exclusiveMinimum": 0
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "null"
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"description": "Cap on convergence attempts; null = engine default."
|
|
222
|
+
},
|
|
223
|
+
"untilClean": {
|
|
224
|
+
"type": "boolean",
|
|
225
|
+
"description": "Agent flag: iterate until the convergence predicate is clean (no fixed cap)."
|
|
226
|
+
},
|
|
227
|
+
"swarm": {
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"description": "Audit flag: bounded read-only research swarm."
|
|
230
|
+
},
|
|
231
|
+
"create": {
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"description": "Agent flag: create-from-scratch intent."
|
|
234
|
+
},
|
|
235
|
+
"synthesis": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"enum": [
|
|
238
|
+
"auto",
|
|
239
|
+
"always",
|
|
240
|
+
"never"
|
|
241
|
+
],
|
|
242
|
+
"description": "Best-of-N synthesis policy: auto only synthesizes an extra candidate when n>=3 and candidates genuinely complement; always/never force it."
|
|
243
|
+
},
|
|
244
|
+
"paidBudget": {
|
|
245
|
+
"anyOf": [
|
|
246
|
+
{
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"kind": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"const": "unlimited"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"kind"
|
|
256
|
+
],
|
|
257
|
+
"additionalProperties": false
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "object",
|
|
261
|
+
"properties": {
|
|
262
|
+
"kind": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"const": "finite"
|
|
265
|
+
},
|
|
266
|
+
"maxUsd": {
|
|
267
|
+
"type": "number",
|
|
268
|
+
"minimum": 0
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": [
|
|
272
|
+
"kind",
|
|
273
|
+
"maxUsd"
|
|
274
|
+
],
|
|
275
|
+
"additionalProperties": false
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"description": "Explicit incremental-cash budget for the run."
|
|
279
|
+
},
|
|
280
|
+
"access": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"enum": [
|
|
283
|
+
"readonly",
|
|
284
|
+
"workspace_write",
|
|
285
|
+
"full",
|
|
286
|
+
"external_sandbox_full",
|
|
287
|
+
"inherit_native"
|
|
288
|
+
],
|
|
289
|
+
"description": "Requested access profile; effective access is derived by the engine and never client-supplied."
|
|
290
|
+
},
|
|
291
|
+
"web": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"enum": [
|
|
294
|
+
"off",
|
|
295
|
+
"auto",
|
|
296
|
+
"cached",
|
|
297
|
+
"live"
|
|
298
|
+
],
|
|
299
|
+
"description": "Web policy for the run (alias of externalContextPolicy; must match when both set)."
|
|
300
|
+
},
|
|
301
|
+
"externalContextPolicy": {
|
|
302
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/web",
|
|
303
|
+
"description": "External web/context policy for the run."
|
|
304
|
+
},
|
|
305
|
+
"browser": {
|
|
306
|
+
"type": "boolean",
|
|
307
|
+
"description": "Request the agent-driven browser; preflight records per-lane effectiveness and refuses when no selected lane can receive it."
|
|
308
|
+
},
|
|
309
|
+
"tests": {
|
|
310
|
+
"type": "array",
|
|
311
|
+
"items": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"program": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"minLength": 1,
|
|
317
|
+
"pattern": "\\S",
|
|
318
|
+
"description": "Executable invoked directly without an implicit shell."
|
|
319
|
+
},
|
|
320
|
+
"args": {
|
|
321
|
+
"type": "array",
|
|
322
|
+
"items": {
|
|
323
|
+
"type": "string"
|
|
324
|
+
},
|
|
325
|
+
"default": [],
|
|
326
|
+
"description": "Exact argv passed to the executable."
|
|
327
|
+
},
|
|
328
|
+
"cwd": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"description": "Optional project-relative working directory for the command."
|
|
331
|
+
},
|
|
332
|
+
"envAllowlist": {
|
|
333
|
+
"type": "array",
|
|
334
|
+
"items": {
|
|
335
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items"
|
|
336
|
+
},
|
|
337
|
+
"default": [],
|
|
338
|
+
"description": "Non-secret parent environment names explicitly forwarded to the command."
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"required": [
|
|
342
|
+
"program"
|
|
343
|
+
],
|
|
344
|
+
"additionalProperties": false,
|
|
345
|
+
"description": "Canonical deterministic command invocation; no implicit shell parsing."
|
|
346
|
+
},
|
|
347
|
+
"description": "Typed-argv commands to run as deterministic gates."
|
|
348
|
+
},
|
|
349
|
+
"protectedPathApprovals": {
|
|
350
|
+
"type": "array",
|
|
351
|
+
"items": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"properties": {
|
|
354
|
+
"path": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"minLength": 1,
|
|
357
|
+
"pattern": "\\S",
|
|
358
|
+
"description": "Glob approved by the operator/user for this run; consumed only by the auto-protected gate/test path policy, not by built-in critical-path gates."
|
|
359
|
+
},
|
|
360
|
+
"reason": {
|
|
361
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items",
|
|
362
|
+
"description": "Optional human-readable reason for the approval."
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"required": [
|
|
366
|
+
"path"
|
|
367
|
+
],
|
|
368
|
+
"additionalProperties": false,
|
|
369
|
+
"description": "Per-run typed operator approval allowing changes under an auto-protected gate/test path."
|
|
370
|
+
},
|
|
371
|
+
"description": "Typed per-run approvals for changing auto-protected gate/test paths; does not bypass built-in critical/security path human gates."
|
|
372
|
+
},
|
|
373
|
+
"specPath": {
|
|
374
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items",
|
|
375
|
+
"description": "Path to a frozen SpecPack the run is held to."
|
|
376
|
+
},
|
|
377
|
+
"specId": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"description": "Id of the SpecPack the run is held to."
|
|
380
|
+
},
|
|
381
|
+
"specHash": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"minLength": 1,
|
|
384
|
+
"description": "Content hash of the SpecPack the run is held to."
|
|
385
|
+
},
|
|
386
|
+
"threadId": {
|
|
387
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/sourceRunId",
|
|
388
|
+
"description": "Thread this run is a turn of."
|
|
389
|
+
},
|
|
390
|
+
"turnId": {
|
|
391
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/sourceRunId",
|
|
392
|
+
"description": "Internal daemon handoff only; rejected (400) when supplied by a client on POST /runs — use POST /threads/:id/turns instead."
|
|
393
|
+
},
|
|
394
|
+
"parentRunId": {
|
|
395
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/sourceRunId",
|
|
396
|
+
"description": "Run this turn follows up on."
|
|
397
|
+
},
|
|
398
|
+
"retryOf": {
|
|
399
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/sourceRunId",
|
|
400
|
+
"description": "Server-owned Exact Retry lineage; direct POST /runs rejects it."
|
|
401
|
+
},
|
|
402
|
+
"planRunId": {
|
|
403
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/sourceRunId",
|
|
404
|
+
"description": "Internal daemon handoff only; rejected (400) on POST /runs. When set, the turn implements an approved plan from that run."
|
|
405
|
+
},
|
|
406
|
+
"reviewerPanel": {
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"properties": {
|
|
411
|
+
"harness": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"minLength": 1,
|
|
414
|
+
"pattern": "\\S",
|
|
415
|
+
"description": "Explicit reviewer harness id; repeated harness ids are allowed so one provider can review through multiple requested models."
|
|
416
|
+
},
|
|
417
|
+
"model": {
|
|
418
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/harnesses/items",
|
|
419
|
+
"description": "Per-reviewer model hint, passed to that harness only."
|
|
420
|
+
},
|
|
421
|
+
"effort": {
|
|
422
|
+
"$ref": "#/definitions/ControlRunAgainDraft/properties/request/properties/effort",
|
|
423
|
+
"description": "Per-reviewer effort hint, passed to that harness only."
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"required": [
|
|
427
|
+
"harness"
|
|
428
|
+
],
|
|
429
|
+
"additionalProperties": false,
|
|
430
|
+
"description": "One reviewer of an explicit reviewer panel."
|
|
431
|
+
},
|
|
432
|
+
"minItems": 1,
|
|
433
|
+
"description": "Explicit reviewer panel; overrides the legacy reviewerModels/reviewerEfforts maps and preserves duplicate harness entries for multi-model same-provider reviews."
|
|
434
|
+
},
|
|
435
|
+
"authPreference": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"enum": [
|
|
438
|
+
"subscription",
|
|
439
|
+
"api_key",
|
|
440
|
+
"auto"
|
|
441
|
+
],
|
|
442
|
+
"description": "Per-run auth route override."
|
|
443
|
+
},
|
|
444
|
+
"autonomy": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"enum": [
|
|
447
|
+
"suggest",
|
|
448
|
+
"auto_safe",
|
|
449
|
+
"auto_full"
|
|
450
|
+
],
|
|
451
|
+
"description": "Autonomy level for the orchestrate planner; only meaningful for mode=orchestrate."
|
|
452
|
+
},
|
|
453
|
+
"maxToolCalls": {
|
|
454
|
+
"type": "integer",
|
|
455
|
+
"exclusiveMinimum": 0,
|
|
456
|
+
"description": "Cap on orchestrate plan tool calls; only meaningful for mode=orchestrate."
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"additionalProperties": false,
|
|
460
|
+
"description": "Request body for POST /runs: prompt, mode, scope, routing, strategy flags, budget, policies, and spec/thread linkage."
|
|
461
|
+
},
|
|
462
|
+
"differences": {
|
|
463
|
+
"type": "array",
|
|
464
|
+
"items": {
|
|
465
|
+
"type": "object",
|
|
466
|
+
"properties": {
|
|
467
|
+
"field": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"minLength": 1
|
|
470
|
+
},
|
|
471
|
+
"change": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"const": "omitted"
|
|
474
|
+
},
|
|
475
|
+
"reason": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"minLength": 1
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"field",
|
|
482
|
+
"change",
|
|
483
|
+
"reason"
|
|
484
|
+
],
|
|
485
|
+
"additionalProperties": false
|
|
486
|
+
},
|
|
487
|
+
"default": []
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"required": [
|
|
491
|
+
"sourceRunId",
|
|
492
|
+
"request"
|
|
493
|
+
],
|
|
494
|
+
"additionalProperties": false,
|
|
495
|
+
"description": "Editable Run Again draft copied from a prior run with explicit omissions."
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
499
|
+
}
|