@tangle-network/agent-interface 0.20.0 → 0.22.0

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