@tangle-network/agent-interface 0.24.0 → 0.26.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.
@@ -0,0 +1,2708 @@
1
+ import { z } from "zod";
2
+ import type { AgentCandidateJsonValue } from "./agent-candidate.js";
3
+ export declare const agentImprovementMeasuredComparisonSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<1>;
5
+ kind: z.ZodLiteral<"agent-improvement-measured-comparison">;
6
+ benchmark: z.ZodObject<{
7
+ name: z.ZodString;
8
+ version: z.ZodString;
9
+ splitDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
10
+ }, z.core.$strict>;
11
+ baselineProfileDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
12
+ candidateBundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
13
+ overall: z.ZodObject<{
14
+ direction: z.ZodLiteral<"higher-is-better">;
15
+ unit: z.ZodLiteral<"score">;
16
+ baseline: z.ZodNumber;
17
+ candidate: z.ZodNumber;
18
+ delta: z.ZodNumber;
19
+ confidenceInterval: z.ZodObject<{
20
+ level: z.ZodNumber;
21
+ lower: z.ZodNumber;
22
+ upper: z.ZodNumber;
23
+ method: z.ZodLiteral<"paired-bootstrap">;
24
+ statistic: z.ZodLiteral<"mean">;
25
+ resamples: z.ZodNumber;
26
+ }, z.core.$strict>;
27
+ n: z.ZodNumber;
28
+ name: z.ZodLiteral<"composite">;
29
+ }, z.core.$strict>;
30
+ objectives: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
31
+ kind: z.ZodLiteral<"objective">;
32
+ name: z.ZodString;
33
+ direction: z.ZodLiteral<"higher-is-better">;
34
+ unit: z.ZodLiteral<"score">;
35
+ baseline: z.ZodNumber;
36
+ candidate: z.ZodNumber;
37
+ delta: z.ZodNumber;
38
+ confidenceInterval: z.ZodObject<{
39
+ level: z.ZodNumber;
40
+ lower: z.ZodNumber;
41
+ upper: z.ZodNumber;
42
+ method: z.ZodLiteral<"paired-bootstrap">;
43
+ statistic: z.ZodLiteral<"mean">;
44
+ resamples: z.ZodNumber;
45
+ }, z.core.$strict>;
46
+ n: z.ZodNumber;
47
+ availability: z.ZodLiteral<"measured">;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ kind: z.ZodLiteral<"objective">;
50
+ name: z.ZodString;
51
+ direction: z.ZodLiteral<"higher-is-better">;
52
+ unit: z.ZodLiteral<"score">;
53
+ availability: z.ZodLiteral<"unavailable">;
54
+ reason: z.ZodString;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"dimension">;
57
+ objective: z.ZodString;
58
+ name: z.ZodString;
59
+ direction: z.ZodLiteral<"higher-is-better">;
60
+ unit: z.ZodLiteral<"score">;
61
+ baseline: z.ZodNumber;
62
+ candidate: z.ZodNumber;
63
+ delta: z.ZodNumber;
64
+ confidenceInterval: z.ZodObject<{
65
+ level: z.ZodNumber;
66
+ lower: z.ZodNumber;
67
+ upper: z.ZodNumber;
68
+ method: z.ZodLiteral<"paired-bootstrap">;
69
+ statistic: z.ZodLiteral<"mean">;
70
+ resamples: z.ZodNumber;
71
+ }, z.core.$strict>;
72
+ n: z.ZodNumber;
73
+ availability: z.ZodLiteral<"measured">;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ kind: z.ZodLiteral<"dimension">;
76
+ objective: z.ZodString;
77
+ name: z.ZodString;
78
+ direction: z.ZodLiteral<"higher-is-better">;
79
+ unit: z.ZodLiteral<"score">;
80
+ availability: z.ZodLiteral<"unavailable">;
81
+ reason: z.ZodString;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ kind: z.ZodLiteral<"cost">;
84
+ name: z.ZodLiteral<"cost">;
85
+ direction: z.ZodLiteral<"lower-is-better">;
86
+ unit: z.ZodLiteral<"usd">;
87
+ baseline: z.ZodNumber;
88
+ candidate: z.ZodNumber;
89
+ delta: z.ZodNumber;
90
+ confidenceInterval: z.ZodObject<{
91
+ level: z.ZodNumber;
92
+ lower: z.ZodNumber;
93
+ upper: z.ZodNumber;
94
+ method: z.ZodLiteral<"paired-bootstrap">;
95
+ statistic: z.ZodLiteral<"mean">;
96
+ resamples: z.ZodNumber;
97
+ }, z.core.$strict>;
98
+ n: z.ZodNumber;
99
+ availability: z.ZodLiteral<"measured">;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ kind: z.ZodLiteral<"cost">;
102
+ name: z.ZodLiteral<"cost">;
103
+ direction: z.ZodLiteral<"lower-is-better">;
104
+ unit: z.ZodLiteral<"usd">;
105
+ availability: z.ZodLiteral<"unavailable">;
106
+ reason: z.ZodString;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ kind: z.ZodLiteral<"latency">;
109
+ name: z.ZodLiteral<"latency">;
110
+ direction: z.ZodLiteral<"lower-is-better">;
111
+ unit: z.ZodLiteral<"milliseconds">;
112
+ baseline: z.ZodNumber;
113
+ candidate: z.ZodNumber;
114
+ delta: z.ZodNumber;
115
+ confidenceInterval: z.ZodObject<{
116
+ level: z.ZodNumber;
117
+ lower: z.ZodNumber;
118
+ upper: z.ZodNumber;
119
+ method: z.ZodLiteral<"paired-bootstrap">;
120
+ statistic: z.ZodLiteral<"mean">;
121
+ resamples: z.ZodNumber;
122
+ }, z.core.$strict>;
123
+ n: z.ZodNumber;
124
+ availability: z.ZodLiteral<"measured">;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ kind: z.ZodLiteral<"latency">;
127
+ name: z.ZodLiteral<"latency">;
128
+ direction: z.ZodLiteral<"lower-is-better">;
129
+ unit: z.ZodLiteral<"milliseconds">;
130
+ availability: z.ZodLiteral<"unavailable">;
131
+ reason: z.ZodString;
132
+ }, z.core.$strict>]>>;
133
+ candidate: z.ZodOptional<z.ZodObject<{
134
+ label: z.ZodOptional<z.ZodString>;
135
+ rationale: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>>;
137
+ decision: z.ZodObject<{
138
+ outcome: z.ZodEnum<{
139
+ ship: "ship";
140
+ hold: "hold";
141
+ need_more_work: "need_more_work";
142
+ model_ceiling: "model_ceiling";
143
+ arch_ceiling: "arch_ceiling";
144
+ }>;
145
+ reasons: z.ZodArray<z.ZodString>;
146
+ contributingChecks: z.ZodArray<z.ZodObject<{
147
+ name: z.ZodString;
148
+ passed: z.ZodBoolean;
149
+ }, z.core.$strict>>;
150
+ }, z.core.$strict>;
151
+ power: z.ZodObject<{
152
+ sufficient: z.ZodBoolean;
153
+ n: z.ZodNumber;
154
+ minimumDetectableDelta: z.ZodNumber;
155
+ confidenceLevel: z.ZodNumber;
156
+ scaleAssumed: z.ZodBoolean;
157
+ sharedScorerChannel: z.ZodBoolean;
158
+ reason: z.ZodString;
159
+ }, z.core.$strict>;
160
+ provenance: z.ZodObject<{
161
+ kind: z.ZodLiteral<"agent-eval-loop">;
162
+ schema: z.ZodString;
163
+ runId: z.ZodString;
164
+ recordDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
165
+ baselineContentHash: z.ZodString;
166
+ candidateContentHash: z.ZodString;
167
+ }, z.core.$strict>;
168
+ diff: z.ZodString;
169
+ evaluation: z.ZodObject<{
170
+ generationsExplored: z.ZodNumber;
171
+ durationMs: z.ZodNumber;
172
+ totalCostUsd: z.ZodNumber;
173
+ }, z.core.$strict>;
174
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<AgentCandidateJsonValue, AgentCandidateJsonValue>>>;
175
+ }, z.core.$strict>;
176
+ export declare const agentImprovementProposalSchema: z.ZodObject<{
177
+ schemaVersion: z.ZodLiteral<1>;
178
+ kind: z.ZodLiteral<"agent-improvement-proposal">;
179
+ runId: z.ZodString;
180
+ changedSurfaces: z.ZodTuple<[z.ZodEnum<{
181
+ prompt: "prompt";
182
+ tools: "tools";
183
+ mcp: "mcp";
184
+ subagents: "subagents";
185
+ hooks: "hooks";
186
+ skills: "skills";
187
+ "agent-profile": "agent-profile";
188
+ memory: "memory";
189
+ code: "code";
190
+ knowledge: "knowledge";
191
+ }>], z.ZodEnum<{
192
+ prompt: "prompt";
193
+ tools: "tools";
194
+ mcp: "mcp";
195
+ subagents: "subagents";
196
+ hooks: "hooks";
197
+ skills: "skills";
198
+ "agent-profile": "agent-profile";
199
+ memory: "memory";
200
+ code: "code";
201
+ knowledge: "knowledge";
202
+ }>>;
203
+ proposedAt: z.ZodISODateTime;
204
+ baselineProfile: z.ZodObject<{
205
+ name: z.ZodOptional<z.ZodString>;
206
+ description: z.ZodOptional<z.ZodString>;
207
+ version: z.ZodOptional<z.ZodString>;
208
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ prompt: z.ZodOptional<z.ZodObject<{
210
+ systemPrompt: z.ZodOptional<z.ZodString>;
211
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ }, z.core.$strip>>;
213
+ model: z.ZodOptional<z.ZodObject<{
214
+ default: z.ZodOptional<z.ZodString>;
215
+ small: z.ZodOptional<z.ZodString>;
216
+ provider: z.ZodOptional<z.ZodString>;
217
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
218
+ none: "none";
219
+ minimal: "minimal";
220
+ low: "low";
221
+ medium: "medium";
222
+ high: "high";
223
+ xhigh: "xhigh";
224
+ ultracode: "ultracode";
225
+ }>>;
226
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
227
+ }, z.core.$strip>>;
228
+ harness: z.ZodOptional<z.ZodEnum<{
229
+ "claude-code": "claude-code";
230
+ claude: "claude";
231
+ claudish: "claudish";
232
+ nanoclaw: "nanoclaw";
233
+ codex: "codex";
234
+ opencode: "opencode";
235
+ "kimi-code": "kimi-code";
236
+ kimi: "kimi";
237
+ pi: "pi";
238
+ gemini: "gemini";
239
+ hermes: "hermes";
240
+ openclaw: "openclaw";
241
+ amp: "amp";
242
+ "factory-droids": "factory-droids";
243
+ acp: "acp";
244
+ "cli-base": "cli-base";
245
+ }>>;
246
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
247
+ allow: "allow";
248
+ ask: "ask";
249
+ deny: "deny";
250
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
251
+ allow: "allow";
252
+ ask: "ask";
253
+ deny: "deny";
254
+ }>>]>>>;
255
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
256
+ mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
257
+ transport: z.ZodOptional<z.ZodEnum<{
258
+ stdio: "stdio";
259
+ sse: "sse";
260
+ http: "http";
261
+ }>>;
262
+ command: z.ZodOptional<z.ZodString>;
263
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
265
+ cwd: z.ZodOptional<z.ZodString>;
266
+ url: z.ZodOptional<z.ZodString>;
267
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
+ enabled: z.ZodOptional<z.ZodBoolean>;
269
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
270
+ }, z.core.$strip>>>;
271
+ connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
272
+ connectionId: z.ZodString;
273
+ capabilities: z.ZodArray<z.ZodString>;
274
+ alias: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strip>>>;
276
+ subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
277
+ description: z.ZodOptional<z.ZodString>;
278
+ prompt: z.ZodOptional<z.ZodString>;
279
+ model: z.ZodOptional<z.ZodString>;
280
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
281
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
282
+ allow: "allow";
283
+ ask: "ask";
284
+ deny: "deny";
285
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
286
+ allow: "allow";
287
+ ask: "ask";
288
+ deny: "deny";
289
+ }>>]>>>;
290
+ maxSteps: z.ZodOptional<z.ZodNumber>;
291
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
292
+ }, z.core.$strip>>>;
293
+ resources: z.ZodOptional<z.ZodObject<{
294
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
295
+ path: z.ZodString;
296
+ resource: z.ZodUnion<readonly [z.ZodObject<{
297
+ kind: z.ZodLiteral<"inline">;
298
+ name: z.ZodString;
299
+ content: z.ZodString;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ kind: z.ZodLiteral<"github">;
302
+ repository: z.ZodOptional<z.ZodString>;
303
+ path: z.ZodString;
304
+ ref: z.ZodOptional<z.ZodString>;
305
+ name: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>]>;
307
+ executable: z.ZodOptional<z.ZodBoolean>;
308
+ }, z.core.$strip>>>;
309
+ tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
310
+ kind: z.ZodLiteral<"inline">;
311
+ name: z.ZodString;
312
+ content: z.ZodString;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"github">;
315
+ repository: z.ZodOptional<z.ZodString>;
316
+ path: z.ZodString;
317
+ ref: z.ZodOptional<z.ZodString>;
318
+ name: z.ZodOptional<z.ZodString>;
319
+ }, z.core.$strip>]>>>;
320
+ skills: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
321
+ kind: z.ZodLiteral<"inline">;
322
+ name: z.ZodString;
323
+ content: z.ZodString;
324
+ }, z.core.$strip>, z.ZodObject<{
325
+ kind: z.ZodLiteral<"github">;
326
+ repository: z.ZodOptional<z.ZodString>;
327
+ path: z.ZodString;
328
+ ref: z.ZodOptional<z.ZodString>;
329
+ name: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strip>]>>>;
331
+ agents: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
332
+ kind: z.ZodLiteral<"inline">;
333
+ name: z.ZodString;
334
+ content: z.ZodString;
335
+ }, z.core.$strip>, z.ZodObject<{
336
+ kind: z.ZodLiteral<"github">;
337
+ repository: z.ZodOptional<z.ZodString>;
338
+ path: z.ZodString;
339
+ ref: z.ZodOptional<z.ZodString>;
340
+ name: z.ZodOptional<z.ZodString>;
341
+ }, z.core.$strip>]>>>;
342
+ commands: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
343
+ kind: z.ZodLiteral<"inline">;
344
+ name: z.ZodString;
345
+ content: z.ZodString;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ kind: z.ZodLiteral<"github">;
348
+ repository: z.ZodOptional<z.ZodString>;
349
+ path: z.ZodString;
350
+ ref: z.ZodOptional<z.ZodString>;
351
+ name: z.ZodOptional<z.ZodString>;
352
+ }, z.core.$strip>]>>>;
353
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
354
+ kind: z.ZodLiteral<"inline">;
355
+ name: z.ZodString;
356
+ content: z.ZodString;
357
+ }, z.core.$strip>, z.ZodObject<{
358
+ kind: z.ZodLiteral<"github">;
359
+ repository: z.ZodOptional<z.ZodString>;
360
+ path: z.ZodString;
361
+ ref: z.ZodOptional<z.ZodString>;
362
+ name: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>]>]>>;
364
+ failOnError: z.ZodOptional<z.ZodBoolean>;
365
+ }, z.core.$strip>>;
366
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
367
+ command: z.ZodString;
368
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
369
+ blocking: z.ZodOptional<z.ZodBoolean>;
370
+ matcher: z.ZodOptional<z.ZodString>;
371
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
372
+ }, z.core.$strip>>>>;
373
+ modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
374
+ description: z.ZodOptional<z.ZodString>;
375
+ model: z.ZodOptional<z.ZodString>;
376
+ prompt: z.ZodOptional<z.ZodString>;
377
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
378
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
379
+ allow: "allow";
380
+ ask: "ask";
381
+ deny: "deny";
382
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
383
+ allow: "allow";
384
+ ask: "ask";
385
+ deny: "deny";
386
+ }>>]>>>;
387
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
388
+ }, z.core.$strip>>>;
389
+ confidential: z.ZodOptional<z.ZodObject<{
390
+ tee: z.ZodOptional<z.ZodString>;
391
+ attestationNonce: z.ZodOptional<z.ZodString>;
392
+ sealed: z.ZodOptional<z.ZodBoolean>;
393
+ attestationRefresh: z.ZodOptional<z.ZodBoolean>;
394
+ }, z.core.$strip>>;
395
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
396
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodUndefined]>>>;
397
+ }, z.core.$strip>;
398
+ findings: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodCustom<AgentCandidateJsonValue, AgentCandidateJsonValue>>>;
399
+ evaluation: z.ZodObject<{
400
+ schemaVersion: z.ZodLiteral<1>;
401
+ kind: z.ZodLiteral<"agent-improvement-measured-comparison">;
402
+ benchmark: z.ZodObject<{
403
+ name: z.ZodString;
404
+ version: z.ZodString;
405
+ splitDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
406
+ }, z.core.$strict>;
407
+ baselineProfileDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
408
+ candidateBundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
409
+ overall: z.ZodObject<{
410
+ direction: z.ZodLiteral<"higher-is-better">;
411
+ unit: z.ZodLiteral<"score">;
412
+ baseline: z.ZodNumber;
413
+ candidate: z.ZodNumber;
414
+ delta: z.ZodNumber;
415
+ confidenceInterval: z.ZodObject<{
416
+ level: z.ZodNumber;
417
+ lower: z.ZodNumber;
418
+ upper: z.ZodNumber;
419
+ method: z.ZodLiteral<"paired-bootstrap">;
420
+ statistic: z.ZodLiteral<"mean">;
421
+ resamples: z.ZodNumber;
422
+ }, z.core.$strict>;
423
+ n: z.ZodNumber;
424
+ name: z.ZodLiteral<"composite">;
425
+ }, z.core.$strict>;
426
+ objectives: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
427
+ kind: z.ZodLiteral<"objective">;
428
+ name: z.ZodString;
429
+ direction: z.ZodLiteral<"higher-is-better">;
430
+ unit: z.ZodLiteral<"score">;
431
+ baseline: z.ZodNumber;
432
+ candidate: z.ZodNumber;
433
+ delta: z.ZodNumber;
434
+ confidenceInterval: z.ZodObject<{
435
+ level: z.ZodNumber;
436
+ lower: z.ZodNumber;
437
+ upper: z.ZodNumber;
438
+ method: z.ZodLiteral<"paired-bootstrap">;
439
+ statistic: z.ZodLiteral<"mean">;
440
+ resamples: z.ZodNumber;
441
+ }, z.core.$strict>;
442
+ n: z.ZodNumber;
443
+ availability: z.ZodLiteral<"measured">;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ kind: z.ZodLiteral<"objective">;
446
+ name: z.ZodString;
447
+ direction: z.ZodLiteral<"higher-is-better">;
448
+ unit: z.ZodLiteral<"score">;
449
+ availability: z.ZodLiteral<"unavailable">;
450
+ reason: z.ZodString;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ kind: z.ZodLiteral<"dimension">;
453
+ objective: z.ZodString;
454
+ name: z.ZodString;
455
+ direction: z.ZodLiteral<"higher-is-better">;
456
+ unit: z.ZodLiteral<"score">;
457
+ baseline: z.ZodNumber;
458
+ candidate: z.ZodNumber;
459
+ delta: z.ZodNumber;
460
+ confidenceInterval: z.ZodObject<{
461
+ level: z.ZodNumber;
462
+ lower: z.ZodNumber;
463
+ upper: z.ZodNumber;
464
+ method: z.ZodLiteral<"paired-bootstrap">;
465
+ statistic: z.ZodLiteral<"mean">;
466
+ resamples: z.ZodNumber;
467
+ }, z.core.$strict>;
468
+ n: z.ZodNumber;
469
+ availability: z.ZodLiteral<"measured">;
470
+ }, z.core.$strict>, z.ZodObject<{
471
+ kind: z.ZodLiteral<"dimension">;
472
+ objective: z.ZodString;
473
+ name: z.ZodString;
474
+ direction: z.ZodLiteral<"higher-is-better">;
475
+ unit: z.ZodLiteral<"score">;
476
+ availability: z.ZodLiteral<"unavailable">;
477
+ reason: z.ZodString;
478
+ }, z.core.$strict>, z.ZodObject<{
479
+ kind: z.ZodLiteral<"cost">;
480
+ name: z.ZodLiteral<"cost">;
481
+ direction: z.ZodLiteral<"lower-is-better">;
482
+ unit: z.ZodLiteral<"usd">;
483
+ baseline: z.ZodNumber;
484
+ candidate: z.ZodNumber;
485
+ delta: z.ZodNumber;
486
+ confidenceInterval: z.ZodObject<{
487
+ level: z.ZodNumber;
488
+ lower: z.ZodNumber;
489
+ upper: z.ZodNumber;
490
+ method: z.ZodLiteral<"paired-bootstrap">;
491
+ statistic: z.ZodLiteral<"mean">;
492
+ resamples: z.ZodNumber;
493
+ }, z.core.$strict>;
494
+ n: z.ZodNumber;
495
+ availability: z.ZodLiteral<"measured">;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ kind: z.ZodLiteral<"cost">;
498
+ name: z.ZodLiteral<"cost">;
499
+ direction: z.ZodLiteral<"lower-is-better">;
500
+ unit: z.ZodLiteral<"usd">;
501
+ availability: z.ZodLiteral<"unavailable">;
502
+ reason: z.ZodString;
503
+ }, z.core.$strict>, z.ZodObject<{
504
+ kind: z.ZodLiteral<"latency">;
505
+ name: z.ZodLiteral<"latency">;
506
+ direction: z.ZodLiteral<"lower-is-better">;
507
+ unit: z.ZodLiteral<"milliseconds">;
508
+ baseline: z.ZodNumber;
509
+ candidate: z.ZodNumber;
510
+ delta: z.ZodNumber;
511
+ confidenceInterval: z.ZodObject<{
512
+ level: z.ZodNumber;
513
+ lower: z.ZodNumber;
514
+ upper: z.ZodNumber;
515
+ method: z.ZodLiteral<"paired-bootstrap">;
516
+ statistic: z.ZodLiteral<"mean">;
517
+ resamples: z.ZodNumber;
518
+ }, z.core.$strict>;
519
+ n: z.ZodNumber;
520
+ availability: z.ZodLiteral<"measured">;
521
+ }, z.core.$strict>, z.ZodObject<{
522
+ kind: z.ZodLiteral<"latency">;
523
+ name: z.ZodLiteral<"latency">;
524
+ direction: z.ZodLiteral<"lower-is-better">;
525
+ unit: z.ZodLiteral<"milliseconds">;
526
+ availability: z.ZodLiteral<"unavailable">;
527
+ reason: z.ZodString;
528
+ }, z.core.$strict>]>>;
529
+ candidate: z.ZodOptional<z.ZodObject<{
530
+ label: z.ZodOptional<z.ZodString>;
531
+ rationale: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strict>>;
533
+ decision: z.ZodObject<{
534
+ outcome: z.ZodEnum<{
535
+ ship: "ship";
536
+ hold: "hold";
537
+ need_more_work: "need_more_work";
538
+ model_ceiling: "model_ceiling";
539
+ arch_ceiling: "arch_ceiling";
540
+ }>;
541
+ reasons: z.ZodArray<z.ZodString>;
542
+ contributingChecks: z.ZodArray<z.ZodObject<{
543
+ name: z.ZodString;
544
+ passed: z.ZodBoolean;
545
+ }, z.core.$strict>>;
546
+ }, z.core.$strict>;
547
+ power: z.ZodObject<{
548
+ sufficient: z.ZodBoolean;
549
+ n: z.ZodNumber;
550
+ minimumDetectableDelta: z.ZodNumber;
551
+ confidenceLevel: z.ZodNumber;
552
+ scaleAssumed: z.ZodBoolean;
553
+ sharedScorerChannel: z.ZodBoolean;
554
+ reason: z.ZodString;
555
+ }, z.core.$strict>;
556
+ provenance: z.ZodObject<{
557
+ kind: z.ZodLiteral<"agent-eval-loop">;
558
+ schema: z.ZodString;
559
+ runId: z.ZodString;
560
+ recordDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
561
+ baselineContentHash: z.ZodString;
562
+ candidateContentHash: z.ZodString;
563
+ }, z.core.$strict>;
564
+ diff: z.ZodString;
565
+ evaluation: z.ZodObject<{
566
+ generationsExplored: z.ZodNumber;
567
+ durationMs: z.ZodNumber;
568
+ totalCostUsd: z.ZodNumber;
569
+ }, z.core.$strict>;
570
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<AgentCandidateJsonValue, AgentCandidateJsonValue>>>;
571
+ }, z.core.$strict>;
572
+ candidateBundle: z.ZodObject<{
573
+ schemaVersion: z.ZodLiteral<2>;
574
+ kind: z.ZodLiteral<"agent-candidate-bundle">;
575
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
576
+ profile: z.ZodObject<{
577
+ name: z.ZodOptional<z.ZodString>;
578
+ description: z.ZodOptional<z.ZodString>;
579
+ version: z.ZodOptional<z.ZodString>;
580
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
581
+ prompt: z.ZodOptional<z.ZodObject<{
582
+ systemPrompt: z.ZodOptional<z.ZodString>;
583
+ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
584
+ }, z.core.$strict>>;
585
+ model: z.ZodOptional<z.ZodObject<{
586
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
587
+ none: "none";
588
+ minimal: "minimal";
589
+ low: "low";
590
+ medium: "medium";
591
+ high: "high";
592
+ xhigh: "xhigh";
593
+ ultracode: "ultracode";
594
+ }>>;
595
+ default: z.ZodOptional<z.ZodString>;
596
+ small: z.ZodOptional<z.ZodString>;
597
+ provider: z.ZodOptional<z.ZodString>;
598
+ }, z.core.$strict>>;
599
+ harness: z.ZodOptional<z.ZodEnum<{
600
+ "claude-code": "claude-code";
601
+ claude: "claude";
602
+ claudish: "claudish";
603
+ nanoclaw: "nanoclaw";
604
+ codex: "codex";
605
+ opencode: "opencode";
606
+ "kimi-code": "kimi-code";
607
+ kimi: "kimi";
608
+ pi: "pi";
609
+ gemini: "gemini";
610
+ hermes: "hermes";
611
+ openclaw: "openclaw";
612
+ amp: "amp";
613
+ "factory-droids": "factory-droids";
614
+ acp: "acp";
615
+ "cli-base": "cli-base";
616
+ }>>;
617
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
618
+ allow: "allow";
619
+ ask: "ask";
620
+ deny: "deny";
621
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
622
+ allow: "allow";
623
+ ask: "ask";
624
+ deny: "deny";
625
+ }>>]>>>;
626
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
627
+ mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
628
+ transport: z.ZodOptional<z.ZodLiteral<"stdio">>;
629
+ command: z.ZodOptional<z.ZodString>;
630
+ args: z.ZodOptional<z.ZodArray<z.ZodObject<{
631
+ kind: z.ZodLiteral<"public">;
632
+ value: z.ZodString;
633
+ }, z.core.$strict>>>;
634
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
635
+ kind: z.ZodLiteral<"public">;
636
+ value: z.ZodString;
637
+ }, z.core.$strict>>>;
638
+ cwd: z.ZodOptional<z.ZodString>;
639
+ enabled: z.ZodOptional<z.ZodBoolean>;
640
+ }, z.core.$strict>>>;
641
+ subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
642
+ prompt: z.ZodOptional<z.ZodString>;
643
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
644
+ allow: "allow";
645
+ ask: "ask";
646
+ deny: "deny";
647
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
648
+ allow: "allow";
649
+ ask: "ask";
650
+ deny: "deny";
651
+ }>>]>>>;
652
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
653
+ description: z.ZodOptional<z.ZodString>;
654
+ model: z.ZodOptional<z.ZodString>;
655
+ maxSteps: z.ZodOptional<z.ZodNumber>;
656
+ }, z.core.$strict>>>;
657
+ resources: z.ZodOptional<z.ZodObject<{
658
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
659
+ path: z.ZodString;
660
+ resource: z.ZodDiscriminatedUnion<[z.ZodObject<{
661
+ kind: z.ZodLiteral<"inline">;
662
+ name: z.ZodString;
663
+ content: z.ZodString;
664
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
665
+ byteLength: z.ZodNumber;
666
+ }, z.core.$strict>, z.ZodObject<{
667
+ kind: z.ZodLiteral<"github">;
668
+ repository: z.ZodObject<{
669
+ kind: z.ZodLiteral<"github">;
670
+ owner: z.ZodString;
671
+ repo: z.ZodString;
672
+ }, z.core.$strict>;
673
+ path: z.ZodString;
674
+ commit: z.ZodString;
675
+ name: z.ZodOptional<z.ZodString>;
676
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
677
+ byteLength: z.ZodNumber;
678
+ }, z.core.$strict>], "kind">;
679
+ executable: z.ZodOptional<z.ZodBoolean>;
680
+ }, z.core.$strict>>>;
681
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
682
+ kind: z.ZodLiteral<"inline">;
683
+ name: z.ZodString;
684
+ content: z.ZodString;
685
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
686
+ byteLength: z.ZodNumber;
687
+ }, z.core.$strict>, z.ZodObject<{
688
+ kind: z.ZodLiteral<"github">;
689
+ repository: z.ZodObject<{
690
+ kind: z.ZodLiteral<"github">;
691
+ owner: z.ZodString;
692
+ repo: z.ZodString;
693
+ }, z.core.$strict>;
694
+ path: z.ZodString;
695
+ commit: z.ZodString;
696
+ name: z.ZodOptional<z.ZodString>;
697
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
698
+ byteLength: z.ZodNumber;
699
+ }, z.core.$strict>], "kind">>>;
700
+ skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
701
+ kind: z.ZodLiteral<"inline">;
702
+ name: z.ZodString;
703
+ content: z.ZodString;
704
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
705
+ byteLength: z.ZodNumber;
706
+ }, z.core.$strict>, z.ZodObject<{
707
+ kind: z.ZodLiteral<"github">;
708
+ repository: z.ZodObject<{
709
+ kind: z.ZodLiteral<"github">;
710
+ owner: z.ZodString;
711
+ repo: z.ZodString;
712
+ }, z.core.$strict>;
713
+ path: z.ZodString;
714
+ commit: z.ZodString;
715
+ name: z.ZodOptional<z.ZodString>;
716
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
717
+ byteLength: z.ZodNumber;
718
+ }, z.core.$strict>], "kind">>>;
719
+ agents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
720
+ kind: z.ZodLiteral<"inline">;
721
+ name: z.ZodString;
722
+ content: z.ZodString;
723
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
724
+ byteLength: z.ZodNumber;
725
+ }, z.core.$strict>, z.ZodObject<{
726
+ kind: z.ZodLiteral<"github">;
727
+ repository: z.ZodObject<{
728
+ kind: z.ZodLiteral<"github">;
729
+ owner: z.ZodString;
730
+ repo: z.ZodString;
731
+ }, z.core.$strict>;
732
+ path: z.ZodString;
733
+ commit: z.ZodString;
734
+ name: z.ZodOptional<z.ZodString>;
735
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
736
+ byteLength: z.ZodNumber;
737
+ }, z.core.$strict>], "kind">>>;
738
+ commands: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
739
+ kind: z.ZodLiteral<"inline">;
740
+ name: z.ZodString;
741
+ content: z.ZodString;
742
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
743
+ byteLength: z.ZodNumber;
744
+ }, z.core.$strict>, z.ZodObject<{
745
+ kind: z.ZodLiteral<"github">;
746
+ repository: z.ZodObject<{
747
+ kind: z.ZodLiteral<"github">;
748
+ owner: z.ZodString;
749
+ repo: z.ZodString;
750
+ }, z.core.$strict>;
751
+ path: z.ZodString;
752
+ commit: z.ZodString;
753
+ name: z.ZodOptional<z.ZodString>;
754
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
755
+ byteLength: z.ZodNumber;
756
+ }, z.core.$strict>], "kind">>>;
757
+ instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
758
+ kind: z.ZodLiteral<"inline">;
759
+ name: z.ZodString;
760
+ content: z.ZodString;
761
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
762
+ byteLength: z.ZodNumber;
763
+ }, z.core.$strict>, z.ZodObject<{
764
+ kind: z.ZodLiteral<"github">;
765
+ repository: z.ZodObject<{
766
+ kind: z.ZodLiteral<"github">;
767
+ owner: z.ZodString;
768
+ repo: z.ZodString;
769
+ }, z.core.$strict>;
770
+ path: z.ZodString;
771
+ commit: z.ZodString;
772
+ name: z.ZodOptional<z.ZodString>;
773
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
774
+ byteLength: z.ZodNumber;
775
+ }, z.core.$strict>], "kind">]>>;
776
+ failOnError: z.ZodLiteral<true>;
777
+ }, z.core.$strict>>;
778
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
779
+ executable: z.ZodString;
780
+ args: z.ZodOptional<z.ZodArray<z.ZodObject<{
781
+ kind: z.ZodLiteral<"public">;
782
+ value: z.ZodString;
783
+ }, z.core.$strict>>>;
784
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
785
+ blocking: z.ZodOptional<z.ZodBoolean>;
786
+ matcher: z.ZodOptional<z.ZodString>;
787
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
788
+ kind: z.ZodLiteral<"public">;
789
+ value: z.ZodString;
790
+ }, z.core.$strict>>>;
791
+ }, z.core.$strict>>>>;
792
+ modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
793
+ prompt: z.ZodOptional<z.ZodString>;
794
+ permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
795
+ allow: "allow";
796
+ ask: "ask";
797
+ deny: "deny";
798
+ }>, z.ZodRecord<z.ZodString, z.ZodEnum<{
799
+ allow: "allow";
800
+ ask: "ask";
801
+ deny: "deny";
802
+ }>>]>>>;
803
+ tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
804
+ description: z.ZodOptional<z.ZodString>;
805
+ model: z.ZodOptional<z.ZodString>;
806
+ }, z.core.$strict>>>;
807
+ confidential: z.ZodOptional<z.ZodObject<{
808
+ tee: z.ZodOptional<z.ZodString>;
809
+ attestationNonce: z.ZodOptional<z.ZodString>;
810
+ sealed: z.ZodOptional<z.ZodBoolean>;
811
+ attestationRefresh: z.ZodOptional<z.ZodBoolean>;
812
+ }, z.core.$strict>>;
813
+ }, z.core.$strict>;
814
+ code: z.ZodDiscriminatedUnion<[z.ZodObject<{
815
+ kind: z.ZodLiteral<"disabled">;
816
+ reason: z.ZodEnum<{
817
+ control: "control";
818
+ "not-applicable": "not-applicable";
819
+ }>;
820
+ }, z.core.$strict>, z.ZodObject<{
821
+ kind: z.ZodLiteral<"no-op">;
822
+ reason: z.ZodLiteral<"proposer-no-change">;
823
+ repository: z.ZodObject<{
824
+ kind: z.ZodLiteral<"github">;
825
+ owner: z.ZodString;
826
+ repo: z.ZodString;
827
+ }, z.core.$strict>;
828
+ baseCommit: z.ZodString;
829
+ baseTree: z.ZodString;
830
+ }, z.core.$strict>, z.ZodObject<{
831
+ kind: z.ZodLiteral<"git-patch">;
832
+ repository: z.ZodObject<{
833
+ kind: z.ZodLiteral<"github">;
834
+ owner: z.ZodString;
835
+ repo: z.ZodString;
836
+ }, z.core.$strict>;
837
+ baseCommit: z.ZodString;
838
+ baseTree: z.ZodString;
839
+ candidateTree: z.ZodString;
840
+ patch: z.ZodObject<{
841
+ format: z.ZodLiteral<"git-diff-binary">;
842
+ artifact: z.ZodObject<{
843
+ encoding: z.ZodLiteral<"base64">;
844
+ content: z.ZodString;
845
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
846
+ byteLength: z.ZodNumber;
847
+ }, z.core.$strict>;
848
+ }, z.core.$strict>;
849
+ }, z.core.$strict>], "kind">;
850
+ execution: z.ZodObject<{
851
+ harness: z.ZodEnum<{
852
+ "claude-code": "claude-code";
853
+ claude: "claude";
854
+ claudish: "claudish";
855
+ nanoclaw: "nanoclaw";
856
+ codex: "codex";
857
+ opencode: "opencode";
858
+ "kimi-code": "kimi-code";
859
+ kimi: "kimi";
860
+ pi: "pi";
861
+ gemini: "gemini";
862
+ hermes: "hermes";
863
+ openclaw: "openclaw";
864
+ amp: "amp";
865
+ "factory-droids": "factory-droids";
866
+ acp: "acp";
867
+ "cli-base": "cli-base";
868
+ }>;
869
+ harnessVersion: z.ZodString;
870
+ launch: z.ZodDiscriminatedUnion<[z.ZodObject<{
871
+ kind: z.ZodLiteral<"container-command">;
872
+ executable: z.ZodString;
873
+ args: z.ZodOptional<z.ZodArray<z.ZodObject<{
874
+ kind: z.ZodLiteral<"public">;
875
+ value: z.ZodString;
876
+ }, z.core.$strict>>>;
877
+ }, z.core.$strict>, z.ZodObject<{
878
+ kind: z.ZodLiteral<"candidate-entrypoint">;
879
+ entrypoint: z.ZodString;
880
+ interpreter: z.ZodOptional<z.ZodEnum<{
881
+ node: "node";
882
+ python: "python";
883
+ python3: "python3";
884
+ bun: "bun";
885
+ deno: "deno";
886
+ tsx: "tsx";
887
+ uv: "uv";
888
+ }>>;
889
+ args: z.ZodOptional<z.ZodArray<z.ZodObject<{
890
+ kind: z.ZodLiteral<"public">;
891
+ value: z.ZodString;
892
+ }, z.core.$strict>>>;
893
+ }, z.core.$strict>], "kind">;
894
+ instructionDelivery: z.ZodDiscriminatedUnion<[z.ZodObject<{
895
+ kind: z.ZodLiteral<"argv-append">;
896
+ }, z.core.$strict>, z.ZodObject<{
897
+ kind: z.ZodLiteral<"stdin-utf8">;
898
+ }, z.core.$strict>, z.ZodObject<{
899
+ kind: z.ZodLiteral<"utf8-file">;
900
+ env: z.ZodLiteral<"TANGLE_CANDIDATE_TASK_PATH">;
901
+ path: z.ZodLiteral<"/tangle/input/task.txt">;
902
+ }, z.core.$strict>], "kind">;
903
+ cwd: z.ZodObject<{
904
+ workspace: z.ZodEnum<{
905
+ candidate: "candidate";
906
+ task: "task";
907
+ }>;
908
+ path: z.ZodString;
909
+ }, z.core.$strict>;
910
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
911
+ kind: z.ZodLiteral<"public">;
912
+ value: z.ZodString;
913
+ }, z.core.$strict>>>;
914
+ environment: z.ZodDiscriminatedUnion<[z.ZodObject<{
915
+ kind: z.ZodLiteral<"pinned-container">;
916
+ container: z.ZodObject<{
917
+ image: z.ZodString;
918
+ indexDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
919
+ }, z.core.$strict>;
920
+ }, z.core.$strict>, z.ZodObject<{
921
+ kind: z.ZodLiteral<"evaluator-task-container">;
922
+ }, z.core.$strict>], "kind">;
923
+ workspace: z.ZodOptional<z.ZodObject<{
924
+ schemaVersion: z.ZodLiteral<2>;
925
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
926
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
927
+ material: z.ZodObject<{
928
+ schemaVersion: z.ZodLiteral<2>;
929
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
930
+ files: z.ZodArray<z.ZodObject<{
931
+ path: z.ZodString;
932
+ mode: z.ZodNumber;
933
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
934
+ byteLength: z.ZodNumber;
935
+ }, z.core.$strict>>;
936
+ }, z.core.$strict>;
937
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
938
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
939
+ kind: z.ZodLiteral<"s3">;
940
+ bucket: z.ZodString;
941
+ key: z.ZodString;
942
+ region: z.ZodOptional<z.ZodString>;
943
+ }, z.core.$strict>, z.ZodObject<{
944
+ kind: z.ZodLiteral<"ipfs">;
945
+ cid: z.ZodString;
946
+ path: z.ZodOptional<z.ZodString>;
947
+ }, z.core.$strict>], "kind">;
948
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
949
+ byteLength: z.ZodNumber;
950
+ }, z.core.$strict>, z.ZodObject<{
951
+ encoding: z.ZodLiteral<"base64">;
952
+ content: z.ZodString;
953
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
954
+ byteLength: z.ZodNumber;
955
+ }, z.core.$strict>]>;
956
+ archive: z.ZodUnion<readonly [z.ZodObject<{
957
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
958
+ kind: z.ZodLiteral<"s3">;
959
+ bucket: z.ZodString;
960
+ key: z.ZodString;
961
+ region: z.ZodOptional<z.ZodString>;
962
+ }, z.core.$strict>, z.ZodObject<{
963
+ kind: z.ZodLiteral<"ipfs">;
964
+ cid: z.ZodString;
965
+ path: z.ZodOptional<z.ZodString>;
966
+ }, z.core.$strict>], "kind">;
967
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
968
+ byteLength: z.ZodNumber;
969
+ }, z.core.$strict>, z.ZodObject<{
970
+ encoding: z.ZodLiteral<"base64">;
971
+ content: z.ZodString;
972
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
973
+ byteLength: z.ZodNumber;
974
+ }, z.core.$strict>]>;
975
+ }, z.core.$strict>>;
976
+ isolation: z.ZodObject<{
977
+ network: z.ZodLiteral<"disabled">;
978
+ remoteIntegrations: z.ZodLiteral<"disabled">;
979
+ candidateSecrets: z.ZodLiteral<"disabled">;
980
+ }, z.core.$strict>;
981
+ }, z.core.$strict>;
982
+ knowledge: z.ZodOptional<z.ZodObject<{
983
+ candidate: z.ZodObject<{
984
+ schemaVersion: z.ZodLiteral<1>;
985
+ kind: z.ZodLiteral<"knowledge-improvement-candidate">;
986
+ runId: z.ZodString;
987
+ candidateId: z.ZodString;
988
+ goalHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
989
+ baseHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
990
+ candidateHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
991
+ evidenceHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
992
+ promotionPlanHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
993
+ }, z.core.$strict>;
994
+ snapshot: z.ZodObject<{
995
+ schemaVersion: z.ZodLiteral<2>;
996
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
997
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
998
+ material: z.ZodObject<{
999
+ schemaVersion: z.ZodLiteral<2>;
1000
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1001
+ files: z.ZodArray<z.ZodObject<{
1002
+ path: z.ZodString;
1003
+ mode: z.ZodNumber;
1004
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1005
+ byteLength: z.ZodNumber;
1006
+ }, z.core.$strict>>;
1007
+ }, z.core.$strict>;
1008
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1009
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1010
+ kind: z.ZodLiteral<"s3">;
1011
+ bucket: z.ZodString;
1012
+ key: z.ZodString;
1013
+ region: z.ZodOptional<z.ZodString>;
1014
+ }, z.core.$strict>, z.ZodObject<{
1015
+ kind: z.ZodLiteral<"ipfs">;
1016
+ cid: z.ZodString;
1017
+ path: z.ZodOptional<z.ZodString>;
1018
+ }, z.core.$strict>], "kind">;
1019
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1020
+ byteLength: z.ZodNumber;
1021
+ }, z.core.$strict>, z.ZodObject<{
1022
+ encoding: z.ZodLiteral<"base64">;
1023
+ content: z.ZodString;
1024
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1025
+ byteLength: z.ZodNumber;
1026
+ }, z.core.$strict>]>;
1027
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1028
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1029
+ kind: z.ZodLiteral<"s3">;
1030
+ bucket: z.ZodString;
1031
+ key: z.ZodString;
1032
+ region: z.ZodOptional<z.ZodString>;
1033
+ }, z.core.$strict>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"ipfs">;
1035
+ cid: z.ZodString;
1036
+ path: z.ZodOptional<z.ZodString>;
1037
+ }, z.core.$strict>], "kind">;
1038
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1039
+ byteLength: z.ZodNumber;
1040
+ }, z.core.$strict>, z.ZodObject<{
1041
+ encoding: z.ZodLiteral<"base64">;
1042
+ content: z.ZodString;
1043
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1044
+ byteLength: z.ZodNumber;
1045
+ }, z.core.$strict>]>;
1046
+ }, z.core.$strict>;
1047
+ retrievalConfig: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1048
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1049
+ kind: z.ZodLiteral<"s3">;
1050
+ bucket: z.ZodString;
1051
+ key: z.ZodString;
1052
+ region: z.ZodOptional<z.ZodString>;
1053
+ }, z.core.$strict>, z.ZodObject<{
1054
+ kind: z.ZodLiteral<"ipfs">;
1055
+ cid: z.ZodString;
1056
+ path: z.ZodOptional<z.ZodString>;
1057
+ }, z.core.$strict>], "kind">;
1058
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1059
+ byteLength: z.ZodNumber;
1060
+ }, z.core.$strict>, z.ZodObject<{
1061
+ encoding: z.ZodLiteral<"base64">;
1062
+ content: z.ZodString;
1063
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1064
+ byteLength: z.ZodNumber;
1065
+ }, z.core.$strict>]>>;
1066
+ evaluation: z.ZodUnion<readonly [z.ZodObject<{
1067
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1068
+ kind: z.ZodLiteral<"s3">;
1069
+ bucket: z.ZodString;
1070
+ key: z.ZodString;
1071
+ region: z.ZodOptional<z.ZodString>;
1072
+ }, z.core.$strict>, z.ZodObject<{
1073
+ kind: z.ZodLiteral<"ipfs">;
1074
+ cid: z.ZodString;
1075
+ path: z.ZodOptional<z.ZodString>;
1076
+ }, z.core.$strict>], "kind">;
1077
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1078
+ byteLength: z.ZodNumber;
1079
+ }, z.core.$strict>, z.ZodObject<{
1080
+ encoding: z.ZodLiteral<"base64">;
1081
+ content: z.ZodString;
1082
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1083
+ byteLength: z.ZodNumber;
1084
+ }, z.core.$strict>]>;
1085
+ }, z.core.$strict>>;
1086
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1087
+ mode: z.ZodLiteral<"disabled">;
1088
+ }, z.core.$strict>, z.ZodObject<{
1089
+ mode: z.ZodLiteral<"isolated">;
1090
+ scope: z.ZodLiteral<"task">;
1091
+ seed: z.ZodOptional<z.ZodObject<{
1092
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1093
+ kind: z.ZodLiteral<"s3">;
1094
+ bucket: z.ZodString;
1095
+ key: z.ZodString;
1096
+ region: z.ZodOptional<z.ZodString>;
1097
+ }, z.core.$strict>, z.ZodObject<{
1098
+ kind: z.ZodLiteral<"ipfs">;
1099
+ cid: z.ZodString;
1100
+ path: z.ZodOptional<z.ZodString>;
1101
+ }, z.core.$strict>], "kind">;
1102
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1103
+ byteLength: z.ZodNumber;
1104
+ }, z.core.$strict>>;
1105
+ }, z.core.$strict>], "mode">;
1106
+ lineage: z.ZodObject<{
1107
+ source: z.ZodEnum<{
1108
+ optimizer: "optimizer";
1109
+ human: "human";
1110
+ import: "import";
1111
+ compound: "compound";
1112
+ }>;
1113
+ parentDigests: z.ZodOptional<z.ZodArray<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>>;
1114
+ runIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1115
+ profileDiffIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1116
+ modelSnapshots: z.ZodOptional<z.ZodArray<z.ZodString>>;
1117
+ benchmark: z.ZodOptional<z.ZodObject<{
1118
+ name: z.ZodString;
1119
+ version: z.ZodString;
1120
+ splitDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1121
+ }, z.core.$strict>>;
1122
+ spend: z.ZodOptional<z.ZodObject<{
1123
+ proposal: z.ZodObject<{
1124
+ costUsd: z.ZodNumber;
1125
+ inputTokens: z.ZodNumber;
1126
+ outputTokens: z.ZodNumber;
1127
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1128
+ modelCalls: z.ZodNumber;
1129
+ }, z.core.$strict>;
1130
+ evaluation: z.ZodObject<{
1131
+ costUsd: z.ZodNumber;
1132
+ inputTokens: z.ZodNumber;
1133
+ outputTokens: z.ZodNumber;
1134
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1135
+ modelCalls: z.ZodNumber;
1136
+ }, z.core.$strict>;
1137
+ }, z.core.$strict>>;
1138
+ }, z.core.$strict>;
1139
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1140
+ }, z.core.$strict>;
1141
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1142
+ }, z.core.$strict>;
1143
+ export declare const agentImprovementReviewSchema: z.ZodObject<{
1144
+ schemaVersion: z.ZodLiteral<1>;
1145
+ kind: z.ZodLiteral<"agent-improvement-review">;
1146
+ proposalDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1147
+ candidateBundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1148
+ decision: z.ZodEnum<{
1149
+ approve: "approve";
1150
+ reject: "reject";
1151
+ "request-changes": "request-changes";
1152
+ }>;
1153
+ reviewedBy: z.ZodString;
1154
+ reviewedAt: z.ZodISODateTime;
1155
+ reason: z.ZodString;
1156
+ feedback: z.ZodOptional<z.ZodString>;
1157
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1158
+ }, z.core.$strict>;
1159
+ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1160
+ schemaVersion: z.ZodLiteral<1>;
1161
+ kind: z.ZodLiteral<"agent-candidate-execution-evidence">;
1162
+ proposalDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1163
+ reviewDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1164
+ executionId: z.ZodString;
1165
+ succeeded: z.ZodLiteral<true>;
1166
+ materializationReceipt: z.ZodObject<{
1167
+ schemaVersion: z.ZodLiteral<2>;
1168
+ kind: z.ZodLiteral<"agent-candidate-materialization">;
1169
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1170
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1171
+ profilePlan: z.ZodObject<{
1172
+ schemaVersion: z.ZodLiteral<1>;
1173
+ kind: z.ZodLiteral<"agent-profile-workspace-plan">;
1174
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1175
+ material: z.ZodType<{
1176
+ version: 1;
1177
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1178
+ files: {
1179
+ relPath: string;
1180
+ mode: number;
1181
+ contentSha256: `sha256:${string}`;
1182
+ }[];
1183
+ env: Record<string, {
1184
+ kind: "public";
1185
+ value: string;
1186
+ }>;
1187
+ flags: {
1188
+ kind: "public";
1189
+ value: string;
1190
+ }[];
1191
+ unsupported: {
1192
+ dimension: string;
1193
+ reason: string;
1194
+ }[];
1195
+ }, unknown, z.core.$ZodTypeInternals<{
1196
+ version: 1;
1197
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1198
+ files: {
1199
+ relPath: string;
1200
+ mode: number;
1201
+ contentSha256: `sha256:${string}`;
1202
+ }[];
1203
+ env: Record<string, {
1204
+ kind: "public";
1205
+ value: string;
1206
+ }>;
1207
+ flags: {
1208
+ kind: "public";
1209
+ value: string;
1210
+ }[];
1211
+ unsupported: {
1212
+ dimension: string;
1213
+ reason: string;
1214
+ }[];
1215
+ }, unknown>>;
1216
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1217
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1218
+ kind: z.ZodLiteral<"s3">;
1219
+ bucket: z.ZodString;
1220
+ key: z.ZodString;
1221
+ region: z.ZodOptional<z.ZodString>;
1222
+ }, z.core.$strict>, z.ZodObject<{
1223
+ kind: z.ZodLiteral<"ipfs">;
1224
+ cid: z.ZodString;
1225
+ path: z.ZodOptional<z.ZodString>;
1226
+ }, z.core.$strict>], "kind">;
1227
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1228
+ byteLength: z.ZodNumber;
1229
+ }, z.core.$strict>, z.ZodObject<{
1230
+ encoding: z.ZodLiteral<"base64">;
1231
+ content: z.ZodString;
1232
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1233
+ byteLength: z.ZodNumber;
1234
+ }, z.core.$strict>]>;
1235
+ }, z.core.$strict>;
1236
+ executionPlan: z.ZodObject<{
1237
+ schemaVersion: z.ZodLiteral<2>;
1238
+ kind: z.ZodLiteral<"agent-candidate-execution-plan">;
1239
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1240
+ material: z.ZodType<{
1241
+ schemaVersion: 2;
1242
+ kind: "agent-candidate-execution-plan-material";
1243
+ bundleDigest: `sha256:${string}`;
1244
+ executionId: string;
1245
+ attempt: {
1246
+ number: number;
1247
+ maxAttempts: number;
1248
+ retryPolicy: "none" | "pre-model-infrastructure-only";
1249
+ };
1250
+ task: {
1251
+ benchmark: string;
1252
+ benchmarkVersion: string;
1253
+ taskId: string;
1254
+ splitDigest: `sha256:${string}`;
1255
+ instruction: {
1256
+ encoding: "utf8";
1257
+ sha256: `sha256:${string}`;
1258
+ byteLength: number;
1259
+ delivery: {
1260
+ kind: "argv-append";
1261
+ } | {
1262
+ kind: "stdin-utf8";
1263
+ } | {
1264
+ kind: "utf8-file";
1265
+ env: "TANGLE_CANDIDATE_TASK_PATH";
1266
+ path: "/tangle/input/task.txt";
1267
+ };
1268
+ };
1269
+ outcome: {
1270
+ kind: "workspace";
1271
+ } | {
1272
+ kind: "output";
1273
+ mediaType: string;
1274
+ maxBytes: number;
1275
+ };
1276
+ workspace: {
1277
+ schemaVersion: 2;
1278
+ kind: "agent-candidate-workspace-snapshot";
1279
+ digest: `sha256:${string}`;
1280
+ material: {
1281
+ schemaVersion: 2;
1282
+ kind: "agent-candidate-workspace-manifest";
1283
+ files: {
1284
+ path: string;
1285
+ mode: number;
1286
+ sha256: `sha256:${string}`;
1287
+ byteLength: number;
1288
+ }[];
1289
+ };
1290
+ manifest: {
1291
+ locator: {
1292
+ kind: "s3";
1293
+ bucket: string;
1294
+ key: string;
1295
+ region?: string | undefined;
1296
+ } | {
1297
+ kind: "ipfs";
1298
+ cid: string;
1299
+ path?: string | undefined;
1300
+ };
1301
+ sha256: `sha256:${string}`;
1302
+ byteLength: number;
1303
+ } | {
1304
+ encoding: "base64";
1305
+ content: string;
1306
+ sha256: `sha256:${string}`;
1307
+ byteLength: number;
1308
+ };
1309
+ archive: {
1310
+ locator: {
1311
+ kind: "s3";
1312
+ bucket: string;
1313
+ key: string;
1314
+ region?: string | undefined;
1315
+ } | {
1316
+ kind: "ipfs";
1317
+ cid: string;
1318
+ path?: string | undefined;
1319
+ };
1320
+ sha256: `sha256:${string}`;
1321
+ byteLength: number;
1322
+ } | {
1323
+ encoding: "base64";
1324
+ content: string;
1325
+ sha256: `sha256:${string}`;
1326
+ byteLength: number;
1327
+ };
1328
+ };
1329
+ repository?: {
1330
+ identity: string;
1331
+ rootIdentity: string;
1332
+ baseCommit: string;
1333
+ baseTree: string;
1334
+ } | undefined;
1335
+ };
1336
+ workspaces: {
1337
+ taskRoot: string;
1338
+ candidateRoot?: string | undefined;
1339
+ };
1340
+ codeKind: "disabled" | "no-op" | "git-patch";
1341
+ profile: {
1342
+ planDigest: `sha256:${string}`;
1343
+ targetWorkspace: "candidate" | "task";
1344
+ mountPaths: string[];
1345
+ };
1346
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1347
+ harnessVersion: string;
1348
+ container: {
1349
+ image: string;
1350
+ indexDigest: `sha256:${string}`;
1351
+ source: "pinned-container" | "evaluator-task-container";
1352
+ manifestDigest: `sha256:${string}`;
1353
+ platform: {
1354
+ os: string;
1355
+ architecture: string;
1356
+ variant?: string | undefined;
1357
+ };
1358
+ };
1359
+ model: {
1360
+ policy: "single";
1361
+ resolved: {
1362
+ requested: string;
1363
+ provider: string;
1364
+ model: string;
1365
+ snapshot: string;
1366
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1367
+ };
1368
+ access: {
1369
+ kind: "evaluator-mediated";
1370
+ grantDigest: `sha256:${string}`;
1371
+ network: {
1372
+ mode: "disabled";
1373
+ } | {
1374
+ mode: "gateway-only";
1375
+ domains: string[];
1376
+ };
1377
+ };
1378
+ routes: ({
1379
+ kind: "primary";
1380
+ requested?: string | undefined;
1381
+ } | {
1382
+ kind: "small";
1383
+ requested: string;
1384
+ } | {
1385
+ kind: "mode";
1386
+ name: string;
1387
+ requested: string;
1388
+ } | {
1389
+ kind: "subagent";
1390
+ name: string;
1391
+ requested: string;
1392
+ })[];
1393
+ };
1394
+ grader: {
1395
+ name: string;
1396
+ version: string;
1397
+ artifact: {
1398
+ locator: {
1399
+ kind: "s3";
1400
+ bucket: string;
1401
+ key: string;
1402
+ region?: string | undefined;
1403
+ } | {
1404
+ kind: "ipfs";
1405
+ cid: string;
1406
+ path?: string | undefined;
1407
+ };
1408
+ sha256: `sha256:${string}`;
1409
+ byteLength: number;
1410
+ };
1411
+ };
1412
+ launch: {
1413
+ executable: string;
1414
+ args: {
1415
+ kind: "public";
1416
+ value: string;
1417
+ }[];
1418
+ env: Record<string, {
1419
+ kind: "public";
1420
+ value: string;
1421
+ }>;
1422
+ cwd: {
1423
+ workspace: "candidate" | "task";
1424
+ path: string;
1425
+ };
1426
+ };
1427
+ memory: {
1428
+ mode: "isolated";
1429
+ scope: "task";
1430
+ effectiveNamespace: string;
1431
+ reset: {
1432
+ kind: "fresh";
1433
+ evidence: {
1434
+ locator: {
1435
+ kind: "s3";
1436
+ bucket: string;
1437
+ key: string;
1438
+ region?: string | undefined;
1439
+ } | {
1440
+ kind: "ipfs";
1441
+ cid: string;
1442
+ path?: string | undefined;
1443
+ };
1444
+ sha256: `sha256:${string}`;
1445
+ byteLength: number;
1446
+ } | {
1447
+ encoding: "base64";
1448
+ content: string;
1449
+ sha256: `sha256:${string}`;
1450
+ byteLength: number;
1451
+ };
1452
+ emptyStateDigest: `sha256:${string}`;
1453
+ };
1454
+ beforeState: {
1455
+ schemaVersion: 2;
1456
+ kind: "agent-candidate-workspace-snapshot";
1457
+ digest: `sha256:${string}`;
1458
+ material: {
1459
+ schemaVersion: 2;
1460
+ kind: "agent-candidate-workspace-manifest";
1461
+ files: {
1462
+ path: string;
1463
+ mode: number;
1464
+ sha256: `sha256:${string}`;
1465
+ byteLength: number;
1466
+ }[];
1467
+ };
1468
+ manifest: {
1469
+ locator: {
1470
+ kind: "s3";
1471
+ bucket: string;
1472
+ key: string;
1473
+ region?: string | undefined;
1474
+ } | {
1475
+ kind: "ipfs";
1476
+ cid: string;
1477
+ path?: string | undefined;
1478
+ };
1479
+ sha256: `sha256:${string}`;
1480
+ byteLength: number;
1481
+ } | {
1482
+ encoding: "base64";
1483
+ content: string;
1484
+ sha256: `sha256:${string}`;
1485
+ byteLength: number;
1486
+ };
1487
+ archive: {
1488
+ locator: {
1489
+ kind: "s3";
1490
+ bucket: string;
1491
+ key: string;
1492
+ region?: string | undefined;
1493
+ } | {
1494
+ kind: "ipfs";
1495
+ cid: string;
1496
+ path?: string | undefined;
1497
+ };
1498
+ sha256: `sha256:${string}`;
1499
+ byteLength: number;
1500
+ } | {
1501
+ encoding: "base64";
1502
+ content: string;
1503
+ sha256: `sha256:${string}`;
1504
+ byteLength: number;
1505
+ };
1506
+ };
1507
+ seedDigest?: `sha256:${string}` | undefined;
1508
+ } | {
1509
+ mode: "disabled";
1510
+ };
1511
+ limits: {
1512
+ timeoutMs: number;
1513
+ maxSteps: number;
1514
+ maxModelCalls: number;
1515
+ maxInputTokens: number;
1516
+ maxOutputTokens: number;
1517
+ maxCostUsd: number;
1518
+ };
1519
+ network: {
1520
+ mode: "disabled";
1521
+ };
1522
+ candidateWorkspace?: {
1523
+ schemaVersion: 2;
1524
+ kind: "agent-candidate-workspace-snapshot";
1525
+ digest: `sha256:${string}`;
1526
+ material: {
1527
+ schemaVersion: 2;
1528
+ kind: "agent-candidate-workspace-manifest";
1529
+ files: {
1530
+ path: string;
1531
+ mode: number;
1532
+ sha256: `sha256:${string}`;
1533
+ byteLength: number;
1534
+ }[];
1535
+ };
1536
+ manifest: {
1537
+ locator: {
1538
+ kind: "s3";
1539
+ bucket: string;
1540
+ key: string;
1541
+ region?: string | undefined;
1542
+ } | {
1543
+ kind: "ipfs";
1544
+ cid: string;
1545
+ path?: string | undefined;
1546
+ };
1547
+ sha256: `sha256:${string}`;
1548
+ byteLength: number;
1549
+ } | {
1550
+ encoding: "base64";
1551
+ content: string;
1552
+ sha256: `sha256:${string}`;
1553
+ byteLength: number;
1554
+ };
1555
+ archive: {
1556
+ locator: {
1557
+ kind: "s3";
1558
+ bucket: string;
1559
+ key: string;
1560
+ region?: string | undefined;
1561
+ } | {
1562
+ kind: "ipfs";
1563
+ cid: string;
1564
+ path?: string | undefined;
1565
+ };
1566
+ sha256: `sha256:${string}`;
1567
+ byteLength: number;
1568
+ } | {
1569
+ encoding: "base64";
1570
+ content: string;
1571
+ sha256: `sha256:${string}`;
1572
+ byteLength: number;
1573
+ };
1574
+ } | undefined;
1575
+ knowledgeManifestDigest?: `sha256:${string}` | undefined;
1576
+ }, unknown, z.core.$ZodTypeInternals<{
1577
+ schemaVersion: 2;
1578
+ kind: "agent-candidate-execution-plan-material";
1579
+ bundleDigest: `sha256:${string}`;
1580
+ executionId: string;
1581
+ attempt: {
1582
+ number: number;
1583
+ maxAttempts: number;
1584
+ retryPolicy: "none" | "pre-model-infrastructure-only";
1585
+ };
1586
+ task: {
1587
+ benchmark: string;
1588
+ benchmarkVersion: string;
1589
+ taskId: string;
1590
+ splitDigest: `sha256:${string}`;
1591
+ instruction: {
1592
+ encoding: "utf8";
1593
+ sha256: `sha256:${string}`;
1594
+ byteLength: number;
1595
+ delivery: {
1596
+ kind: "argv-append";
1597
+ } | {
1598
+ kind: "stdin-utf8";
1599
+ } | {
1600
+ kind: "utf8-file";
1601
+ env: "TANGLE_CANDIDATE_TASK_PATH";
1602
+ path: "/tangle/input/task.txt";
1603
+ };
1604
+ };
1605
+ outcome: {
1606
+ kind: "workspace";
1607
+ } | {
1608
+ kind: "output";
1609
+ mediaType: string;
1610
+ maxBytes: number;
1611
+ };
1612
+ workspace: {
1613
+ schemaVersion: 2;
1614
+ kind: "agent-candidate-workspace-snapshot";
1615
+ digest: `sha256:${string}`;
1616
+ material: {
1617
+ schemaVersion: 2;
1618
+ kind: "agent-candidate-workspace-manifest";
1619
+ files: {
1620
+ path: string;
1621
+ mode: number;
1622
+ sha256: `sha256:${string}`;
1623
+ byteLength: number;
1624
+ }[];
1625
+ };
1626
+ manifest: {
1627
+ locator: {
1628
+ kind: "s3";
1629
+ bucket: string;
1630
+ key: string;
1631
+ region?: string | undefined;
1632
+ } | {
1633
+ kind: "ipfs";
1634
+ cid: string;
1635
+ path?: string | undefined;
1636
+ };
1637
+ sha256: `sha256:${string}`;
1638
+ byteLength: number;
1639
+ } | {
1640
+ encoding: "base64";
1641
+ content: string;
1642
+ sha256: `sha256:${string}`;
1643
+ byteLength: number;
1644
+ };
1645
+ archive: {
1646
+ locator: {
1647
+ kind: "s3";
1648
+ bucket: string;
1649
+ key: string;
1650
+ region?: string | undefined;
1651
+ } | {
1652
+ kind: "ipfs";
1653
+ cid: string;
1654
+ path?: string | undefined;
1655
+ };
1656
+ sha256: `sha256:${string}`;
1657
+ byteLength: number;
1658
+ } | {
1659
+ encoding: "base64";
1660
+ content: string;
1661
+ sha256: `sha256:${string}`;
1662
+ byteLength: number;
1663
+ };
1664
+ };
1665
+ repository?: {
1666
+ identity: string;
1667
+ rootIdentity: string;
1668
+ baseCommit: string;
1669
+ baseTree: string;
1670
+ } | undefined;
1671
+ };
1672
+ workspaces: {
1673
+ taskRoot: string;
1674
+ candidateRoot?: string | undefined;
1675
+ };
1676
+ codeKind: "disabled" | "no-op" | "git-patch";
1677
+ profile: {
1678
+ planDigest: `sha256:${string}`;
1679
+ targetWorkspace: "candidate" | "task";
1680
+ mountPaths: string[];
1681
+ };
1682
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1683
+ harnessVersion: string;
1684
+ container: {
1685
+ image: string;
1686
+ indexDigest: `sha256:${string}`;
1687
+ source: "pinned-container" | "evaluator-task-container";
1688
+ manifestDigest: `sha256:${string}`;
1689
+ platform: {
1690
+ os: string;
1691
+ architecture: string;
1692
+ variant?: string | undefined;
1693
+ };
1694
+ };
1695
+ model: {
1696
+ policy: "single";
1697
+ resolved: {
1698
+ requested: string;
1699
+ provider: string;
1700
+ model: string;
1701
+ snapshot: string;
1702
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1703
+ };
1704
+ access: {
1705
+ kind: "evaluator-mediated";
1706
+ grantDigest: `sha256:${string}`;
1707
+ network: {
1708
+ mode: "disabled";
1709
+ } | {
1710
+ mode: "gateway-only";
1711
+ domains: string[];
1712
+ };
1713
+ };
1714
+ routes: ({
1715
+ kind: "primary";
1716
+ requested?: string | undefined;
1717
+ } | {
1718
+ kind: "small";
1719
+ requested: string;
1720
+ } | {
1721
+ kind: "mode";
1722
+ name: string;
1723
+ requested: string;
1724
+ } | {
1725
+ kind: "subagent";
1726
+ name: string;
1727
+ requested: string;
1728
+ })[];
1729
+ };
1730
+ grader: {
1731
+ name: string;
1732
+ version: string;
1733
+ artifact: {
1734
+ locator: {
1735
+ kind: "s3";
1736
+ bucket: string;
1737
+ key: string;
1738
+ region?: string | undefined;
1739
+ } | {
1740
+ kind: "ipfs";
1741
+ cid: string;
1742
+ path?: string | undefined;
1743
+ };
1744
+ sha256: `sha256:${string}`;
1745
+ byteLength: number;
1746
+ };
1747
+ };
1748
+ launch: {
1749
+ executable: string;
1750
+ args: {
1751
+ kind: "public";
1752
+ value: string;
1753
+ }[];
1754
+ env: Record<string, {
1755
+ kind: "public";
1756
+ value: string;
1757
+ }>;
1758
+ cwd: {
1759
+ workspace: "candidate" | "task";
1760
+ path: string;
1761
+ };
1762
+ };
1763
+ memory: {
1764
+ mode: "isolated";
1765
+ scope: "task";
1766
+ effectiveNamespace: string;
1767
+ reset: {
1768
+ kind: "fresh";
1769
+ evidence: {
1770
+ locator: {
1771
+ kind: "s3";
1772
+ bucket: string;
1773
+ key: string;
1774
+ region?: string | undefined;
1775
+ } | {
1776
+ kind: "ipfs";
1777
+ cid: string;
1778
+ path?: string | undefined;
1779
+ };
1780
+ sha256: `sha256:${string}`;
1781
+ byteLength: number;
1782
+ } | {
1783
+ encoding: "base64";
1784
+ content: string;
1785
+ sha256: `sha256:${string}`;
1786
+ byteLength: number;
1787
+ };
1788
+ emptyStateDigest: `sha256:${string}`;
1789
+ };
1790
+ beforeState: {
1791
+ schemaVersion: 2;
1792
+ kind: "agent-candidate-workspace-snapshot";
1793
+ digest: `sha256:${string}`;
1794
+ material: {
1795
+ schemaVersion: 2;
1796
+ kind: "agent-candidate-workspace-manifest";
1797
+ files: {
1798
+ path: string;
1799
+ mode: number;
1800
+ sha256: `sha256:${string}`;
1801
+ byteLength: number;
1802
+ }[];
1803
+ };
1804
+ manifest: {
1805
+ locator: {
1806
+ kind: "s3";
1807
+ bucket: string;
1808
+ key: string;
1809
+ region?: string | undefined;
1810
+ } | {
1811
+ kind: "ipfs";
1812
+ cid: string;
1813
+ path?: string | undefined;
1814
+ };
1815
+ sha256: `sha256:${string}`;
1816
+ byteLength: number;
1817
+ } | {
1818
+ encoding: "base64";
1819
+ content: string;
1820
+ sha256: `sha256:${string}`;
1821
+ byteLength: number;
1822
+ };
1823
+ archive: {
1824
+ locator: {
1825
+ kind: "s3";
1826
+ bucket: string;
1827
+ key: string;
1828
+ region?: string | undefined;
1829
+ } | {
1830
+ kind: "ipfs";
1831
+ cid: string;
1832
+ path?: string | undefined;
1833
+ };
1834
+ sha256: `sha256:${string}`;
1835
+ byteLength: number;
1836
+ } | {
1837
+ encoding: "base64";
1838
+ content: string;
1839
+ sha256: `sha256:${string}`;
1840
+ byteLength: number;
1841
+ };
1842
+ };
1843
+ seedDigest?: `sha256:${string}` | undefined;
1844
+ } | {
1845
+ mode: "disabled";
1846
+ };
1847
+ limits: {
1848
+ timeoutMs: number;
1849
+ maxSteps: number;
1850
+ maxModelCalls: number;
1851
+ maxInputTokens: number;
1852
+ maxOutputTokens: number;
1853
+ maxCostUsd: number;
1854
+ };
1855
+ network: {
1856
+ mode: "disabled";
1857
+ };
1858
+ candidateWorkspace?: {
1859
+ schemaVersion: 2;
1860
+ kind: "agent-candidate-workspace-snapshot";
1861
+ digest: `sha256:${string}`;
1862
+ material: {
1863
+ schemaVersion: 2;
1864
+ kind: "agent-candidate-workspace-manifest";
1865
+ files: {
1866
+ path: string;
1867
+ mode: number;
1868
+ sha256: `sha256:${string}`;
1869
+ byteLength: number;
1870
+ }[];
1871
+ };
1872
+ manifest: {
1873
+ locator: {
1874
+ kind: "s3";
1875
+ bucket: string;
1876
+ key: string;
1877
+ region?: string | undefined;
1878
+ } | {
1879
+ kind: "ipfs";
1880
+ cid: string;
1881
+ path?: string | undefined;
1882
+ };
1883
+ sha256: `sha256:${string}`;
1884
+ byteLength: number;
1885
+ } | {
1886
+ encoding: "base64";
1887
+ content: string;
1888
+ sha256: `sha256:${string}`;
1889
+ byteLength: number;
1890
+ };
1891
+ archive: {
1892
+ locator: {
1893
+ kind: "s3";
1894
+ bucket: string;
1895
+ key: string;
1896
+ region?: string | undefined;
1897
+ } | {
1898
+ kind: "ipfs";
1899
+ cid: string;
1900
+ path?: string | undefined;
1901
+ };
1902
+ sha256: `sha256:${string}`;
1903
+ byteLength: number;
1904
+ } | {
1905
+ encoding: "base64";
1906
+ content: string;
1907
+ sha256: `sha256:${string}`;
1908
+ byteLength: number;
1909
+ };
1910
+ } | undefined;
1911
+ knowledgeManifestDigest?: `sha256:${string}` | undefined;
1912
+ }, unknown>>;
1913
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1914
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1915
+ kind: z.ZodLiteral<"s3">;
1916
+ bucket: z.ZodString;
1917
+ key: z.ZodString;
1918
+ region: z.ZodOptional<z.ZodString>;
1919
+ }, z.core.$strict>, z.ZodObject<{
1920
+ kind: z.ZodLiteral<"ipfs">;
1921
+ cid: z.ZodString;
1922
+ path: z.ZodOptional<z.ZodString>;
1923
+ }, z.core.$strict>], "kind">;
1924
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1925
+ byteLength: z.ZodNumber;
1926
+ }, z.core.$strict>, z.ZodObject<{
1927
+ encoding: z.ZodLiteral<"base64">;
1928
+ content: z.ZodString;
1929
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1930
+ byteLength: z.ZodNumber;
1931
+ }, z.core.$strict>]>;
1932
+ }, z.core.$strict>;
1933
+ candidateWorkspace: z.ZodOptional<z.ZodObject<{
1934
+ schemaVersion: z.ZodLiteral<2>;
1935
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1936
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1937
+ material: z.ZodObject<{
1938
+ schemaVersion: z.ZodLiteral<2>;
1939
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1940
+ files: z.ZodArray<z.ZodObject<{
1941
+ path: z.ZodString;
1942
+ mode: z.ZodNumber;
1943
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1944
+ byteLength: z.ZodNumber;
1945
+ }, z.core.$strict>>;
1946
+ }, z.core.$strict>;
1947
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1948
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1949
+ kind: z.ZodLiteral<"s3">;
1950
+ bucket: z.ZodString;
1951
+ key: z.ZodString;
1952
+ region: z.ZodOptional<z.ZodString>;
1953
+ }, z.core.$strict>, z.ZodObject<{
1954
+ kind: z.ZodLiteral<"ipfs">;
1955
+ cid: z.ZodString;
1956
+ path: z.ZodOptional<z.ZodString>;
1957
+ }, z.core.$strict>], "kind">;
1958
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1959
+ byteLength: z.ZodNumber;
1960
+ }, z.core.$strict>, z.ZodObject<{
1961
+ encoding: z.ZodLiteral<"base64">;
1962
+ content: z.ZodString;
1963
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1964
+ byteLength: z.ZodNumber;
1965
+ }, z.core.$strict>]>;
1966
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1967
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1968
+ kind: z.ZodLiteral<"s3">;
1969
+ bucket: z.ZodString;
1970
+ key: z.ZodString;
1971
+ region: z.ZodOptional<z.ZodString>;
1972
+ }, z.core.$strict>, z.ZodObject<{
1973
+ kind: z.ZodLiteral<"ipfs">;
1974
+ cid: z.ZodString;
1975
+ path: z.ZodOptional<z.ZodString>;
1976
+ }, z.core.$strict>], "kind">;
1977
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1978
+ byteLength: z.ZodNumber;
1979
+ }, z.core.$strict>, z.ZodObject<{
1980
+ encoding: z.ZodLiteral<"base64">;
1981
+ content: z.ZodString;
1982
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1983
+ byteLength: z.ZodNumber;
1984
+ }, z.core.$strict>]>;
1985
+ }, z.core.$strict>>;
1986
+ codeKind: z.ZodEnum<{
1987
+ disabled: "disabled";
1988
+ "no-op": "no-op";
1989
+ "git-patch": "git-patch";
1990
+ }>;
1991
+ materializedTree: z.ZodOptional<z.ZodString>;
1992
+ harness: z.ZodEnum<{
1993
+ "claude-code": "claude-code";
1994
+ claude: "claude";
1995
+ claudish: "claudish";
1996
+ nanoclaw: "nanoclaw";
1997
+ codex: "codex";
1998
+ opencode: "opencode";
1999
+ "kimi-code": "kimi-code";
2000
+ kimi: "kimi";
2001
+ pi: "pi";
2002
+ gemini: "gemini";
2003
+ hermes: "hermes";
2004
+ openclaw: "openclaw";
2005
+ amp: "amp";
2006
+ "factory-droids": "factory-droids";
2007
+ acp: "acp";
2008
+ "cli-base": "cli-base";
2009
+ }>;
2010
+ harnessVersion: z.ZodString;
2011
+ container: z.ZodObject<{
2012
+ source: z.ZodEnum<{
2013
+ "pinned-container": "pinned-container";
2014
+ "evaluator-task-container": "evaluator-task-container";
2015
+ }>;
2016
+ image: z.ZodString;
2017
+ indexDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2018
+ manifestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2019
+ platform: z.ZodObject<{
2020
+ os: z.ZodString;
2021
+ architecture: z.ZodString;
2022
+ variant: z.ZodOptional<z.ZodString>;
2023
+ }, z.core.$strict>;
2024
+ }, z.core.$strict>;
2025
+ resolvedModel: z.ZodObject<{
2026
+ requested: z.ZodString;
2027
+ provider: z.ZodString;
2028
+ model: z.ZodString;
2029
+ snapshot: z.ZodString;
2030
+ reasoningEffort: z.ZodEnum<{
2031
+ none: "none";
2032
+ minimal: "minimal";
2033
+ low: "low";
2034
+ medium: "medium";
2035
+ high: "high";
2036
+ xhigh: "xhigh";
2037
+ ultracode: "ultracode";
2038
+ }>;
2039
+ }, z.core.$strict>;
2040
+ knowledgeManifestDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
2041
+ entrypoint: z.ZodOptional<z.ZodObject<{
2042
+ path: z.ZodString;
2043
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2044
+ byteLength: z.ZodNumber;
2045
+ }, z.core.$strict>>;
2046
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2047
+ }, z.core.$strict>;
2048
+ profileActivation: z.ZodObject<{
2049
+ schemaVersion: z.ZodLiteral<1>;
2050
+ kind: z.ZodLiteral<"agent-candidate-profile-activation">;
2051
+ profilePlan: z.ZodObject<{
2052
+ schemaVersion: z.ZodLiteral<1>;
2053
+ kind: z.ZodLiteral<"agent-profile-workspace-plan">;
2054
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2055
+ material: z.ZodType<{
2056
+ version: 1;
2057
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
2058
+ files: {
2059
+ relPath: string;
2060
+ mode: number;
2061
+ contentSha256: `sha256:${string}`;
2062
+ }[];
2063
+ env: Record<string, {
2064
+ kind: "public";
2065
+ value: string;
2066
+ }>;
2067
+ flags: {
2068
+ kind: "public";
2069
+ value: string;
2070
+ }[];
2071
+ unsupported: {
2072
+ dimension: string;
2073
+ reason: string;
2074
+ }[];
2075
+ }, unknown, z.core.$ZodTypeInternals<{
2076
+ version: 1;
2077
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
2078
+ files: {
2079
+ relPath: string;
2080
+ mode: number;
2081
+ contentSha256: `sha256:${string}`;
2082
+ }[];
2083
+ env: Record<string, {
2084
+ kind: "public";
2085
+ value: string;
2086
+ }>;
2087
+ flags: {
2088
+ kind: "public";
2089
+ value: string;
2090
+ }[];
2091
+ unsupported: {
2092
+ dimension: string;
2093
+ reason: string;
2094
+ }[];
2095
+ }, unknown>>;
2096
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2097
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2098
+ kind: z.ZodLiteral<"s3">;
2099
+ bucket: z.ZodString;
2100
+ key: z.ZodString;
2101
+ region: z.ZodOptional<z.ZodString>;
2102
+ }, z.core.$strict>, z.ZodObject<{
2103
+ kind: z.ZodLiteral<"ipfs">;
2104
+ cid: z.ZodString;
2105
+ path: z.ZodOptional<z.ZodString>;
2106
+ }, z.core.$strict>], "kind">;
2107
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2108
+ byteLength: z.ZodNumber;
2109
+ }, z.core.$strict>, z.ZodObject<{
2110
+ encoding: z.ZodLiteral<"base64">;
2111
+ content: z.ZodString;
2112
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2113
+ byteLength: z.ZodNumber;
2114
+ }, z.core.$strict>]>;
2115
+ }, z.core.$strict>;
2116
+ files: z.ZodArray<z.ZodObject<{
2117
+ path: z.ZodString;
2118
+ mode: z.ZodNumber;
2119
+ content: z.ZodString;
2120
+ }, z.core.$strict>>;
2121
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2122
+ }, z.core.$strict>;
2123
+ receipt: z.ZodObject<{
2124
+ schemaVersion: z.ZodLiteral<3>;
2125
+ kind: z.ZodLiteral<"agent-candidate-run">;
2126
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
2127
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2128
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2129
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2130
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
2131
+ mode: z.ZodLiteral<"disabled">;
2132
+ }, z.core.$strict>, z.ZodObject<{
2133
+ mode: z.ZodLiteral<"isolated">;
2134
+ scope: z.ZodLiteral<"task">;
2135
+ effectiveNamespace: z.ZodString;
2136
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2137
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2138
+ afterState: z.ZodObject<{
2139
+ schemaVersion: z.ZodLiteral<2>;
2140
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
2141
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2142
+ material: z.ZodObject<{
2143
+ schemaVersion: z.ZodLiteral<2>;
2144
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
2145
+ files: z.ZodArray<z.ZodObject<{
2146
+ path: z.ZodString;
2147
+ mode: z.ZodNumber;
2148
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2149
+ byteLength: z.ZodNumber;
2150
+ }, z.core.$strict>>;
2151
+ }, z.core.$strict>;
2152
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
2153
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2154
+ kind: z.ZodLiteral<"s3">;
2155
+ bucket: z.ZodString;
2156
+ key: z.ZodString;
2157
+ region: z.ZodOptional<z.ZodString>;
2158
+ }, z.core.$strict>, z.ZodObject<{
2159
+ kind: z.ZodLiteral<"ipfs">;
2160
+ cid: z.ZodString;
2161
+ path: z.ZodOptional<z.ZodString>;
2162
+ }, z.core.$strict>], "kind">;
2163
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2164
+ byteLength: z.ZodNumber;
2165
+ }, z.core.$strict>, z.ZodObject<{
2166
+ encoding: z.ZodLiteral<"base64">;
2167
+ content: z.ZodString;
2168
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2169
+ byteLength: z.ZodNumber;
2170
+ }, z.core.$strict>]>;
2171
+ archive: z.ZodUnion<readonly [z.ZodObject<{
2172
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2173
+ kind: z.ZodLiteral<"s3">;
2174
+ bucket: z.ZodString;
2175
+ key: z.ZodString;
2176
+ region: z.ZodOptional<z.ZodString>;
2177
+ }, z.core.$strict>, z.ZodObject<{
2178
+ kind: z.ZodLiteral<"ipfs">;
2179
+ cid: z.ZodString;
2180
+ path: z.ZodOptional<z.ZodString>;
2181
+ }, z.core.$strict>], "kind">;
2182
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2183
+ byteLength: z.ZodNumber;
2184
+ }, z.core.$strict>, z.ZodObject<{
2185
+ encoding: z.ZodLiteral<"base64">;
2186
+ content: z.ZodString;
2187
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2188
+ byteLength: z.ZodNumber;
2189
+ }, z.core.$strict>]>;
2190
+ }, z.core.$strict>;
2191
+ }, z.core.$strict>], "mode">;
2192
+ trace: z.ZodObject<{
2193
+ schemaVersion: z.ZodLiteral<1>;
2194
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2195
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2196
+ kind: z.ZodLiteral<"s3">;
2197
+ bucket: z.ZodString;
2198
+ key: z.ZodString;
2199
+ region: z.ZodOptional<z.ZodString>;
2200
+ }, z.core.$strict>, z.ZodObject<{
2201
+ kind: z.ZodLiteral<"ipfs">;
2202
+ cid: z.ZodString;
2203
+ path: z.ZodOptional<z.ZodString>;
2204
+ }, z.core.$strict>], "kind">;
2205
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2206
+ byteLength: z.ZodNumber;
2207
+ }, z.core.$strict>, z.ZodObject<{
2208
+ encoding: z.ZodLiteral<"base64">;
2209
+ content: z.ZodString;
2210
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2211
+ byteLength: z.ZodNumber;
2212
+ }, z.core.$strict>]>;
2213
+ eventCount: z.ZodNumber;
2214
+ modelCallCount: z.ZodNumber;
2215
+ }, z.core.$strict>;
2216
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
2217
+ kind: z.ZodLiteral<"exit">;
2218
+ exitCode: z.ZodNumber;
2219
+ }, z.core.$strict>, z.ZodObject<{
2220
+ kind: z.ZodLiteral<"timeout">;
2221
+ timeoutMs: z.ZodNumber;
2222
+ }, z.core.$strict>, z.ZodObject<{
2223
+ kind: z.ZodLiteral<"signal">;
2224
+ signal: z.ZodString;
2225
+ }, z.core.$strict>, z.ZodObject<{
2226
+ kind: z.ZodLiteral<"cancelled">;
2227
+ }, z.core.$strict>], "kind">;
2228
+ executorCapture: z.ZodObject<{
2229
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2230
+ kind: z.ZodLiteral<"s3">;
2231
+ bucket: z.ZodString;
2232
+ key: z.ZodString;
2233
+ region: z.ZodOptional<z.ZodString>;
2234
+ }, z.core.$strict>, z.ZodObject<{
2235
+ kind: z.ZodLiteral<"ipfs">;
2236
+ cid: z.ZodString;
2237
+ path: z.ZodOptional<z.ZodString>;
2238
+ }, z.core.$strict>], "kind">;
2239
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2240
+ byteLength: z.ZodNumber;
2241
+ }, z.core.$strict>;
2242
+ modelSettlement: z.ZodObject<{
2243
+ schemaVersion: z.ZodLiteral<2>;
2244
+ kind: z.ZodLiteral<"agent-candidate-model-settlement">;
2245
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2246
+ material: z.ZodType<{
2247
+ calls: {
2248
+ callId: string;
2249
+ generationId: string;
2250
+ traceSpanId: string;
2251
+ status: "succeeded" | "failed";
2252
+ model: string;
2253
+ startedAtMs: number;
2254
+ endedAtMs: number;
2255
+ inputTokens: number;
2256
+ outputTokens: number;
2257
+ cachedInputTokens: number;
2258
+ reasoningTokens: number;
2259
+ costUsdNanos: number;
2260
+ }[];
2261
+ kind: "agent-candidate-model-settlement-material";
2262
+ executionPlanDigest: `sha256:${string}`;
2263
+ preparationId: string;
2264
+ grantDigest: `sha256:${string}`;
2265
+ closed: true;
2266
+ resolved: {
2267
+ requested: string;
2268
+ provider: string;
2269
+ model: string;
2270
+ snapshot: string;
2271
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2272
+ };
2273
+ usage: {
2274
+ inputTokens: number;
2275
+ outputTokens: number;
2276
+ cachedInputTokens: number;
2277
+ reasoningTokens: number;
2278
+ modelCalls: number;
2279
+ costUsdNanos: number;
2280
+ };
2281
+ schemaVersion: 2;
2282
+ }, unknown, z.core.$ZodTypeInternals<{
2283
+ calls: {
2284
+ callId: string;
2285
+ generationId: string;
2286
+ traceSpanId: string;
2287
+ status: "succeeded" | "failed";
2288
+ model: string;
2289
+ startedAtMs: number;
2290
+ endedAtMs: number;
2291
+ inputTokens: number;
2292
+ outputTokens: number;
2293
+ cachedInputTokens: number;
2294
+ reasoningTokens: number;
2295
+ costUsdNanos: number;
2296
+ }[];
2297
+ kind: "agent-candidate-model-settlement-material";
2298
+ executionPlanDigest: `sha256:${string}`;
2299
+ preparationId: string;
2300
+ grantDigest: `sha256:${string}`;
2301
+ closed: true;
2302
+ resolved: {
2303
+ requested: string;
2304
+ provider: string;
2305
+ model: string;
2306
+ snapshot: string;
2307
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2308
+ };
2309
+ usage: {
2310
+ inputTokens: number;
2311
+ outputTokens: number;
2312
+ cachedInputTokens: number;
2313
+ reasoningTokens: number;
2314
+ modelCalls: number;
2315
+ costUsdNanos: number;
2316
+ };
2317
+ schemaVersion: 2;
2318
+ }, unknown>>;
2319
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2320
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2321
+ kind: z.ZodLiteral<"s3">;
2322
+ bucket: z.ZodString;
2323
+ key: z.ZodString;
2324
+ region: z.ZodOptional<z.ZodString>;
2325
+ }, z.core.$strict>, z.ZodObject<{
2326
+ kind: z.ZodLiteral<"ipfs">;
2327
+ cid: z.ZodString;
2328
+ path: z.ZodOptional<z.ZodString>;
2329
+ }, z.core.$strict>], "kind">;
2330
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2331
+ byteLength: z.ZodNumber;
2332
+ }, z.core.$strict>, z.ZodObject<{
2333
+ encoding: z.ZodLiteral<"base64">;
2334
+ content: z.ZodString;
2335
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2336
+ byteLength: z.ZodNumber;
2337
+ }, z.core.$strict>]>;
2338
+ }, z.core.$strict>;
2339
+ taskOutcome: z.ZodObject<{
2340
+ schemaVersion: z.ZodLiteral<2>;
2341
+ kind: z.ZodLiteral<"agent-candidate-task-outcome">;
2342
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2343
+ material: z.ZodType<{
2344
+ schemaVersion: 2;
2345
+ kind: "agent-candidate-task-outcome-material";
2346
+ executionPlanDigest: `sha256:${string}`;
2347
+ outcome: {
2348
+ kind: "workspace";
2349
+ baseRepository: {
2350
+ identity: string;
2351
+ rootIdentity: string;
2352
+ commit: string;
2353
+ tree: string;
2354
+ };
2355
+ resultRepository: {
2356
+ identity: string;
2357
+ rootIdentity: string;
2358
+ commit: string;
2359
+ tree: string;
2360
+ };
2361
+ afterState: {
2362
+ schemaVersion: 2;
2363
+ kind: "agent-candidate-workspace-snapshot";
2364
+ digest: `sha256:${string}`;
2365
+ material: {
2366
+ schemaVersion: 2;
2367
+ kind: "agent-candidate-workspace-manifest";
2368
+ files: {
2369
+ path: string;
2370
+ mode: number;
2371
+ sha256: `sha256:${string}`;
2372
+ byteLength: number;
2373
+ }[];
2374
+ };
2375
+ manifest: {
2376
+ locator: {
2377
+ kind: "s3";
2378
+ bucket: string;
2379
+ key: string;
2380
+ region?: string | undefined;
2381
+ } | {
2382
+ kind: "ipfs";
2383
+ cid: string;
2384
+ path?: string | undefined;
2385
+ };
2386
+ sha256: `sha256:${string}`;
2387
+ byteLength: number;
2388
+ } | {
2389
+ encoding: "base64";
2390
+ content: string;
2391
+ sha256: `sha256:${string}`;
2392
+ byteLength: number;
2393
+ };
2394
+ archive: {
2395
+ locator: {
2396
+ kind: "s3";
2397
+ bucket: string;
2398
+ key: string;
2399
+ region?: string | undefined;
2400
+ } | {
2401
+ kind: "ipfs";
2402
+ cid: string;
2403
+ path?: string | undefined;
2404
+ };
2405
+ sha256: `sha256:${string}`;
2406
+ byteLength: number;
2407
+ } | {
2408
+ encoding: "base64";
2409
+ content: string;
2410
+ sha256: `sha256:${string}`;
2411
+ byteLength: number;
2412
+ };
2413
+ };
2414
+ gitDiff: {
2415
+ format: "git-diff-binary";
2416
+ artifact: {
2417
+ locator: {
2418
+ kind: "s3";
2419
+ bucket: string;
2420
+ key: string;
2421
+ region?: string | undefined;
2422
+ } | {
2423
+ kind: "ipfs";
2424
+ cid: string;
2425
+ path?: string | undefined;
2426
+ };
2427
+ sha256: `sha256:${string}`;
2428
+ byteLength: number;
2429
+ };
2430
+ };
2431
+ } | {
2432
+ kind: "output";
2433
+ spec: {
2434
+ mediaType: string;
2435
+ maxBytes: number;
2436
+ };
2437
+ artifact: {
2438
+ locator: {
2439
+ kind: "s3";
2440
+ bucket: string;
2441
+ key: string;
2442
+ region?: string | undefined;
2443
+ } | {
2444
+ kind: "ipfs";
2445
+ cid: string;
2446
+ path?: string | undefined;
2447
+ };
2448
+ sha256: `sha256:${string}`;
2449
+ byteLength: number;
2450
+ };
2451
+ };
2452
+ }, unknown, z.core.$ZodTypeInternals<{
2453
+ schemaVersion: 2;
2454
+ kind: "agent-candidate-task-outcome-material";
2455
+ executionPlanDigest: `sha256:${string}`;
2456
+ outcome: {
2457
+ kind: "workspace";
2458
+ baseRepository: {
2459
+ identity: string;
2460
+ rootIdentity: string;
2461
+ commit: string;
2462
+ tree: string;
2463
+ };
2464
+ resultRepository: {
2465
+ identity: string;
2466
+ rootIdentity: string;
2467
+ commit: string;
2468
+ tree: string;
2469
+ };
2470
+ afterState: {
2471
+ schemaVersion: 2;
2472
+ kind: "agent-candidate-workspace-snapshot";
2473
+ digest: `sha256:${string}`;
2474
+ material: {
2475
+ schemaVersion: 2;
2476
+ kind: "agent-candidate-workspace-manifest";
2477
+ files: {
2478
+ path: string;
2479
+ mode: number;
2480
+ sha256: `sha256:${string}`;
2481
+ byteLength: number;
2482
+ }[];
2483
+ };
2484
+ manifest: {
2485
+ locator: {
2486
+ kind: "s3";
2487
+ bucket: string;
2488
+ key: string;
2489
+ region?: string | undefined;
2490
+ } | {
2491
+ kind: "ipfs";
2492
+ cid: string;
2493
+ path?: string | undefined;
2494
+ };
2495
+ sha256: `sha256:${string}`;
2496
+ byteLength: number;
2497
+ } | {
2498
+ encoding: "base64";
2499
+ content: string;
2500
+ sha256: `sha256:${string}`;
2501
+ byteLength: number;
2502
+ };
2503
+ archive: {
2504
+ locator: {
2505
+ kind: "s3";
2506
+ bucket: string;
2507
+ key: string;
2508
+ region?: string | undefined;
2509
+ } | {
2510
+ kind: "ipfs";
2511
+ cid: string;
2512
+ path?: string | undefined;
2513
+ };
2514
+ sha256: `sha256:${string}`;
2515
+ byteLength: number;
2516
+ } | {
2517
+ encoding: "base64";
2518
+ content: string;
2519
+ sha256: `sha256:${string}`;
2520
+ byteLength: number;
2521
+ };
2522
+ };
2523
+ gitDiff: {
2524
+ format: "git-diff-binary";
2525
+ artifact: {
2526
+ locator: {
2527
+ kind: "s3";
2528
+ bucket: string;
2529
+ key: string;
2530
+ region?: string | undefined;
2531
+ } | {
2532
+ kind: "ipfs";
2533
+ cid: string;
2534
+ path?: string | undefined;
2535
+ };
2536
+ sha256: `sha256:${string}`;
2537
+ byteLength: number;
2538
+ };
2539
+ };
2540
+ } | {
2541
+ kind: "output";
2542
+ spec: {
2543
+ mediaType: string;
2544
+ maxBytes: number;
2545
+ };
2546
+ artifact: {
2547
+ locator: {
2548
+ kind: "s3";
2549
+ bucket: string;
2550
+ key: string;
2551
+ region?: string | undefined;
2552
+ } | {
2553
+ kind: "ipfs";
2554
+ cid: string;
2555
+ path?: string | undefined;
2556
+ };
2557
+ sha256: `sha256:${string}`;
2558
+ byteLength: number;
2559
+ };
2560
+ };
2561
+ }, unknown>>;
2562
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2563
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2564
+ kind: z.ZodLiteral<"s3">;
2565
+ bucket: z.ZodString;
2566
+ key: z.ZodString;
2567
+ region: z.ZodOptional<z.ZodString>;
2568
+ }, z.core.$strict>, z.ZodObject<{
2569
+ kind: z.ZodLiteral<"ipfs">;
2570
+ cid: z.ZodString;
2571
+ path: z.ZodOptional<z.ZodString>;
2572
+ }, z.core.$strict>], "kind">;
2573
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2574
+ byteLength: z.ZodNumber;
2575
+ }, z.core.$strict>, z.ZodObject<{
2576
+ encoding: z.ZodLiteral<"base64">;
2577
+ content: z.ZodString;
2578
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2579
+ byteLength: z.ZodNumber;
2580
+ }, z.core.$strict>]>;
2581
+ }, z.core.$strict>;
2582
+ benchmarkResult: z.ZodObject<{
2583
+ schemaVersion: z.ZodLiteral<1>;
2584
+ kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
2585
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2586
+ material: z.ZodType<{
2587
+ schemaVersion: 1;
2588
+ kind: "agent-candidate-benchmark-result-material";
2589
+ executionPlanDigest: `sha256:${string}`;
2590
+ taskOutcomeDigest: `sha256:${string}`;
2591
+ benchmark: {
2592
+ name: string;
2593
+ version: string;
2594
+ taskId: string;
2595
+ splitDigest: `sha256:${string}`;
2596
+ };
2597
+ grader: {
2598
+ name: string;
2599
+ version: string;
2600
+ artifact: {
2601
+ locator: {
2602
+ kind: "s3";
2603
+ bucket: string;
2604
+ key: string;
2605
+ region?: string | undefined;
2606
+ } | {
2607
+ kind: "ipfs";
2608
+ cid: string;
2609
+ path?: string | undefined;
2610
+ };
2611
+ sha256: `sha256:${string}`;
2612
+ byteLength: number;
2613
+ };
2614
+ };
2615
+ evidence: {
2616
+ locator: {
2617
+ kind: "s3";
2618
+ bucket: string;
2619
+ key: string;
2620
+ region?: string | undefined;
2621
+ } | {
2622
+ kind: "ipfs";
2623
+ cid: string;
2624
+ path?: string | undefined;
2625
+ };
2626
+ sha256: `sha256:${string}`;
2627
+ byteLength: number;
2628
+ };
2629
+ score: number;
2630
+ passed: boolean;
2631
+ dimensions: {
2632
+ name: string;
2633
+ score: number;
2634
+ }[];
2635
+ }, unknown, z.core.$ZodTypeInternals<{
2636
+ schemaVersion: 1;
2637
+ kind: "agent-candidate-benchmark-result-material";
2638
+ executionPlanDigest: `sha256:${string}`;
2639
+ taskOutcomeDigest: `sha256:${string}`;
2640
+ benchmark: {
2641
+ name: string;
2642
+ version: string;
2643
+ taskId: string;
2644
+ splitDigest: `sha256:${string}`;
2645
+ };
2646
+ grader: {
2647
+ name: string;
2648
+ version: string;
2649
+ artifact: {
2650
+ locator: {
2651
+ kind: "s3";
2652
+ bucket: string;
2653
+ key: string;
2654
+ region?: string | undefined;
2655
+ } | {
2656
+ kind: "ipfs";
2657
+ cid: string;
2658
+ path?: string | undefined;
2659
+ };
2660
+ sha256: `sha256:${string}`;
2661
+ byteLength: number;
2662
+ };
2663
+ };
2664
+ evidence: {
2665
+ locator: {
2666
+ kind: "s3";
2667
+ bucket: string;
2668
+ key: string;
2669
+ region?: string | undefined;
2670
+ } | {
2671
+ kind: "ipfs";
2672
+ cid: string;
2673
+ path?: string | undefined;
2674
+ };
2675
+ sha256: `sha256:${string}`;
2676
+ byteLength: number;
2677
+ };
2678
+ score: number;
2679
+ passed: boolean;
2680
+ dimensions: {
2681
+ name: string;
2682
+ score: number;
2683
+ }[];
2684
+ }, unknown>>;
2685
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2686
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2687
+ kind: z.ZodLiteral<"s3">;
2688
+ bucket: z.ZodString;
2689
+ key: z.ZodString;
2690
+ region: z.ZodOptional<z.ZodString>;
2691
+ }, z.core.$strict>, z.ZodObject<{
2692
+ kind: z.ZodLiteral<"ipfs">;
2693
+ cid: z.ZodString;
2694
+ path: z.ZodOptional<z.ZodString>;
2695
+ }, z.core.$strict>], "kind">;
2696
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2697
+ byteLength: z.ZodNumber;
2698
+ }, z.core.$strict>, z.ZodObject<{
2699
+ encoding: z.ZodLiteral<"base64">;
2700
+ content: z.ZodString;
2701
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2702
+ byteLength: z.ZodNumber;
2703
+ }, z.core.$strict>]>;
2704
+ }, z.core.$strict>;
2705
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2706
+ }, z.core.$strict>;
2707
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2708
+ }, z.core.$strict>;