@tangle-network/agent-interface 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -66,13 +66,13 @@ const provider: AgentEnvironmentProvider = {
66
66
 
67
67
  `AgentCandidateBundle` is the portable output of an improvement run: a recursively strict profile, an explicit disabled/no-op/changed code result, a shell-free launch, optional knowledge, isolated memory, ancestry, and spend.
68
68
  Execution either pins a candidate-selected container in the bundle or delegates container selection to the benchmark evaluator.
69
- For evaluator-owned task images, the protected runtime creates a separate plan for every candidate/task pair and binds the root repository, exact Git base, exact UTF-8 instruction bytes, selected OCI index, manifest, platform, task workspace, model, launch, counted attempt, retry policy, and tool-step limit before execution.
69
+ For evaluator-owned task images, the protected runtime creates a separate plan for every candidate/task pair and binds the exact result shape (workspace change or bounded typed output), UTF-8 instruction bytes, selected OCI index, manifest, platform, task workspace, model, launch, counted attempt, retry policy, and tool-step limit before execution.
70
70
  Instruction delivery is closed to one final argv element, exact stdin bytes followed by EOF, or a fixed file path exposed through `TANGLE_CANDIDATE_TASK_PATH`.
71
71
  That plan also binds the profile target workspace and every mounted path; benchmark adapters must restore or exclude task-targeted profile paths before capturing the submitted solution patch.
72
72
  Resources are embedded, addressed through closed S3/IPFS locators, or pinned to a full GitHub commit plus content digest.
73
73
  Candidate-authored process configuration is explicitly public; model authorization is evaluator-mediated and secret values never belong in the bundle.
74
74
  Because prompts and inline files are arbitrary text, producers must also run their normal secret scanner before persistence.
75
- Candidate v1 rejects unregistered backend extensions instead of accepting an untyped behavior or credential channel.
75
+ Candidate bundles reject unregistered backend extensions instead of accepting an untyped behavior or credential channel.
76
76
 
77
77
  `agentCandidateBundleSchema.parse()` proves only that the wire shape is valid.
78
78
  Before execution, an integrity verifier must omit only the top-level `digest`, canonicalize the rest with RFC 8785, hash the UTF-8 bytes to lowercase `sha256:<hex>`, verify every artifact, apply any Git patch to the declared base tree, and emit an `AgentCandidateMaterializationReceipt`.
@@ -60,25 +60,25 @@ export declare const agentCandidateCapturedArtifactSchema: z.ZodUnion<readonly [
60
60
  byteLength: z.ZodNumber;
61
61
  }, z.core.$strict>]>;
62
62
  export declare const agentCandidateWorkspaceManifestMaterialSchema: z.ZodObject<{
63
- schemaVersion: z.ZodLiteral<1>;
63
+ schemaVersion: z.ZodLiteral<2>;
64
64
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
65
65
  files: z.ZodArray<z.ZodObject<{
66
66
  path: z.ZodString;
67
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
67
+ mode: z.ZodNumber;
68
68
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
69
69
  byteLength: z.ZodNumber;
70
70
  }, z.core.$strict>>;
71
71
  }, z.core.$strict>;
