@claudexor/schema 1.0.1 → 2.1.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 (278) hide show
  1. package/dist/agent-capabilities.d.ts +102 -30
  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 +117 -52
  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 +1444 -0
  13. package/dist/auth.d.ts.map +1 -0
  14. package/dist/auth.js +371 -0
  15. package/dist/auth.js.map +1 -0
  16. package/dist/budget.d.ts +147 -18
  17. package/dist/budget.d.ts.map +1 -1
  18. package/dist/budget.js +80 -22
  19. package/dist/budget.js.map +1 -1
  20. package/dist/config.d.ts +829 -135
  21. package/dist/config.d.ts.map +1 -1
  22. package/dist/config.js +195 -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-gc.d.ts +185 -0
  29. package/dist/control-gc.d.ts.map +1 -0
  30. package/dist/control-gc.js +81 -0
  31. package/dist/control-gc.js.map +1 -0
  32. package/dist/control-operation-responses.d.ts +1298 -0
  33. package/dist/control-operation-responses.d.ts.map +1 -0
  34. package/dist/control-operation-responses.js +35 -0
  35. package/dist/control-operation-responses.js.map +1 -0
  36. package/dist/control-run-detail.d.ts +556 -247
  37. package/dist/control-run-detail.d.ts.map +1 -1
  38. package/dist/control-run-detail.js +72 -17
  39. package/dist/control-run-detail.js.map +1 -1
  40. package/dist/control-run-retry.d.ts +88 -0
  41. package/dist/control-run-retry.d.ts.map +1 -0
  42. package/dist/control-run-retry.js +40 -0
  43. package/dist/control-run-retry.js.map +1 -0
  44. package/dist/control-run-scope.d.ts +25 -0
  45. package/dist/control-run-scope.d.ts.map +1 -0
  46. package/dist/control-run-scope.js +22 -0
  47. package/dist/control-run-scope.js.map +1 -0
  48. package/dist/control-secret.d.ts +90 -0
  49. package/dist/control-secret.d.ts.map +1 -0
  50. package/dist/control-secret.js +35 -0
  51. package/dist/control-secret.js.map +1 -0
  52. package/dist/control-spec.d.ts +592 -0
  53. package/dist/control-spec.d.ts.map +1 -0
  54. package/dist/control-spec.js +85 -0
  55. package/dist/control-spec.js.map +1 -0
  56. package/dist/control-thread-apply.d.ts +175 -0
  57. package/dist/control-thread-apply.d.ts.map +1 -0
  58. package/dist/control-thread-apply.js +31 -0
  59. package/dist/control-thread-apply.js.map +1 -0
  60. package/dist/control-trust.d.ts +74 -10
  61. package/dist/control-trust.d.ts.map +1 -1
  62. package/dist/control-trust.js +31 -11
  63. package/dist/control-trust.js.map +1 -1
  64. package/dist/control.d.ts +1688 -1334
  65. package/dist/control.d.ts.map +1 -1
  66. package/dist/control.js +592 -333
  67. package/dist/control.js.map +1 -1
  68. package/dist/credential-profile.d.ts +454 -0
  69. package/dist/credential-profile.d.ts.map +1 -0
  70. package/dist/credential-profile.js +140 -0
  71. package/dist/credential-profile.js.map +1 -0
  72. package/dist/decision.d.ts +10 -10
  73. package/dist/decision.d.ts.map +1 -1
  74. package/dist/decision.js +62 -15
  75. package/dist/decision.js.map +1 -1
  76. package/dist/delivery.d.ts +99 -0
  77. package/dist/delivery.d.ts.map +1 -0
  78. package/dist/delivery.js +19 -0
  79. package/dist/delivery.js.map +1 -0
  80. package/dist/events.d.ts +41 -4
  81. package/dist/events.d.ts.map +1 -1
  82. package/dist/events.js +47 -4
  83. package/dist/events.js.map +1 -1
  84. package/dist/gate.d.ts +5 -5
  85. package/dist/gate.d.ts.map +1 -1
  86. package/dist/gate.js +25 -5
  87. package/dist/gate.js.map +1 -1
  88. package/dist/harness.d.ts +775 -237
  89. package/dist/harness.d.ts.map +1 -1
  90. package/dist/harness.js +314 -111
  91. package/dist/harness.js.map +1 -1
  92. package/dist/index.d.ts +19 -0
  93. package/dist/index.d.ts.map +1 -1
  94. package/dist/index.js +19 -0
  95. package/dist/index.js.map +1 -1
  96. package/dist/operation.d.ts +185 -0
  97. package/dist/operation.d.ts.map +1 -0
  98. package/dist/operation.js +50 -0
  99. package/dist/operation.js.map +1 -0
  100. package/dist/orchestrate.d.ts +150 -22
  101. package/dist/orchestrate.d.ts.map +1 -1
  102. package/dist/orchestrate.js +117 -7
  103. package/dist/orchestrate.js.map +1 -1
  104. package/dist/primitives.d.ts.map +1 -1
  105. package/dist/primitives.js +4 -1
  106. package/dist/primitives.js.map +1 -1
  107. package/dist/problem.d.ts +29 -0
  108. package/dist/problem.d.ts.map +1 -0
  109. package/dist/problem.js +17 -0
  110. package/dist/problem.js.map +1 -0
  111. package/dist/project.d.ts +97 -0
  112. package/dist/project.d.ts.map +1 -0
  113. package/dist/project.js +27 -0
  114. package/dist/project.js.map +1 -0
  115. package/dist/quota.d.ts +269 -0
  116. package/dist/quota.d.ts.map +1 -0
  117. package/dist/quota.js +58 -0
  118. package/dist/quota.js.map +1 -0
  119. package/dist/raw.d.ts +195 -0
  120. package/dist/raw.d.ts.map +1 -0
  121. package/dist/raw.js +58 -0
  122. package/dist/raw.js.map +1 -0
  123. package/dist/readiness.d.ts +596 -0
  124. package/dist/readiness.d.ts.map +1 -0
  125. package/dist/readiness.js +87 -0
  126. package/dist/readiness.js.map +1 -0
  127. package/dist/recovery.d.ts +515 -0
  128. package/dist/recovery.d.ts.map +1 -0
  129. package/dist/recovery.js +93 -0
  130. package/dist/recovery.js.map +1 -0
  131. package/dist/request-requirements.d.ts +36 -0
  132. package/dist/request-requirements.d.ts.map +1 -0
  133. package/dist/request-requirements.js +29 -0
  134. package/dist/request-requirements.js.map +1 -0
  135. package/dist/review.d.ts +26 -26
  136. package/dist/review.d.ts.map +1 -1
  137. package/dist/review.js +50 -10
  138. package/dist/review.js.map +1 -1
  139. package/dist/route.d.ts +13 -13
  140. package/dist/route.d.ts.map +1 -1
  141. package/dist/route.js +19 -4
  142. package/dist/route.js.map +1 -1
  143. package/dist/setup.d.ts +9811 -0
  144. package/dist/setup.d.ts.map +1 -0
  145. package/dist/setup.js +475 -0
  146. package/dist/setup.js.map +1 -0
  147. package/dist/spec.d.ts +178 -61
  148. package/dist/spec.d.ts.map +1 -1
  149. package/dist/spec.js +69 -16
  150. package/dist/spec.js.map +1 -1
  151. package/dist/surface-run-controls.d.ts.map +1 -1
  152. package/dist/surface-run-controls.js +25 -21
  153. package/dist/surface-run-controls.js.map +1 -1
  154. package/dist/task.d.ts +1657 -60
  155. package/dist/task.d.ts.map +1 -1
  156. package/dist/task.js +144 -18
  157. package/dist/task.js.map +1 -1
  158. package/dist/telemetry.d.ts +487 -72
  159. package/dist/telemetry.d.ts.map +1 -1
  160. package/dist/telemetry.js +194 -16
  161. package/dist/telemetry.js.map +1 -1
  162. package/dist/thread.d.ts +89 -51
  163. package/dist/thread.d.ts.map +1 -1
  164. package/dist/thread.js +56 -11
  165. package/dist/thread.js.map +1 -1
  166. package/dist/tool-ref.d.ts +45 -0
  167. package/dist/tool-ref.d.ts.map +1 -0
  168. package/dist/tool-ref.js +45 -0
  169. package/dist/tool-ref.js.map +1 -0
  170. package/dist/workproduct.d.ts +3 -3
  171. package/dist/workproduct.d.ts.map +1 -1
  172. package/dist/workproduct.js.map +1 -1
  173. package/dist/workspace.d.ts +3 -3
  174. package/dist/workspace.d.ts.map +1 -1
  175. package/dist/workspace.js +12 -3
  176. package/dist/workspace.js.map +1 -1
  177. package/generated/AgentCapabilityCatalog.schema.json +53 -11
  178. package/generated/BudgetLease.schema.json +55 -6
  179. package/generated/BudgetObservation.schema.json +44 -7
  180. package/generated/ConformanceReport.schema.json +49 -0
  181. package/generated/ControlApplyCheckResponse.schema.json +34 -0
  182. package/generated/ControlArtifactListResponse.schema.json +57 -0
  183. package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
  184. package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
  185. package/generated/ControlCredentialProfileCreateRequest.schema.json +32 -0
  186. package/generated/ControlCredentialProfileCreateResponse.schema.json +142 -0
  187. package/generated/ControlCredentialProfileDeleteResponse.schema.json +107 -0
  188. package/generated/ControlCredentialProfilesResponse.schema.json +155 -0
  189. package/generated/ControlDeliveryResponse.schema.json +136 -0
  190. package/generated/ControlGcReceipt.schema.json +170 -0
  191. package/generated/ControlGcRequest.schema.json +18 -0
  192. package/generated/ControlHandshakeRequest.schema.json +26 -0
  193. package/generated/ControlHandshakeResponse.schema.json +30 -0
  194. package/generated/ControlHarnessListResponse.schema.json +198 -14
  195. package/generated/ControlHarnessModelsResponse.schema.json +19 -0
  196. package/generated/ControlHarnessSettingsPatch.schema.json +9 -12
  197. package/generated/ControlJournalEvent.schema.json +42 -0
  198. package/generated/ControlJournalExportReceipt.schema.json +49 -0
  199. package/generated/ControlJournalInspection.schema.json +149 -0
  200. package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
  201. package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
  202. package/generated/ControlJournalValidation.schema.json +181 -0
  203. package/generated/ControlOperationCatalog.schema.json +128 -0
  204. package/generated/ControlOperationDescriptor.schema.json +110 -0
  205. package/generated/ControlProblem.schema.json +59 -0
  206. package/generated/ControlProject.schema.json +42 -0
  207. package/generated/ControlProjectListResponse.schema.json +54 -0
  208. package/generated/ControlProjectRegisterRequest.schema.json +19 -0
  209. package/generated/ControlProjectRelinkRequest.schema.json +19 -0
  210. package/generated/ControlQueuedRunInfo.schema.json +4 -2
  211. package/generated/ControlQuotaResponse.schema.json +177 -0
  212. package/generated/ControlResource.schema.json +59 -0
  213. package/generated/ControlRunAgainDraft.schema.json +539 -0
  214. package/generated/ControlRunDetail.schema.json +373 -34
  215. package/generated/ControlRunListResponse.schema.json +968 -0
  216. package/generated/ControlRunRetryResponse.schema.json +54 -0
  217. package/generated/ControlRunStartRequest.schema.json +123 -55
  218. package/generated/ControlRunStartResponse.schema.json +78 -0
  219. package/generated/ControlRunSummary.schema.json +312 -21
  220. package/generated/ControlSecretListResponse.schema.json +8 -14
  221. package/generated/ControlSecretMutationResponse.schema.json +32 -0
  222. package/generated/ControlSecretSetRequest.schema.json +27 -0
  223. package/generated/ControlSettingsSnapshot.schema.json +128 -44
  224. package/generated/ControlSettingsUpdateRequest.schema.json +119 -40
  225. package/generated/ControlSetupJob.schema.json +770 -64
  226. package/generated/ControlSetupJobCreateRequest.schema.json +16 -13
  227. package/generated/ControlSetupJobEvent.schema.json +869 -5
  228. package/generated/ControlSetupJobListFilter.schema.json +35 -0
  229. package/generated/ControlSetupJobListResponse.schema.json +770 -64
  230. package/generated/ControlSetupJobSnapshot.schema.json +878 -0
  231. package/generated/ControlSpecAnswersRequest.schema.json +74 -0
  232. package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
  233. package/generated/ControlSpecSession.schema.json +249 -0
  234. package/generated/ControlSpecSessionListResponse.schema.json +261 -0
  235. package/generated/ControlThread.schema.json +36 -6
  236. package/generated/ControlThreadApplyResponse.schema.json +139 -0
  237. package/generated/ControlThreadCreateRequest.schema.json +6 -2
  238. package/generated/ControlThreadDetail.schema.json +64 -12
  239. package/generated/ControlThreadListResponse.schema.json +36 -6
  240. package/generated/ControlThreadTurnRequest.schema.json +413 -0
  241. package/generated/ControlThreadTurnResponse.schema.json +73 -0
  242. package/generated/ControlThreadUpdateRequest.schema.json +12 -1
  243. package/generated/ControlTrustListResponse.schema.json +6 -0
  244. package/generated/ControlTrustState.schema.json +6 -0
  245. package/generated/ControlTrustUpdateRequest.schema.json +65 -3
  246. package/generated/ControlUploadCreateRequest.schema.json +37 -0
  247. package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
  248. package/generated/ControlUploadStatus.schema.json +40 -0
  249. package/generated/CredentialProfile.schema.json +78 -0
  250. package/generated/CredentialProfileStatus.schema.json +61 -0
  251. package/generated/DecisionRecord.schema.json +6 -3
  252. package/generated/GlobalConfig.schema.json +238 -55
  253. package/generated/HarnessEvent.schema.json +259 -11
  254. package/generated/HarnessManifest.schema.json +96 -14
  255. package/generated/HarnessModel.schema.json +19 -0
  256. package/generated/HarnessStatusDto.schema.json +198 -14
  257. package/generated/OrchestrateContract.schema.json +32 -6
  258. package/generated/OrchestratePlan.schema.json +20 -0
  259. package/generated/OrchestratePlanProgress.schema.json +61 -0
  260. package/generated/PaidBudget.schema.json +42 -0
  261. package/generated/Project.schema.json +45 -0
  262. package/generated/ProjectConfig.schema.json +45 -18
  263. package/generated/RawContextPacket.schema.json +184 -0
  264. package/generated/RawGitPatchEnvelope.schema.json +70 -0
  265. package/generated/RunEvent.schema.json +3 -0
  266. package/generated/RunTelemetry.schema.json +280 -0
  267. package/generated/SecretMetadata.schema.json +4 -7
  268. package/generated/Session.schema.json +14 -0
  269. package/generated/SpecPack.schema.json +118 -7
  270. package/generated/TaskContract.schema.json +224 -30
  271. package/generated/TestCommandInvocation.schema.json +45 -0
  272. package/generated/Thread.schema.json +74 -6
  273. package/generated/ThreadHeadPing.schema.json +40 -0
  274. package/generated/ThreadTurn.schema.json +24 -11
  275. package/generated/TrustConfig.schema.json +77 -0
  276. package/package.json +3 -2
  277. package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
  278. package/generated/ControlSpecFreezeRequest.schema.json +0 -83
