@tangle-network/agent-interface 0.27.2 → 0.29.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/dist/agent-candidate-artifact-schema.d.ts +0 -3
  2. package/dist/agent-candidate-artifact-schema.js +0 -2
  3. package/dist/agent-candidate-code-schema.d.ts +0 -10
  4. package/dist/agent-candidate-code-schema.js +0 -1
  5. package/dist/agent-candidate-execution-plan-schema.d.ts +173 -382
  6. package/dist/agent-candidate-execution-plan-schema.js +100 -138
  7. package/dist/agent-candidate-lineage-schema.d.ts +1 -31
  8. package/dist/agent-candidate-lineage-schema.js +3 -34
  9. package/dist/agent-candidate-outcome-schema.d.ts +48 -36
  10. package/dist/agent-candidate-outcome-schema.js +23 -32
  11. package/dist/agent-candidate-promotion-schema.d.ts +11021 -2411
  12. package/dist/agent-candidate-promotion-schema.js +495 -109
  13. package/dist/agent-candidate-receipt-schema.d.ts +260 -344
  14. package/dist/agent-candidate-receipt-schema.js +82 -11
  15. package/dist/agent-candidate-schema-common.d.ts +8 -0
  16. package/dist/agent-candidate-schema-common.js +35 -1
  17. package/dist/agent-candidate-schema.d.ts +2 -44
  18. package/dist/agent-candidate-schema.js +3 -29
  19. package/dist/agent-candidate-task-schema.d.ts +643 -0
  20. package/dist/agent-candidate-task-schema.js +191 -0
  21. package/dist/agent-candidate.d.ts +173 -94
  22. package/dist/agent-candidate.test-fixture.d.ts +0 -32
  23. package/dist/agent-candidate.test-fixture.js +0 -32
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.js +0 -1
  26. package/dist/profile-diff.d.ts +0 -1
  27. package/dist/profile-schema.d.ts +9 -0
  28. package/dist/profile-schema.js +14 -6
  29. package/package.json +2 -2
  30. package/dist/agent-candidate-compat.d.ts +0 -1918
  31. package/dist/agent-candidate-compat.js +0 -340
@@ -20,8 +20,48 @@ export declare const agentCandidateResolvedModelSchema: z.ZodObject<{
20
20
  ultracode: "ultracode";
21
21
  }>;
22
22
  }, z.core.$strict>;