72
72
  export declare const agentCandidateWorkspaceSnapshotEvidenceSchema: z.ZodObject<{
73
- schemaVersion: z.ZodLiteral<1>;
73
+ schemaVersion: z.ZodLiteral<2>;
74
74
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
75
75
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
76
76
  material: z.ZodObject<{
77
- schemaVersion: z.ZodLiteral<1>;
77
+ schemaVersion: z.ZodLiteral<2>;
78
78
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
79
79
  files: z.ZodArray<z.ZodObject<{
80
80
  path: z.ZodString;
81
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
81
+ mode: z.ZodNumber;
82
82
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
83
83
  byteLength: z.ZodNumber;
84
84
  }, z.core.$strict>>;
@@ -65,14 +65,14 @@ export const agentCandidateCapturedArtifactSchema = z.union([
65
65
  ]);
66
66
  export const agentCandidateWorkspaceManifestMaterialSchema = z
67
67
  .object({
68
- schemaVersion: z.literal(1),
68
+ schemaVersion: z.literal(2),
69
69
  kind: z.literal("agent-candidate-workspace-manifest"),
70
70
  files: z.array(z
71
71
  .object({
72
72
  path: z
73
73
  .string()
74
74
  .refine((value) => isSafeRelativePath(value, false), "workspace manifest paths must be canonical and relative"),
75
- mode: z.union([z.literal(0o644), z.literal(0o755)]),
75
+ mode: z.number().int().min(0).max(0o777),
76
76
  sha256: sha256DigestSchema,
77
77
  byteLength: z.number().int().nonnegative(),
78
78
  })
@@ -94,7 +94,7 @@ export const agentCandidateWorkspaceManifestMaterialSchema = z
94
94
  });
95
95
  export const agentCandidateWorkspaceSnapshotEvidenceSchema = z
96
96
  .object({
97
- schemaVersion: z.literal(1),
97
+ schemaVersion: z.literal(2),
98
98
  kind: z.literal("agent-candidate-workspace-snapshot"),
99
99
  digest: sha256DigestSchema,
100
100
  material: agentCandidateWorkspaceManifestMaterialSchema,
@@ -235,15 +235,15 @@ export declare const agentCandidateExecutionSchema: z.ZodObject<{
235
235
  kind: z.ZodLiteral<"evaluator-task-container">;
236
236
  }, z.core.$strict>], "kind">;
237
237
  workspace: z.ZodOptional<z.ZodObject<{
238
- schemaVersion: z.ZodLiteral<1>;
238
+ schemaVersion: z.ZodLiteral<2>;
239
239
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
240
240
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
241
241
  material: z.ZodObject<{
242
- schemaVersion: z.ZodLiteral<1>;
242
+ schemaVersion: z.ZodLiteral<2>;
243
243
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
244
244
  files: z.ZodArray<z.ZodObject<{
245
245
  path: z.ZodString;
246
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
246
+ mode: z.ZodNumber;
247
247
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
248
248
  byteLength: z.ZodNumber;
249
249
  }, z.core.$strict>>;
@@ -88,15 +88,15 @@ export declare const agentCandidateEffectiveMemorySchema: z.ZodDiscriminatedUnio
88
88
  emptyStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
89
89
  }, z.core.$strict>;
90
90
  beforeState: z.ZodObject<{
91
- schemaVersion: z.ZodLiteral<1>;
91
+ schemaVersion: z.ZodLiteral<2>;
92
92
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
93
93
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
94
94
  material: z.ZodObject<{
95
- schemaVersion: z.ZodLiteral<1>;
95
+ schemaVersion: z.ZodLiteral<2>;
96
96
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
97
97
  files: z.ZodArray<z.ZodObject<{
98
98
  path: z.ZodString;
99
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
99
+ mode: z.ZodNumber;
100
100
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
101
101
  byteLength: z.ZodNumber;
102
102
  }, z.core.$strict>>;
@@ -150,8 +150,15 @@ export declare const agentCandidateExecutionLimitsSchema: z.ZodObject<{
150
150
  maxOutputTokens: z.ZodNumber;
151
151
  maxCostUsd: z.ZodNumber;
152
152
  }, z.core.$strict>;
153
+ export declare const agentCandidateTaskOutcomeSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
154
+ kind: z.ZodLiteral<"workspace">;
155
+ }, z.core.$strict>, z.ZodObject<{
156
+ kind: z.ZodLiteral<"output">;
157
+ mediaType: z.ZodString;
158
+ maxBytes: z.ZodNumber;
159
+ }, z.core.$strict>], "kind">;
153
160
  export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
154
- schemaVersion: z.ZodLiteral<1>;
161
+ schemaVersion: z.ZodLiteral<2>;
155
162
  kind: z.ZodLiteral<"agent-candidate-execution-plan-material">;
156
163
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
157
164
  executionId: z.ZodString;
@@ -182,22 +189,29 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
182
189
  path: z.ZodLiteral<"/tangle/input/task.txt">;
183
190
  }, z.core.$strict>], "kind">;
184
191
  }, z.core.$strict>;
185
- repository: z.ZodObject<{
192
+ repository: z.ZodOptional<z.ZodObject<{
186
193
  identity: z.ZodString;
187
194
  rootIdentity: z.ZodString;
188
195
  baseCommit: z.ZodString;
189
196
  baseTree: z.ZodString;
190
- }, z.core.$strict>;
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">;
191
205
  workspace: z.ZodObject<{
192
- schemaVersion: z.ZodLiteral<1>;
206
+ schemaVersion: z.ZodLiteral<2>;
193
207
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
194
208
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
195
209
  material: z.ZodObject<{
196
- schemaVersion: z.ZodLiteral<1>;
210
+ schemaVersion: z.ZodLiteral<2>;
197
211
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
198
212
  files: z.ZodArray<z.ZodObject<{
199
213
  path: z.ZodString;
200
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
214
+ mode: z.ZodNumber;
201
215
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
202
216
  byteLength: z.ZodNumber;
203
217
  }, z.core.$strict>>;
@@ -252,15 +266,15 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
252
266
  "git-patch": "git-patch";
253
267
  }>;
254
268
  candidateWorkspace: z.ZodOptional<z.ZodObject<{
255
- schemaVersion: z.ZodLiteral<1>;
269
+ schemaVersion: z.ZodLiteral<2>;
256
270
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
257
271
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
258
272
  material: z.ZodObject<{
259
- schemaVersion: z.ZodLiteral<1>;
273
+ schemaVersion: z.ZodLiteral<2>;
260
274
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
261
275
  files: z.ZodArray<z.ZodObject<{
262
276
  path: z.ZodString;
263
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
277
+ mode: z.ZodNumber;
264
278
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
265
279
  byteLength: z.ZodNumber;
266
280
  }, z.core.$strict>>;
@@ -388,6 +402,24 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
388
402
  requested: z.ZodString;
389
403
  }, z.core.$strict>], "kind">>;
390
404
  }, 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>;
391
423
  launch: z.ZodObject<{
392
424
  executable: z.ZodString;
393
425
  args: z.ZodArray<z.ZodObject<{
@@ -437,15 +469,15 @@ export declare const agentCandidateExecutionPlanMaterialSchema: z.ZodObject<{
437
469
  emptyStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
438
470
  }, z.core.$strict>;
439
471
  beforeState: z.ZodObject<{
440
- schemaVersion: z.ZodLiteral<1>;
472
+ schemaVersion: z.ZodLiteral<2>;
441
473
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
442
474
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
443
475
  material: z.ZodObject<{
444
- schemaVersion: z.ZodLiteral<1>;
476
+ schemaVersion: z.ZodLiteral<2>;
445
477
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
446
478
  files: z.ZodArray<z.ZodObject<{
447
479
  path: z.ZodString;
448
- mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
480
+ mode: z.ZodNumber;
449
481
  sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
450
482
  byteLength: z.ZodNumber;
451
483
  }, z.core.$strict>>;
@@ -568,12 +600,87 @@ export declare const agentCandidateProfilePlanEvidenceSchema: z.ZodObject<{
568
600
  byteLength: z.ZodNumber;
569
601
  }, z.core.$strict>]>;
570
602
  }, z.core.$strict>;
571
- export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
603
+ export declare const agentCandidateProfileActivationSchema: z.ZodObject<{
572
604
  schemaVersion: z.ZodLiteral<1>;
605
+ kind: z.ZodLiteral<"agent-candidate-profile-activation">;
606
+ profilePlan: z.ZodObject<{
607
+ schemaVersion: z.ZodLiteral<1>;
608
+ kind: z.ZodLiteral<"agent-profile-workspace-plan">;
609
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
610
+ material: z.ZodType<{
611
+ version: 1;
612
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
613
+ files: {
614
+ relPath: string;
615
+ mode: number;
616
+ contentSha256: `sha256:${string}`;
617
+ }[];
618
+ env: Record<string, {
619
+ kind: "public";
620
+ value: string;
621
+ }>;
622
+ flags: {
623
+ kind: "public";
624
+ value: string;
625
+ }[];
626
+ unsupported: {
627
+ dimension: string;
628
+ reason: string;
629
+ }[];
630
+ }, unknown, z.core.$ZodTypeInternals<{
631
+ version: 1;
632
+ harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
633
+ files: {
634
+ relPath: string;
635
+ mode: number;
636
+ contentSha256: `sha256:${string}`;
637
+ }[];
638
+ env: Record<string, {
639
+ kind: "public";
640
+ value: string;
641
+ }>;
642
+ flags: {
643
+ kind: "public";
644
+ value: string;
645
+ }[];
646
+ unsupported: {
647
+ dimension: string;
648
+ reason: string;
649
+ }[];
650
+ }, unknown>>;
651
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
652
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
653
+ kind: z.ZodLiteral<"s3">;
654
+ bucket: z.ZodString;
655
+ key: z.ZodString;
656
+ region: z.ZodOptional<z.ZodString>;
657
+ }, z.core.$strict>, z.ZodObject<{
658
+ kind: z.ZodLiteral<"ipfs">;
659
+ cid: z.ZodString;
660
+ path: z.ZodOptional<z.ZodString>;
661
+ }, z.core.$strict>], "kind">;
662
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
663
+ byteLength: z.ZodNumber;
664
+ }, z.core.$strict>, z.ZodObject<{
665
+ encoding: z.ZodLiteral<"base64">;
666
+ content: z.ZodString;
667
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
668
+ byteLength: z.ZodNumber;
669
+ }, z.core.$strict>]>;
670
+ }, z.core.$strict>;
671
+ files: z.ZodArray<z.ZodObject<{
672
+ path: z.ZodString;
673
+ mode: z.ZodNumber;
674
+ content: z.ZodString;
675
+ }, z.core.$strict>>;
676
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
677
+ }, z.core.$strict>;
678
+ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
679
+ schemaVersion: z.ZodLiteral<2>;
573
680
  kind: z.ZodLiteral<"agent-candidate-execution-plan">;
574
681
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
575
682
  material: z.ZodType<{
576
- schemaVersion: 1;
683
+ schemaVersion: 2;
577
684
  kind: "agent-candidate-execution-plan-material";
578
685
  bundleDigest: `sha256:${string}`;
579
686
  executionId: string;
@@ -601,22 +708,23 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
601
708
  path: "/tangle/input/task.txt";
602
709
  };
603
710
  };