package/dist/task.d.ts CHANGED
@@ -13,18 +13,125 @@ export declare const SuccessCriterion: z.ZodObject<{
13
13
  required?: boolean | undefined;
14
14
  }>;
15
15
  export type SuccessCriterion = z.infer<typeof SuccessCriterion>;
16
+ export declare const TestCommandInvocation: z.ZodObject<{
17
+ program: z.ZodString;
18
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
19
+ cwd: z.ZodOptional<z.ZodString>;
20
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
21
+ }, "strict", z.ZodTypeAny, {
22
+ program: string;
23
+ args: string[];
24
+ envAllowlist: string[];
25
+ cwd?: string | undefined;
26
+ }, {
27
+ program: string;
28
+ cwd?: string | undefined;
29
+ args?: string[] | undefined;
30
+ envAllowlist?: string[] | undefined;
31
+ }>;
32
+ export type TestCommandInvocation = z.infer<typeof TestCommandInvocation>;
33
+ export declare const TestCommandGrant: z.ZodObject<{
34
+ projectDigest: z.ZodString;
35
+ configDigest: z.ZodString;
36
+ commandDigest: z.ZodString;
37
+ executablePath: z.ZodString;
38
+ executableDigest: z.ZodString;
39
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
41
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ projectDigest: string;
44
+ configDigest: string;
45
+ commandDigest: string;
46
+ executablePath: string;
47
+ executableDigest: string;
48
+ scriptPath: string | null;
49
+ scriptDigest: string | null;
50
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
51
+ }, {
52
+ projectDigest: string;
53
+ configDigest: string;
54
+ commandDigest: string;
55
+ executablePath: string;
56
+ executableDigest: string;
57
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
58
+ scriptPath?: string | null | undefined;
59
+ scriptDigest?: string | null | undefined;
60
+ }>;
61
+ export type TestCommandGrant = z.infer<typeof TestCommandGrant>;
16
62
  export declare const TestCommand: z.ZodObject<{
63
+ program: z.ZodString;
64
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
65
+ cwd: z.ZodOptional<z.ZodString>;
66
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
67
+ } & {
17
68
  id: z.ZodString;
18
- command: z.ZodString;
19
69
  required: z.ZodDefault<z.ZodBoolean>;
20
- }, "strip", z.ZodTypeAny, {
70
+ trust_required: z.ZodDefault<z.ZodBoolean>;
71
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
72
+ projectDigest: z.ZodString;
73
+ configDigest: z.ZodString;
74
+ commandDigest: z.ZodString;
75
+ executablePath: z.ZodString;
76
+ executableDigest: z.ZodString;
77
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
78
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
79
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
80
+ }, "strict", z.ZodTypeAny, {
81
+ projectDigest: string;
82
+ configDigest: string;
83
+ commandDigest: string;
84
+ executablePath: string;
85
+ executableDigest: string;
86
+ scriptPath: string | null;
87
+ scriptDigest: string | null;
88
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
89
+ }, {
90
+ projectDigest: string;
91
+ configDigest: string;
92
+ commandDigest: string;
93
+ executablePath: string;
94
+ executableDigest: string;
95
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
96
+ scriptPath?: string | null | undefined;
97
+ scriptDigest?: string | null | undefined;
98
+ }>>>;
99
+ }, "strict", z.ZodTypeAny, {
21
100
  id: string;
22
- command: string;
23
101
  required: boolean;
102
+ program: string;
103
+ args: string[];
104
+ envAllowlist: string[];
105
+ trust_required: boolean;
106
+ trust_grant: {
107
+ projectDigest: string;
108
+ configDigest: string;
109
+ commandDigest: string;
110
+ executablePath: string;
111
+ executableDigest: string;
112
+ scriptPath: string | null;
113
+ scriptDigest: string | null;
114
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
115
+ } | null;
116
+ cwd?: string | undefined;
24
117
  }, {
25
118
  id: string;
26
- command: string;
119
+ program: string;
120
+ cwd?: string | undefined;
27
121
  required?: boolean | undefined;
122
+ args?: string[] | undefined;
123
+ envAllowlist?: string[] | undefined;
124
+ trust_required?: boolean | undefined;
125
+ trust_grant?: {
126
+ projectDigest: string;
127
+ configDigest: string;
128
+ commandDigest: string;
129
+ executablePath: string;
130
+ executableDigest: string;
131
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
132
+ scriptPath?: string | null | undefined;
133
+ scriptDigest?: string | null | undefined;
134
+ } | null | undefined;
28
135
  }>;
29
136
  export type TestCommand = z.infer<typeof TestCommand>;