23
+ export declare const agentCandidateBenchmarkGraderIdentitySchema: z.ZodObject<{
24
+ name: z.ZodString;
25
+ version: z.ZodString;
26
+ format: z.ZodLiteral<"tangle-grader">;
27
+ artifact: z.ZodObject<{
28
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ kind: z.ZodLiteral<"s3">;
30
+ bucket: z.ZodString;
31
+ key: z.ZodString;
32
+ region: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strict>, z.ZodObject<{
34
+ kind: z.ZodLiteral<"ipfs">;
35
+ cid: z.ZodString;
36
+ path: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strict>], "kind">;
38
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
39
+ byteLength: z.ZodNumber;
40
+ }, z.core.$strict>;
41
+ }, z.core.$strict>;
42
+ export declare const agentCandidateTaskRepositorySchema: z.ZodObject<{
43
+ identity: z.ZodString;
44
+ rootIdentity: z.ZodString;
45
+ baseCommit: z.ZodString;
46
+ baseTree: z.ZodString;
47
+ }, z.core.$strict>;
48
+ export declare const agentCandidateResolvedTaskContainerSchema: z.ZodObject<{
49
+ image: z.ZodString;
50
+ indexDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
51
+ source: z.ZodLiteral<"evaluator-task-container">;
52
+ manifestDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
53
+ platform: z.ZodObject<{
54
+ os: z.ZodString;
55
+ architecture: z.ZodString;
56
+ variant: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strict>;
58
+ }, z.core.$strict>;
59
+ export declare const agentCandidateRetryPolicySchema: z.ZodEnum<{
60
+ none: "none";
61
+ "pre-model-infrastructure-only": "pre-model-infrastructure-only";
62
+ }>;
23
63
  export declare const agentCandidateProfilePlanMaterialSchema: z.ZodObject<{
24
- version: z.ZodLiteral<1>;
64
+ sourceProfileDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
25
65
  harness: z.ZodEnum<{
26
66
  "claude-code": "claude-code";
27
67
  claude: "claude";
@@ -88,11 +128,9 @@ export declare const agentCandidateEffectiveMemorySchema: z.ZodDiscriminatedUnio
88
128
  emptyStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
89
129
  }, z.core.$strict>;
90
130
  beforeState: z.ZodObject<{
91
- schemaVersion: z.ZodLiteral<2>;
92
131
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
93
132
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
94
133
  material: z.ZodObject<{
95
- schemaVersion: z.ZodLiteral<2>;
96
134
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
97
135
  files: z.ZodArray<z.ZodObject<{
98
136
  path: z.ZodString;
@@ -157,105 +195,61 @@ export declare const agentCandidateTaskOutcomeSpecSchema: z.ZodDiscriminatedUnio
157
195
  mediaType: z.ZodString;
158
196
  maxBytes: z.ZodNumber;
159
197
  }, z.core.$strict>], "kind">;
198
+ export declare const agentCandidateBenchmarkCellRefSchema: z.ZodObject<{
199
+ suiteDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
200
+ taskIndex: z.ZodNumber;
201
+ repetition: z.ZodNumber;
202
+ }, z.core.$strict>;
203
+ export declare const agentCandidateRunCellMaterialSchema: z.ZodObject<{
204
+ kind: z.ZodLiteral<"agent-candidate-run-cell">;
205
+ experimentDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
206
+ arm: z.ZodEnum<{
207
+ candidate: "candidate";
208
+ baseline: "baseline";
209
+ }>;
210
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
211
+ suiteDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
212
+ taskDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
213
+ taskIndex: z.ZodNumber;
214
+ repetition: z.ZodNumber;
215
+ seed: z.ZodNumber;
216
+ attempt: z.ZodNumber;
217
+ }, z.core.$strict>;
218
+ export declare const agentCandidateRunCellSchema: z.ZodObject<{
219
+ kind: z.ZodLiteral<"agent-candidate-run-cell">;
220
+ experimentDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
221
+ arm: z.ZodEnum<{
222
+ candidate: "candidate";
223
+ baseline: "baseline";
224
+ }>;
225
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
226
+ suiteDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
227
+ taskDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
228
+ taskIndex: z.ZodNumber;
229
+ repetition: z.ZodNumber;
230
+ seed: z.ZodNumber;
231
+ attempt: z.ZodNumber;
232
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
233
+ }, z.core.$strict>;
160
234
  export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
161
- schemaVersion: z.ZodLiteral<2>;
162
235
  kind: z.ZodLiteral<"agent-candidate-execution-plan-material">;
163
- bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
164
- executionId: z.ZodString;
165
- attempt: z.ZodObject<{
166
- number: z.ZodNumber;
167
- maxAttempts: z.ZodNumber;
168
- retryPolicy: z.ZodEnum<{
169
- none: "none";
170
- "pre-model-infrastructure-only": "pre-model-infrastructure-only";
236
+ runCell: z.ZodObject<{
237
+ kind: z.ZodLiteral<"agent-candidate-run-cell">;
238
+ experimentDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
239
+ arm: z.ZodEnum<{
240
+ candidate: "candidate";
241
+ baseline: "baseline";
171
242
  }>;
243
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
244
+ suiteDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
245
+ taskDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
246
+ taskIndex: z.ZodNumber;
247
+ repetition: z.ZodNumber;
248
+ seed: z.ZodNumber;
249
+ attempt: z.ZodNumber;
250
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
172
251
  }, z.core.$strict>;
173
- task: z.ZodObject<{
174
- benchmark: z.ZodString;
175
- benchmarkVersion: z.ZodString;
176
- taskId: z.ZodString;
177
- splitDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
178
- instruction: z.ZodObject<{
179
- encoding: z.ZodLiteral<"utf8">;
180
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
181
- byteLength: z.ZodNumber;
182
- delivery: z.ZodDiscriminatedUnion<[z.ZodObject<{
183
- kind: z.ZodLiteral<"argv-append">;
184
- }, z.core.$strict>, z.ZodObject<{
185
- kind: z.ZodLiteral<"stdin-utf8">;
186
- }, z.core.$strict>, z.ZodObject<{
187
- kind: z.ZodLiteral<"utf8-file">;
188
- env: z.ZodLiteral<"TANGLE_CANDIDATE_TASK_PATH">;
189
- path: z.ZodLiteral<"/tangle/input/task.txt">;
190
- }, z.core.$strict>], "kind">;
191
- }, z.core.$strict>;
192
- repository: z.ZodOptional<z.ZodObject<{
193
- identity: z.ZodString;
194
- rootIdentity: z.ZodString;
195
- baseCommit: z.ZodString;
196
- baseTree: z.ZodString;
197
- }, z.core.$strict>>;
198
- outcome: z.ZodDiscriminatedUnion<[z.ZodObject<{
199
- kind: z.ZodLiteral<"workspace">;
200
- }, z.core.$strict>, z.ZodObject<{
201
- kind: z.ZodLiteral<"output">;
202
- mediaType: z.ZodString;
203
- maxBytes: z.ZodNumber;
204
- }, z.core.$strict>], "kind">;
205
- workspace: z.ZodObject<{
206
- schemaVersion: z.ZodLiteral<2>;
207
- kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
208
- digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
209
- material: z.ZodObject<{
210
- schemaVersion: z.ZodLiteral<2>;
211
- kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
212
- files: z.ZodArray<z.ZodObject<{
213
- path: z.ZodString;
214
- mode: z.ZodNumber;
215
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
216
- byteLength: z.ZodNumber;
217
- }, z.core.$strict>>;
218
- }, z.core.$strict>;
219
- manifest: z.ZodUnion<readonly [z.ZodObject<{
220
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
- kind: z.ZodLiteral<"s3">;
222
- bucket: z.ZodString;
223
- key: z.ZodString;
224
- region: z.ZodOptional<z.ZodString>;
225
- }, z.core.$strict>, z.ZodObject<{
226
- kind: z.ZodLiteral<"ipfs">;
227
- cid: z.ZodString;
228
- path: z.ZodOptional<z.ZodString>;
229
- }, z.core.$strict>], "kind">;
230
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
231
- byteLength: z.ZodNumber;
232
- }, z.core.$strict>, z.ZodObject<{
233
- encoding: z.ZodLiteral<"base64">;
234
- content: z.ZodString;
235
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
236
- byteLength: z.ZodNumber;
237
- }, z.core.$strict>]>;
238
- archive: z.ZodUnion<readonly [z.ZodObject<{
239
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
240
- kind: z.ZodLiteral<"s3">;
241
- bucket: z.ZodString;
242
- key: z.ZodString;
243
- region: z.ZodOptional<z.ZodString>;
244
- }, z.core.$strict>, z.ZodObject<{
245
- kind: z.ZodLiteral<"ipfs">;
246
- cid: z.ZodString;
247
- path: z.ZodOptional<z.ZodString>;
248
- }, z.core.$strict>], "kind">;
249
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
250
- byteLength: z.ZodNumber;
251
- }, z.core.$strict>, z.ZodObject<{
252
- encoding: z.ZodLiteral<"base64">;
253
- content: z.ZodString;
254
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
255
- byteLength: z.ZodNumber;
256
- }, z.core.$strict>]>;
257
- }, z.core.$strict>;
258
- }, z.core.$strict>;
252
+ executionId: z.ZodString;
259
253
  workspaces: z.ZodObject<{
260
254
  taskRoot: z.ZodString;
261
255
  candidateRoot: z.ZodOptional<z.ZodString>;
@@ -266,11 +260,9 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
266
260
  "git-patch": "git-patch";
267
261
  }>;
268
262
  candidateWorkspace: z.ZodOptional<z.ZodObject<{
269
- schemaVersion: z.ZodLiteral<2>;
270
263
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
271
264
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
272
265
  material: z.ZodObject<{
273
- schemaVersion: z.ZodLiteral<2>;
274
266
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
275
267
  files: z.ZodArray<z.ZodObject<{
276
268
  path: z.ZodString;
@@ -345,6 +337,23 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
345
337
  "cli-base": "cli-base";
346
338
  }>;
347
339
  harnessVersion: z.ZodString;
340
+ instructionDelivery: z.ZodDiscriminatedUnion<[z.ZodObject<{
341
+ kind: z.ZodLiteral<"argv-append">;
342
+ }, z.core.$strict>, z.ZodObject<{
343
+ kind: z.ZodLiteral<"stdin-utf8">;
344
+ }, z.core.$strict>, z.ZodObject<{
345
+ kind: z.ZodLiteral<"utf8-file">;
346
+ env: z.ZodLiteral<"TANGLE_CANDIDATE_TASK_PATH">;
347
+ path: z.ZodLiteral<"/tangle/input/task.txt">;
348
+ }, z.core.$strict>], "kind">;
349
+ limits: z.ZodObject<{
350
+ timeoutMs: z.ZodNumber;
351
+ maxSteps: z.ZodNumber;
352
+ maxModelCalls: z.ZodNumber;
353
+ maxInputTokens: z.ZodNumber;
354
+ maxOutputTokens: z.ZodNumber;
355
+ maxCostUsd: z.ZodNumber;
356
+ }, z.core.$strict>;
348
357
  container: z.ZodObject<{
349
358
  image: z.ZodString;
350
359
  indexDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -402,24 +411,6 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
402
411
  requested: z.ZodString;
403
412
  }, z.core.$strict>], "kind">>;
404
413
  }, z.core.$strict>;
405
- grader: z.ZodObject<{
406
- name: z.ZodString;
407
- version: z.ZodString;
408
- artifact: z.ZodObject<{
409
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
410
- kind: z.ZodLiteral<"s3">;
411
- bucket: z.ZodString;
412
- key: z.ZodString;
413
- region: z.ZodOptional<z.ZodString>;
414
- }, z.core.$strict>, z.ZodObject<{
415
- kind: z.ZodLiteral<"ipfs">;
416
- cid: z.ZodString;
417
- path: z.ZodOptional<z.ZodString>;
418
- }, z.core.$strict>], "kind">;
419
- sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
420
- byteLength: z.ZodNumber;
421
- }, z.core.$strict>;
422
- }, z.core.$strict>;
423
414
  launch: z.ZodObject<{
424
415
  executable: z.ZodString;
425
416
  args: z.ZodArray<z.ZodObject<{
@@ -469,11 +460,9 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
469
460
  emptyStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
470
461
  }, z.core.$strict>;
471
462
  beforeState: z.ZodObject<{
472
- schemaVersion: z.ZodLiteral<2>;
473
463
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
474
464
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
475
465
  material: z.ZodObject<{
476
- schemaVersion: z.ZodLiteral<2>;
477
466
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
478
467
  files: z.ZodArray<z.ZodObject<{
479
468
  path: z.ZodString;
@@ -523,24 +512,15 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
523
512
  }, z.core.$strict>;
524
513
  seedDigest: z.ZodOptional<z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>>;
525
514
  }, z.core.$strict>], "mode">;
526
- limits: z.ZodObject<{
527
- timeoutMs: z.ZodNumber;
528
- maxSteps: z.ZodNumber;
529
- maxModelCalls: z.ZodNumber;
530
- maxInputTokens: z.ZodNumber;
531
- maxOutputTokens: z.ZodNumber;
532
- maxCostUsd: z.ZodNumber;
533
- }, z.core.$strict>;
534
515
  network: z.ZodObject<{
535
516
  mode: z.ZodLiteral<"disabled">;
536
517
  }, z.core.$strict>;
537
518
  }, z.core.$strict>;