604
- repository: {
605
- identity: string;
606
- rootIdentity: string;
607
- baseCommit: string;
608
- baseTree: string;
711
+ outcome: {
712
+ kind: "workspace";
713
+ } | {
714
+ kind: "output";
715
+ mediaType: string;
716
+ maxBytes: number;
609
717
  };
610
718
  workspace: {
611
- schemaVersion: 1;
719
+ schemaVersion: 2;
612
720
  kind: "agent-candidate-workspace-snapshot";
613
721
  digest: `sha256:${string}`;
614
722
  material: {
615
- schemaVersion: 1;
723
+ schemaVersion: 2;
616
724
  kind: "agent-candidate-workspace-manifest";
617
725
  files: {
618
726
  path: string;
619
- mode: 420 | 493;
727
+ mode: number;
620
728
  sha256: `sha256:${string}`;
621
729
  byteLength: number;
622
730
  }[];
@@ -660,6 +768,12 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
660
768
  byteLength: number;
661
769
  };
662
770
  };
771
+ repository?: {
772
+ identity: string;
773
+ rootIdentity: string;
774
+ baseCommit: string;
775
+ baseTree: string;
776
+ } | undefined;
663
777
  };
664
778
  workspaces: {
665
779
  taskRoot: string;
@@ -719,6 +833,24 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
719
833
  requested: string;
720
834
  })[];