30
137
  export declare const ProtectedPathApproval: z.ZodObject<{
@@ -46,6 +153,13 @@ export declare const TaskConstraints: z.ZodObject<{
46
153
  * suppressed by per-run protected-path approvals. The other constraint kinds
47
154
  * were unwired and removed. */
48
155
  protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
156
+ /** Per-run globs no candidate may touch AT ALL (create, modify, or delete —
157
+ * stricter than protected_paths, which gates only tampering with existing
158
+ * files). Enforced by the engine's post-diff policy gate on envelope runs;
159
+ * an in-place run with deny_paths is refused at preflight. An operator
160
+ * accept_risk decision MAY still deliver a violating patch (INV-111: the
161
+ * human is the final authority). */
162
+ deny_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
49
163
  /** Engine-derived gate/test path protections. Per-run approvals can narrow
50
164
  * only this auto-protected set, never spec/config-owned protected_paths. */
51
165
  auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -65,6 +179,7 @@ export declare const TaskConstraints: z.ZodObject<{
65
179
  }>, "many">>;
66
180
  }, "strip", z.ZodTypeAny, {
67
181
  protected_paths: string[];
182
+ deny_paths: string[];
68
183
  auto_protected_paths: string[];
69
184
  protected_path_approvals: {
70
185
  path: string;
@@ -72,6 +187,7 @@ export declare const TaskConstraints: z.ZodObject<{
72
187
  }[];
73
188
  }, {
74
189
  protected_paths?: string[] | undefined;
190
+ deny_paths?: string[] | undefined;
75
191
  auto_protected_paths?: string[] | undefined;
76
192
  protected_path_approvals?: {
77
193
  path: string;
@@ -195,18 +311,40 @@ export declare const TaskContract: z.ZodObject<{
195
311
  raw: string;
196
312
  normalized?: string | undefined;
197
313
  }>;
314
+ /** Caller-supplied per-run system-level instructions layered onto every
315
+ * TASK-PRODUCING lane's prompt (primary, candidate, planner, explorer,
316
+ * orchestrate-planner) — never reviewers, synthesis, or the auth smoke. */
317
+ instructions: z.ZodOptional<z.ZodString>;
318
+ /** Caller-supplied JSON Schema the run's final ANSWER must conform to,
319
+ * already normalized/strictified at the engine boundary. Mandatory when
320
+ * present: every answer-producing lane is constrained natively
321
+ * (HarnessRunSpec.output_schema) and ONE engine validator writes
322
+ * final/output.json + a typed conformance receipt; a non-conformant answer
323
+ * ends success-with-warnings (outputConformance failed), never a hard fail. */
324
+ output_schema: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
325
+ /** The auth route the caller REQUESTED for this run (a preference, not a
326
+ * secret); the effective route is disclosed per attempt and rolled into
327
+ * the telemetry auth_route receipt. */
328
+ auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
329
+ /** The credential profile the caller REQUESTED for this run (INV-135);
330
+ * null = engine-default credentials. Route evidence for profile identity. */
331
+ credential_profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
332
+ /** Caller-requested per-run turn cap. Run-level beats per-harness settings
333
+ * (specific beats general); a lane whose manifest lacks max_turns support
334
+ * discloses the ignored knob instead of silently dropping it. */
335
+ max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
198
336
  spec: z.ZodOptional<z.ZodObject<{
199
337
  id: z.ZodOptional<z.ZodString>;
200
338
  hash: z.ZodOptional<z.ZodString>;
201
339
  path: z.ZodOptional<z.ZodString>;
202
340
  }, "strip", z.ZodTypeAny, {
203
341
  path?: string | undefined;
204
- id?: string | undefined;
205
342
  hash?: string | undefined;
343
+ id?: string | undefined;
206
344
  }, {
207
345
  path?: string | undefined;
208
- id?: string | undefined;
209
346
  hash?: string | undefined;
347
+ id?: string | undefined;
210
348
  }>>;
211
349
  success_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
212
350
  id: z.ZodString;
@@ -262,6 +400,13 @@ export declare const TaskContract: z.ZodObject<{
262
400
  * suppressed by per-run protected-path approvals. The other constraint kinds
263
401
  * were unwired and removed. */
264
402
  protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
403
+ /** Per-run globs no candidate may touch AT ALL (create, modify, or delete —
404
+ * stricter than protected_paths, which gates only tampering with existing
405
+ * files). Enforced by the engine's post-diff policy gate on envelope runs;
406
+ * an in-place run with deny_paths is refused at preflight. An operator
407
+ * accept_risk decision MAY still deliver a violating patch (INV-111: the
408
+ * human is the final authority). */
409
+ deny_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
265
410
  /** Engine-derived gate/test path protections. Per-run approvals can narrow
266
411
  * only this auto-protected set, never spec/config-owned protected_paths. */
267
412
  auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -281,6 +426,7 @@ export declare const TaskContract: z.ZodObject<{
281
426
  }>, "many">>;
282
427
  }, "strip", z.ZodTypeAny, {
283
428
  protected_paths: string[];
429
+ deny_paths: string[];
284
430
  auto_protected_paths: string[];
285
431
  protected_path_approvals: {
286
432
  path: string;
@@ -288,6 +434,7 @@ export declare const TaskContract: z.ZodObject<{
288
434
  }[];
289
435
  }, {
290
436
  protected_paths?: string[] | undefined;
437
+ deny_paths?: string[] | undefined;
291
438
  auto_protected_paths?: string[] | undefined;
292
439
  protected_path_approvals?: {
293
440
  path: string;
@@ -296,29 +443,118 @@ export declare const TaskContract: z.ZodObject<{
296
443
  }>>;
297
444
  tests: z.ZodDefault<z.ZodObject<{
298
445
  commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
446
+ program: z.ZodString;
447
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
448
+ cwd: z.ZodOptional<z.ZodString>;
449
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
450
+ } & {
299
451
  id: z.ZodString;
300
- command: z.ZodString;
301
452
  required: z.ZodDefault<z.ZodBoolean>;
302
- }, "strip", z.ZodTypeAny, {
453
+ trust_required: z.ZodDefault<z.ZodBoolean>;
454
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
455
+ projectDigest: z.ZodString;
456
+ configDigest: z.ZodString;
457
+ commandDigest: z.ZodString;
458
+ executablePath: z.ZodString;
459
+ executableDigest: z.ZodString;
460
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
461
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
462
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
463
+ }, "strict", z.ZodTypeAny, {
464
+ projectDigest: string;
465
+ configDigest: string;
466
+ commandDigest: string;
467
+ executablePath: string;
468
+ executableDigest: string;
469
+ scriptPath: string | null;
470
+ scriptDigest: string | null;
471
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
472
+ }, {
473
+ projectDigest: string;
474
+ configDigest: string;
475
+ commandDigest: string;
476
+ executablePath: string;
477
+ executableDigest: string;
478
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
479
+ scriptPath?: string | null | undefined;
480
+ scriptDigest?: string | null | undefined;
481
+ }>>>;
482
+ }, "strict", z.ZodTypeAny, {
303
483
  id: string;
304
- command: string;
305
484
  required: boolean;
485
+ program: string;
486
+ args: string[];
487
+ envAllowlist: string[];
488
+ trust_required: boolean;
489
+ trust_grant: {
490
+ projectDigest: string;
491
+ configDigest: string;
492
+ commandDigest: string;
493
+ executablePath: string;
494
+ executableDigest: string;
495
+ scriptPath: string | null;
496
+ scriptDigest: string | null;
497
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
498
+ } | null;
499
+ cwd?: string | undefined;
306
500
  }, {
307
501
  id: string;
308
- command: string;
502
+ program: string;
503
+ cwd?: string | undefined;
309
504
  required?: boolean | undefined;
505
+ args?: string[] | undefined;
506
+ envAllowlist?: string[] | undefined;
507
+ trust_required?: boolean | undefined;
508
+ trust_grant?: {
509
+ projectDigest: string;
510
+ configDigest: string;
511
+ commandDigest: string;
512
+ executablePath: string;
513
+ executableDigest: string;
514
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
515
+ scriptPath?: string | null | undefined;
516
+ scriptDigest?: string | null | undefined;
517
+ } | null | undefined;
310
518
  }>, "many">>;
311
519
  }, "strip", z.ZodTypeAny, {
312
520
  commands: {
313
521
  id: string;
314
- command: string;
315
522
  required: boolean;
523
+ program: string;
524
+ args: string[];
525
+ envAllowlist: string[];
526
+ trust_required: boolean;
527
+ trust_grant: {
528
+ projectDigest: string;
529
+ configDigest: string;
530
+ commandDigest: string;
531
+ executablePath: string;
532
+ executableDigest: string;
533
+ scriptPath: string | null;
534
+ scriptDigest: string | null;
535
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
536
+ } | null;
537
+ cwd?: string | undefined;
316
538
  }[];
317
539
  }, {
318
540
  commands?: {
319
541
  id: string;
320
- command: string;
542
+ program: string;
543
+ cwd?: string | undefined;
321
544
  required?: boolean | undefined;
545
+ args?: string[] | undefined;
546
+ envAllowlist?: string[] | undefined;
547
+ trust_required?: boolean | undefined;
548
+ trust_grant?: {
549
+ projectDigest: string;
550
+ configDigest: string;
551
+ commandDigest: string;
552
+ executablePath: string;
553
+ executableDigest: string;
554
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
555
+ scriptPath?: string | null | undefined;
556
+ scriptDigest?: string | null | undefined;
557
+ } | null | undefined;
322
558
  }[] | undefined;
323
559
  }>>;
324
560
  access: z.ZodDefault<z.ZodObject<{
@@ -360,14 +596,39 @@ export declare const TaskContract: z.ZodObject<{
360
596
  deny?: string[] | undefined;
361
597
  }>>;
362
598
  budget: z.ZodDefault<z.ZodObject<{
363
- portfolio: z.ZodDefault<z.ZodEnum<["daily-rich", "balanced", "cheapest", "strongest", "burn", "subscription-first", "api-overflow", "conserve-claude", "conserve-codex"]>>;
364
- max_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
599
+ routing_goal: z.ZodDefault<z.ZodEnum<["auto", "quality", "economy"]>>;
600
+ paid_budget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
601
+ kind: z.ZodLiteral<"unlimited">;
602
+ }, "strict", z.ZodTypeAny, {
603
+ kind: "unlimited";
604
+ }, {
605
+ kind: "unlimited";
606
+ }>, z.ZodObject<{
607
+ kind: z.ZodLiteral<"finite">;
608
+ maxUsd: z.ZodNumber;
609
+ }, "strict", z.ZodTypeAny, {
610
+ kind: "finite";
611
+ maxUsd: number;
612
+ }, {
613
+ kind: "finite";
614
+ maxUsd: number;
615
+ }>]>>;
365
616
  }, "strip", z.ZodTypeAny, {
366
- max_usd: number | null;
367
- portfolio: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex";
617
+ routing_goal: "auto" | "quality" | "economy";
618
+ paid_budget: {
619
+ kind: "unlimited";
620
+ } | {
621
+ kind: "finite";
622
+ maxUsd: number;
623
+ };
368
624
  }, {
369
- max_usd?: number | null | undefined;
370
- portfolio?: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex" | undefined;
625
+ routing_goal?: "auto" | "quality" | "economy" | undefined;
626
+ paid_budget?: {
627
+ kind: "unlimited";
628
+ } | {
629
+ kind: "finite";
630
+ maxUsd: number;
631
+ } | undefined;
371
632
  }>>;
372
633
  /** Resolved harness-scoped model map for this run (harness id → model id),
373
634
  * after scalar→primary expansion. The contract is the SSOT the route spec
@@ -401,6 +662,21 @@ export declare const TaskContract: z.ZodObject<{
401
662
  require_no_accepted_needs_human_open?: boolean | undefined;
402
663
  }>>;
403
664
  }, "strip", z.ZodTypeAny, {
665
+ created_at: string;
666
+ mode: {
667
+ kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
668
+ };
669
+ schema_version: 2;
670
+ constraints: {
671
+ protected_paths: string[];
672
+ deny_paths: string[];
673
+ auto_protected_paths: string[];
674
+ protected_path_approvals: {
675
+ path: string;
676
+ reason?: string | undefined;
677
+ }[];
678
+ };
679
+ max_turns: number | null;
404
680
  access: {
405
681
  requested_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
406
682
  effective_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
@@ -410,11 +686,9 @@ export declare const TaskContract: z.ZodObject<{
410
686
  allow: string[];
411
687
  deny: string[];
412
688
  };
413
- mode: {
414
- kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
415
- };
416
- schema_version: 2;
417
- created_at: string;
689
+ auth_preference: "auto" | "subscription" | "api_key";
690
+ output_schema: Record<string, unknown> | null;
691
+ credential_profile_id: string | null;
418
692
  repo: {
419
693
  root: string;
420
694
  base_ref: string;
@@ -422,17 +696,6 @@ export declare const TaskContract: z.ZodObject<{
422
696
  base_sha?: string | undefined;
423
697
  };
424
698
  task_id: string;
425
- tests: {
426
- commands: {
427
- id: string;
428
- command: string;
429
- required: boolean;
430
- }[];
431
- };
432
- budget: {
433
- max_usd: number | null;
434
- portfolio: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex";
435
- };
436
699
  user_intent: {
437
700
  raw: string;
438
701
  normalized?: string | undefined;
@@ -453,12 +716,25 @@ export declare const TaskContract: z.ZodObject<{
453
716
  }[];
454
717
  order: string[];
455
718
  } | null;
456
- constraints: {
457
- protected_paths: string[];
458
- auto_protected_paths: string[];
459
- protected_path_approvals: {
460
- path: string;
461
- reason?: string | undefined;
719
+ tests: {
720
+ commands: {
721
+ id: string;
722
+ required: boolean;
723
+ program: string;
724
+ args: string[];
725
+ envAllowlist: string[];
726
+ trust_required: boolean;
727
+ trust_grant: {
728
+ projectDigest: string;
729
+ configDigest: string;
730
+ commandDigest: string;
731
+ executablePath: string;
732
+ executableDigest: string;
733
+ scriptPath: string | null;
734
+ scriptDigest: string | null;
735
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
736
+ } | null;
737
+ cwd?: string | undefined;
462
738
  }[];
463
739
  };
464
740
  external_context: {
@@ -466,6 +742,15 @@ export declare const TaskContract: z.ZodObject<{
466
742
  web_required: boolean;
467
743
  effective_mode: "off" | "auto" | "cached" | "live";
468
744
  };
745
+ budget: {
746
+ routing_goal: "auto" | "quality" | "economy";
747
+ paid_budget: {
748
+ kind: "unlimited";
749
+ } | {
750
+ kind: "finite";
751
+ maxUsd: number;
752
+ };
753
+ };
469
754
  routing_models: Record<string, string>;
470
755
  convergence: {
471
756
  require_tests_pass: boolean;
@@ -477,15 +762,16 @@ export declare const TaskContract: z.ZodObject<{
477
762
  };
478
763
  spec?: {
479
764
  path?: string | undefined;
480
- id?: string | undefined;
481
765
  hash?: string | undefined;
766
+ id?: string | undefined;
482
767
  } | undefined;
768
+ instructions?: string | undefined;
483
769
  }, {
770
+ created_at: string;
484
771
  mode: {
485
772
  kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
486
773
  };
487
774
  schema_version: 2;
488
- created_at: string;
489
775
  repo: {
490
776
  root: string;
491
777
  base_ref: string;
@@ -499,9 +785,20 @@ export declare const TaskContract: z.ZodObject<{
499
785
  };
500
786
  spec?: {
501
787
  path?: string | undefined;
502
- id?: string | undefined;
503
788
  hash?: string | undefined;
789
+ id?: string | undefined;
790
+ } | undefined;
791
+ instructions?: string | undefined;
792
+ constraints?: {
793
+ protected_paths?: string[] | undefined;
794
+ deny_paths?: string[] | undefined;
795
+ auto_protected_paths?: string[] | undefined;
796
+ protected_path_approvals?: {
797
+ path: string;
798
+ reason?: string | undefined;
799
+ }[] | undefined;
504
800
  } | undefined;
801
+ max_turns?: number | null | undefined;
505
802
  access?: {
506
803
  requested_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
507
804
  effective_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
@@ -511,17 +808,9 @@ export declare const TaskContract: z.ZodObject<{
511
808
  allow?: string[] | undefined;
512
809
  deny?: string[] | undefined;
513
810
  } | undefined;
514
- tests?: {
515
- commands?: {
516
- id: string;
517
- command: string;
518
- required?: boolean | undefined;
519
- }[] | undefined;
520
- } | undefined;
521
- budget?: {
522
- max_usd?: number | null | undefined;
523
- portfolio?: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex" | undefined;
524
- } | undefined;
811
+ auth_preference?: "auto" | "subscription" | "api_key" | undefined;
812
+ output_schema?: Record<string, unknown> | null | undefined;
813
+ credential_profile_id?: string | null | undefined;
525
814
  success_criteria?: {
526
815
  id: string;
527
816
  text: string;
@@ -538,12 +827,25 @@ export declare const TaskContract: z.ZodObject<{
538
827
  }[] | undefined;
539
828
  order?: string[] | undefined;
540
829
  } | null | undefined;
541
- constraints?: {
542
- protected_paths?: string[] | undefined;
543
- auto_protected_paths?: string[] | undefined;
544
- protected_path_approvals?: {
545
- path: string;
546
- reason?: string | undefined;
830
+ tests?: {
831
+ commands?: {
832
+ id: string;
833
+ program: string;
834
+ cwd?: string | undefined;
835
+ required?: boolean | undefined;
836
+ args?: string[] | undefined;
837
+ envAllowlist?: string[] | undefined;
838
+ trust_required?: boolean | undefined;
839
+ trust_grant?: {
840
+ projectDigest: string;
841
+ configDigest: string;
842
+ commandDigest: string;
843
+ executablePath: string;
844
+ executableDigest: string;
845
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
846
+ scriptPath?: string | null | undefined;
847
+ scriptDigest?: string | null | undefined;
848
+ } | null | undefined;
547
849
  }[] | undefined;
548
850
  } | undefined;
549
851
  external_context?: {
@@ -551,6 +853,15 @@ export declare const TaskContract: z.ZodObject<{
551
853
  web_required?: boolean | undefined;
552
854
  effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
553
855
  } | undefined;
856
+ budget?: {
857
+ routing_goal?: "auto" | "quality" | "economy" | undefined;
858
+ paid_budget?: {
859
+ kind: "unlimited";
860
+ } | {
861
+ kind: "finite";
862
+ maxUsd: number;
863
+ } | undefined;
864
+ } | undefined;
554
865
  routing_models?: Record<string, string> | undefined;
555
866
  convergence?: {
556
867
  require_tests_pass?: boolean | undefined;
@@ -562,4 +873,1290 @@ export declare const TaskContract: z.ZodObject<{
562
873
  } | undefined;
563
874
  }>;
564
875
  export type TaskContract = z.infer<typeof TaskContract>;
876
+ /**
877
+ * Decoder for the persisted, frozen task artifact used to authorize delivery.
878
+ * Runtime construction keeps TaskContract defaults for callers building a new
879
+ * contract, but an existing authority must state its gate set explicitly: an
880
+ * omitted/typoed field must never become a trustworthy empty list via defaults.
881
+ */
882
+ export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
883
+ tests: z.ZodObject<{
884
+ commands: z.ZodArray<z.ZodObject<{
885
+ program: z.ZodString;
886
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
887
+ cwd: z.ZodOptional<z.ZodString>;
888
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
889
+ } & {
890
+ id: z.ZodString;
891
+ required: z.ZodDefault<z.ZodBoolean>;
892
+ trust_required: z.ZodDefault<z.ZodBoolean>;
893
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
894
+ projectDigest: z.ZodString;
895
+ configDigest: z.ZodString;
896
+ commandDigest: z.ZodString;
897
+ executablePath: z.ZodString;
898
+ executableDigest: z.ZodString;
899
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
900
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
901
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
902
+ }, "strict", z.ZodTypeAny, {
903
+ projectDigest: string;
904
+ configDigest: string;
905
+ commandDigest: string;
906
+ executablePath: string;
907
+ executableDigest: string;
908
+ scriptPath: string | null;
909
+ scriptDigest: string | null;
910
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
911
+ }, {
912
+ projectDigest: string;
913
+ configDigest: string;
914
+ commandDigest: string;
915
+ executablePath: string;
916
+ executableDigest: string;
917
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
918
+ scriptPath?: string | null | undefined;
919
+ scriptDigest?: string | null | undefined;
920
+ }>>>;
921
+ }, "strict", z.ZodTypeAny, {
922
+ id: string;
923
+ required: boolean;
924
+ program: string;
925
+ args: string[];
926
+ envAllowlist: string[];
927
+ trust_required: boolean;
928
+ trust_grant: {
929
+ projectDigest: string;
930
+ configDigest: string;
931
+ commandDigest: string;
932
+ executablePath: string;
933
+ executableDigest: string;
934
+ scriptPath: string | null;
935
+ scriptDigest: string | null;
936
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
937
+ } | null;
938
+ cwd?: string | undefined;
939
+ }, {
940
+ id: string;
941
+ program: string;
942
+ cwd?: string | undefined;
943
+ required?: boolean | undefined;
944
+ args?: string[] | undefined;
945
+ envAllowlist?: string[] | undefined;
946
+ trust_required?: boolean | undefined;
947
+ trust_grant?: {
948
+ projectDigest: string;
949
+ configDigest: string;
950
+ commandDigest: string;
951
+ executablePath: string;
952
+ executableDigest: string;
953
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
954
+ scriptPath?: string | null | undefined;
955
+ scriptDigest?: string | null | undefined;
956
+ } | null | undefined;
957
+ }>, "many">;
958
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
959
+ commands: z.ZodArray<z.ZodObject<{
960
+ program: z.ZodString;
961
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
962
+ cwd: z.ZodOptional<z.ZodString>;
963
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
964
+ } & {
965
+ id: z.ZodString;
966
+ required: z.ZodDefault<z.ZodBoolean>;
967
+ trust_required: z.ZodDefault<z.ZodBoolean>;
968
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
969
+ projectDigest: z.ZodString;
970
+ configDigest: z.ZodString;
971
+ commandDigest: z.ZodString;
972
+ executablePath: z.ZodString;
973
+ executableDigest: z.ZodString;
974
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
975
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
976
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
977
+ }, "strict", z.ZodTypeAny, {
978
+ projectDigest: string;
979
+ configDigest: string;
980
+ commandDigest: string;
981
+ executablePath: string;
982
+ executableDigest: string;
983
+ scriptPath: string | null;
984
+ scriptDigest: string | null;
985
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
986
+ }, {
987
+ projectDigest: string;
988
+ configDigest: string;
989
+ commandDigest: string;
990
+ executablePath: string;
991
+ executableDigest: string;
992
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
993
+ scriptPath?: string | null | undefined;
994
+ scriptDigest?: string | null | undefined;
995
+ }>>>;
996
+ }, "strict", z.ZodTypeAny, {
997
+ id: string;
998
+ required: boolean;
999
+ program: string;
1000
+ args: string[];
1001
+ envAllowlist: string[];
1002
+ trust_required: boolean;
1003
+ trust_grant: {
1004
+ projectDigest: string;
1005
+ configDigest: string;
1006
+ commandDigest: string;
1007
+ executablePath: string;
1008
+ executableDigest: string;
1009
+ scriptPath: string | null;
1010
+ scriptDigest: string | null;
1011
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1012
+ } | null;
1013
+ cwd?: string | undefined;
1014
+ }, {
1015
+ id: string;
1016
+ program: string;
1017
+ cwd?: string | undefined;
1018
+ required?: boolean | undefined;
1019
+ args?: string[] | undefined;
1020
+ envAllowlist?: string[] | undefined;
1021
+ trust_required?: boolean | undefined;
1022
+ trust_grant?: {
1023
+ projectDigest: string;
1024
+ configDigest: string;
1025
+ commandDigest: string;
1026
+ executablePath: string;
1027
+ executableDigest: string;
1028
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1029
+ scriptPath?: string | null | undefined;
1030
+ scriptDigest?: string | null | undefined;
1031
+ } | null | undefined;
1032
+ }>, "many">;
1033
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1034
+ commands: z.ZodArray<z.ZodObject<{
1035
+ program: z.ZodString;
1036
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1037
+ cwd: z.ZodOptional<z.ZodString>;
1038
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1039
+ } & {
1040
+ id: z.ZodString;
1041
+ required: z.ZodDefault<z.ZodBoolean>;
1042
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1043
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1044
+ projectDigest: z.ZodString;
1045
+ configDigest: z.ZodString;
1046
+ commandDigest: z.ZodString;
1047
+ executablePath: z.ZodString;
1048
+ executableDigest: z.ZodString;
1049
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1050
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1051
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1052
+ }, "strict", z.ZodTypeAny, {
1053
+ projectDigest: string;
1054
+ configDigest: string;
1055
+ commandDigest: string;
1056
+ executablePath: string;
1057
+ executableDigest: string;
1058
+ scriptPath: string | null;
1059
+ scriptDigest: string | null;
1060
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1061
+ }, {
1062
+ projectDigest: string;
1063
+ configDigest: string;
1064
+ commandDigest: string;
1065
+ executablePath: string;
1066
+ executableDigest: string;
1067
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1068
+ scriptPath?: string | null | undefined;
1069
+ scriptDigest?: string | null | undefined;
1070
+ }>>>;
1071
+ }, "strict", z.ZodTypeAny, {
1072
+ id: string;
1073
+ required: boolean;
1074
+ program: string;
1075
+ args: string[];
1076
+ envAllowlist: string[];
1077
+ trust_required: boolean;
1078
+ trust_grant: {
1079
+ projectDigest: string;
1080
+ configDigest: string;
1081
+ commandDigest: string;
1082
+ executablePath: string;
1083
+ executableDigest: string;
1084
+ scriptPath: string | null;
1085
+ scriptDigest: string | null;
1086
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1087
+ } | null;
1088
+ cwd?: string | undefined;
1089
+ }, {
1090
+ id: string;
1091
+ program: string;
1092
+ cwd?: string | undefined;
1093
+ required?: boolean | undefined;
1094
+ args?: string[] | undefined;
1095
+ envAllowlist?: string[] | undefined;
1096
+ trust_required?: boolean | undefined;
1097
+ trust_grant?: {
1098
+ projectDigest: string;
1099
+ configDigest: string;
1100
+ commandDigest: string;
1101
+ executablePath: string;
1102
+ executableDigest: string;
1103
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1104
+ scriptPath?: string | null | undefined;
1105
+ scriptDigest?: string | null | undefined;
1106
+ } | null | undefined;
1107
+ }>, "many">;
1108
+ }, z.ZodTypeAny, "passthrough">>;
1109
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1110
+ tests: z.ZodObject<{
1111
+ commands: z.ZodArray<z.ZodObject<{
1112
+ program: z.ZodString;
1113
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1114
+ cwd: z.ZodOptional<z.ZodString>;
1115
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1116
+ } & {
1117
+ id: z.ZodString;
1118
+ required: z.ZodDefault<z.ZodBoolean>;
1119
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1120
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1121
+ projectDigest: z.ZodString;
1122
+ configDigest: z.ZodString;
1123
+ commandDigest: z.ZodString;
1124
+ executablePath: z.ZodString;
1125
+ executableDigest: z.ZodString;
1126
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1127
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1128
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1129
+ }, "strict", z.ZodTypeAny, {
1130
+ projectDigest: string;
1131
+ configDigest: string;
1132
+ commandDigest: string;
1133
+ executablePath: string;
1134
+ executableDigest: string;
1135
+ scriptPath: string | null;
1136
+ scriptDigest: string | null;
1137
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1138
+ }, {
1139
+ projectDigest: string;
1140
+ configDigest: string;
1141
+ commandDigest: string;
1142
+ executablePath: string;
1143
+ executableDigest: string;
1144
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1145
+ scriptPath?: string | null | undefined;
1146
+ scriptDigest?: string | null | undefined;
1147
+ }>>>;
1148
+ }, "strict", z.ZodTypeAny, {
1149
+ id: string;
1150
+ required: boolean;
1151
+ program: string;
1152
+ args: string[];
1153
+ envAllowlist: string[];
1154
+ trust_required: boolean;
1155
+ trust_grant: {
1156
+ projectDigest: string;
1157
+ configDigest: string;
1158
+ commandDigest: string;
1159
+ executablePath: string;
1160
+ executableDigest: string;
1161
+ scriptPath: string | null;
1162
+ scriptDigest: string | null;
1163
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1164
+ } | null;
1165
+ cwd?: string | undefined;
1166
+ }, {
1167
+ id: string;
1168
+ program: string;
1169
+ cwd?: string | undefined;
1170
+ required?: boolean | undefined;
1171
+ args?: string[] | undefined;
1172
+ envAllowlist?: string[] | undefined;
1173
+ trust_required?: boolean | undefined;
1174
+ trust_grant?: {
1175
+ projectDigest: string;
1176
+ configDigest: string;
1177
+ commandDigest: string;
1178
+ executablePath: string;
1179
+ executableDigest: string;
1180
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1181
+ scriptPath?: string | null | undefined;
1182
+ scriptDigest?: string | null | undefined;
1183
+ } | null | undefined;
1184
+ }>, "many">;
1185
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1186
+ commands: z.ZodArray<z.ZodObject<{
1187
+ program: z.ZodString;
1188
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1189
+ cwd: z.ZodOptional<z.ZodString>;
1190
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1191
+ } & {
1192
+ id: z.ZodString;
1193
+ required: z.ZodDefault<z.ZodBoolean>;
1194
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1195
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1196
+ projectDigest: z.ZodString;
1197
+ configDigest: z.ZodString;
1198
+ commandDigest: z.ZodString;
1199
+ executablePath: z.ZodString;
1200
+ executableDigest: z.ZodString;
1201
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1202
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1203
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1204
+ }, "strict", z.ZodTypeAny, {
1205
+ projectDigest: string;
1206
+ configDigest: string;
1207
+ commandDigest: string;
1208
+ executablePath: string;
1209
+ executableDigest: string;
1210
+ scriptPath: string | null;
1211
+ scriptDigest: string | null;
1212
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1213
+ }, {
1214
+ projectDigest: string;
1215
+ configDigest: string;
1216
+ commandDigest: string;
1217
+ executablePath: string;
1218
+ executableDigest: string;
1219
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1220
+ scriptPath?: string | null | undefined;
1221
+ scriptDigest?: string | null | undefined;
1222
+ }>>>;
1223
+ }, "strict", z.ZodTypeAny, {
1224
+ id: string;
1225
+ required: boolean;
1226
+ program: string;
1227
+ args: string[];
1228
+ envAllowlist: string[];
1229
+ trust_required: boolean;
1230
+ trust_grant: {
1231
+ projectDigest: string;
1232
+ configDigest: string;
1233
+ commandDigest: string;
1234
+ executablePath: string;
1235
+ executableDigest: string;
1236
+ scriptPath: string | null;
1237
+ scriptDigest: string | null;
1238
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1239
+ } | null;
1240
+ cwd?: string | undefined;
1241
+ }, {
1242
+ id: string;
1243
+ program: string;
1244
+ cwd?: string | undefined;
1245
+ required?: boolean | undefined;
1246
+ args?: string[] | undefined;
1247
+ envAllowlist?: string[] | undefined;
1248
+ trust_required?: boolean | undefined;
1249
+ trust_grant?: {
1250
+ projectDigest: string;
1251
+ configDigest: string;
1252
+ commandDigest: string;
1253
+ executablePath: string;
1254
+ executableDigest: string;
1255
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1256
+ scriptPath?: string | null | undefined;
1257
+ scriptDigest?: string | null | undefined;
1258
+ } | null | undefined;
1259
+ }>, "many">;
1260
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1261
+ commands: z.ZodArray<z.ZodObject<{
1262
+ program: z.ZodString;
1263
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1264
+ cwd: z.ZodOptional<z.ZodString>;
1265
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1266
+ } & {
1267
+ id: z.ZodString;
1268
+ required: z.ZodDefault<z.ZodBoolean>;
1269
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1270
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1271
+ projectDigest: z.ZodString;
1272
+ configDigest: z.ZodString;
1273
+ commandDigest: z.ZodString;
1274
+ executablePath: z.ZodString;
1275
+ executableDigest: z.ZodString;
1276
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1277
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1278
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1279
+ }, "strict", z.ZodTypeAny, {
1280
+ projectDigest: string;
1281
+ configDigest: string;
1282
+ commandDigest: string;
1283
+ executablePath: string;
1284
+ executableDigest: string;
1285
+ scriptPath: string | null;
1286
+ scriptDigest: string | null;
1287
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1288
+ }, {
1289
+ projectDigest: string;
1290
+ configDigest: string;
1291
+ commandDigest: string;
1292
+ executablePath: string;
1293
+ executableDigest: string;
1294
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1295
+ scriptPath?: string | null | undefined;
1296
+ scriptDigest?: string | null | undefined;
1297
+ }>>>;
1298
+ }, "strict", z.ZodTypeAny, {
1299
+ id: string;
1300
+ required: boolean;
1301
+ program: string;
1302
+ args: string[];
1303
+ envAllowlist: string[];
1304
+ trust_required: boolean;
1305
+ trust_grant: {
1306
+ projectDigest: string;
1307
+ configDigest: string;
1308
+ commandDigest: string;
1309
+ executablePath: string;
1310
+ executableDigest: string;
1311
+ scriptPath: string | null;
1312
+ scriptDigest: string | null;
1313
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1314
+ } | null;
1315
+ cwd?: string | undefined;
1316
+ }, {
1317
+ id: string;
1318
+ program: string;
1319
+ cwd?: string | undefined;
1320
+ required?: boolean | undefined;
1321
+ args?: string[] | undefined;
1322
+ envAllowlist?: string[] | undefined;
1323
+ trust_required?: boolean | undefined;
1324
+ trust_grant?: {
1325
+ projectDigest: string;
1326
+ configDigest: string;
1327
+ commandDigest: string;
1328
+ executablePath: string;
1329
+ executableDigest: string;
1330
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1331
+ scriptPath?: string | null | undefined;
1332
+ scriptDigest?: string | null | undefined;
1333
+ } | null | undefined;
1334
+ }>, "many">;
1335
+ }, z.ZodTypeAny, "passthrough">>;
1336
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1337
+ tests: z.ZodObject<{
1338
+ commands: z.ZodArray<z.ZodObject<{
1339
+ program: z.ZodString;
1340
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1341
+ cwd: z.ZodOptional<z.ZodString>;
1342
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1343
+ } & {
1344
+ id: z.ZodString;
1345
+ required: z.ZodDefault<z.ZodBoolean>;
1346
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1347
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1348
+ projectDigest: z.ZodString;
1349
+ configDigest: z.ZodString;
1350
+ commandDigest: z.ZodString;
1351
+ executablePath: z.ZodString;
1352
+ executableDigest: z.ZodString;
1353
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1354
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1355
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1356
+ }, "strict", z.ZodTypeAny, {
1357
+ projectDigest: string;
1358
+ configDigest: string;
1359
+ commandDigest: string;
1360
+ executablePath: string;
1361
+ executableDigest: string;
1362
+ scriptPath: string | null;
1363
+ scriptDigest: string | null;
1364
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1365
+ }, {
1366
+ projectDigest: string;
1367
+ configDigest: string;
1368
+ commandDigest: string;
1369
+ executablePath: string;
1370
+ executableDigest: string;
1371
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1372
+ scriptPath?: string | null | undefined;
1373
+ scriptDigest?: string | null | undefined;
1374
+ }>>>;
1375
+ }, "strict", z.ZodTypeAny, {
1376
+ id: string;
1377
+ required: boolean;
1378
+ program: string;
1379
+ args: string[];
1380
+ envAllowlist: string[];
1381
+ trust_required: boolean;
1382
+ trust_grant: {
1383
+ projectDigest: string;
1384
+ configDigest: string;
1385
+ commandDigest: string;
1386
+ executablePath: string;
1387
+ executableDigest: string;
1388
+ scriptPath: string | null;
1389
+ scriptDigest: string | null;
1390
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1391
+ } | null;
1392
+ cwd?: string | undefined;
1393
+ }, {
1394
+ id: string;
1395
+ program: string;
1396
+ cwd?: string | undefined;
1397
+ required?: boolean | undefined;
1398
+ args?: string[] | undefined;
1399
+ envAllowlist?: string[] | undefined;
1400
+ trust_required?: boolean | undefined;
1401
+ trust_grant?: {
1402
+ projectDigest: string;
1403
+ configDigest: string;
1404
+ commandDigest: string;
1405
+ executablePath: string;
1406
+ executableDigest: string;
1407
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1408
+ scriptPath?: string | null | undefined;
1409
+ scriptDigest?: string | null | undefined;
1410
+ } | null | undefined;
1411
+ }>, "many">;
1412
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1413
+ commands: z.ZodArray<z.ZodObject<{
1414
+ program: z.ZodString;
1415
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1416
+ cwd: z.ZodOptional<z.ZodString>;
1417
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1418
+ } & {
1419
+ id: z.ZodString;
1420
+ required: z.ZodDefault<z.ZodBoolean>;
1421
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1422
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1423
+ projectDigest: z.ZodString;
1424
+ configDigest: z.ZodString;
1425
+ commandDigest: z.ZodString;
1426
+ executablePath: z.ZodString;
1427
+ executableDigest: z.ZodString;
1428
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1429
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1430
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1431
+ }, "strict", z.ZodTypeAny, {
1432
+ projectDigest: string;
1433
+ configDigest: string;
1434
+ commandDigest: string;
1435
+ executablePath: string;
1436
+ executableDigest: string;
1437
+ scriptPath: string | null;
1438
+ scriptDigest: string | null;
1439
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1440
+ }, {
1441
+ projectDigest: string;
1442
+ configDigest: string;
1443
+ commandDigest: string;
1444
+ executablePath: string;
1445
+ executableDigest: string;
1446
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1447
+ scriptPath?: string | null | undefined;
1448
+ scriptDigest?: string | null | undefined;
1449
+ }>>>;
1450
+ }, "strict", z.ZodTypeAny, {
1451
+ id: string;
1452
+ required: boolean;
1453
+ program: string;
1454
+ args: string[];
1455
+ envAllowlist: string[];
1456
+ trust_required: boolean;
1457
+ trust_grant: {
1458
+ projectDigest: string;
1459
+ configDigest: string;
1460
+ commandDigest: string;
1461
+ executablePath: string;
1462
+ executableDigest: string;
1463
+ scriptPath: string | null;
1464
+ scriptDigest: string | null;
1465
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1466
+ } | null;
1467
+ cwd?: string | undefined;
1468
+ }, {
1469
+ id: string;
1470
+ program: string;
1471
+ cwd?: string | undefined;
1472
+ required?: boolean | undefined;
1473
+ args?: string[] | undefined;
1474
+ envAllowlist?: string[] | undefined;
1475
+ trust_required?: boolean | undefined;
1476
+ trust_grant?: {
1477
+ projectDigest: string;
1478
+ configDigest: string;
1479
+ commandDigest: string;
1480
+ executablePath: string;
1481
+ executableDigest: string;
1482
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1483
+ scriptPath?: string | null | undefined;
1484
+ scriptDigest?: string | null | undefined;
1485
+ } | null | undefined;
1486
+ }>, "many">;
1487
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1488
+ commands: z.ZodArray<z.ZodObject<{
1489
+ program: z.ZodString;
1490
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1491
+ cwd: z.ZodOptional<z.ZodString>;
1492
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1493
+ } & {
1494
+ id: z.ZodString;
1495
+ required: z.ZodDefault<z.ZodBoolean>;
1496
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1497
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1498
+ projectDigest: z.ZodString;
1499
+ configDigest: z.ZodString;
1500
+ commandDigest: z.ZodString;
1501
+ executablePath: z.ZodString;
1502
+ executableDigest: z.ZodString;
1503
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1504
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1505
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1506
+ }, "strict", z.ZodTypeAny, {
1507
+ projectDigest: string;
1508
+ configDigest: string;
1509
+ commandDigest: string;
1510
+ executablePath: string;
1511
+ executableDigest: string;
1512
+ scriptPath: string | null;
1513
+ scriptDigest: string | null;
1514
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1515
+ }, {
1516
+ projectDigest: string;
1517
+ configDigest: string;
1518
+ commandDigest: string;
1519
+ executablePath: string;
1520
+ executableDigest: string;
1521
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1522
+ scriptPath?: string | null | undefined;
1523
+ scriptDigest?: string | null | undefined;
1524
+ }>>>;
1525
+ }, "strict", z.ZodTypeAny, {
1526
+ id: string;
1527
+ required: boolean;
1528
+ program: string;
1529
+ args: string[];
1530
+ envAllowlist: string[];
1531
+ trust_required: boolean;
1532
+ trust_grant: {
1533
+ projectDigest: string;
1534
+ configDigest: string;
1535
+ commandDigest: string;
1536
+ executablePath: string;
1537
+ executableDigest: string;
1538
+ scriptPath: string | null;
1539
+ scriptDigest: string | null;
1540
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1541
+ } | null;
1542
+ cwd?: string | undefined;
1543
+ }, {
1544
+ id: string;
1545
+ program: string;
1546
+ cwd?: string | undefined;
1547
+ required?: boolean | undefined;
1548
+ args?: string[] | undefined;
1549
+ envAllowlist?: string[] | undefined;
1550
+ trust_required?: boolean | undefined;
1551
+ trust_grant?: {
1552
+ projectDigest: string;
1553
+ configDigest: string;
1554
+ commandDigest: string;
1555
+ executablePath: string;
1556
+ executableDigest: string;
1557
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1558
+ scriptPath?: string | null | undefined;
1559
+ scriptDigest?: string | null | undefined;
1560
+ } | null | undefined;
1561
+ }>, "many">;
1562
+ }, z.ZodTypeAny, "passthrough">>;
1563
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
1564
+ schema_version: z.ZodLiteral<2>;
1565
+ task_id: z.ZodString;
1566
+ created_at: z.ZodString;
1567
+ repo: z.ZodObject<{
1568
+ root: z.ZodString;
1569
+ base_ref: z.ZodString;
1570
+ base_sha: z.ZodOptional<z.ZodString>;
1571
+ dirty_policy: z.ZodDefault<z.ZodEnum<["refuse", "snapshot"]>>;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ root: string;
1574
+ base_ref: string;
1575
+ dirty_policy: "refuse" | "snapshot";
1576
+ base_sha?: string | undefined;
1577
+ }, {
1578
+ root: string;
1579
+ base_ref: string;
1580
+ base_sha?: string | undefined;
1581
+ dirty_policy?: "refuse" | "snapshot" | undefined;
1582
+ }>;
1583
+ mode: z.ZodObject<{
1584
+ kind: z.ZodEnum<["ask", "plan", "audit", "agent", "orchestrate"]>;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
1587
+ }, {
1588
+ kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
1589
+ }>;
1590
+ user_intent: z.ZodObject<{
1591
+ raw: z.ZodString;
1592
+ normalized: z.ZodOptional<z.ZodString>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ raw: string;
1595
+ normalized?: string | undefined;
1596
+ }, {
1597
+ raw: string;
1598
+ normalized?: string | undefined;
1599
+ }>;
1600
+ /** Caller-supplied per-run system-level instructions layered onto every
1601
+ * TASK-PRODUCING lane's prompt (primary, candidate, planner, explorer,
1602
+ * orchestrate-planner) — never reviewers, synthesis, or the auth smoke. */
1603
+ instructions: z.ZodOptional<z.ZodString>;
1604
+ /** Caller-supplied JSON Schema the run's final ANSWER must conform to,
1605
+ * already normalized/strictified at the engine boundary. Mandatory when
1606
+ * present: every answer-producing lane is constrained natively
1607
+ * (HarnessRunSpec.output_schema) and ONE engine validator writes
1608
+ * final/output.json + a typed conformance receipt; a non-conformant answer
1609
+ * ends success-with-warnings (outputConformance failed), never a hard fail. */
1610
+ output_schema: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1611
+ /** The auth route the caller REQUESTED for this run (a preference, not a
1612
+ * secret); the effective route is disclosed per attempt and rolled into
1613
+ * the telemetry auth_route receipt. */
1614
+ auth_preference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
1615
+ /** The credential profile the caller REQUESTED for this run (INV-135);
1616
+ * null = engine-default credentials. Route evidence for profile identity. */
1617
+ credential_profile_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1618
+ /** Caller-requested per-run turn cap. Run-level beats per-harness settings
1619
+ * (specific beats general); a lane whose manifest lacks max_turns support
1620
+ * discloses the ignored knob instead of silently dropping it. */
1621
+ max_turns: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1622
+ spec: z.ZodOptional<z.ZodObject<{
1623
+ id: z.ZodOptional<z.ZodString>;
1624
+ hash: z.ZodOptional<z.ZodString>;
1625
+ path: z.ZodOptional<z.ZodString>;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ path?: string | undefined;
1628
+ hash?: string | undefined;
1629
+ id?: string | undefined;
1630
+ }, {
1631
+ path?: string | undefined;
1632
+ hash?: string | undefined;
1633
+ id?: string | undefined;
1634
+ }>>;
1635
+ success_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
1636
+ id: z.ZodString;
1637
+ text: z.ZodString;
1638
+ required: z.ZodDefault<z.ZodBoolean>;
1639
+ }, "strip", z.ZodTypeAny, {
1640
+ id: string;
1641
+ text: string;
1642
+ required: boolean;
1643
+ }, {
1644
+ id: string;
1645
+ text: string;
1646
+ required?: boolean | undefined;
1647
+ }>, "many">>;
1648
+ non_goals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1649
+ forbidden_approaches: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1650
+ decided_tradeoffs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1651
+ /** Spec-derived task graph; null until a frozen SpecPack with tasks is resolved. */
1652
+ task_graph: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1653
+ nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1654
+ id: z.ZodString;
1655
+ title: z.ZodDefault<z.ZodString>;
1656
+ depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ id: string;
1659
+ title: string;
1660
+ depends_on: string[];
1661
+ }, {
1662
+ id: string;
1663
+ title?: string | undefined;
1664
+ depends_on?: string[] | undefined;
1665
+ }>, "many">>;
1666
+ /** Topological execution order (node ids); empty when there are no tasks. */
1667
+ order: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ nodes: {
1670
+ id: string;
1671
+ title: string;
1672
+ depends_on: string[];
1673
+ }[];
1674
+ order: string[];
1675
+ }, {
1676
+ nodes?: {
1677
+ id: string;
1678
+ title?: string | undefined;
1679
+ depends_on?: string[] | undefined;
1680
+ }[] | undefined;
1681
+ order?: string[] | undefined;
1682
+ }>>>;
1683
+ constraints: z.ZodDefault<z.ZodObject<{
1684
+ /** Globs whose changes escalate risk to a human-approval gate (wired into
1685
+ * classifyRisk/requireHuman). These are spec/config-owned and cannot be
1686
+ * suppressed by per-run protected-path approvals. The other constraint kinds
1687
+ * were unwired and removed. */
1688
+ protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1689
+ /** Per-run globs no candidate may touch AT ALL (create, modify, or delete —
1690
+ * stricter than protected_paths, which gates only tampering with existing
1691
+ * files). Enforced by the engine's post-diff policy gate on envelope runs;
1692
+ * an in-place run with deny_paths is refused at preflight. An operator
1693
+ * accept_risk decision MAY still deliver a violating patch (INV-111: the
1694
+ * human is the final authority). */
1695
+ deny_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1696
+ /** Engine-derived gate/test path protections. Per-run approvals can narrow
1697
+ * only this auto-protected set, never spec/config-owned protected_paths. */
1698
+ auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1699
+ /** Per-run typed approvals for protected gate/test path changes. These are
1700
+ * produced by explicit surfaces (CLI/control/IDE), then consumed by policy. */
1701
+ protected_path_approvals: z.ZodDefault<z.ZodArray<z.ZodObject<{
1702
+ /** Glob approved by the operator/user for this run; consumed only by the
1703
+ * auto-protected gate/test path policy, not by built-in critical-path gates. */
1704
+ path: z.ZodString;
1705
+ reason: z.ZodOptional<z.ZodString>;
1706
+ }, "strict", z.ZodTypeAny, {
1707
+ path: string;
1708
+ reason?: string | undefined;
1709
+ }, {
1710
+ path: string;
1711
+ reason?: string | undefined;
1712
+ }>, "many">>;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ protected_paths: string[];
1715
+ deny_paths: string[];
1716
+ auto_protected_paths: string[];
1717
+ protected_path_approvals: {
1718
+ path: string;
1719
+ reason?: string | undefined;
1720
+ }[];
1721
+ }, {
1722
+ protected_paths?: string[] | undefined;
1723
+ deny_paths?: string[] | undefined;
1724
+ auto_protected_paths?: string[] | undefined;
1725
+ protected_path_approvals?: {
1726
+ path: string;
1727
+ reason?: string | undefined;
1728
+ }[] | undefined;
1729
+ }>>;
1730
+ tests: z.ZodDefault<z.ZodObject<{
1731
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
1732
+ program: z.ZodString;
1733
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1734
+ cwd: z.ZodOptional<z.ZodString>;
1735
+ envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1736
+ } & {
1737
+ id: z.ZodString;
1738
+ required: z.ZodDefault<z.ZodBoolean>;
1739
+ trust_required: z.ZodDefault<z.ZodBoolean>;
1740
+ trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1741
+ projectDigest: z.ZodString;
1742
+ configDigest: z.ZodString;
1743
+ commandDigest: z.ZodString;
1744
+ executablePath: z.ZodString;
1745
+ executableDigest: z.ZodString;
1746
+ scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1747
+ scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1748
+ accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
1749
+ }, "strict", z.ZodTypeAny, {
1750
+ projectDigest: string;
1751
+ configDigest: string;
1752
+ commandDigest: string;
1753
+ executablePath: string;
1754
+ executableDigest: string;
1755
+ scriptPath: string | null;
1756
+ scriptDigest: string | null;
1757
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1758
+ }, {
1759
+ projectDigest: string;
1760
+ configDigest: string;
1761
+ commandDigest: string;
1762
+ executablePath: string;
1763
+ executableDigest: string;
1764
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1765
+ scriptPath?: string | null | undefined;
1766
+ scriptDigest?: string | null | undefined;
1767
+ }>>>;
1768
+ }, "strict", z.ZodTypeAny, {
1769
+ id: string;
1770
+ required: boolean;
1771
+ program: string;
1772
+ args: string[];
1773
+ envAllowlist: string[];
1774
+ trust_required: boolean;
1775
+ trust_grant: {
1776
+ projectDigest: string;
1777
+ configDigest: string;
1778
+ commandDigest: string;
1779
+ executablePath: string;
1780
+ executableDigest: string;
1781
+ scriptPath: string | null;
1782
+ scriptDigest: string | null;
1783
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1784
+ } | null;
1785
+ cwd?: string | undefined;
1786
+ }, {
1787
+ id: string;
1788
+ program: string;
1789
+ cwd?: string | undefined;
1790
+ required?: boolean | undefined;
1791
+ args?: string[] | undefined;
1792
+ envAllowlist?: string[] | undefined;
1793
+ trust_required?: boolean | undefined;
1794
+ trust_grant?: {
1795
+ projectDigest: string;
1796
+ configDigest: string;
1797
+ commandDigest: string;
1798
+ executablePath: string;
1799
+ executableDigest: string;
1800
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1801
+ scriptPath?: string | null | undefined;
1802
+ scriptDigest?: string | null | undefined;
1803
+ } | null | undefined;
1804
+ }>, "many">>;
1805
+ }, "strip", z.ZodTypeAny, {
1806
+ commands: {
1807
+ id: string;
1808
+ required: boolean;
1809
+ program: string;
1810
+ args: string[];
1811
+ envAllowlist: string[];
1812
+ trust_required: boolean;
1813
+ trust_grant: {
1814
+ projectDigest: string;
1815
+ configDigest: string;
1816
+ commandDigest: string;
1817
+ executablePath: string;
1818
+ executableDigest: string;
1819
+ scriptPath: string | null;
1820
+ scriptDigest: string | null;
1821
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1822
+ } | null;
1823
+ cwd?: string | undefined;
1824
+ }[];
1825
+ }, {
1826
+ commands?: {
1827
+ id: string;
1828
+ program: string;
1829
+ cwd?: string | undefined;
1830
+ required?: boolean | undefined;
1831
+ args?: string[] | undefined;
1832
+ envAllowlist?: string[] | undefined;
1833
+ trust_required?: boolean | undefined;
1834
+ trust_grant?: {
1835
+ projectDigest: string;
1836
+ configDigest: string;
1837
+ commandDigest: string;
1838
+ executablePath: string;
1839
+ executableDigest: string;
1840
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1841
+ scriptPath?: string | null | undefined;
1842
+ scriptDigest?: string | null | undefined;
1843
+ } | null | undefined;
1844
+ }[] | undefined;
1845
+ }>>;
1846
+ access: z.ZodDefault<z.ZodObject<{
1847
+ requested_profile: z.ZodDefault<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
1848
+ /** Profile actually enforced by the engine (mode/trust clamps applied; never client-supplied). */
1849
+ effective_profile: z.ZodDefault<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
1850
+ }, "strip", z.ZodTypeAny, {
1851
+ requested_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1852
+ effective_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1853
+ }, {
1854
+ requested_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1855
+ effective_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
1856
+ }>>;
1857
+ external_context: z.ZodDefault<z.ZodObject<{
1858
+ policy: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
1859
+ web_required: z.ZodDefault<z.ZodBoolean>;
1860
+ /** Mode the selected route actually executes (disclosed upgrades, e.g. claude cached->live). */
1861
+ effective_mode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ policy: "off" | "auto" | "cached" | "live";
1864
+ web_required: boolean;
1865
+ effective_mode: "off" | "auto" | "cached" | "live";
1866
+ }, {
1867
+ policy?: "off" | "auto" | "cached" | "live" | undefined;
1868
+ web_required?: boolean | undefined;
1869
+ effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
1870
+ }>>;
1871
+ tool_permission_policy: z.ZodDefault<z.ZodObject<{
1872
+ web: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
1873
+ allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1874
+ deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ web: "off" | "auto" | "cached" | "live";
1877
+ allow: string[];
1878
+ deny: string[];
1879
+ }, {
1880
+ web?: "off" | "auto" | "cached" | "live" | undefined;
1881
+ allow?: string[] | undefined;
1882
+ deny?: string[] | undefined;
1883
+ }>>;
1884
+ budget: z.ZodDefault<z.ZodObject<{
1885
+ routing_goal: z.ZodDefault<z.ZodEnum<["auto", "quality", "economy"]>>;
1886
+ paid_budget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1887
+ kind: z.ZodLiteral<"unlimited">;
1888
+ }, "strict", z.ZodTypeAny, {
1889
+ kind: "unlimited";
1890
+ }, {
1891
+ kind: "unlimited";
1892
+ }>, z.ZodObject<{
1893
+ kind: z.ZodLiteral<"finite">;
1894
+ maxUsd: z.ZodNumber;
1895
+ }, "strict", z.ZodTypeAny, {
1896
+ kind: "finite";
1897
+ maxUsd: number;
1898
+ }, {
1899
+ kind: "finite";
1900
+ maxUsd: number;
1901
+ }>]>>;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ routing_goal: "auto" | "quality" | "economy";
1904
+ paid_budget: {
1905
+ kind: "unlimited";
1906
+ } | {
1907
+ kind: "finite";
1908
+ maxUsd: number;
1909
+ };
1910
+ }, {
1911
+ routing_goal?: "auto" | "quality" | "economy" | undefined;
1912
+ paid_budget?: {
1913
+ kind: "unlimited";
1914
+ } | {
1915
+ kind: "finite";
1916
+ maxUsd: number;
1917
+ } | undefined;
1918
+ }>>;
1919
+ /** Resolved harness-scoped model map for this run (harness id → model id),
1920
+ * after scalar→primary expansion. The contract is the SSOT the route spec
1921
+ * builder reads; empty = every route uses its per-harness settings default. */
1922
+ routing_models: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1923
+ convergence: z.ZodDefault<z.ZodObject<{
1924
+ require_tests_pass: z.ZodDefault<z.ZodBoolean>;
1925
+ require_no_accepted_block_open: z.ZodDefault<z.ZodBoolean>;
1926
+ require_no_accepted_fix_first_open: z.ZodDefault<z.ZodBoolean>;
1927
+ require_final_cross_family_clean_review: z.ZodDefault<z.ZodBoolean>;
1928
+ require_final_diff_stable_after_review: z.ZodDefault<z.ZodBoolean>;
1929
+ /**
1930
+ * Block convergence while an accepted NEEDS_HUMAN escalation is still open.
1931
+ * Closes the v0.8 hole where, with cross-family clean review disabled, a run
1932
+ * could converge to success with an open NEEDS_HUMAN finding.
1933
+ */
1934
+ require_no_accepted_needs_human_open: z.ZodDefault<z.ZodBoolean>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ require_tests_pass: boolean;
1937
+ require_no_accepted_block_open: boolean;
1938
+ require_no_accepted_fix_first_open: boolean;
1939
+ require_final_cross_family_clean_review: boolean;
1940
+ require_final_diff_stable_after_review: boolean;
1941
+ require_no_accepted_needs_human_open: boolean;
1942
+ }, {
1943
+ require_tests_pass?: boolean | undefined;
1944
+ require_no_accepted_block_open?: boolean | undefined;
1945
+ require_no_accepted_fix_first_open?: boolean | undefined;
1946
+ require_final_cross_family_clean_review?: boolean | undefined;
1947
+ require_final_diff_stable_after_review?: boolean | undefined;
1948
+ require_no_accepted_needs_human_open?: boolean | undefined;
1949
+ }>>;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ created_at: string;
1952
+ mode: {
1953
+ kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
1954
+ };
1955
+ schema_version: 2;
1956
+ constraints: {
1957
+ protected_paths: string[];
1958
+ deny_paths: string[];
1959
+ auto_protected_paths: string[];
1960
+ protected_path_approvals: {
1961
+ path: string;
1962
+ reason?: string | undefined;
1963
+ }[];
1964
+ };
1965
+ max_turns: number | null;
1966
+ access: {
1967
+ requested_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1968
+ effective_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
1969
+ };
1970
+ tool_permission_policy: {
1971
+ web: "off" | "auto" | "cached" | "live";
1972
+ allow: string[];
1973
+ deny: string[];
1974
+ };
1975
+ auth_preference: "auto" | "subscription" | "api_key";
1976
+ output_schema: Record<string, unknown> | null;
1977
+ credential_profile_id: string | null;
1978
+ repo: {
1979
+ root: string;
1980
+ base_ref: string;
1981
+ dirty_policy: "refuse" | "snapshot";
1982
+ base_sha?: string | undefined;
1983
+ };
1984
+ task_id: string;
1985
+ user_intent: {
1986
+ raw: string;
1987
+ normalized?: string | undefined;
1988
+ };
1989
+ success_criteria: {
1990
+ id: string;
1991
+ text: string;
1992
+ required: boolean;
1993
+ }[];
1994
+ non_goals: string[];
1995
+ forbidden_approaches: string[];
1996
+ decided_tradeoffs: string[];
1997
+ task_graph: {
1998
+ nodes: {
1999
+ id: string;
2000
+ title: string;
2001
+ depends_on: string[];
2002
+ }[];
2003
+ order: string[];
2004
+ } | null;
2005
+ tests: {
2006
+ commands: {
2007
+ id: string;
2008
+ required: boolean;
2009
+ program: string;
2010
+ args: string[];
2011
+ envAllowlist: string[];
2012
+ trust_required: boolean;
2013
+ trust_grant: {
2014
+ projectDigest: string;
2015
+ configDigest: string;
2016
+ commandDigest: string;
2017
+ executablePath: string;
2018
+ executableDigest: string;
2019
+ scriptPath: string | null;
2020
+ scriptDigest: string | null;
2021
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
2022
+ } | null;
2023
+ cwd?: string | undefined;
2024
+ }[];
2025
+ };
2026
+ external_context: {
2027
+ policy: "off" | "auto" | "cached" | "live";
2028
+ web_required: boolean;
2029
+ effective_mode: "off" | "auto" | "cached" | "live";
2030
+ };
2031
+ budget: {
2032
+ routing_goal: "auto" | "quality" | "economy";
2033
+ paid_budget: {
2034
+ kind: "unlimited";
2035
+ } | {
2036
+ kind: "finite";
2037
+ maxUsd: number;
2038
+ };
2039
+ };
2040
+ routing_models: Record<string, string>;
2041
+ convergence: {
2042
+ require_tests_pass: boolean;
2043
+ require_no_accepted_block_open: boolean;
2044
+ require_no_accepted_fix_first_open: boolean;
2045
+ require_final_cross_family_clean_review: boolean;
2046
+ require_final_diff_stable_after_review: boolean;
2047
+ require_no_accepted_needs_human_open: boolean;
2048
+ };
2049
+ spec?: {
2050
+ path?: string | undefined;
2051
+ hash?: string | undefined;
2052
+ id?: string | undefined;
2053
+ } | undefined;
2054
+ instructions?: string | undefined;
2055
+ }, {
2056
+ created_at: string;
2057
+ mode: {
2058
+ kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
2059
+ };
2060
+ schema_version: 2;
2061
+ repo: {
2062
+ root: string;
2063
+ base_ref: string;
2064
+ base_sha?: string | undefined;
2065
+ dirty_policy?: "refuse" | "snapshot" | undefined;
2066
+ };
2067
+ task_id: string;
2068
+ user_intent: {
2069
+ raw: string;
2070
+ normalized?: string | undefined;
2071
+ };
2072
+ spec?: {
2073
+ path?: string | undefined;
2074
+ hash?: string | undefined;
2075
+ id?: string | undefined;
2076
+ } | undefined;
2077
+ instructions?: string | undefined;
2078
+ constraints?: {
2079
+ protected_paths?: string[] | undefined;
2080
+ deny_paths?: string[] | undefined;
2081
+ auto_protected_paths?: string[] | undefined;
2082
+ protected_path_approvals?: {
2083
+ path: string;
2084
+ reason?: string | undefined;
2085
+ }[] | undefined;
2086
+ } | undefined;
2087
+ max_turns?: number | null | undefined;
2088
+ access?: {
2089
+ requested_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
2090
+ effective_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
2091
+ } | undefined;
2092
+ tool_permission_policy?: {
2093
+ web?: "off" | "auto" | "cached" | "live" | undefined;
2094
+ allow?: string[] | undefined;
2095
+ deny?: string[] | undefined;
2096
+ } | undefined;
2097
+ auth_preference?: "auto" | "subscription" | "api_key" | undefined;
2098
+ output_schema?: Record<string, unknown> | null | undefined;
2099
+ credential_profile_id?: string | null | undefined;
2100
+ success_criteria?: {
2101
+ id: string;
2102
+ text: string;
2103
+ required?: boolean | undefined;
2104
+ }[] | undefined;
2105
+ non_goals?: string[] | undefined;
2106
+ forbidden_approaches?: string[] | undefined;
2107
+ decided_tradeoffs?: string[] | undefined;
2108
+ task_graph?: {
2109
+ nodes?: {
2110
+ id: string;
2111
+ title?: string | undefined;
2112
+ depends_on?: string[] | undefined;
2113
+ }[] | undefined;
2114
+ order?: string[] | undefined;
2115
+ } | null | undefined;
2116
+ tests?: {
2117
+ commands?: {
2118
+ id: string;
2119
+ program: string;
2120
+ cwd?: string | undefined;
2121
+ required?: boolean | undefined;
2122
+ args?: string[] | undefined;
2123
+ envAllowlist?: string[] | undefined;
2124
+ trust_required?: boolean | undefined;
2125
+ trust_grant?: {
2126
+ projectDigest: string;
2127
+ configDigest: string;
2128
+ commandDigest: string;
2129
+ executablePath: string;
2130
+ executableDigest: string;
2131
+ accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
2132
+ scriptPath?: string | null | undefined;
2133
+ scriptDigest?: string | null | undefined;
2134
+ } | null | undefined;
2135
+ }[] | undefined;
2136
+ } | undefined;
2137
+ external_context?: {
2138
+ policy?: "off" | "auto" | "cached" | "live" | undefined;
2139
+ web_required?: boolean | undefined;
2140
+ effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
2141
+ } | undefined;
2142
+ budget?: {
2143
+ routing_goal?: "auto" | "quality" | "economy" | undefined;
2144
+ paid_budget?: {
2145
+ kind: "unlimited";
2146
+ } | {
2147
+ kind: "finite";
2148
+ maxUsd: number;
2149
+ } | undefined;
2150
+ } | undefined;
2151
+ routing_models?: Record<string, string> | undefined;
2152
+ convergence?: {
2153
+ require_tests_pass?: boolean | undefined;
2154
+ require_no_accepted_block_open?: boolean | undefined;
2155
+ require_no_accepted_fix_first_open?: boolean | undefined;
2156
+ require_final_cross_family_clean_review?: boolean | undefined;
2157
+ require_final_diff_stable_after_review?: boolean | undefined;
2158
+ require_no_accepted_needs_human_open?: boolean | undefined;
2159
+ } | undefined;
2160
+ }>>;
2161
+ export type FrozenTaskContractArtifact = z.infer<typeof FrozenTaskContractArtifact>;
565
2162
  //# sourceMappingURL=task.d.ts.map