@tangle-network/agent-interface 0.27.1 → 0.28.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.
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { AgentCandidateJsonValue } from "./agent-candidate.js";
3
3
  export declare const agentImprovementMeasuredComparisonSchema: z.ZodObject<{
4
- schemaVersion: z.ZodLiteral<1>;
5
4
  kind: z.ZodLiteral<"agent-improvement-measured-comparison">;
6
5
  benchmark: z.ZodObject<{
7
6
  name: z.ZodString;
@@ -174,7 +173,6 @@ export declare const agentImprovementMeasuredComparisonSchema: z.ZodObject<{
174
173
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<AgentCandidateJsonValue, AgentCandidateJsonValue>>>;
175
174
  }, z.core.$strict>;
176
175
  export declare const agentImprovementProposalSchema: z.ZodObject<{
177
- schemaVersion: z.ZodLiteral<1>;
178
176
  kind: z.ZodLiteral<"agent-improvement-proposal">;
179
177
  runId: z.ZodString;
180
178
  changedSurfaces: z.ZodTuple<[z.ZodEnum<{
@@ -397,7 +395,6 @@ export declare const agentImprovementProposalSchema: z.ZodObject<{
397
395
  }, z.core.$strip>;
398
396
  findings: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodCustom<AgentCandidateJsonValue, AgentCandidateJsonValue>>>;
399
397
  evaluation: z.ZodObject<{
400
- schemaVersion: z.ZodLiteral<1>;
401
398
  kind: z.ZodLiteral<"agent-improvement-measured-comparison">;
402
399
  benchmark: z.ZodObject<{
403
400
  name: z.ZodString;
@@ -570,7 +567,6 @@ export declare const agentImprovementProposalSchema: z.ZodObject<{
570
567
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<AgentCandidateJsonValue, AgentCandidateJsonValue>>>;
571
568
  }, z.core.$strict>;
572
569
  candidateBundle: z.ZodObject<{
573
- schemaVersion: z.ZodLiteral<2>;
574
570
  kind: z.ZodLiteral<"agent-candidate-bundle">;
575
571
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
576
572
  profile: z.ZodObject<{
@@ -921,11 +917,9 @@ export declare const agentImprovementProposalSchema: z.ZodObject<{
921
917
  kind: z.ZodLiteral<"evaluator-task-container">;
922
918
  }, z.core.$strict>], "kind">;
923
919
  workspace: z.ZodOptional<z.ZodObject<{
924
- schemaVersion: z.ZodLiteral<2>;
925
920
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
926
921
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
927
922
  material: z.ZodObject<{
928
- schemaVersion: z.ZodLiteral<2>;
929
923
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
930
924
  files: z.ZodArray<z.ZodObject<{
931
925
  path: z.ZodString;
@@ -981,7 +975,6 @@ export declare const agentImprovementProposalSchema: z.ZodObject<{
981
975
  }, z.core.$strict>;
982
976
  knowledge: z.ZodOptional<z.ZodObject<{
983
977
  candidate: z.ZodObject<{
984
- schemaVersion: z.ZodLiteral<1>;
985
978
  kind: z.ZodLiteral<"knowledge-improvement-candidate">;
986
979
  runId: z.ZodString;
987
980
  candidateId: z.ZodString;
@@ -992,11 +985,9 @@ export declare const agentImprovementProposalSchema: z.ZodObject<{
992
985
  promotionPlanHash: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
993
986
  }, z.core.$strict>;
994
987
  snapshot: z.ZodObject<{
995
- schemaVersion: z.ZodLiteral<2>;
996
988
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
997
989
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
998
990
  material: z.ZodObject<{
999
- schemaVersion: z.ZodLiteral<2>;
1000
991
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1001
992
  files: z.ZodArray<z.ZodObject<{
1002
993
  path: z.ZodString;
@@ -1141,7 +1132,6 @@ export declare const agentImprovementProposalSchema: z.ZodObject<{
1141
1132
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1142
1133
  }, z.core.$strict>;
1143
1134
  export declare const agentImprovementReviewSchema: z.ZodObject<{
1144
- schemaVersion: z.ZodLiteral<1>;
1145
1135
  kind: z.ZodLiteral<"agent-improvement-review">;
1146
1136
  proposalDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1147
1137
  candidateBundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -1157,23 +1147,19 @@ export declare const agentImprovementReviewSchema: z.ZodObject<{
1157
1147
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1158
1148
  }, z.core.$strict>;
1159
1149
  export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1160
- schemaVersion: z.ZodLiteral<1>;
1161
1150
  kind: z.ZodLiteral<"agent-candidate-execution-evidence">;
1162
1151
  proposalDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1163
1152
  reviewDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1164
1153
  executionId: z.ZodString;
1165
1154
  succeeded: z.ZodLiteral<true>;
1166
1155
  materializationReceipt: z.ZodObject<{
1167
- schemaVersion: z.ZodLiteral<2>;
1168
1156
  kind: z.ZodLiteral<"agent-candidate-materialization">;
1169
1157
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1170
1158
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1171
1159
  profilePlan: z.ZodObject<{
1172
- schemaVersion: z.ZodLiteral<1>;
1173
1160
  kind: z.ZodLiteral<"agent-profile-workspace-plan">;
1174
1161
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1175
1162
  material: z.ZodType<{
1176
- version: 1;
1177
1163
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1178
1164
  files: {
1179
1165
  relPath: string;
@@ -1193,7 +1179,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1193
1179
  reason: string;
1194
1180
  }[];
1195
1181
  }, unknown, z.core.$ZodTypeInternals<{
1196
- version: 1;
1197
1182
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
1198
1183
  files: {
1199
1184
  relPath: string;
@@ -1234,11 +1219,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1234
1219
  }, z.core.$strict>]>;
1235
1220
  }, z.core.$strict>;
1236
1221
  executionPlan: z.ZodObject<{
1237
- schemaVersion: z.ZodLiteral<2>;
1238
1222
  kind: z.ZodLiteral<"agent-candidate-execution-plan">;
1239
1223
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1240
1224
  material: z.ZodType<{
1241
- schemaVersion: 2;
1242
1225
  kind: "agent-candidate-execution-plan-material";
1243
1226
  bundleDigest: `sha256:${string}`;
1244
1227
  executionId: string;
@@ -1274,11 +1257,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1274
1257
  maxBytes: number;
1275
1258
  };
1276
1259
  workspace: {
1277
- schemaVersion: 2;
1278
1260
  kind: "agent-candidate-workspace-snapshot";
1279
1261
  digest: `sha256:${string}`;
1280
1262
  material: {
1281
- schemaVersion: 2;
1282
1263
  kind: "agent-candidate-workspace-manifest";
1283
1264
  files: {
1284
1265
  path: string;
@@ -1452,11 +1433,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1452
1433
  emptyStateDigest: `sha256:${string}`;
1453
1434
  };
1454
1435
  beforeState: {
1455
- schemaVersion: 2;
1456
1436
  kind: "agent-candidate-workspace-snapshot";
1457
1437
  digest: `sha256:${string}`;
1458
1438
  material: {
1459
- schemaVersion: 2;
1460
1439
  kind: "agent-candidate-workspace-manifest";
1461
1440
  files: {
1462
1441
  path: string;
@@ -1520,11 +1499,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1520
1499
  mode: "disabled";
1521
1500
  };
1522
1501
  candidateWorkspace?: {
1523
- schemaVersion: 2;
1524
1502
  kind: "agent-candidate-workspace-snapshot";
1525
1503
  digest: `sha256:${string}`;
1526
1504
  material: {
1527
- schemaVersion: 2;
1528
1505
  kind: "agent-candidate-workspace-manifest";
1529
1506
  files: {
1530
1507
  path: string;
@@ -1574,7 +1551,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1574
1551
  } | undefined;
1575
1552
  knowledgeManifestDigest?: `sha256:${string}` | undefined;
1576
1553
  }, unknown, z.core.$ZodTypeInternals<{
1577
- schemaVersion: 2;
1578
1554
  kind: "agent-candidate-execution-plan-material";
1579
1555
  bundleDigest: `sha256:${string}`;
1580
1556
  executionId: string;
@@ -1610,11 +1586,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1610
1586
  maxBytes: number;
1611
1587
  };
1612
1588
  workspace: {
1613
- schemaVersion: 2;
1614
1589
  kind: "agent-candidate-workspace-snapshot";
1615
1590
  digest: `sha256:${string}`;
1616
1591
  material: {
1617
- schemaVersion: 2;
1618
1592
  kind: "agent-candidate-workspace-manifest";
1619
1593
  files: {
1620
1594
  path: string;
@@ -1788,11 +1762,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1788
1762
  emptyStateDigest: `sha256:${string}`;
1789
1763
  };
1790
1764
  beforeState: {
1791
- schemaVersion: 2;
1792
1765
  kind: "agent-candidate-workspace-snapshot";
1793
1766
  digest: `sha256:${string}`;
1794
1767
  material: {
1795
- schemaVersion: 2;
1796
1768
  kind: "agent-candidate-workspace-manifest";
1797
1769
  files: {
1798
1770
  path: string;
@@ -1856,11 +1828,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1856
1828
  mode: "disabled";
1857
1829
  };
1858
1830
  candidateWorkspace?: {
1859
- schemaVersion: 2;
1860
1831
  kind: "agent-candidate-workspace-snapshot";
1861
1832
  digest: `sha256:${string}`;
1862
1833
  material: {
1863
- schemaVersion: 2;
1864
1834
  kind: "agent-candidate-workspace-manifest";
1865
1835
  files: {
1866
1836
  path: string;
@@ -1931,11 +1901,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
1931
1901
  }, z.core.$strict>]>;
1932
1902
  }, z.core.$strict>;
1933
1903
  candidateWorkspace: z.ZodOptional<z.ZodObject<{
1934
- schemaVersion: z.ZodLiteral<2>;
1935
1904
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1936
1905
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1937
1906
  material: z.ZodObject<{
1938
- schemaVersion: z.ZodLiteral<2>;
1939
1907
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1940
1908
  files: z.ZodArray<z.ZodObject<{
1941
1909
  path: z.ZodString;
@@ -2046,14 +2014,11 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2046
2014
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2047
2015
  }, z.core.$strict>;
2048
2016
  profileActivation: z.ZodObject<{
2049
- schemaVersion: z.ZodLiteral<1>;
2050
2017
  kind: z.ZodLiteral<"agent-candidate-profile-activation">;
2051
2018
  profilePlan: z.ZodObject<{
2052
- schemaVersion: z.ZodLiteral<1>;
2053
2019
  kind: z.ZodLiteral<"agent-profile-workspace-plan">;
2054
2020
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2055
2021
  material: z.ZodType<{
2056
- version: 1;
2057
2022
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
2058
2023
  files: {
2059
2024
  relPath: string;
@@ -2073,7 +2038,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2073
2038
  reason: string;
2074
2039
  }[];
2075
2040
  }, unknown, z.core.$ZodTypeInternals<{
2076
- version: 1;
2077
2041
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
2078
2042
  files: {
2079
2043
  relPath: string;
@@ -2121,7 +2085,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2121
2085
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2122
2086
  }, z.core.$strict>;
2123
2087
  receipt: z.ZodObject<{
2124
- schemaVersion: z.ZodLiteral<3>;
2125
2088
  kind: z.ZodLiteral<"agent-candidate-run">;
2126
2089
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
2127
2090
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -2136,11 +2099,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2136
2099
  resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2137
2100
  beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2138
2101
  afterState: z.ZodObject<{
2139
- schemaVersion: z.ZodLiteral<2>;
2140
2102
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
2141
2103
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2142
2104
  material: z.ZodObject<{
2143
- schemaVersion: z.ZodLiteral<2>;
2144
2105
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
2145
2106
  files: z.ZodArray<z.ZodObject<{
2146
2107
  path: z.ZodString;
@@ -2190,7 +2151,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2190
2151
  }, z.core.$strict>;
2191
2152
  }, z.core.$strict>], "mode">;
2192
2153
  trace: z.ZodObject<{
2193
- schemaVersion: z.ZodLiteral<1>;
2194
2154
  artifact: z.ZodUnion<readonly [z.ZodObject<{
2195
2155
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2196
2156
  kind: z.ZodLiteral<"s3">;
@@ -2240,7 +2200,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2240
2200
  byteLength: z.ZodNumber;
2241
2201
  }, z.core.$strict>;
2242
2202
  modelSettlement: z.ZodObject<{
2243
- schemaVersion: z.ZodLiteral<2>;
2244
2203
  kind: z.ZodLiteral<"agent-candidate-model-settlement">;
2245
2204
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2246
2205
  material: z.ZodType<{
@@ -2278,7 +2237,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2278
2237
  modelCalls: number;
2279
2238
  costUsdNanos: number;
2280
2239
  };
2281
- schemaVersion: 2;
2282
2240
  }, unknown, z.core.$ZodTypeInternals<{
2283
2241
  calls: {
2284
2242
  callId: string;
@@ -2314,7 +2272,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2314
2272
  modelCalls: number;
2315
2273
  costUsdNanos: number;
2316
2274
  };
2317
- schemaVersion: 2;
2318
2275
  }, unknown>>;
2319
2276
  artifact: z.ZodUnion<readonly [z.ZodObject<{
2320
2277
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2337,11 +2294,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2337
2294
  }, z.core.$strict>]>;
2338
2295
  }, z.core.$strict>;
2339
2296
  taskOutcome: z.ZodObject<{
2340
- schemaVersion: z.ZodLiteral<2>;
2341
2297
  kind: z.ZodLiteral<"agent-candidate-task-outcome">;
2342
2298
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2343
2299
  material: z.ZodType<{
2344
- schemaVersion: 2;
2345
2300
  kind: "agent-candidate-task-outcome-material";
2346
2301
  executionPlanDigest: `sha256:${string}`;
2347
2302
  outcome: {
@@ -2359,11 +2314,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2359
2314
  tree: string;
2360
2315
  };
2361
2316
  afterState: {
2362
- schemaVersion: 2;
2363
2317
  kind: "agent-candidate-workspace-snapshot";
2364
2318
  digest: `sha256:${string}`;
2365
2319
  material: {
2366
- schemaVersion: 2;
2367
2320
  kind: "agent-candidate-workspace-manifest";
2368
2321
  files: {
2369
2322
  path: string;
@@ -2450,7 +2403,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2450
2403
  };
2451
2404
  };
2452
2405
  }, unknown, z.core.$ZodTypeInternals<{
2453
- schemaVersion: 2;
2454
2406
  kind: "agent-candidate-task-outcome-material";
2455
2407
  executionPlanDigest: `sha256:${string}`;
2456
2408
  outcome: {
@@ -2468,11 +2420,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2468
2420
  tree: string;
2469
2421
  };
2470
2422
  afterState: {
2471
- schemaVersion: 2;
2472
2423
  kind: "agent-candidate-workspace-snapshot";
2473
2424
  digest: `sha256:${string}`;
2474
2425
  material: {
2475
- schemaVersion: 2;
2476
2426
  kind: "agent-candidate-workspace-manifest";
2477
2427
  files: {
2478
2428
  path: string;
@@ -2580,11 +2530,9 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2580
2530
  }, z.core.$strict>]>;
2581
2531
  }, z.core.$strict>;
2582
2532
  benchmarkResult: z.ZodObject<{
2583
- schemaVersion: z.ZodLiteral<1>;
2584
2533
  kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
2585
2534
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2586
2535
  material: z.ZodType<{
2587
- schemaVersion: 1;
2588
2536
  kind: "agent-candidate-benchmark-result-material";
2589
2537
  executionPlanDigest: `sha256:${string}`;
2590
2538
  taskOutcomeDigest: `sha256:${string}`;
@@ -2633,7 +2581,6 @@ export declare const candidateExecutionEvidenceSchema: z.ZodObject<{
2633
2581
  score: number;
2634
2582
  }[];
2635
2583
  }, unknown, z.core.$ZodTypeInternals<{
2636
- schemaVersion: 1;
2637
2584
  kind: "agent-candidate-benchmark-result-material";
2638
2585
  executionPlanDigest: `sha256:${string}`;
2639
2586
  taskOutcomeDigest: `sha256:${string}`;
@@ -92,7 +92,6 @@ const improvementSurfaceSchema = z.enum([
92
92
  ]);
93
93
  export const agentImprovementMeasuredComparisonSchema = z
94
94
  .object({
95
- schemaVersion: z.literal(1),
96
95
  kind: z.literal("agent-improvement-measured-comparison"),
97
96
  benchmark: z
98
97
  .object({
@@ -239,7 +238,6 @@ export const agentImprovementMeasuredComparisonSchema = z
239
238
  });
240
239
  export const agentImprovementProposalSchema = z
241
240
  .object({
242
- schemaVersion: z.literal(1),
243
241
  kind: z.literal("agent-improvement-proposal"),
244
242
  runId: z.string().min(1).max(200),
245
243
  changedSurfaces: z
@@ -303,7 +301,6 @@ function refineEstimate(estimate, path, ctx) {
303
301
  }
304
302
  export const agentImprovementReviewSchema = z
305
303
  .object({
306
- schemaVersion: z.literal(1),
307
304
  kind: z.literal("agent-improvement-review"),
308
305
  proposalDigest: sha256DigestSchema,
309
306
  candidateBundleDigest: sha256DigestSchema,
@@ -318,7 +315,6 @@ export const agentImprovementReviewSchema = z
318
315
  .refine(isCanonicalJsonValue, "review must contain only RFC 8785 JSON values");
319
316
  export const candidateExecutionEvidenceSchema = z
320
317
  .object({
321
- schemaVersion: z.literal(1),
322
318
  kind: z.literal("agent-candidate-execution-evidence"),
323
319
  proposalDigest: sha256DigestSchema,
324
320
  reviewDigest: sha256DigestSchema,
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const agentCandidateTraceEvidenceSchema: z.ZodObject<{
3
- schemaVersion: z.ZodLiteral<1>;
4
3
  artifact: z.ZodUnion<readonly [z.ZodObject<{
5
4
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
6
5
  kind: z.ZodLiteral<"s3">;
@@ -32,11 +31,9 @@ export declare const agentCandidateMemoryReceiptSchema: z.ZodDiscriminatedUnion<
32
31
  resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
33
32
  beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
34
33
  afterState: z.ZodObject<{
35
- schemaVersion: z.ZodLiteral<2>;
36
34
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
37
35
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
38
36
  material: z.ZodObject<{
39
- schemaVersion: z.ZodLiteral<2>;
40
37
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
41
38
  files: z.ZodArray<z.ZodObject<{
42
39
  path: z.ZodString;
@@ -98,16 +95,13 @@ export declare const agentCandidateTerminationSchema: z.ZodDiscriminatedUnion<[z
98
95
  kind: z.ZodLiteral<"cancelled">;
99
96
  }, z.core.$strict>], "kind">;
100
97
  export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
101
- schemaVersion: z.ZodLiteral<2>;
102
98
  kind: z.ZodLiteral<"agent-candidate-materialization">;
103
99
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
104
100
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
105
101
  profilePlan: z.ZodObject<{
106
- schemaVersion: z.ZodLiteral<1>;
107
102
  kind: z.ZodLiteral<"agent-profile-workspace-plan">;
108
103
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
109
104
  material: z.ZodType<{
110
- version: 1;
111
105
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
112
106
  files: {
113
107
  relPath: string;
@@ -127,7 +121,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
127
121
  reason: string;
128
122
  }[];
129
123
  }, unknown, z.core.$ZodTypeInternals<{
130
- version: 1;
131
124
  harness: "claude-code" | "claude" | "claudish" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "kimi" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
132
125
  files: {
133
126
  relPath: string;
@@ -168,11 +161,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
168
161
  }, z.core.$strict>]>;
169
162
  }, z.core.$strict>;
170
163
  executionPlan: z.ZodObject<{
171
- schemaVersion: z.ZodLiteral<2>;
172
164
  kind: z.ZodLiteral<"agent-candidate-execution-plan">;
173
165
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
174
166
  material: z.ZodType<{
175
- schemaVersion: 2;
176
167
  kind: "agent-candidate-execution-plan-material";
177
168
  bundleDigest: `sha256:${string}`;
178
169
  executionId: string;
@@ -208,11 +199,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
208
199
  maxBytes: number;
209
200
  };
210
201
  workspace: {
211
- schemaVersion: 2;
212
202
  kind: "agent-candidate-workspace-snapshot";
213
203
  digest: `sha256:${string}`;
214
204
  material: {
215
- schemaVersion: 2;
216
205
  kind: "agent-candidate-workspace-manifest";
217
206
  files: {
218
207
  path: string;
@@ -386,11 +375,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
386
375
  emptyStateDigest: `sha256:${string}`;
387
376
  };
388
377
  beforeState: {
389
- schemaVersion: 2;
390
378
  kind: "agent-candidate-workspace-snapshot";
391
379
  digest: `sha256:${string}`;
392
380
  material: {
393
- schemaVersion: 2;
394
381
  kind: "agent-candidate-workspace-manifest";
395
382
  files: {
396
383
  path: string;
@@ -454,11 +441,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
454
441
  mode: "disabled";
455
442
  };
456
443
  candidateWorkspace?: {
457
- schemaVersion: 2;
458
444
  kind: "agent-candidate-workspace-snapshot";
459
445
  digest: `sha256:${string}`;
460
446
  material: {
461
- schemaVersion: 2;
462
447
  kind: "agent-candidate-workspace-manifest";
463
448
  files: {
464
449
  path: string;
@@ -508,7 +493,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
508
493
  } | undefined;
509
494
  knowledgeManifestDigest?: `sha256:${string}` | undefined;
510
495
  }, unknown, z.core.$ZodTypeInternals<{
511
- schemaVersion: 2;
512
496
  kind: "agent-candidate-execution-plan-material";
513
497
  bundleDigest: `sha256:${string}`;
514
498
  executionId: string;
@@ -544,11 +528,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
544
528
  maxBytes: number;
545
529
  };
546
530
  workspace: {
547
- schemaVersion: 2;
548
531
  kind: "agent-candidate-workspace-snapshot";
549
532
  digest: `sha256:${string}`;
550
533
  material: {
551
- schemaVersion: 2;
552
534
  kind: "agent-candidate-workspace-manifest";
553
535
  files: {
554
536
  path: string;
@@ -722,11 +704,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
722
704
  emptyStateDigest: `sha256:${string}`;
723
705
  };
724
706
  beforeState: {
725
- schemaVersion: 2;
726
707
  kind: "agent-candidate-workspace-snapshot";
727
708
  digest: `sha256:${string}`;
728
709
  material: {
729
- schemaVersion: 2;
730
710
  kind: "agent-candidate-workspace-manifest";
731
711
  files: {
732
712
  path: string;
@@ -790,11 +770,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
790
770
  mode: "disabled";
791
771
  };
792
772
  candidateWorkspace?: {
793
- schemaVersion: 2;
794
773
  kind: "agent-candidate-workspace-snapshot";
795
774
  digest: `sha256:${string}`;
796
775
  material: {
797
- schemaVersion: 2;
798
776
  kind: "agent-candidate-workspace-manifest";
799
777
  files: {
800
778
  path: string;
@@ -865,11 +843,9 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
865
843
  }, z.core.$strict>]>;
866
844
  }, z.core.$strict>;
867
845
  candidateWorkspace: z.ZodOptional<z.ZodObject<{
868
- schemaVersion: z.ZodLiteral<2>;
869
846
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
870
847
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
871
848
  material: z.ZodObject<{
872
- schemaVersion: z.ZodLiteral<2>;
873
849
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
874
850
  files: z.ZodArray<z.ZodObject<{
875
851
  path: z.ZodString;
@@ -980,7 +956,6 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
980
956
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
981
957
  }, z.core.$strict>;
982
958
  export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
983
- schemaVersion: z.ZodLiteral<3>;
984
959
  kind: z.ZodLiteral<"agent-candidate-run">;
985
960
  digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
986
961
  bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
@@ -995,11 +970,9 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
995
970
  resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
996
971
  beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
997
972
  afterState: z.ZodObject<{
998
- schemaVersion: z.ZodLiteral<2>;
999
973
  kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1000
974
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1001
975
  material: z.ZodObject<{
1002
- schemaVersion: z.ZodLiteral<2>;
1003
976
  kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1004
977
  files: z.ZodArray<z.ZodObject<{
1005
978
  path: z.ZodString;
@@ -1049,7 +1022,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1049
1022
  }, z.core.$strict>;
1050
1023
  }, z.core.$strict>], "mode">;
1051
1024
  trace: z.ZodObject<{
1052
- schemaVersion: z.ZodLiteral<1>;
1053
1025
  artifact: z.ZodUnion<readonly [z.ZodObject<{
1054
1026
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1055
1027
  kind: z.ZodLiteral<"s3">;
@@ -1099,7 +1071,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1099
1071
  byteLength: z.ZodNumber;
1100
1072
  }, z.core.$strict>;
1101
1073
  modelSettlement: z.ZodObject<{
1102
- schemaVersion: z.ZodLiteral<2>;
1103
1074
  kind: z.ZodLiteral<"agent-candidate-model-settlement">;
1104
1075
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1105
1076
  material: z.ZodType<{
@@ -1137,7 +1108,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1137
1108
  modelCalls: number;
1138
1109
  costUsdNanos: number;
1139
1110
  };
1140
- schemaVersion: 2;
1141
1111
  }, unknown, z.core.$ZodTypeInternals<{
1142
1112
  calls: {
1143
1113
  callId: string;
@@ -1173,7 +1143,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1173
1143
  modelCalls: number;
1174
1144
  costUsdNanos: number;
1175
1145
  };
1176
- schemaVersion: 2;
1177
1146
  }, unknown>>;
1178
1147
  artifact: z.ZodUnion<readonly [z.ZodObject<{
1179
1148
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1196,11 +1165,9 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1196
1165
  }, z.core.$strict>]>;
1197
1166
  }, z.core.$strict>;
1198
1167
  taskOutcome: z.ZodObject<{
1199
- schemaVersion: z.ZodLiteral<2>;
1200
1168
  kind: z.ZodLiteral<"agent-candidate-task-outcome">;
1201
1169
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1202
1170
  material: z.ZodType<{
1203
- schemaVersion: 2;
1204
1171
  kind: "agent-candidate-task-outcome-material";
1205
1172
  executionPlanDigest: `sha256:${string}`;
1206
1173
  outcome: {
@@ -1218,11 +1185,9 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1218
1185
  tree: string;
1219
1186
  };
1220
1187
  afterState: {
1221
- schemaVersion: 2;
1222
1188
  kind: "agent-candidate-workspace-snapshot";
1223
1189
  digest: `sha256:${string}`;
1224
1190
  material: {
1225
- schemaVersion: 2;
1226
1191
  kind: "agent-candidate-workspace-manifest";
1227
1192
  files: {
1228
1193
  path: string;
@@ -1309,7 +1274,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1309
1274
  };
1310
1275
  };
1311
1276
  }, unknown, z.core.$ZodTypeInternals<{
1312
- schemaVersion: 2;
1313
1277
  kind: "agent-candidate-task-outcome-material";
1314
1278
  executionPlanDigest: `sha256:${string}`;
1315
1279
  outcome: {
@@ -1327,11 +1291,9 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1327
1291
  tree: string;
1328
1292
  };
1329
1293
  afterState: {
1330
- schemaVersion: 2;
1331
1294
  kind: "agent-candidate-workspace-snapshot";
1332
1295
  digest: `sha256:${string}`;
1333
1296
  material: {
1334
- schemaVersion: 2;
1335
1297
  kind: "agent-candidate-workspace-manifest";
1336
1298
  files: {
1337
1299
  path: string;
@@ -1439,11 +1401,9 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1439
1401
  }, z.core.$strict>]>;
1440
1402
  }, z.core.$strict>;
1441
1403
  benchmarkResult: z.ZodObject<{
1442
- schemaVersion: z.ZodLiteral<1>;
1443
1404
  kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
1444
1405
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1445
1406
  material: z.ZodType<{
1446
- schemaVersion: 1;
1447
1407
  kind: "agent-candidate-benchmark-result-material";
1448
1408
  executionPlanDigest: `sha256:${string}`;
1449
1409
  taskOutcomeDigest: `sha256:${string}`;
@@ -1492,7 +1452,6 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1492
1452
  score: number;
1493
1453
  }[];
1494
1454
  }, unknown, z.core.$ZodTypeInternals<{
1495
- schemaVersion: 1;
1496
1455
  kind: "agent-candidate-benchmark-result-material";
1497
1456
  executionPlanDigest: `sha256:${string}`;
1498
1457
  taskOutcomeDigest: `sha256:${string}`;
@@ -22,7 +22,6 @@ const ociPlatformSchema = z
22
22
  .strict();
23
23
  export const agentCandidateTraceEvidenceSchema = z
24
24
  .object({
25
- schemaVersion: z.literal(1),
26
25
  artifact: agentCandidateCapturedArtifactSchema,
27
26
  eventCount: z.number().int().positive(),
28
27
  modelCallCount: z.number().int().nonnegative(),
@@ -75,7 +74,6 @@ export const agentCandidateTerminationSchema = z.discriminatedUnion("kind", [
75
74
  ]);
76
75
  export const agentCandidateMaterializationReceiptSchema = z
77
76
  .object({
78
- schemaVersion: z.literal(2),
79
77
  kind: z.literal("agent-candidate-materialization"),
80
78
  digestAlgorithm: z.literal("rfc8785-sha256"),
81
79
  bundleDigest: sha256DigestSchema,
@@ -209,7 +207,6 @@ export const agentCandidateMaterializationReceiptSchema = z
209
207
  });
210
208
  export const agentCandidateRunReceiptSchema = z
211
209
  .object({
212
- schemaVersion: z.literal(3),
213
210
  kind: z.literal("agent-candidate-run"),
214
211
  digestAlgorithm: z.literal("rfc8785-sha256"),
215
212
  bundleDigest: sha256DigestSchema,