721
835
  };
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
+ };
722
854
  launch: {
723
855
  executable: string;
724
856
  args: {
@@ -762,15 +894,15 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
762
894
  emptyStateDigest: `sha256:${string}`;
763
895
  };
764
896
  beforeState: {
765
- schemaVersion: 1;
897
+ schemaVersion: 2;
766
898
  kind: "agent-candidate-workspace-snapshot";
767
899
  digest: `sha256:${string}`;
768
900
  material: {
769
- schemaVersion: 1;
901
+ schemaVersion: 2;
770
902
  kind: "agent-candidate-workspace-manifest";
771
903
  files: {
772
904
  path: string;
773
- mode: 420 | 493;
905
+ mode: number;
774
906
  sha256: `sha256:${string}`;
775
907
  byteLength: number;
776
908
  }[];
@@ -830,15 +962,15 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
830
962
  mode: "disabled";
831
963
  };
832
964
  candidateWorkspace?: {
833
- schemaVersion: 1;
965
+ schemaVersion: 2;
834
966
  kind: "agent-candidate-workspace-snapshot";
835
967
  digest: `sha256:${string}`;
836
968
  material: {
837
- schemaVersion: 1;
969
+ schemaVersion: 2;
838
970
  kind: "agent-candidate-workspace-manifest";
839
971
  files: {
840
972
  path: string;
841
- mode: 420 | 493;
973
+ mode: number;
842
974
  sha256: `sha256:${string}`;
843
975
  byteLength: number;
844
976
  }[];
@@ -884,7 +1016,7 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
884
1016
  } | undefined;
885
1017
  knowledgeManifestDigest?: `sha256:${string}` | undefined;
886
1018
  }, unknown, z.core.$ZodTypeInternals<{
887
- schemaVersion: 1;
1019
+ schemaVersion: 2;
888
1020
  kind: "agent-candidate-execution-plan-material";
889
1021
  bundleDigest: `sha256:${string}`;
890
1022
  executionId: string;
@@ -912,22 +1044,23 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
912
1044
  path: "/tangle/input/task.txt";
913
1045
  };
914
1046
  };
915
- repository: {
916
- identity: string;
917
- rootIdentity: string;
918
- baseCommit: string;
919
- baseTree: string;
1047
+ outcome: {
1048
+ kind: "workspace";
1049
+ } | {
1050
+ kind: "output";
1051
+ mediaType: string;
1052
+ maxBytes: number;
920
1053
  };
921
1054
  workspace: {
922
- schemaVersion: 1;
1055
+ schemaVersion: 2;
923
1056
  kind: "agent-candidate-workspace-snapshot";
924
1057
  digest: `sha256:${string}`;
925
1058
  material: {
926
- schemaVersion: 1;
1059
+ schemaVersion: 2;
927
1060
  kind: "agent-candidate-workspace-manifest";
928
1061
  files: {
929
1062
  path: string;
930
- mode: 420 | 493;
1063
+ mode: number;
931
1064
  sha256: `sha256:${string}`;
932
1065
  byteLength: number;
933
1066
  }[];
@@ -971,6 +1104,12 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
971
1104
  byteLength: number;
972
1105
  };
973
1106
  };
1107
+ repository?: {
1108
+ identity: string;
1109
+ rootIdentity: string;
1110
+ baseCommit: string;
1111
+ baseTree: string;
1112
+ } | undefined;
974
1113
  };
975
1114
  workspaces: {
976
1115
  taskRoot: string;
@@ -1030,6 +1169,24 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1030
1169
  requested: string;
1031
1170
  })[];
