@tangle-network/agent-interface 0.21.0 → 0.23.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.
@@ -319,6 +319,12 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
319
319
  access: {
320
320
  kind: "evaluator-mediated";
321
321
  grantDigest: `sha256:${string}`;
322
+ network: {
323
+ mode: "disabled";
324
+ } | {
325
+ mode: "gateway-only";
326
+ domains: string[];
327
+ };
322
328
  };
323
329
  routes: ({
324
330
  kind: "primary";
@@ -624,6 +630,12 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
624
630
  access: {
625
631
  kind: "evaluator-mediated";
626
632
  grantDigest: `sha256:${string}`;
633
+ network: {
634
+ mode: "disabled";
635
+ } | {
636
+ mode: "gateway-only";
637
+ domains: string[];
638
+ };
627
639
  };
628
640
  routes: ({
629
641
  kind: "primary";
@@ -1079,3 +1091,1390 @@ export declare const agentCandidateRunReceiptSchema: z.ZodObject<{
1079
1091
  }, z.core.$strict>], "kind">;
1080
1092
  digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1081
1093
  }, z.core.$strict>;
1094
+ export declare const agentCandidateRunReceiptV2Schema: z.ZodObject<{
1095
+ schemaVersion: z.ZodLiteral<2>;
1096
+ kind: z.ZodLiteral<"agent-candidate-run">;
1097
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1098
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1099
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1100
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1101
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1102
+ mode: z.ZodLiteral<"disabled">;
1103
+ }, z.core.$strict>, z.ZodObject<{
1104
+ mode: z.ZodLiteral<"isolated">;
1105
+ scope: z.ZodLiteral<"task">;
1106
+ effectiveNamespace: z.ZodString;
1107
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1108
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1109
+ afterState: z.ZodObject<{
1110
+ schemaVersion: z.ZodLiteral<1>;
1111
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1112
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1113
+ material: z.ZodObject<{
1114
+ schemaVersion: z.ZodLiteral<1>;
1115
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1116
+ files: z.ZodArray<z.ZodObject<{
1117
+ path: z.ZodString;
1118
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1119
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1120
+ byteLength: z.ZodNumber;
1121
+ }, z.core.$strict>>;
1122
+ }, z.core.$strict>;
1123
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1124
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1125
+ kind: z.ZodLiteral<"s3">;
1126
+ bucket: z.ZodString;
1127
+ key: z.ZodString;
1128
+ region: z.ZodOptional<z.ZodString>;
1129
+ }, z.core.$strict>, z.ZodObject<{
1130
+ kind: z.ZodLiteral<"ipfs">;
1131
+ cid: z.ZodString;
1132
+ path: z.ZodOptional<z.ZodString>;
1133
+ }, z.core.$strict>], "kind">;
1134
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1135
+ byteLength: z.ZodNumber;
1136
+ }, z.core.$strict>, z.ZodObject<{
1137
+ encoding: z.ZodLiteral<"base64">;
1138
+ content: z.ZodString;
1139
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1140
+ byteLength: z.ZodNumber;
1141
+ }, z.core.$strict>]>;
1142
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1143
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1144
+ kind: z.ZodLiteral<"s3">;
1145
+ bucket: z.ZodString;
1146
+ key: z.ZodString;
1147
+ region: z.ZodOptional<z.ZodString>;
1148
+ }, z.core.$strict>, z.ZodObject<{
1149
+ kind: z.ZodLiteral<"ipfs">;
1150
+ cid: z.ZodString;
1151
+ path: z.ZodOptional<z.ZodString>;
1152
+ }, z.core.$strict>], "kind">;
1153
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1154
+ byteLength: z.ZodNumber;
1155
+ }, z.core.$strict>, z.ZodObject<{
1156
+ encoding: z.ZodLiteral<"base64">;
1157
+ content: z.ZodString;
1158
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1159
+ byteLength: z.ZodNumber;
1160
+ }, z.core.$strict>]>;
1161
+ }, z.core.$strict>;
1162
+ }, z.core.$strict>], "mode">;
1163
+ usage: z.ZodObject<{
1164
+ costUsd: z.ZodNumber;
1165
+ inputTokens: z.ZodNumber;
1166
+ outputTokens: z.ZodNumber;
1167
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1168
+ modelCalls: z.ZodNumber;
1169
+ }, z.core.$strict>;
1170
+ modelUsage: z.ZodObject<{
1171
+ resolved: z.ZodObject<{
1172
+ requested: z.ZodString;
1173
+ provider: z.ZodString;
1174
+ model: z.ZodString;
1175
+ snapshot: z.ZodString;
1176
+ reasoningEffort: z.ZodEnum<{
1177
+ none: "none";
1178
+ minimal: "minimal";
1179
+ low: "low";
1180
+ medium: "medium";
1181
+ high: "high";
1182
+ xhigh: "xhigh";
1183
+ ultracode: "ultracode";
1184
+ }>;
1185
+ }, z.core.$strict>;
1186
+ usage: z.ZodObject<{
1187
+ costUsd: z.ZodNumber;
1188
+ inputTokens: z.ZodNumber;
1189
+ outputTokens: z.ZodNumber;
1190
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1191
+ modelCalls: z.ZodNumber;
1192
+ }, z.core.$strict>;
1193
+ }, z.core.$strict>;
1194
+ trace: z.ZodObject<{
1195
+ schemaVersion: z.ZodLiteral<1>;
1196
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1197
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1198
+ kind: z.ZodLiteral<"s3">;
1199
+ bucket: z.ZodString;
1200
+ key: z.ZodString;
1201
+ region: z.ZodOptional<z.ZodString>;
1202
+ }, z.core.$strict>, z.ZodObject<{
1203
+ kind: z.ZodLiteral<"ipfs">;
1204
+ cid: z.ZodString;
1205
+ path: z.ZodOptional<z.ZodString>;
1206
+ }, z.core.$strict>], "kind">;
1207
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1208
+ byteLength: z.ZodNumber;
1209
+ }, z.core.$strict>, z.ZodObject<{
1210
+ encoding: z.ZodLiteral<"base64">;
1211
+ content: z.ZodString;
1212
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1213
+ byteLength: z.ZodNumber;
1214
+ }, z.core.$strict>]>;
1215
+ eventCount: z.ZodNumber;
1216
+ modelCallCount: z.ZodNumber;
1217
+ }, z.core.$strict>;
1218
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1219
+ kind: z.ZodLiteral<"exit">;
1220
+ exitCode: z.ZodNumber;
1221
+ }, z.core.$strict>, z.ZodObject<{
1222
+ kind: z.ZodLiteral<"timeout">;
1223
+ timeoutMs: z.ZodNumber;
1224
+ }, z.core.$strict>, z.ZodObject<{
1225
+ kind: z.ZodLiteral<"signal">;
1226
+ signal: z.ZodString;
1227
+ }, z.core.$strict>, z.ZodObject<{
1228
+ kind: z.ZodLiteral<"cancelled">;
1229
+ }, z.core.$strict>], "kind">;
1230
+ fixedUsage: z.ZodObject<{
1231
+ inputTokens: z.ZodNumber;
1232
+ outputTokens: z.ZodNumber;
1233
+ cachedInputTokens: z.ZodNumber;
1234
+ reasoningTokens: z.ZodNumber;
1235
+ modelCalls: z.ZodNumber;
1236
+ costUsdNanos: z.ZodNumber;
1237
+ }, z.core.$strict>;
1238
+ modelSettlement: z.ZodObject<{
1239
+ schemaVersion: z.ZodLiteral<1>;
1240
+ kind: z.ZodLiteral<"agent-candidate-model-settlement">;
1241
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1242
+ material: z.ZodType<{
1243
+ schemaVersion: 1;
1244
+ kind: "agent-candidate-model-settlement-material";
1245
+ executionPlanDigest: `sha256:${string}`;
1246
+ preparationId: string;
1247
+ grantDigest: `sha256:${string}`;
1248
+ closed: true;
1249
+ resolved: {
1250
+ requested: string;
1251
+ provider: string;
1252
+ model: string;
1253
+ snapshot: string;
1254
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1255
+ };
1256
+ calls: {
1257
+ callId: string;
1258
+ traceSpanId: string;
1259
+ model: string;
1260
+ inputTokens: number;
1261
+ outputTokens: number;
1262
+ cachedInputTokens: number;
1263
+ reasoningTokens: number;
1264
+ costUsdNanos: number;
1265
+ }[];
1266
+ usage: {
1267
+ inputTokens: number;
1268
+ outputTokens: number;
1269
+ cachedInputTokens: number;
1270
+ reasoningTokens: number;
1271
+ modelCalls: number;
1272
+ costUsdNanos: number;
1273
+ };
1274
+ }, unknown, z.core.$ZodTypeInternals<{
1275
+ schemaVersion: 1;
1276
+ kind: "agent-candidate-model-settlement-material";
1277
+ executionPlanDigest: `sha256:${string}`;
1278
+ preparationId: string;
1279
+ grantDigest: `sha256:${string}`;
1280
+ closed: true;
1281
+ resolved: {
1282
+ requested: string;
1283
+ provider: string;
1284
+ model: string;
1285
+ snapshot: string;
1286
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
1287
+ };
1288
+ calls: {
1289
+ callId: string;
1290
+ traceSpanId: string;
1291
+ model: string;
1292
+ inputTokens: number;
1293
+ outputTokens: number;
1294
+ cachedInputTokens: number;
1295
+ reasoningTokens: number;
1296
+ costUsdNanos: number;
1297
+ }[];
1298
+ usage: {
1299
+ inputTokens: number;
1300
+ outputTokens: number;
1301
+ cachedInputTokens: number;
1302
+ reasoningTokens: number;
1303
+ modelCalls: number;
1304
+ costUsdNanos: number;
1305
+ };
1306
+ }, unknown>>;
1307
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1308
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1309
+ kind: z.ZodLiteral<"s3">;
1310
+ bucket: z.ZodString;
1311
+ key: z.ZodString;
1312
+ region: z.ZodOptional<z.ZodString>;
1313
+ }, z.core.$strict>, z.ZodObject<{
1314
+ kind: z.ZodLiteral<"ipfs">;
1315
+ cid: z.ZodString;
1316
+ path: z.ZodOptional<z.ZodString>;
1317
+ }, z.core.$strict>], "kind">;
1318
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1319
+ byteLength: z.ZodNumber;
1320
+ }, z.core.$strict>, z.ZodObject<{
1321
+ encoding: z.ZodLiteral<"base64">;
1322
+ content: z.ZodString;
1323
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1324
+ byteLength: z.ZodNumber;
1325
+ }, z.core.$strict>]>;
1326
+ }, z.core.$strict>;
1327
+ taskOutcome: z.ZodObject<{
1328
+ schemaVersion: z.ZodLiteral<1>;
1329
+ kind: z.ZodLiteral<"agent-candidate-task-outcome">;
1330
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1331
+ material: z.ZodType<{
1332
+ schemaVersion: 1;
1333
+ kind: "agent-candidate-task-outcome-material";
1334
+ executionPlanDigest: `sha256:${string}`;
1335
+ baseRepository: {
1336
+ identity: string;
1337
+ rootIdentity: string;
1338
+ commit: string;
1339
+ tree: string;
1340
+ };
1341
+ resultRepository: {
1342
+ identity: string;
1343
+ rootIdentity: string;
1344
+ commit: string;
1345
+ tree: string;
1346
+ };
1347
+ afterState: {
1348
+ schemaVersion: 1;
1349
+ kind: "agent-candidate-workspace-snapshot";
1350
+ digest: `sha256:${string}`;
1351
+ material: {
1352
+ schemaVersion: 1;
1353
+ kind: "agent-candidate-workspace-manifest";
1354
+ files: {
1355
+ path: string;
1356
+ mode: 420 | 493;
1357
+ sha256: `sha256:${string}`;
1358
+ byteLength: number;
1359
+ }[];
1360
+ };
1361
+ manifest: {
1362
+ locator: {
1363
+ kind: "s3";
1364
+ bucket: string;
1365
+ key: string;
1366
+ region?: string | undefined;
1367
+ } | {
1368
+ kind: "ipfs";
1369
+ cid: string;
1370
+ path?: string | undefined;
1371
+ };
1372
+ sha256: `sha256:${string}`;
1373
+ byteLength: number;
1374
+ } | {
1375
+ encoding: "base64";
1376
+ content: string;
1377
+ sha256: `sha256:${string}`;
1378
+ byteLength: number;
1379
+ };
1380
+ archive: {
1381
+ locator: {
1382
+ kind: "s3";
1383
+ bucket: string;
1384
+ key: string;
1385
+ region?: string | undefined;
1386
+ } | {
1387
+ kind: "ipfs";
1388
+ cid: string;
1389
+ path?: string | undefined;
1390
+ };
1391
+ sha256: `sha256:${string}`;
1392
+ byteLength: number;
1393
+ } | {
1394
+ encoding: "base64";
1395
+ content: string;
1396
+ sha256: `sha256:${string}`;
1397
+ byteLength: number;
1398
+ };
1399
+ };
1400
+ gitDiff: {
1401
+ format: "git-diff-binary";
1402
+ artifact: {
1403
+ locator: {
1404
+ kind: "s3";
1405
+ bucket: string;
1406
+ key: string;
1407
+ region?: string | undefined;
1408
+ } | {
1409
+ kind: "ipfs";
1410
+ cid: string;
1411
+ path?: string | undefined;
1412
+ };
1413
+ sha256: `sha256:${string}`;
1414
+ byteLength: number;
1415
+ };
1416
+ };
1417
+ }, unknown, z.core.$ZodTypeInternals<{
1418
+ schemaVersion: 1;
1419
+ kind: "agent-candidate-task-outcome-material";
1420
+ executionPlanDigest: `sha256:${string}`;
1421
+ baseRepository: {
1422
+ identity: string;
1423
+ rootIdentity: string;
1424
+ commit: string;
1425
+ tree: string;
1426
+ };
1427
+ resultRepository: {
1428
+ identity: string;
1429
+ rootIdentity: string;
1430
+ commit: string;
1431
+ tree: string;
1432
+ };
1433
+ afterState: {
1434
+ schemaVersion: 1;
1435
+ kind: "agent-candidate-workspace-snapshot";
1436
+ digest: `sha256:${string}`;
1437
+ material: {
1438
+ schemaVersion: 1;
1439
+ kind: "agent-candidate-workspace-manifest";
1440
+ files: {
1441
+ path: string;
1442
+ mode: 420 | 493;
1443
+ sha256: `sha256:${string}`;
1444
+ byteLength: number;
1445
+ }[];
1446
+ };
1447
+ manifest: {
1448
+ locator: {
1449
+ kind: "s3";
1450
+ bucket: string;
1451
+ key: string;
1452
+ region?: string | undefined;
1453
+ } | {
1454
+ kind: "ipfs";
1455
+ cid: string;
1456
+ path?: string | undefined;
1457
+ };
1458
+ sha256: `sha256:${string}`;
1459
+ byteLength: number;
1460
+ } | {
1461
+ encoding: "base64";
1462
+ content: string;
1463
+ sha256: `sha256:${string}`;
1464
+ byteLength: number;
1465
+ };
1466
+ archive: {
1467
+ locator: {
1468
+ kind: "s3";
1469
+ bucket: string;
1470
+ key: string;
1471
+ region?: string | undefined;
1472
+ } | {
1473
+ kind: "ipfs";
1474
+ cid: string;
1475
+ path?: string | undefined;
1476
+ };
1477
+ sha256: `sha256:${string}`;
1478
+ byteLength: number;
1479
+ } | {
1480
+ encoding: "base64";
1481
+ content: string;
1482
+ sha256: `sha256:${string}`;
1483
+ byteLength: number;
1484
+ };
1485
+ };
1486
+ gitDiff: {
1487
+ format: "git-diff-binary";
1488
+ artifact: {
1489
+ locator: {
1490
+ kind: "s3";
1491
+ bucket: string;
1492
+ key: string;
1493
+ region?: string | undefined;
1494
+ } | {
1495
+ kind: "ipfs";
1496
+ cid: string;
1497
+ path?: string | undefined;
1498
+ };
1499
+ sha256: `sha256:${string}`;
1500
+ byteLength: number;
1501
+ };
1502
+ };
1503
+ }, unknown>>;
1504
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1505
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1506
+ kind: z.ZodLiteral<"s3">;
1507
+ bucket: z.ZodString;
1508
+ key: z.ZodString;
1509
+ region: z.ZodOptional<z.ZodString>;
1510
+ }, z.core.$strict>, z.ZodObject<{
1511
+ kind: z.ZodLiteral<"ipfs">;
1512
+ cid: z.ZodString;
1513
+ path: z.ZodOptional<z.ZodString>;
1514
+ }, z.core.$strict>], "kind">;
1515
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1516
+ byteLength: z.ZodNumber;
1517
+ }, z.core.$strict>, z.ZodObject<{
1518
+ encoding: z.ZodLiteral<"base64">;
1519
+ content: z.ZodString;
1520
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1521
+ byteLength: z.ZodNumber;
1522
+ }, z.core.$strict>]>;
1523
+ }, z.core.$strict>;
1524
+ benchmarkResult: z.ZodObject<{
1525
+ schemaVersion: z.ZodLiteral<1>;
1526
+ kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
1527
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1528
+ material: z.ZodType<{
1529
+ schemaVersion: 1;
1530
+ kind: "agent-candidate-benchmark-result-material";
1531
+ executionPlanDigest: `sha256:${string}`;
1532
+ taskOutcomeDigest: `sha256:${string}`;
1533
+ benchmark: {
1534
+ name: string;
1535
+ version: string;
1536
+ taskId: string;
1537
+ splitDigest: `sha256:${string}`;
1538
+ };
1539
+ grader: {
1540
+ name: string;
1541
+ version: string;
1542
+ artifact: {
1543
+ locator: {
1544
+ kind: "s3";
1545
+ bucket: string;
1546
+ key: string;
1547
+ region?: string | undefined;
1548
+ } | {
1549
+ kind: "ipfs";
1550
+ cid: string;
1551
+ path?: string | undefined;
1552
+ };
1553
+ sha256: `sha256:${string}`;
1554
+ byteLength: number;
1555
+ };
1556
+ };
1557
+ evidence: {
1558
+ locator: {
1559
+ kind: "s3";
1560
+ bucket: string;
1561
+ key: string;
1562
+ region?: string | undefined;
1563
+ } | {
1564
+ kind: "ipfs";
1565
+ cid: string;
1566
+ path?: string | undefined;
1567
+ };
1568
+ sha256: `sha256:${string}`;
1569
+ byteLength: number;
1570
+ };
1571
+ score: number;
1572
+ passed: boolean;
1573
+ dimensions: {
1574
+ name: string;
1575
+ score: number;
1576
+ }[];
1577
+ }, unknown, z.core.$ZodTypeInternals<{
1578
+ schemaVersion: 1;
1579
+ kind: "agent-candidate-benchmark-result-material";
1580
+ executionPlanDigest: `sha256:${string}`;
1581
+ taskOutcomeDigest: `sha256:${string}`;
1582
+ benchmark: {
1583
+ name: string;
1584
+ version: string;
1585
+ taskId: string;
1586
+ splitDigest: `sha256:${string}`;
1587
+ };
1588
+ grader: {
1589
+ name: string;
1590
+ version: string;
1591
+ artifact: {
1592
+ locator: {
1593
+ kind: "s3";
1594
+ bucket: string;
1595
+ key: string;
1596
+ region?: string | undefined;
1597
+ } | {
1598
+ kind: "ipfs";
1599
+ cid: string;
1600
+ path?: string | undefined;
1601
+ };
1602
+ sha256: `sha256:${string}`;
1603
+ byteLength: number;
1604
+ };
1605
+ };
1606
+ evidence: {
1607
+ locator: {
1608
+ kind: "s3";
1609
+ bucket: string;
1610
+ key: string;
1611
+ region?: string | undefined;
1612
+ } | {
1613
+ kind: "ipfs";
1614
+ cid: string;
1615
+ path?: string | undefined;
1616
+ };
1617
+ sha256: `sha256:${string}`;
1618
+ byteLength: number;
1619
+ };
1620
+ score: number;
1621
+ passed: boolean;
1622
+ dimensions: {
1623
+ name: string;
1624
+ score: number;
1625
+ }[];
1626
+ }, unknown>>;
1627
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1628
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1629
+ kind: z.ZodLiteral<"s3">;
1630
+ bucket: z.ZodString;
1631
+ key: z.ZodString;
1632
+ region: z.ZodOptional<z.ZodString>;
1633
+ }, z.core.$strict>, z.ZodObject<{
1634
+ kind: z.ZodLiteral<"ipfs">;
1635
+ cid: z.ZodString;
1636
+ path: z.ZodOptional<z.ZodString>;
1637
+ }, z.core.$strict>], "kind">;
1638
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1639
+ byteLength: z.ZodNumber;
1640
+ }, z.core.$strict>, z.ZodObject<{
1641
+ encoding: z.ZodLiteral<"base64">;
1642
+ content: z.ZodString;
1643
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1644
+ byteLength: z.ZodNumber;
1645
+ }, z.core.$strict>]>;
1646
+ }, z.core.$strict>;
1647
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1648
+ }, z.core.$strict>;
1649
+ /** Explicit V1 alias; the original schema export remains unchanged. */
1650
+ export declare const agentCandidateRunReceiptV1Schema: z.ZodObject<{
1651
+ schemaVersion: z.ZodLiteral<1>;
1652
+ kind: z.ZodLiteral<"agent-candidate-run">;
1653
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1654
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1655
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1656
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1657
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1658
+ mode: z.ZodLiteral<"disabled">;
1659
+ }, z.core.$strict>, z.ZodObject<{
1660
+ mode: z.ZodLiteral<"isolated">;
1661
+ scope: z.ZodLiteral<"task">;
1662
+ effectiveNamespace: z.ZodString;
1663
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1664
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1665
+ afterState: z.ZodObject<{
1666
+ schemaVersion: z.ZodLiteral<1>;
1667
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1668
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1669
+ material: z.ZodObject<{
1670
+ schemaVersion: z.ZodLiteral<1>;
1671
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1672
+ files: z.ZodArray<z.ZodObject<{
1673
+ path: z.ZodString;
1674
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1675
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1676
+ byteLength: z.ZodNumber;
1677
+ }, z.core.$strict>>;
1678
+ }, z.core.$strict>;
1679
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1680
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1681
+ kind: z.ZodLiteral<"s3">;
1682
+ bucket: z.ZodString;
1683
+ key: z.ZodString;
1684
+ region: z.ZodOptional<z.ZodString>;
1685
+ }, z.core.$strict>, z.ZodObject<{
1686
+ kind: z.ZodLiteral<"ipfs">;
1687
+ cid: z.ZodString;
1688
+ path: z.ZodOptional<z.ZodString>;
1689
+ }, z.core.$strict>], "kind">;
1690
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1691
+ byteLength: z.ZodNumber;
1692
+ }, z.core.$strict>, z.ZodObject<{
1693
+ encoding: z.ZodLiteral<"base64">;
1694
+ content: z.ZodString;
1695
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1696
+ byteLength: z.ZodNumber;
1697
+ }, z.core.$strict>]>;
1698
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1699
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1700
+ kind: z.ZodLiteral<"s3">;
1701
+ bucket: z.ZodString;
1702
+ key: z.ZodString;
1703
+ region: z.ZodOptional<z.ZodString>;
1704
+ }, z.core.$strict>, z.ZodObject<{
1705
+ kind: z.ZodLiteral<"ipfs">;
1706
+ cid: z.ZodString;
1707
+ path: z.ZodOptional<z.ZodString>;
1708
+ }, z.core.$strict>], "kind">;
1709
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1710
+ byteLength: z.ZodNumber;
1711
+ }, z.core.$strict>, z.ZodObject<{
1712
+ encoding: z.ZodLiteral<"base64">;
1713
+ content: z.ZodString;
1714
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1715
+ byteLength: z.ZodNumber;
1716
+ }, z.core.$strict>]>;
1717
+ }, z.core.$strict>;
1718
+ }, z.core.$strict>], "mode">;
1719
+ usage: z.ZodObject<{
1720
+ costUsd: z.ZodNumber;
1721
+ inputTokens: z.ZodNumber;
1722
+ outputTokens: z.ZodNumber;
1723
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1724
+ modelCalls: z.ZodNumber;
1725
+ }, z.core.$strict>;
1726
+ modelUsage: z.ZodObject<{
1727
+ resolved: z.ZodObject<{
1728
+ requested: z.ZodString;
1729
+ provider: z.ZodString;
1730
+ model: z.ZodString;
1731
+ snapshot: z.ZodString;
1732
+ reasoningEffort: z.ZodEnum<{
1733
+ none: "none";
1734
+ minimal: "minimal";
1735
+ low: "low";
1736
+ medium: "medium";
1737
+ high: "high";
1738
+ xhigh: "xhigh";
1739
+ ultracode: "ultracode";
1740
+ }>;
1741
+ }, z.core.$strict>;
1742
+ usage: z.ZodObject<{
1743
+ costUsd: z.ZodNumber;
1744
+ inputTokens: z.ZodNumber;
1745
+ outputTokens: z.ZodNumber;
1746
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1747
+ modelCalls: z.ZodNumber;
1748
+ }, z.core.$strict>;
1749
+ }, z.core.$strict>;
1750
+ trace: z.ZodObject<{
1751
+ schemaVersion: z.ZodLiteral<1>;
1752
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1753
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1754
+ kind: z.ZodLiteral<"s3">;
1755
+ bucket: z.ZodString;
1756
+ key: z.ZodString;
1757
+ region: z.ZodOptional<z.ZodString>;
1758
+ }, z.core.$strict>, z.ZodObject<{
1759
+ kind: z.ZodLiteral<"ipfs">;
1760
+ cid: z.ZodString;
1761
+ path: z.ZodOptional<z.ZodString>;
1762
+ }, z.core.$strict>], "kind">;
1763
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1764
+ byteLength: z.ZodNumber;
1765
+ }, z.core.$strict>, z.ZodObject<{
1766
+ encoding: z.ZodLiteral<"base64">;
1767
+ content: z.ZodString;
1768
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1769
+ byteLength: z.ZodNumber;
1770
+ }, z.core.$strict>]>;
1771
+ eventCount: z.ZodNumber;
1772
+ modelCallCount: z.ZodNumber;
1773
+ }, z.core.$strict>;
1774
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1775
+ kind: z.ZodLiteral<"exit">;
1776
+ exitCode: z.ZodNumber;
1777
+ }, z.core.$strict>, z.ZodObject<{
1778
+ kind: z.ZodLiteral<"timeout">;
1779
+ timeoutMs: z.ZodNumber;
1780
+ }, z.core.$strict>, z.ZodObject<{
1781
+ kind: z.ZodLiteral<"signal">;
1782
+ signal: z.ZodString;
1783
+ }, z.core.$strict>, z.ZodObject<{
1784
+ kind: z.ZodLiteral<"cancelled">;
1785
+ }, z.core.$strict>], "kind">;
1786
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1787
+ }, z.core.$strict>;
1788
+ /** Parses both receipt generations without changing the original V1 export. */
1789
+ export declare const agentCandidateRunReceiptAnyVersionSchema: z.ZodUnion<readonly [z.ZodObject<{
1790
+ schemaVersion: z.ZodLiteral<1>;
1791
+ kind: z.ZodLiteral<"agent-candidate-run">;
1792
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1793
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1794
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1795
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1796
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1797
+ mode: z.ZodLiteral<"disabled">;
1798
+ }, z.core.$strict>, z.ZodObject<{
1799
+ mode: z.ZodLiteral<"isolated">;
1800
+ scope: z.ZodLiteral<"task">;
1801
+ effectiveNamespace: z.ZodString;
1802
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1803
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1804
+ afterState: z.ZodObject<{
1805
+ schemaVersion: z.ZodLiteral<1>;
1806
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1807
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1808
+ material: z.ZodObject<{
1809
+ schemaVersion: z.ZodLiteral<1>;
1810
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1811
+ files: z.ZodArray<z.ZodObject<{
1812
+ path: z.ZodString;
1813
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1814
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1815
+ byteLength: z.ZodNumber;
1816
+ }, z.core.$strict>>;
1817
+ }, z.core.$strict>;
1818
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1819
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1820
+ kind: z.ZodLiteral<"s3">;
1821
+ bucket: z.ZodString;
1822
+ key: z.ZodString;
1823
+ region: z.ZodOptional<z.ZodString>;
1824
+ }, z.core.$strict>, z.ZodObject<{
1825
+ kind: z.ZodLiteral<"ipfs">;
1826
+ cid: z.ZodString;
1827
+ path: z.ZodOptional<z.ZodString>;
1828
+ }, z.core.$strict>], "kind">;
1829
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1830
+ byteLength: z.ZodNumber;
1831
+ }, z.core.$strict>, z.ZodObject<{
1832
+ encoding: z.ZodLiteral<"base64">;
1833
+ content: z.ZodString;
1834
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1835
+ byteLength: z.ZodNumber;
1836
+ }, z.core.$strict>]>;
1837
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1838
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1839
+ kind: z.ZodLiteral<"s3">;
1840
+ bucket: z.ZodString;
1841
+ key: z.ZodString;
1842
+ region: z.ZodOptional<z.ZodString>;
1843
+ }, z.core.$strict>, z.ZodObject<{
1844
+ kind: z.ZodLiteral<"ipfs">;
1845
+ cid: z.ZodString;
1846
+ path: z.ZodOptional<z.ZodString>;
1847
+ }, z.core.$strict>], "kind">;
1848
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1849
+ byteLength: z.ZodNumber;
1850
+ }, z.core.$strict>, z.ZodObject<{
1851
+ encoding: z.ZodLiteral<"base64">;
1852
+ content: z.ZodString;
1853
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1854
+ byteLength: z.ZodNumber;
1855
+ }, z.core.$strict>]>;
1856
+ }, z.core.$strict>;
1857
+ }, z.core.$strict>], "mode">;
1858
+ usage: z.ZodObject<{
1859
+ costUsd: z.ZodNumber;
1860
+ inputTokens: z.ZodNumber;
1861
+ outputTokens: z.ZodNumber;
1862
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1863
+ modelCalls: z.ZodNumber;
1864
+ }, z.core.$strict>;
1865
+ modelUsage: z.ZodObject<{
1866
+ resolved: z.ZodObject<{
1867
+ requested: z.ZodString;
1868
+ provider: z.ZodString;
1869
+ model: z.ZodString;
1870
+ snapshot: z.ZodString;
1871
+ reasoningEffort: z.ZodEnum<{
1872
+ none: "none";
1873
+ minimal: "minimal";
1874
+ low: "low";
1875
+ medium: "medium";
1876
+ high: "high";
1877
+ xhigh: "xhigh";
1878
+ ultracode: "ultracode";
1879
+ }>;
1880
+ }, z.core.$strict>;
1881
+ usage: z.ZodObject<{
1882
+ costUsd: z.ZodNumber;
1883
+ inputTokens: z.ZodNumber;
1884
+ outputTokens: z.ZodNumber;
1885
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
1886
+ modelCalls: z.ZodNumber;
1887
+ }, z.core.$strict>;
1888
+ }, z.core.$strict>;
1889
+ trace: z.ZodObject<{
1890
+ schemaVersion: z.ZodLiteral<1>;
1891
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
1892
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1893
+ kind: z.ZodLiteral<"s3">;
1894
+ bucket: z.ZodString;
1895
+ key: z.ZodString;
1896
+ region: z.ZodOptional<z.ZodString>;
1897
+ }, z.core.$strict>, z.ZodObject<{
1898
+ kind: z.ZodLiteral<"ipfs">;
1899
+ cid: z.ZodString;
1900
+ path: z.ZodOptional<z.ZodString>;
1901
+ }, z.core.$strict>], "kind">;
1902
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1903
+ byteLength: z.ZodNumber;
1904
+ }, z.core.$strict>, z.ZodObject<{
1905
+ encoding: z.ZodLiteral<"base64">;
1906
+ content: z.ZodString;
1907
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1908
+ byteLength: z.ZodNumber;
1909
+ }, z.core.$strict>]>;
1910
+ eventCount: z.ZodNumber;
1911
+ modelCallCount: z.ZodNumber;
1912
+ }, z.core.$strict>;
1913
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
1914
+ kind: z.ZodLiteral<"exit">;
1915
+ exitCode: z.ZodNumber;
1916
+ }, z.core.$strict>, z.ZodObject<{
1917
+ kind: z.ZodLiteral<"timeout">;
1918
+ timeoutMs: z.ZodNumber;
1919
+ }, z.core.$strict>, z.ZodObject<{
1920
+ kind: z.ZodLiteral<"signal">;
1921
+ signal: z.ZodString;
1922
+ }, z.core.$strict>, z.ZodObject<{
1923
+ kind: z.ZodLiteral<"cancelled">;
1924
+ }, z.core.$strict>], "kind">;
1925
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1926
+ }, z.core.$strict>, z.ZodObject<{
1927
+ schemaVersion: z.ZodLiteral<2>;
1928
+ kind: z.ZodLiteral<"agent-candidate-run">;
1929
+ digestAlgorithm: z.ZodLiteral<"rfc8785-sha256">;
1930
+ bundleDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1931
+ materializationReceiptDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1932
+ executionPlanDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1933
+ memory: z.ZodDiscriminatedUnion<[z.ZodObject<{
1934
+ mode: z.ZodLiteral<"disabled">;
1935
+ }, z.core.$strict>, z.ZodObject<{
1936
+ mode: z.ZodLiteral<"isolated">;
1937
+ scope: z.ZodLiteral<"task">;
1938
+ effectiveNamespace: z.ZodString;
1939
+ resetEvidenceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1940
+ beforeStateDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1941
+ afterState: z.ZodObject<{
1942
+ schemaVersion: z.ZodLiteral<1>;
1943
+ kind: z.ZodLiteral<"agent-candidate-workspace-snapshot">;
1944
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1945
+ material: z.ZodObject<{
1946
+ schemaVersion: z.ZodLiteral<1>;
1947
+ kind: z.ZodLiteral<"agent-candidate-workspace-manifest">;
1948
+ files: z.ZodArray<z.ZodObject<{
1949
+ path: z.ZodString;
1950
+ mode: z.ZodUnion<readonly [z.ZodLiteral<420>, z.ZodLiteral<493>]>;
1951
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1952
+ byteLength: z.ZodNumber;
1953
+ }, z.core.$strict>>;
1954
+ }, z.core.$strict>;
1955
+ manifest: z.ZodUnion<readonly [z.ZodObject<{
1956
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1957
+ kind: z.ZodLiteral<"s3">;
1958
+ bucket: z.ZodString;
1959
+ key: z.ZodString;
1960
+ region: z.ZodOptional<z.ZodString>;
1961
+ }, z.core.$strict>, z.ZodObject<{
1962
+ kind: z.ZodLiteral<"ipfs">;
1963
+ cid: z.ZodString;
1964
+ path: z.ZodOptional<z.ZodString>;
1965
+ }, z.core.$strict>], "kind">;
1966
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1967
+ byteLength: z.ZodNumber;
1968
+ }, z.core.$strict>, z.ZodObject<{
1969
+ encoding: z.ZodLiteral<"base64">;
1970
+ content: z.ZodString;
1971
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1972
+ byteLength: z.ZodNumber;
1973
+ }, z.core.$strict>]>;
1974
+ archive: z.ZodUnion<readonly [z.ZodObject<{
1975
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
1976
+ kind: z.ZodLiteral<"s3">;
1977
+ bucket: z.ZodString;
1978
+ key: z.ZodString;
1979
+ region: z.ZodOptional<z.ZodString>;
1980
+ }, z.core.$strict>, z.ZodObject<{
1981
+ kind: z.ZodLiteral<"ipfs">;
1982
+ cid: z.ZodString;
1983
+ path: z.ZodOptional<z.ZodString>;
1984
+ }, z.core.$strict>], "kind">;
1985
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1986
+ byteLength: z.ZodNumber;
1987
+ }, z.core.$strict>, z.ZodObject<{
1988
+ encoding: z.ZodLiteral<"base64">;
1989
+ content: z.ZodString;
1990
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
1991
+ byteLength: z.ZodNumber;
1992
+ }, z.core.$strict>]>;
1993
+ }, z.core.$strict>;
1994
+ }, z.core.$strict>], "mode">;
1995
+ usage: z.ZodObject<{
1996
+ costUsd: z.ZodNumber;
1997
+ inputTokens: z.ZodNumber;
1998
+ outputTokens: z.ZodNumber;
1999
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2000
+ modelCalls: z.ZodNumber;
2001
+ }, z.core.$strict>;
2002
+ modelUsage: z.ZodObject<{
2003
+ resolved: z.ZodObject<{
2004
+ requested: z.ZodString;
2005
+ provider: z.ZodString;
2006
+ model: z.ZodString;
2007
+ snapshot: z.ZodString;
2008
+ reasoningEffort: z.ZodEnum<{
2009
+ none: "none";
2010
+ minimal: "minimal";
2011
+ low: "low";
2012
+ medium: "medium";
2013
+ high: "high";
2014
+ xhigh: "xhigh";
2015
+ ultracode: "ultracode";
2016
+ }>;
2017
+ }, z.core.$strict>;
2018
+ usage: z.ZodObject<{
2019
+ costUsd: z.ZodNumber;
2020
+ inputTokens: z.ZodNumber;
2021
+ outputTokens: z.ZodNumber;
2022
+ cachedInputTokens: z.ZodOptional<z.ZodNumber>;
2023
+ modelCalls: z.ZodNumber;
2024
+ }, z.core.$strict>;
2025
+ }, z.core.$strict>;
2026
+ trace: z.ZodObject<{
2027
+ schemaVersion: z.ZodLiteral<1>;
2028
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2029
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2030
+ kind: z.ZodLiteral<"s3">;
2031
+ bucket: z.ZodString;
2032
+ key: z.ZodString;
2033
+ region: z.ZodOptional<z.ZodString>;
2034
+ }, z.core.$strict>, z.ZodObject<{
2035
+ kind: z.ZodLiteral<"ipfs">;
2036
+ cid: z.ZodString;
2037
+ path: z.ZodOptional<z.ZodString>;
2038
+ }, z.core.$strict>], "kind">;
2039
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2040
+ byteLength: z.ZodNumber;
2041
+ }, z.core.$strict>, z.ZodObject<{
2042
+ encoding: z.ZodLiteral<"base64">;
2043
+ content: z.ZodString;
2044
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2045
+ byteLength: z.ZodNumber;
2046
+ }, z.core.$strict>]>;
2047
+ eventCount: z.ZodNumber;
2048
+ modelCallCount: z.ZodNumber;
2049
+ }, z.core.$strict>;
2050
+ termination: z.ZodDiscriminatedUnion<[z.ZodObject<{
2051
+ kind: z.ZodLiteral<"exit">;
2052
+ exitCode: z.ZodNumber;
2053
+ }, z.core.$strict>, z.ZodObject<{
2054
+ kind: z.ZodLiteral<"timeout">;
2055
+ timeoutMs: z.ZodNumber;
2056
+ }, z.core.$strict>, z.ZodObject<{
2057
+ kind: z.ZodLiteral<"signal">;
2058
+ signal: z.ZodString;
2059
+ }, z.core.$strict>, z.ZodObject<{
2060
+ kind: z.ZodLiteral<"cancelled">;
2061
+ }, z.core.$strict>], "kind">;
2062
+ fixedUsage: z.ZodObject<{
2063
+ inputTokens: z.ZodNumber;
2064
+ outputTokens: z.ZodNumber;
2065
+ cachedInputTokens: z.ZodNumber;
2066
+ reasoningTokens: z.ZodNumber;
2067
+ modelCalls: z.ZodNumber;
2068
+ costUsdNanos: z.ZodNumber;
2069
+ }, z.core.$strict>;
2070
+ modelSettlement: z.ZodObject<{
2071
+ schemaVersion: z.ZodLiteral<1>;
2072
+ kind: z.ZodLiteral<"agent-candidate-model-settlement">;
2073
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2074
+ material: z.ZodType<{
2075
+ schemaVersion: 1;
2076
+ kind: "agent-candidate-model-settlement-material";
2077
+ executionPlanDigest: `sha256:${string}`;
2078
+ preparationId: string;
2079
+ grantDigest: `sha256:${string}`;
2080
+ closed: true;
2081
+ resolved: {
2082
+ requested: string;
2083
+ provider: string;
2084
+ model: string;
2085
+ snapshot: string;
2086
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2087
+ };
2088
+ calls: {
2089
+ callId: string;
2090
+ traceSpanId: string;
2091
+ model: string;
2092
+ inputTokens: number;
2093
+ outputTokens: number;
2094
+ cachedInputTokens: number;
2095
+ reasoningTokens: number;
2096
+ costUsdNanos: number;
2097
+ }[];
2098
+ usage: {
2099
+ inputTokens: number;
2100
+ outputTokens: number;
2101
+ cachedInputTokens: number;
2102
+ reasoningTokens: number;
2103
+ modelCalls: number;
2104
+ costUsdNanos: number;
2105
+ };
2106
+ }, unknown, z.core.$ZodTypeInternals<{
2107
+ schemaVersion: 1;
2108
+ kind: "agent-candidate-model-settlement-material";
2109
+ executionPlanDigest: `sha256:${string}`;
2110
+ preparationId: string;
2111
+ grantDigest: `sha256:${string}`;
2112
+ closed: true;
2113
+ resolved: {
2114
+ requested: string;
2115
+ provider: string;
2116
+ model: string;
2117
+ snapshot: string;
2118
+ reasoningEffort: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
2119
+ };
2120
+ calls: {
2121
+ callId: string;
2122
+ traceSpanId: string;
2123
+ model: string;
2124
+ inputTokens: number;
2125
+ outputTokens: number;
2126
+ cachedInputTokens: number;
2127
+ reasoningTokens: number;
2128
+ costUsdNanos: number;
2129
+ }[];
2130
+ usage: {
2131
+ inputTokens: number;
2132
+ outputTokens: number;
2133
+ cachedInputTokens: number;
2134
+ reasoningTokens: number;
2135
+ modelCalls: number;
2136
+ costUsdNanos: number;
2137
+ };
2138
+ }, unknown>>;
2139
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2140
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2141
+ kind: z.ZodLiteral<"s3">;
2142
+ bucket: z.ZodString;
2143
+ key: z.ZodString;
2144
+ region: z.ZodOptional<z.ZodString>;
2145
+ }, z.core.$strict>, z.ZodObject<{
2146
+ kind: z.ZodLiteral<"ipfs">;
2147
+ cid: z.ZodString;
2148
+ path: z.ZodOptional<z.ZodString>;
2149
+ }, z.core.$strict>], "kind">;
2150
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2151
+ byteLength: z.ZodNumber;
2152
+ }, z.core.$strict>, z.ZodObject<{
2153
+ encoding: z.ZodLiteral<"base64">;
2154
+ content: z.ZodString;
2155
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2156
+ byteLength: z.ZodNumber;
2157
+ }, z.core.$strict>]>;
2158
+ }, z.core.$strict>;
2159
+ taskOutcome: z.ZodObject<{
2160
+ schemaVersion: z.ZodLiteral<1>;
2161
+ kind: z.ZodLiteral<"agent-candidate-task-outcome">;
2162
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2163
+ material: z.ZodType<{
2164
+ schemaVersion: 1;
2165
+ kind: "agent-candidate-task-outcome-material";
2166
+ executionPlanDigest: `sha256:${string}`;
2167
+ baseRepository: {
2168
+ identity: string;
2169
+ rootIdentity: string;
2170
+ commit: string;
2171
+ tree: string;
2172
+ };
2173
+ resultRepository: {
2174
+ identity: string;
2175
+ rootIdentity: string;
2176
+ commit: string;
2177
+ tree: string;
2178
+ };
2179
+ afterState: {
2180
+ schemaVersion: 1;
2181
+ kind: "agent-candidate-workspace-snapshot";
2182
+ digest: `sha256:${string}`;
2183
+ material: {
2184
+ schemaVersion: 1;
2185
+ kind: "agent-candidate-workspace-manifest";
2186
+ files: {
2187
+ path: string;
2188
+ mode: 420 | 493;
2189
+ sha256: `sha256:${string}`;
2190
+ byteLength: number;
2191
+ }[];
2192
+ };
2193
+ manifest: {
2194
+ locator: {
2195
+ kind: "s3";
2196
+ bucket: string;
2197
+ key: string;
2198
+ region?: string | undefined;
2199
+ } | {
2200
+ kind: "ipfs";
2201
+ cid: string;
2202
+ path?: string | undefined;
2203
+ };
2204
+ sha256: `sha256:${string}`;
2205
+ byteLength: number;
2206
+ } | {
2207
+ encoding: "base64";
2208
+ content: string;
2209
+ sha256: `sha256:${string}`;
2210
+ byteLength: number;
2211
+ };
2212
+ archive: {
2213
+ locator: {
2214
+ kind: "s3";
2215
+ bucket: string;
2216
+ key: string;
2217
+ region?: string | undefined;
2218
+ } | {
2219
+ kind: "ipfs";
2220
+ cid: string;
2221
+ path?: string | undefined;
2222
+ };
2223
+ sha256: `sha256:${string}`;
2224
+ byteLength: number;
2225
+ } | {
2226
+ encoding: "base64";
2227
+ content: string;
2228
+ sha256: `sha256:${string}`;
2229
+ byteLength: number;
2230
+ };
2231
+ };
2232
+ gitDiff: {
2233
+ format: "git-diff-binary";
2234
+ artifact: {
2235
+ locator: {
2236
+ kind: "s3";
2237
+ bucket: string;
2238
+ key: string;
2239
+ region?: string | undefined;
2240
+ } | {
2241
+ kind: "ipfs";
2242
+ cid: string;
2243
+ path?: string | undefined;
2244
+ };
2245
+ sha256: `sha256:${string}`;
2246
+ byteLength: number;
2247
+ };
2248
+ };
2249
+ }, unknown, z.core.$ZodTypeInternals<{
2250
+ schemaVersion: 1;
2251
+ kind: "agent-candidate-task-outcome-material";
2252
+ executionPlanDigest: `sha256:${string}`;
2253
+ baseRepository: {
2254
+ identity: string;
2255
+ rootIdentity: string;
2256
+ commit: string;
2257
+ tree: string;
2258
+ };
2259
+ resultRepository: {
2260
+ identity: string;
2261
+ rootIdentity: string;
2262
+ commit: string;
2263
+ tree: string;
2264
+ };
2265
+ afterState: {
2266
+ schemaVersion: 1;
2267
+ kind: "agent-candidate-workspace-snapshot";
2268
+ digest: `sha256:${string}`;
2269
+ material: {
2270
+ schemaVersion: 1;
2271
+ kind: "agent-candidate-workspace-manifest";
2272
+ files: {
2273
+ path: string;
2274
+ mode: 420 | 493;
2275
+ sha256: `sha256:${string}`;
2276
+ byteLength: number;
2277
+ }[];
2278
+ };
2279
+ manifest: {
2280
+ locator: {
2281
+ kind: "s3";
2282
+ bucket: string;
2283
+ key: string;
2284
+ region?: string | undefined;
2285
+ } | {
2286
+ kind: "ipfs";
2287
+ cid: string;
2288
+ path?: string | undefined;
2289
+ };
2290
+ sha256: `sha256:${string}`;
2291
+ byteLength: number;
2292
+ } | {
2293
+ encoding: "base64";
2294
+ content: string;
2295
+ sha256: `sha256:${string}`;
2296
+ byteLength: number;
2297
+ };
2298
+ archive: {
2299
+ locator: {
2300
+ kind: "s3";
2301
+ bucket: string;
2302
+ key: string;
2303
+ region?: string | undefined;
2304
+ } | {
2305
+ kind: "ipfs";
2306
+ cid: string;
2307
+ path?: string | undefined;
2308
+ };
2309
+ sha256: `sha256:${string}`;
2310
+ byteLength: number;
2311
+ } | {
2312
+ encoding: "base64";
2313
+ content: string;
2314
+ sha256: `sha256:${string}`;
2315
+ byteLength: number;
2316
+ };
2317
+ };
2318
+ gitDiff: {
2319
+ format: "git-diff-binary";
2320
+ artifact: {
2321
+ locator: {
2322
+ kind: "s3";
2323
+ bucket: string;
2324
+ key: string;
2325
+ region?: string | undefined;
2326
+ } | {
2327
+ kind: "ipfs";
2328
+ cid: string;
2329
+ path?: string | undefined;
2330
+ };
2331
+ sha256: `sha256:${string}`;
2332
+ byteLength: number;
2333
+ };
2334
+ };
2335
+ }, unknown>>;
2336
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2337
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2338
+ kind: z.ZodLiteral<"s3">;
2339
+ bucket: z.ZodString;
2340
+ key: z.ZodString;
2341
+ region: z.ZodOptional<z.ZodString>;
2342
+ }, z.core.$strict>, z.ZodObject<{
2343
+ kind: z.ZodLiteral<"ipfs">;
2344
+ cid: z.ZodString;
2345
+ path: z.ZodOptional<z.ZodString>;
2346
+ }, z.core.$strict>], "kind">;
2347
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2348
+ byteLength: z.ZodNumber;
2349
+ }, z.core.$strict>, z.ZodObject<{
2350
+ encoding: z.ZodLiteral<"base64">;
2351
+ content: z.ZodString;
2352
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2353
+ byteLength: z.ZodNumber;
2354
+ }, z.core.$strict>]>;
2355
+ }, z.core.$strict>;
2356
+ benchmarkResult: z.ZodObject<{
2357
+ schemaVersion: z.ZodLiteral<1>;
2358
+ kind: z.ZodLiteral<"agent-candidate-benchmark-result">;
2359
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2360
+ material: z.ZodType<{
2361
+ schemaVersion: 1;
2362
+ kind: "agent-candidate-benchmark-result-material";
2363
+ executionPlanDigest: `sha256:${string}`;
2364
+ taskOutcomeDigest: `sha256:${string}`;
2365
+ benchmark: {
2366
+ name: string;
2367
+ version: string;
2368
+ taskId: string;
2369
+ splitDigest: `sha256:${string}`;
2370
+ };
2371
+ grader: {
2372
+ name: string;
2373
+ version: string;
2374
+ artifact: {
2375
+ locator: {
2376
+ kind: "s3";
2377
+ bucket: string;
2378
+ key: string;
2379
+ region?: string | undefined;
2380
+ } | {
2381
+ kind: "ipfs";
2382
+ cid: string;
2383
+ path?: string | undefined;
2384
+ };
2385
+ sha256: `sha256:${string}`;
2386
+ byteLength: number;
2387
+ };
2388
+ };
2389
+ evidence: {
2390
+ locator: {
2391
+ kind: "s3";
2392
+ bucket: string;
2393
+ key: string;
2394
+ region?: string | undefined;
2395
+ } | {
2396
+ kind: "ipfs";
2397
+ cid: string;
2398
+ path?: string | undefined;
2399
+ };
2400
+ sha256: `sha256:${string}`;
2401
+ byteLength: number;
2402
+ };
2403
+ score: number;
2404
+ passed: boolean;
2405
+ dimensions: {
2406
+ name: string;
2407
+ score: number;
2408
+ }[];
2409
+ }, unknown, z.core.$ZodTypeInternals<{
2410
+ schemaVersion: 1;
2411
+ kind: "agent-candidate-benchmark-result-material";
2412
+ executionPlanDigest: `sha256:${string}`;
2413
+ taskOutcomeDigest: `sha256:${string}`;
2414
+ benchmark: {
2415
+ name: string;
2416
+ version: string;
2417
+ taskId: string;
2418
+ splitDigest: `sha256:${string}`;
2419
+ };
2420
+ grader: {
2421
+ name: string;
2422
+ version: string;
2423
+ artifact: {
2424
+ locator: {
2425
+ kind: "s3";
2426
+ bucket: string;
2427
+ key: string;
2428
+ region?: string | undefined;
2429
+ } | {
2430
+ kind: "ipfs";
2431
+ cid: string;
2432
+ path?: string | undefined;
2433
+ };
2434
+ sha256: `sha256:${string}`;
2435
+ byteLength: number;
2436
+ };
2437
+ };
2438
+ evidence: {
2439
+ locator: {
2440
+ kind: "s3";
2441
+ bucket: string;
2442
+ key: string;
2443
+ region?: string | undefined;
2444
+ } | {
2445
+ kind: "ipfs";
2446
+ cid: string;
2447
+ path?: string | undefined;
2448
+ };
2449
+ sha256: `sha256:${string}`;
2450
+ byteLength: number;
2451
+ };
2452
+ score: number;
2453
+ passed: boolean;
2454
+ dimensions: {
2455
+ name: string;
2456
+ score: number;
2457
+ }[];
2458
+ }, unknown>>;
2459
+ artifact: z.ZodUnion<readonly [z.ZodObject<{
2460
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
2461
+ kind: z.ZodLiteral<"s3">;
2462
+ bucket: z.ZodString;
2463
+ key: z.ZodString;
2464
+ region: z.ZodOptional<z.ZodString>;
2465
+ }, z.core.$strict>, z.ZodObject<{
2466
+ kind: z.ZodLiteral<"ipfs">;
2467
+ cid: z.ZodString;
2468
+ path: z.ZodOptional<z.ZodString>;
2469
+ }, z.core.$strict>], "kind">;
2470
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2471
+ byteLength: z.ZodNumber;
2472
+ }, z.core.$strict>, z.ZodObject<{
2473
+ encoding: z.ZodLiteral<"base64">;
2474
+ content: z.ZodString;
2475
+ sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2476
+ byteLength: z.ZodNumber;
2477
+ }, z.core.$strict>]>;
2478
+ }, z.core.$strict>;
2479
+ digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
2480
+ }, z.core.$strict>]>;