538
519
  export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
539
- schemaVersion: z.ZodLiteral<1>;
540
520
  kind: z.ZodLiteral<"agent-profile-workspace-plan">;
541
521
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
542
522
  material: z.ZodType<{
543
- version: 1;
523
+ sourceProfileDigest: `sha256:${string}`;
544
524
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
545
525
  files: {
546
526
  relPath: string;
@@ -560,7 +540,7 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
560
540
  reason: string;
561
541
  }[];
562
542
  }, unknown, z.core.$ZodTypeInternals<{
563
- version: 1;
543
+ sourceProfileDigest: `sha256:${string}`;
564
544
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
565
545
  files: {
566
546
  relPath: string;
@@ -601,14 +581,12 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
601
581
  }, z.core.$strict>]>;
602
582
  }, z.core.$strict>;
603
583
  export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
604
- schemaVersion: z.ZodLiteral<1>;
605
584
  kind: z.ZodLiteral<"agent-candidate-profile-activation">;
606
585
  profilePlan: z.ZodObject<{
607
- schemaVersion: z.ZodLiteral<1>;
608
586
  kind: z.ZodLiteral<"agent-profile-workspace-plan">;
609
587
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
610
588
  material: z.ZodType<{
611
- version: 1;
589
+ sourceProfileDigest: `sha256:${string}`;
612
590
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
613
591
  files: {
614
592
  relPath: string;
@@ -628,7 +606,7 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
628
606
  reason: string;
629
607
  }[];
630
608
  }, unknown, z.core.$ZodTypeInternals<{
631
- version: 1;
609
+ sourceProfileDigest: `sha256:${string}`;
632
610
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
633
611
  files: {
634
612
  relPath: string;
@@ -676,105 +654,24 @@ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
676
654
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
677
655
  }, z.core.$strict>;
678
656
  export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
679
- schemaVersion: z.ZodLiteral<2>;
680
657
  kind: z.ZodLiteral<"agent-candidate-execution-plan">;
681
658
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
682
659
  material: z.ZodType<{
683
- schemaVersion: 2;
684
660
  kind: "agent-candidate-execution-plan-material";
685
- bundleDigest: `sha256:${string}`;
686
- executionId: string;
687
- attempt: {
688
- number: number;
689
- maxAttempts: number;
690
- retryPolicy: "none" | "pre-model-infrastructure-only";
691
- };
692
- task: {
693
- benchmark: string;
694
- benchmarkVersion: string;
695
- taskId: string;
696
- splitDigest: `sha256:${string}`;
697
- instruction: {
698
- encoding: "utf8";
699
- sha256: `sha256:${string}`;
700
- byteLength: number;
701
- delivery: {
702
- kind: "argv-append";
703
- } | {
704
- kind: "stdin-utf8";
705
- } | {
706
- kind: "utf8-file";
707
- env: "TANGLE_CANDIDATE_TASK_PATH";
708
- path: "/tangle/input/task.txt";
709
- };
710
- };
711
- outcome: {
712
- kind: "workspace";
713
- } | {
714
- kind: "output";
715
- mediaType: string;
716
- maxBytes: number;
717
- };
718
- workspace: {
719
- schemaVersion: 2;
720
- kind: "agent-candidate-workspace-snapshot";
721
- digest: `sha256:${string}`;
722
- material: {
723
- schemaVersion: 2;
724
- kind: "agent-candidate-workspace-manifest";
725
- files: {
726
- path: string;
727
- mode: number;
728
- sha256: `sha256:${string}`;
729
- byteLength: number;
730
- }[];
731
- };
732
- manifest: {
733
- locator: {
734
- kind: "s3";
735
- bucket: string;
736
- key: string;
737
- region?: string | undefined;
738
- } | {
739
- kind: "ipfs";
740
- cid: string;
741
- path?: string | undefined;
742
- };
743
- sha256: `sha256:${string}`;
744
- byteLength: number;
745
- } | {
746
- encoding: "base64";
747
- content: string;
748
- sha256: `sha256:${string}`;
749
- byteLength: number;
750
- };
751
- archive: {
752
- locator: {
753
- kind: "s3";
754
- bucket: string;
755
- key: string;
756
- region?: string | undefined;
757
- } | {
758
- kind: "ipfs";
759
- cid: string;
760
- path?: string | undefined;
761
- };
762
- sha256: `sha256:${string}`;
763
- byteLength: number;
764
- } | {
765
- encoding: "base64";
766
- content: string;
767
- sha256: `sha256:${string}`;
768
- byteLength: number;
769
- };
770
- };
771
- repository?: {
772
- identity: string;
773
- rootIdentity: string;
774
- baseCommit: string;
775
- baseTree: string;
776
- } | undefined;
661
+ runCell: {
662
+ kind: "agent-candidate-run-cell";
663
+ experimentDigest: `sha256:${string}`;
664
+ arm: "candidate" | "baseline";
665
+ bundleDigest: `sha256:${string}`;
666
+ suiteDigest: `sha256:${string}`;
667
+ taskDigest: `sha256:${string}`;
668
+ taskIndex: number;
669
+ repetition: number;
670
+ seed: number;
671
+ attempt: number;
672
+ digest: `sha256:${string}`;
777
673
  };
674
+ executionId: string;
778
675
  workspaces: {
779
676
  taskRoot: string;
780
677
  candidateRoot?: string | undefined;
@@ -787,6 +684,23 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
787
684
  };
788
685
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
789
686
  harnessVersion: string;
687
+ instructionDelivery: {
688
+ kind: "argv-append";
689
+ } | {
690
+ kind: "stdin-utf8";
691
+ } | {
692
+ kind: "utf8-file";
693
+ env: "TANGLE_CANDIDATE_TASK_PATH";
694
+ path: "/tangle/input/task.txt";
695
+ };
696
+ limits: {
697
+ timeoutMs: number;
698
+ maxSteps: number;
699
+ maxModelCalls: number;
700
+ maxInputTokens: number;
701
+ maxOutputTokens: number;
702
+ maxCostUsd: number;
703
+ };
790
704
  container: {
791
705
  image: string;
792
706
  indexDigest: `sha256:${string}`;
@@ -833,24 +747,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
833
747
  requested: string;
834
748
  })[];
835
749
  };
836
- grader: {
837
- name: string;
838
- version: string;
839
- artifact: {
840
- locator: {
841
- kind: "s3";
842
- bucket: string;
843
- key: string;
844
- region?: string | undefined;
845
- } | {
846
- kind: "ipfs";
847
- cid: string;
848
- path?: string | undefined;
849
- };
850
- sha256: `sha256:${string}`;
851
- byteLength: number;
852
- };
853
- };
854
750
  launch: {
855
751
  executable: string;
856
752
  args: {
@@ -894,11 +790,9 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
894
790
  emptyStateDigest: `sha256:${string}`;
895
791
  };
896
792
  beforeState: {
897
- schemaVersion: 2;
898
793
  kind: "agent-candidate-workspace-snapshot";
899
794
  digest: `sha256:${string}`;
900
795
  material: {
901
- schemaVersion: 2;
902
796
  kind: "agent-candidate-workspace-manifest";
903
797
  files: {
904
798
  path: string;
@@ -950,23 +844,13 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
950
844
  } | {
951
845
  mode: "disabled";
952
846
  };
953
- limits: {
954
- timeoutMs: number;
955
- maxSteps: number;
956
- maxModelCalls: number;
957
- maxInputTokens: number;
958
- maxOutputTokens: number;
959
- maxCostUsd: number;
960
- };
961
847
  network: {
962
848
  mode: "disabled";
963
849
  };
964
850
  candidateWorkspace?: {
965
- schemaVersion: 2;
966
851
  kind: "agent-candidate-workspace-snapshot";
967
852
  digest: `sha256:${string}`;
968
853
  material: {
969
- schemaVersion: 2;
970
854
  kind: "agent-candidate-workspace-manifest";
971
855
  files: {
972
856
  path: string;
@@ -1016,101 +900,21 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1016
900
  } | undefined;
1017
901
  knowledgeManifestDigest?: `sha256:${string}` | undefined;
1018
902
  }, unknown, z.core.$ZodTypeInternals<{
1019
- schemaVersion: 2;
1020
903
  kind: "agent-candidate-execution-plan-material";
1021
- bundleDigest: `sha256:${string}`;
1022
- executionId: string;
1023
- attempt: {
1024
- number: number;
1025
- maxAttempts: number;
1026
- retryPolicy: "none" | "pre-model-infrastructure-only";
1027
- };
1028
- task: {
1029
- benchmark: string;
1030
- benchmarkVersion: string;
1031
- taskId: string;
1032
- splitDigest: `sha256:${string}`;
1033
- instruction: {
1034
- encoding: "utf8";
1035
- sha256: `sha256:${string}`;
1036
- byteLength: number;
1037
- delivery: {
1038
- kind: "argv-append";
1039
- } | {
1040
- kind: "stdin-utf8";
1041
- } | {
1042
- kind: "utf8-file";
1043
- env: "TANGLE_CANDIDATE_TASK_PATH";
1044
- path: "/tangle/input/task.txt";
1045
- };
1046
- };
1047
- outcome: {
1048
- kind: "workspace";
1049
- } | {
1050
- kind: "output";
1051
- mediaType: string;
1052
- maxBytes: number;
1053
- };
1054
- workspace: {
1055
- schemaVersion: 2;
1056
- kind: "agent-candidate-workspace-snapshot";
1057
- digest: `sha256:${string}`;
1058
- material: {
1059
- schemaVersion: 2;
1060
- kind: "agent-candidate-workspace-manifest";
1061
- files: {
1062
- path: string;
1063
- mode: number;
1064
- sha256: `sha256:${string}`;
1065
- byteLength: number;
1066
- }[];
1067
- };
1068
- manifest: {
1069
- locator: {
1070
- kind: "s3";
1071
- bucket: string;
1072
- key: string;
1073
- region?: string | undefined;
1074
- } | {
1075
- kind: "ipfs";
1076
- cid: string;
1077
- path?: string | undefined;
1078
- };
1079
- sha256: `sha256:${string}`;
1080
- byteLength: number;
1081
- } | {
1082
- encoding: "base64";
1083
- content: string;
1084
- sha256: `sha256:${string}`;
1085
- byteLength: number;
1086
- };
1087
- archive: {
1088
- locator: {
1089
- kind: "s3";
1090
- bucket: string;
1091
- key: string;
1092
- region?: string | undefined;
1093
- } | {
1094
- kind: "ipfs";
1095
- cid: string;
1096
- path?: string | undefined;
1097
- };
1098
- sha256: `sha256:${string}`;
1099
- byteLength: number;
1100
- } | {
1101
- encoding: "base64";
1102
- content: string;
1103
- sha256: `sha256:${string}`;
1104
- byteLength: number;
1105
- };
1106
- };
1107
- repository?: {
1108
- identity: string;
1109
- rootIdentity: string;
1110
- baseCommit: string;
1111
- baseTree: string;
1112
- } | undefined;
904
+ runCell: {
905
+ kind: "agent-candidate-run-cell";
906
+ experimentDigest: `sha256:${string}`;
907
+ arm: "candidate" | "baseline";
908
+ bundleDigest: `sha256:${string}`;
909
+ suiteDigest: `sha256:${string}`;
910
+ taskDigest: `sha256:${string}`;
911
+ taskIndex: number;
912
+ repetition: number;
913
+ seed: number;
914
+ attempt: number;
915
+ digest: `sha256:${string}`;
1113
916
  };
917
+ executionId: string;
1114
918
  workspaces: {
1115
919
  taskRoot: string;
1116
920
  candidateRoot?: string | undefined;
@@ -1123,6 +927,23 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1123
927
  };
1124
928
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1125
929
  harnessVersion: string;
930
+ instructionDelivery: {
931
+ kind: "argv-append";
932
+ } | {
933
+ kind: "stdin-utf8";
934
+ } | {
935
+ kind: "utf8-file";
936
+ env: "TANGLE_CANDIDATE_TASK_PATH";
937
+ path: "/tangle/input/task.txt";
938
+ };
939
+ limits: {
940
+ timeoutMs: number;
941
+ maxSteps: number;
942
+ maxModelCalls: number;
943
+ maxInputTokens: number;
944
+ maxOutputTokens: number;
945
+ maxCostUsd: number;
946
+ };
1126
947
  container: {
1127
948
  image: string;
1128
949
  indexDigest: `sha256:${string}`;
@@ -1169,24 +990,6 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1169
990
  requested: string;
1170
991
  })[];
1171
992
  };
1172
- grader: {
1173
- name: string;
1174
- version: string;
1175
- artifact: {
1176
- locator: {
1177
- kind: "s3";
1178
- bucket: string;
1179
- key: string;
1180
- region?: string | undefined;
1181
- } | {
1182
- kind: "ipfs";
1183
- cid: string;
1184
- path?: string | undefined;
1185
- };
1186
- sha256: `sha256:${string}`;
1187
- byteLength: number;
1188
- };
1189
- };
1190
993
  launch: {
1191
994
  executable: string;
1192
995
  args: {
@@ -1230,11 +1033,9 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1230
1033
  emptyStateDigest: `sha256:${string}`;
1231
1034
  };
1232
1035
  beforeState: {
1233
- schemaVersion: 2;
1234
1036
  kind: "agent-candidate-workspace-snapshot";
1235
1037
  digest: `sha256:${string}`;
1236
1038
  material: {
1237
- schemaVersion: 2;
1238
1039
  kind: "agent-candidate-workspace-manifest";
1239
1040
  files: {
1240
1041
  path: string;
@@ -1286,23 +1087,13 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1286
1087
  } | {
1287
1088
  mode: "disabled";
1288
1089
  };
1289
- limits: {
1290
- timeoutMs: number;
1291
- maxSteps: number;
1292
- maxModelCalls: number;
1293
- maxInputTokens: number;
1294
- maxOutputTokens: number;
1295
- maxCostUsd: number;
1296
- };
1297
1090
  network: {
1298
1091
  mode: "disabled";
1299
1092
  };
1300
1093
  candidateWorkspace?: {
1301
- schemaVersion: 2;
1302
1094
  kind: "agent-candidate-workspace-snapshot";
1303
1095
  digest: `sha256:${string}`;
1304
1096
  material: {
1305
- schemaVersion: 2;
1306
1097
  kind: "agent-candidate-workspace-manifest";
1307
1098
  files: {
1308
1099
  path: string;