1032
1171
  };
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
+ };
1033
1190
  launch: {
1034
1191
  executable: string;
1035
1192
  args: {
@@ -1073,15 +1230,15 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1073
1230
  emptyStateDigest: `sha256:${string}`;
1074
1231
  };
1075
1232
  beforeState: {
1076
- schemaVersion: 1;
1233
+ schemaVersion: 2;
1077
1234
  kind: "agent-candidate-workspace-snapshot";
1078
1235
  digest: `sha256:${string}`;
1079
1236
  material: {
1080
- schemaVersion: 1;
1237
+ schemaVersion: 2;
1081
1238
  kind: "agent-candidate-workspace-manifest";
1082
1239
  files: {
1083
1240
  path: string;
1084
- mode: 420 | 493;
1241
+ mode: number;
1085
1242
  sha256: `sha256:${string}`;
1086
1243
  byteLength: number;
1087
1244
  }[];
@@ -1141,15 +1298,15 @@ export declare const agentCandidateExecutionPlanEvidenceSchema: z.ZodObject<{
1141
1298
  mode: "disabled";
1142
1299
  };
1143
1300
  candidateWorkspace?: {
1144
- schemaVersion: 1;
1301
+ schemaVersion: 2;
1145
1302
  kind: "agent-candidate-workspace-snapshot";
1146
1303
  digest: `sha256:${string}`;
1147
1304
  material: {
1148
- schemaVersion: 1;
1305
+ schemaVersion: 2;
1149
1306
  kind: "agent-candidate-workspace-manifest";
1150
1307
  files: {
1151
1308
  path: string;
1152
- mode: 420 | 493;
1309
+ mode: number;
1153
1310
  sha256: `sha256:${string}`;
1154
1311
  byteLength: number;
1155
1312
  }[];