assertledger 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.fr.md +14 -4
  2. package/README.md +14 -4
  3. package/conformance/schema-extensions.json +25 -0
  4. package/dist/build-info.json +1 -1
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +68 -20
  7. package/dist/cli.js.map +1 -1
  8. package/dist/contracts/index.d.ts +510 -4
  9. package/dist/contracts/index.d.ts.map +1 -1
  10. package/dist/contracts/index.js +230 -16
  11. package/dist/contracts/index.js.map +1 -1
  12. package/dist/contracts/runtime-doctor.d.ts +123 -0
  13. package/dist/contracts/runtime-doctor.d.ts.map +1 -1
  14. package/dist/contracts/runtime-doctor.js +64 -0
  15. package/dist/contracts/runtime-doctor.js.map +1 -1
  16. package/dist/core/index.d.ts.map +1 -1
  17. package/dist/core/index.js +5 -2
  18. package/dist/core/index.js.map +1 -1
  19. package/dist/diagnostics.d.ts.map +1 -1
  20. package/dist/diagnostics.js +26 -2
  21. package/dist/diagnostics.js.map +1 -1
  22. package/dist/engine/adapters/bun-test-profile.d.ts +17 -0
  23. package/dist/engine/adapters/bun-test-profile.d.ts.map +1 -0
  24. package/dist/engine/adapters/bun-test-profile.js +17 -0
  25. package/dist/engine/adapters/bun-test-profile.js.map +1 -0
  26. package/dist/engine/git-regression.d.ts +2 -2
  27. package/dist/engine/git-regression.d.ts.map +1 -1
  28. package/dist/engine/git-regression.js.map +1 -1
  29. package/dist/engine/index.d.ts +11 -5
  30. package/dist/engine/index.d.ts.map +1 -1
  31. package/dist/engine/index.js +454 -49
  32. package/dist/engine/index.js.map +1 -1
  33. package/dist/engine/runtime-doctor.d.ts +13 -4
  34. package/dist/engine/runtime-doctor.d.ts.map +1 -1
  35. package/dist/engine/runtime-doctor.js +80 -2
  36. package/dist/engine/runtime-doctor.js.map +1 -1
  37. package/dist/mcp/index.d.ts.map +1 -1
  38. package/dist/mcp/index.js +36 -6
  39. package/dist/mcp/index.js.map +1 -1
  40. package/dist/sdk/index.d.ts +7 -6
  41. package/dist/sdk/index.d.ts.map +1 -1
  42. package/dist/sdk/index.js +20 -7
  43. package/dist/sdk/index.js.map +1 -1
  44. package/docs/adapter-protocol.md +61 -0
  45. package/docs/architecture.md +4 -1
  46. package/docs/developer-experience.md +7 -5
  47. package/docs/distribution.md +8 -3
  48. package/docs/migration-verification-v3.md +33 -0
  49. package/docs/project-intent.md +7 -5
  50. package/docs/reference.md +6 -5
  51. package/docs/repository-init.md +38 -7
  52. package/docs/runtime-doctor.md +12 -9
  53. package/integrations/bun/assertions.d.mts +4 -0
  54. package/integrations/bun/assertions.mjs +25 -0
  55. package/integrations/bun/driver.d.mts +27 -0
  56. package/integrations/bun/driver.mjs +383 -0
  57. package/integrations/bun/preload.mjs +165 -0
  58. package/integrations/skill/SKILL.md +4 -1
  59. package/package.json +7 -3
  60. package/schemas/evidence-manifest.v3.json +897 -0
  61. package/schemas/repository-init-config.v2.json +210 -0
  62. package/schemas/repository-init-lock.v2.json +162 -0
  63. package/schemas/repository-init-result.v2.json +212 -0
  64. package/schemas/verification-request.v3.json +484 -0
@@ -44,6 +44,11 @@ export declare const NodeTestAdapterSchema: z.ZodObject<{
44
44
  baseTestFiles: z.ZodArray<z.ZodString>;
45
45
  extraArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
46
  }, z.core.$strict>;
47
+ export declare const BunTestAdapterSchema: z.ZodObject<{
48
+ kind: z.ZodLiteral<"bun-test">;
49
+ executable: z.ZodString;
50
+ baseTestFiles: z.ZodArray<z.ZodString>;
51
+ }, z.core.$strict>;
47
52
  export declare const StructuredCommandAdapterSchema: z.ZodObject<{
48
53
  kind: z.ZodLiteral<"testforge-command">;
49
54
  executable: z.ZodString;
@@ -61,6 +66,21 @@ export declare const AdapterSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
61
66
  arguments: z.ZodArray<z.ZodString>;
62
67
  protocolVersion: z.ZodLiteral<"1.0.0">;
63
68
  }, z.core.$strict>], "kind">;
69
+ export declare const AdapterV3Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
70
+ kind: z.ZodLiteral<"node-test">;
71
+ executable: z.ZodString;
72
+ baseTestFiles: z.ZodArray<z.ZodString>;
73
+ extraArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ kind: z.ZodLiteral<"testforge-command">;
76
+ executable: z.ZodString;
77
+ arguments: z.ZodArray<z.ZodString>;
78
+ protocolVersion: z.ZodLiteral<"1.0.0">;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"bun-test">;
81
+ executable: z.ZodString;
82
+ baseTestFiles: z.ZodArray<z.ZodString>;
83
+ }, z.core.$strict>], "kind">;
64
84
  export declare const StructuredCommandSchema: z.ZodObject<{
65
85
  executable: z.ZodString;
66
86
  arguments: z.ZodArray<z.ZodString>;
@@ -71,6 +91,7 @@ export declare const TrustedLocalIsolationSchema: z.ZodObject<{
71
91
  environmentAllowlist: z.ZodArray<z.ZodString>;
72
92
  }, z.core.$strict>;
73
93
  export declare const VERIFICATION_SCHEMA_VERSION_V2: "2.0.0";
94
+ export declare const VERIFICATION_SCHEMA_VERSION_V3: "3.0.0";
74
95
  export declare const ContainerImageReferenceSchema: z.ZodString;
75
96
  export declare const ContainerLimitsSchema: z.ZodObject<{
76
97
  memoryBytes: z.ZodInt;
@@ -254,6 +275,88 @@ export declare const VerificationRequestV2Schema: z.ZodObject<{
254
275
  }, z.core.$strict>;
255
276
  }, z.core.$strict>], "kind">;
256
277
  }, z.core.$strict>;
278
+ export declare const VerificationRequestV3Schema: z.ZodObject<{
279
+ repository: z.ZodObject<{
280
+ root: z.ZodString;
281
+ exclude: z.ZodArray<z.ZodString>;
282
+ }, z.core.$strict>;
283
+ candidateRoots: z.ZodArray<z.ZodString>;
284
+ budgets: z.ZodObject<{
285
+ maximumCandidates: z.ZodInt;
286
+ maximumWorlds: z.ZodInt;
287
+ maximumExecutions: z.ZodInt;
288
+ maximumRepositoryFiles: z.ZodInt;
289
+ maximumRepositoryBytes: z.ZodInt;
290
+ maximumWorldOverlayBytes: z.ZodInt;
291
+ maximumCandidateBytes: z.ZodInt;
292
+ maximumTotalCandidateBytes: z.ZodInt;
293
+ timeoutMsPerExecution: z.ZodInt;
294
+ maximumOutputBytes: z.ZodInt;
295
+ }, z.core.$strict>;
296
+ policy: z.ZodObject<{
297
+ policyVersion: z.ZodLiteral<"1.0.0">;
298
+ requiredAttempts: z.ZodInt;
299
+ minimumTargetWeightPermille: z.ZodInt;
300
+ maximumSelectedCandidates: z.ZodInt;
301
+ acceptedTargetOutcomes: z.ZodArray<z.ZodLiteral<"ASSERTION_FAILURE">>;
302
+ }, z.core.$strict>;
303
+ worlds: z.ZodArray<z.ZodObject<{
304
+ id: z.ZodString;
305
+ kind: z.ZodEnum<{
306
+ NEUTRAL: "NEUTRAL";
307
+ REFERENCE: "REFERENCE";
308
+ TARGET: "TARGET";
309
+ }>;
310
+ required: z.ZodBoolean;
311
+ weight: z.ZodInt;
312
+ provenance: z.ZodString;
313
+ files: z.ZodArray<z.ZodObject<{
314
+ path: z.ZodString;
315
+ content: z.ZodString;
316
+ }, z.core.$strict>>;
317
+ }, z.core.$strict>>;
318
+ candidates: z.ZodArray<z.ZodObject<{
319
+ id: z.ZodString;
320
+ files: z.ZodArray<z.ZodObject<{
321
+ path: z.ZodString;
322
+ content: z.ZodString;
323
+ }, z.core.$strict>>;
324
+ }, z.core.$strict>>;
325
+ isolation: z.ZodDiscriminatedUnion<[z.ZodObject<{
326
+ kind: z.ZodLiteral<"trusted-local">;
327
+ acknowledgedUnsafeExecution: z.ZodBoolean;
328
+ environmentAllowlist: z.ZodArray<z.ZodString>;
329
+ }, z.core.$strict>, z.ZodObject<{
330
+ kind: z.ZodLiteral<"container">;
331
+ image: z.ZodString;
332
+ environment: z.ZodArray<z.ZodObject<{
333
+ name: z.ZodString;
334
+ value: z.ZodString;
335
+ }, z.core.$strict>>;
336
+ limits: z.ZodObject<{
337
+ memoryBytes: z.ZodInt;
338
+ cpuMillicores: z.ZodInt;
339
+ pids: z.ZodInt;
340
+ temporaryDirectoryBytes: z.ZodInt;
341
+ }, z.core.$strict>;
342
+ }, z.core.$strict>], "kind">;
343
+ schemaVersion: z.ZodLiteral<"3.0.0">;
344
+ adapter: z.ZodDiscriminatedUnion<[z.ZodObject<{
345
+ kind: z.ZodLiteral<"node-test">;
346
+ executable: z.ZodString;
347
+ baseTestFiles: z.ZodArray<z.ZodString>;
348
+ extraArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
+ }, z.core.$strict>, z.ZodObject<{
350
+ kind: z.ZodLiteral<"testforge-command">;
351
+ executable: z.ZodString;
352
+ arguments: z.ZodArray<z.ZodString>;
353
+ protocolVersion: z.ZodLiteral<"1.0.0">;
354
+ }, z.core.$strict>, z.ZodObject<{
355
+ kind: z.ZodLiteral<"bun-test">;
356
+ executable: z.ZodString;
357
+ baseTestFiles: z.ZodArray<z.ZodString>;
358
+ }, z.core.$strict>], "kind">;
359
+ }, z.core.$strict>;
257
360
  export declare const RepositoryAnalysisSchema: z.ZodObject<{
258
361
  root: z.ZodString;
259
362
  fileCount: z.ZodInt;
@@ -590,6 +693,209 @@ export declare const RepositoryInitResultSchema: z.ZodObject<{
590
693
  arguments: z.ZodArray<z.ZodString>;
591
694
  }, z.core.$strict>>;
592
695
  }, z.core.$strict>;
696
+ export declare const REPOSITORY_INIT_SCHEMA_VERSION_V2: "2.0.0";
697
+ export declare const RepositoryInitDetectionsV2Schema: z.ZodObject<{
698
+ packageManager: z.ZodNullable<z.ZodEnum<{
699
+ bun: "bun";
700
+ npm: "npm";
701
+ pip: "pip";
702
+ pnpm: "pnpm";
703
+ poetry: "poetry";
704
+ uv: "uv";
705
+ yarn: "yarn";
706
+ }>>;
707
+ framework: z.ZodNullable<z.ZodEnum<{
708
+ "bun:test": "bun:test";
709
+ jest: "jest";
710
+ "node:test": "node:test";
711
+ pytest: "pytest";
712
+ vitest: "vitest";
713
+ }>>;
714
+ testCommand: z.ZodNullable<z.ZodObject<{
715
+ executable: z.ZodString;
716
+ arguments: z.ZodArray<z.ZodString>;
717
+ }, z.core.$strict>>;
718
+ ciProviders: z.ZodArray<z.ZodEnum<{
719
+ "azure-pipelines": "azure-pipelines";
720
+ circleci: "circleci";
721
+ "github-actions": "github-actions";
722
+ "gitlab-ci": "gitlab-ci";
723
+ }>>;
724
+ reasonCodes: z.ZodArray<z.ZodString>;
725
+ adapterRecommendation: z.ZodEnum<{
726
+ "bun-test": "bun-test";
727
+ "node-test": "node-test";
728
+ "operator-supplied": "operator-supplied";
729
+ unavailable: "unavailable";
730
+ }>;
731
+ }, z.core.$strict>;
732
+ export declare const RepositoryInitConfigV2Schema: z.ZodObject<{
733
+ repository: z.ZodObject<{
734
+ root: z.ZodLiteral<".">;
735
+ exclude: z.ZodArray<z.ZodString>;
736
+ }, z.core.$strict>;
737
+ packageManager: z.ZodEnum<{
738
+ bun: "bun";
739
+ npm: "npm";
740
+ pip: "pip";
741
+ pnpm: "pnpm";
742
+ poetry: "poetry";
743
+ uv: "uv";
744
+ yarn: "yarn";
745
+ }>;
746
+ framework: z.ZodEnum<{
747
+ "bun:test": "bun:test";
748
+ jest: "jest";
749
+ "node:test": "node:test";
750
+ pytest: "pytest";
751
+ vitest: "vitest";
752
+ }>;
753
+ testCommand: z.ZodObject<{
754
+ executable: z.ZodString;
755
+ arguments: z.ZodArray<z.ZodString>;
756
+ }, z.core.$strict>;
757
+ candidateRoots: z.ZodArray<z.ZodString>;
758
+ schemaVersion: z.ZodLiteral<"2.0.0">;
759
+ adapter: z.ZodDiscriminatedUnion<[z.ZodObject<{
760
+ kind: z.ZodLiteral<"node-test">;
761
+ executable: z.ZodString;
762
+ baseTestFiles: z.ZodArray<z.ZodString>;
763
+ extraArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
764
+ }, z.core.$strict>, z.ZodObject<{
765
+ kind: z.ZodLiteral<"testforge-command">;
766
+ executable: z.ZodString;
767
+ arguments: z.ZodArray<z.ZodString>;
768
+ protocolVersion: z.ZodLiteral<"1.0.0">;
769
+ }, z.core.$strict>, z.ZodObject<{
770
+ kind: z.ZodLiteral<"bun-test">;
771
+ executable: z.ZodString;
772
+ baseTestFiles: z.ZodArray<z.ZodString>;
773
+ }, z.core.$strict>], "kind">;
774
+ }, z.core.$strict>;
775
+ export declare const RepositoryInitLockV2Schema: z.ZodObject<{
776
+ configDigest: z.ZodString;
777
+ evidence: z.ZodArray<z.ZodObject<{
778
+ path: z.ZodString;
779
+ digest: z.ZodString;
780
+ kind: z.ZodEnum<{
781
+ ADAPTER_CONFIG: "ADAPTER_CONFIG";
782
+ CI_CONFIG: "CI_CONFIG";
783
+ LOCKFILE: "LOCKFILE";
784
+ PACKAGE_MANIFEST: "PACKAGE_MANIFEST";
785
+ TEST_SOURCE: "TEST_SOURCE";
786
+ }>;
787
+ }, z.core.$strict>>;
788
+ lockDigest: z.ZodString;
789
+ schemaVersion: z.ZodLiteral<"2.0.0">;
790
+ detector: z.ZodObject<{
791
+ name: z.ZodLiteral<"assertledger-init">;
792
+ version: z.ZodLiteral<"2.0.0">;
793
+ }, z.core.$strict>;
794
+ detections: z.ZodObject<{
795
+ packageManager: z.ZodNullable<z.ZodEnum<{
796
+ bun: "bun";
797
+ npm: "npm";
798
+ pip: "pip";
799
+ pnpm: "pnpm";
800
+ poetry: "poetry";
801
+ uv: "uv";
802
+ yarn: "yarn";
803
+ }>>;
804
+ framework: z.ZodNullable<z.ZodEnum<{
805
+ "bun:test": "bun:test";
806
+ jest: "jest";
807
+ "node:test": "node:test";
808
+ pytest: "pytest";
809
+ vitest: "vitest";
810
+ }>>;
811
+ testCommand: z.ZodNullable<z.ZodObject<{
812
+ executable: z.ZodString;
813
+ arguments: z.ZodArray<z.ZodString>;
814
+ }, z.core.$strict>>;
815
+ ciProviders: z.ZodArray<z.ZodEnum<{
816
+ "azure-pipelines": "azure-pipelines";
817
+ circleci: "circleci";
818
+ "github-actions": "github-actions";
819
+ "gitlab-ci": "gitlab-ci";
820
+ }>>;
821
+ reasonCodes: z.ZodArray<z.ZodString>;
822
+ adapterRecommendation: z.ZodEnum<{
823
+ "bun-test": "bun-test";
824
+ "node-test": "node-test";
825
+ "operator-supplied": "operator-supplied";
826
+ unavailable: "unavailable";
827
+ }>;
828
+ }, z.core.$strict>;
829
+ }, z.core.$strict>;
830
+ export declare const RepositoryInitResultV2Schema: z.ZodObject<{
831
+ status: z.ZodEnum<{
832
+ BLOCKED: "BLOCKED";
833
+ CONFLICT: "CONFLICT";
834
+ CREATED: "CREATED";
835
+ UNCHANGED: "UNCHANGED";
836
+ WOULD_CREATE: "WOULD_CREATE";
837
+ }>;
838
+ reasonCodes: z.ZodArray<z.ZodString>;
839
+ actions: z.ZodArray<z.ZodObject<{
840
+ kind: z.ZodEnum<{
841
+ CREATE: "CREATE";
842
+ REGENERATE: "REGENERATE";
843
+ }>;
844
+ path: z.ZodEnum<{
845
+ "assertledger.config.json": "assertledger.config.json";
846
+ "assertledger.lock.json": "assertledger.lock.json";
847
+ }>;
848
+ }, z.core.$strict>>;
849
+ files: z.ZodArray<z.ZodObject<{
850
+ path: z.ZodEnum<{
851
+ "assertledger.config.json": "assertledger.config.json";
852
+ "assertledger.lock.json": "assertledger.lock.json";
853
+ }>;
854
+ digest: z.ZodString;
855
+ content: z.ZodString;
856
+ }, z.core.$strict>>;
857
+ requiredOperatorInputs: z.ZodTuple<[z.ZodLiteral<"worlds">, z.ZodLiteral<"candidates">], null>;
858
+ nextCommands: z.ZodArray<z.ZodObject<{
859
+ executable: z.ZodString;
860
+ arguments: z.ZodArray<z.ZodString>;
861
+ }, z.core.$strict>>;
862
+ schemaVersion: z.ZodLiteral<"2.0.0">;
863
+ detections: z.ZodObject<{
864
+ packageManager: z.ZodNullable<z.ZodEnum<{
865
+ bun: "bun";
866
+ npm: "npm";
867
+ pip: "pip";
868
+ pnpm: "pnpm";
869
+ poetry: "poetry";
870
+ uv: "uv";
871
+ yarn: "yarn";
872
+ }>>;
873
+ framework: z.ZodNullable<z.ZodEnum<{
874
+ "bun:test": "bun:test";
875
+ jest: "jest";
876
+ "node:test": "node:test";
877
+ pytest: "pytest";
878
+ vitest: "vitest";
879
+ }>>;
880
+ testCommand: z.ZodNullable<z.ZodObject<{
881
+ executable: z.ZodString;
882
+ arguments: z.ZodArray<z.ZodString>;
883
+ }, z.core.$strict>>;
884
+ ciProviders: z.ZodArray<z.ZodEnum<{
885
+ "azure-pipelines": "azure-pipelines";
886
+ circleci: "circleci";
887
+ "github-actions": "github-actions";
888
+ "gitlab-ci": "gitlab-ci";
889
+ }>>;
890
+ reasonCodes: z.ZodArray<z.ZodString>;
891
+ adapterRecommendation: z.ZodEnum<{
892
+ "bun-test": "bun-test";
893
+ "node-test": "node-test";
894
+ "operator-supplied": "operator-supplied";
895
+ unavailable: "unavailable";
896
+ }>;
897
+ }, z.core.$strict>;
898
+ }, z.core.$strict>;
593
899
  export declare const GateResultSchema: z.ZodObject<{
594
900
  name: z.ZodEnum<{
595
901
  COMPLETENESS: "COMPLETENESS";
@@ -1006,6 +1312,182 @@ export declare const EvidenceManifestV2Schema: z.ZodObject<{
1006
1312
  runtimeCommand: z.ZodArray<z.ZodString>;
1007
1313
  }, z.core.$strict>], "kind">;
1008
1314
  }, z.core.$strict>;
1315
+ export declare const EvidenceManifestV3Schema: z.ZodObject<{
1316
+ repositoryDigest: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"invalid">]>;
1317
+ policy: z.ZodUnion<readonly [z.ZodObject<{
1318
+ policyVersion: z.ZodLiteral<"1.0.0">;
1319
+ requiredAttempts: z.ZodInt;
1320
+ minimumTargetWeightPermille: z.ZodInt;
1321
+ maximumSelectedCandidates: z.ZodInt;
1322
+ acceptedTargetOutcomes: z.ZodArray<z.ZodLiteral<"ASSERTION_FAILURE">>;
1323
+ }, z.core.$strict>, z.ZodObject<{
1324
+ policyVersion: z.ZodLiteral<"invalid">;
1325
+ requiredAttempts: z.ZodLiteral<1>;
1326
+ minimumTargetWeightPermille: z.ZodLiteral<1000>;
1327
+ maximumSelectedCandidates: z.ZodLiteral<0>;
1328
+ acceptedTargetOutcomes: z.ZodArray<z.ZodLiteral<"ASSERTION_FAILURE">>;
1329
+ }, z.core.$strict>]>;
1330
+ worlds: z.ZodArray<z.ZodObject<{
1331
+ id: z.ZodString;
1332
+ kind: z.ZodEnum<{
1333
+ NEUTRAL: "NEUTRAL";
1334
+ REFERENCE: "REFERENCE";
1335
+ TARGET: "TARGET";
1336
+ }>;
1337
+ required: z.ZodBoolean;
1338
+ weight: z.ZodInt;
1339
+ }, z.core.$strict>>;
1340
+ candidates: z.ZodArray<z.ZodObject<{
1341
+ id: z.ZodString;
1342
+ digest: z.ZodString;
1343
+ sizeBytes: z.ZodInt;
1344
+ status: z.ZodEnum<{
1345
+ ELIGIBLE: "ELIGIBLE";
1346
+ INCONCLUSIVE: "INCONCLUSIVE";
1347
+ INVALID: "INVALID";
1348
+ UNSTABLE: "UNSTABLE";
1349
+ WEAK_ORACLE: "WEAK_ORACLE";
1350
+ }>;
1351
+ killedTargetIds: z.ZodArray<z.ZodString>;
1352
+ targetWeightKilled: z.ZodInt;
1353
+ gates: z.ZodArray<z.ZodObject<{
1354
+ name: z.ZodEnum<{
1355
+ COMPLETENESS: "COMPLETENESS";
1356
+ DISCOVERY: "DISCOVERY";
1357
+ NEUTRAL: "NEUTRAL";
1358
+ REFERENCE: "REFERENCE";
1359
+ STABILITY: "STABILITY";
1360
+ TARGET_STRENGTH: "TARGET_STRENGTH";
1361
+ }>;
1362
+ status: z.ZodEnum<{
1363
+ FAILED: "FAILED";
1364
+ NOT_RUN: "NOT_RUN";
1365
+ PASSED: "PASSED";
1366
+ }>;
1367
+ evidenceRunIds: z.ZodArray<z.ZodString>;
1368
+ reasonCodes: z.ZodArray<z.ZodString>;
1369
+ }, z.core.$strict>>;
1370
+ reasonCodes: z.ZodArray<z.ZodString>;
1371
+ }, z.core.$strict>>;
1372
+ observations: z.ZodArray<z.ZodObject<{
1373
+ runId: z.ZodString;
1374
+ candidateId: z.ZodNullable<z.ZodString>;
1375
+ worldId: z.ZodString;
1376
+ attempt: z.ZodInt;
1377
+ outcome: z.ZodEnum<{
1378
+ ASSERTION_FAILURE: "ASSERTION_FAILURE";
1379
+ COLLECTION_FAILURE: "COLLECTION_FAILURE";
1380
+ COMPILE_FAILURE: "COMPILE_FAILURE";
1381
+ INFRA_ERROR: "INFRA_ERROR";
1382
+ NO_TEST_DISCOVERED: "NO_TEST_DISCOVERED";
1383
+ PASS: "PASS";
1384
+ PROCESS_CRASH: "PROCESS_CRASH";
1385
+ TIMEOUT: "TIMEOUT";
1386
+ }>;
1387
+ testsDiscovered: z.ZodInt;
1388
+ candidateTestsDiscovered: z.ZodInt;
1389
+ attributed: z.ZodBoolean;
1390
+ durationMs: z.ZodOptional<z.ZodNumber>;
1391
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1392
+ stdoutDigest: z.ZodOptional<z.ZodString>;
1393
+ stderrDigest: z.ZodOptional<z.ZodString>;
1394
+ }, z.core.$strict>>;
1395
+ decision: z.ZodObject<{
1396
+ status: z.ZodEnum<{
1397
+ ENGINE_ERROR: "ENGINE_ERROR";
1398
+ INCONCLUSIVE: "INCONCLUSIVE";
1399
+ REJECTED: "REJECTED";
1400
+ VERIFIED: "VERIFIED";
1401
+ }>;
1402
+ selectedCandidateIds: z.ZodArray<z.ZodString>;
1403
+ reasonCodes: z.ZodArray<z.ZodString>;
1404
+ }, z.core.$strict>;
1405
+ decisionDigest: z.ZodString;
1406
+ artifactDigest: z.ZodString;
1407
+ limitations: z.ZodArray<z.ZodString>;
1408
+ evidenceContext: z.ZodObject<{
1409
+ engine: z.ZodObject<{
1410
+ name: z.ZodString;
1411
+ version: z.ZodString;
1412
+ }, z.core.$strict>;
1413
+ adapter: z.ZodObject<{
1414
+ name: z.ZodString;
1415
+ version: z.ZodString;
1416
+ configuration: z.ZodJSONSchema;
1417
+ }, z.core.$strict>;
1418
+ worlds: z.ZodArray<z.ZodObject<{
1419
+ id: z.ZodString;
1420
+ provenance: z.ZodString;
1421
+ digest: z.ZodString;
1422
+ }, z.core.$strict>>;
1423
+ execution: z.ZodObject<{
1424
+ isolation: z.ZodString;
1425
+ environmentAllowlist: z.ZodArray<z.ZodString>;
1426
+ budgets: z.ZodJSONSchema;
1427
+ candidateRoots: z.ZodArray<z.ZodString>;
1428
+ backend: z.ZodDiscriminatedUnion<[z.ZodObject<{
1429
+ kind: z.ZodLiteral<"trusted-local">;
1430
+ level: z.ZodLiteral<"UNSANDBOXED">;
1431
+ }, z.core.$strict>, z.ZodObject<{
1432
+ kind: z.ZodLiteral<"container">;
1433
+ level: z.ZodLiteral<"CONTAINER">;
1434
+ image: z.ZodObject<{
1435
+ reference: z.ZodString;
1436
+ id: z.ZodString;
1437
+ os: z.ZodLiteral<"linux">;
1438
+ architecture: z.ZodString;
1439
+ }, z.core.$strict>;
1440
+ runtime: z.ZodObject<{
1441
+ clientVersion: z.ZodString;
1442
+ serverVersion: z.ZodString;
1443
+ serverOs: z.ZodLiteral<"linux">;
1444
+ serverArchitecture: z.ZodString;
1445
+ cgroupVersion: z.ZodString;
1446
+ securityOptions: z.ZodArray<z.ZodString>;
1447
+ }, z.core.$strict>;
1448
+ controls: z.ZodObject<{
1449
+ network: z.ZodLiteral<"none">;
1450
+ rootFilesystem: z.ZodLiteral<"read-only">;
1451
+ hostMounts: z.ZodLiteral<"none">;
1452
+ workspace: z.ZodLiteral<"anonymous-volume">;
1453
+ user: z.ZodLiteral<"65534:65534">;
1454
+ capabilities: z.ZodLiteral<"none">;
1455
+ noNewPrivileges: z.ZodLiteral<true>;
1456
+ imagePull: z.ZodLiteral<"never">;
1457
+ logDriver: z.ZodLiteral<"none">;
1458
+ environment: z.ZodArray<z.ZodObject<{
1459
+ name: z.ZodString;
1460
+ value: z.ZodString;
1461
+ }, z.core.$strict>>;
1462
+ limits: z.ZodObject<{
1463
+ memoryBytes: z.ZodInt;
1464
+ cpuMillicores: z.ZodInt;
1465
+ pids: z.ZodInt;
1466
+ temporaryDirectoryBytes: z.ZodInt;
1467
+ }, z.core.$strict>;
1468
+ }, z.core.$strict>;
1469
+ }, z.core.$strict>], "kind">;
1470
+ }, z.core.$strict>;
1471
+ }, z.core.$strict>;
1472
+ isolation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1473
+ kind: z.ZodLiteral<"trusted-local">;
1474
+ level: z.ZodLiteral<"UNSANDBOXED">;
1475
+ acknowledgedUnsafeExecution: z.ZodLiteral<true>;
1476
+ }, z.core.$strict>, z.ZodObject<{
1477
+ kind: z.ZodLiteral<"container">;
1478
+ level: z.ZodLiteral<"CONTAINER">;
1479
+ runtimeCommand: z.ZodArray<z.ZodString>;
1480
+ }, z.core.$strict>], "kind">;
1481
+ schemaVersion: z.ZodLiteral<"3.0.0">;
1482
+ adapter: z.ZodDiscriminatedUnion<[z.ZodObject<{
1483
+ kind: z.ZodLiteral<"node-test">;
1484
+ }, z.core.$strict>, z.ZodObject<{
1485
+ kind: z.ZodLiteral<"bun-test">;
1486
+ }, z.core.$strict>, z.ZodObject<{
1487
+ kind: z.ZodLiteral<"testforge-command">;
1488
+ protocolVersion: z.ZodLiteral<"1.0.0">;
1489
+ }, z.core.$strict>], "kind">;
1490
+ }, z.core.$strict>;
1009
1491
  export declare const ReplayResultSchema: z.ZodObject<{
1010
1492
  valid: z.ZodBoolean;
1011
1493
  schemaValid: z.ZodBoolean;
@@ -4703,18 +5185,25 @@ export type World = z.infer<typeof WorldSchema>;
4703
5185
  export type Candidate = z.infer<typeof CandidateSchema>;
4704
5186
  export type VerificationRequest = z.infer<typeof VerificationRequestSchema>;
4705
5187
  export type VerificationRequestV2 = z.infer<typeof VerificationRequestV2Schema>;
5188
+ export type VerificationRequestV3 = z.infer<typeof VerificationRequestV3Schema>;
4706
5189
  export type ContainerIsolation = z.infer<typeof ContainerIsolationSchema>;
4707
5190
  export type ContainerLimits = z.infer<typeof ContainerLimitsSchema>;
4708
5191
  export type NodeTestAdapter = z.infer<typeof NodeTestAdapterSchema>;
5192
+ export type BunTestAdapter = z.infer<typeof BunTestAdapterSchema>;
4709
5193
  export type StructuredCommandAdapter = z.infer<typeof StructuredCommandAdapterSchema>;
4710
5194
  export type RepositoryAnalysis = z.infer<typeof RepositoryAnalysisSchema>;
4711
5195
  export type RepositoryAudit = z.infer<typeof RepositoryAuditSchema>;
4712
5196
  export type RepositoryInitConfig = z.infer<typeof RepositoryInitConfigSchema>;
5197
+ export type RepositoryInitConfigV2 = z.infer<typeof RepositoryInitConfigV2Schema>;
4713
5198
  export type RepositoryInitLock = z.infer<typeof RepositoryInitLockSchema>;
5199
+ export type RepositoryInitLockV2 = z.infer<typeof RepositoryInitLockV2Schema>;
4714
5200
  export type RepositoryInitResult = z.infer<typeof RepositoryInitResultSchema>;
5201
+ export type RepositoryInitResultV2 = z.infer<typeof RepositoryInitResultV2Schema>;
4715
5202
  export type RepositoryInitDetections = z.infer<typeof RepositoryInitDetectionsSchema>;
5203
+ export type RepositoryInitDetectionsV2 = z.infer<typeof RepositoryInitDetectionsV2Schema>;
4716
5204
  export type EvidenceManifestContract = z.infer<typeof EvidenceManifestSchema>;
4717
5205
  export type EvidenceManifestV2Contract = z.infer<typeof EvidenceManifestV2Schema>;
5206
+ export type EvidenceManifestV3Contract = z.infer<typeof EvidenceManifestV3Schema>;
4718
5207
  export type ExecutionBackendRecord = z.infer<typeof ExecutionBackendRecordSchema>;
4719
5208
  export type ReplayResult = z.infer<typeof ReplayResultSchema>;
4720
5209
  export type AgenticProfilePolicy = z.infer<typeof AgenticProfilePolicySchema>;
@@ -4760,21 +5249,33 @@ export declare class ContractError extends Error {
4760
5249
  constructor(code: string, detail?: string);
4761
5250
  }
4762
5251
  export declare function parseVerificationRequest(value: unknown): VerificationRequest;
4763
- /** Parses either the frozen v1 request or the v2 request that adds container isolation. */
4764
- export declare function parseVersionedVerificationRequest(value: unknown): VerificationRequest | VerificationRequestV2;
5252
+ /** Parses a frozen v1/v2 request or a v3 request that adds the Bun adapter. */
5253
+ export declare function parseVersionedVerificationRequest(value: unknown): VerificationRequest | VerificationRequestV2 | VerificationRequestV3;
5254
+ export declare function parseVerificationRequestV3(value: unknown): VerificationRequestV3;
4765
5255
  /** Parses only the v2 request, which adds container isolation to the frozen v1 request. */
4766
5256
  export declare function parseVerificationRequestV2(value: unknown): VerificationRequestV2;
4767
5257
  export declare function parseRepositoryAnalysis(value: unknown): RepositoryAnalysis;
4768
5258
  export declare function parseRepositoryAudit(value: unknown): RepositoryAudit;
5259
+ /** A declared exclusion names one entry and removes it at any depth, as inventories match names. */
5260
+ export declare function isRepositoryExcludeName(value: string): boolean;
4769
5261
  export declare function parseRepositoryInitConfig(value: unknown): RepositoryInitConfig;
5262
+ export declare function parseRepositoryInitConfigV2(value: unknown): RepositoryInitConfigV2;
5263
+ export declare function parseVersionedRepositoryInitConfig(value: unknown): RepositoryInitConfig | RepositoryInitConfigV2;
4770
5264
  export declare function repositoryInitConfigDigest(config: RepositoryInitConfig): string;
5265
+ export declare function repositoryInitConfigV2Digest(config: RepositoryInitConfigV2): string;
4771
5266
  export declare function repositoryInitLockDigest(lock: Omit<RepositoryInitLock, "lockDigest">): string;
5267
+ export declare function repositoryInitLockV2Digest(lock: Omit<RepositoryInitLockV2, "lockDigest">): string;
4772
5268
  export declare function parseRepositoryInitLock(value: unknown): RepositoryInitLock;
5269
+ export declare function parseRepositoryInitLockV2(value: unknown): RepositoryInitLockV2;
5270
+ export declare function parseVersionedRepositoryInitLock(value: unknown): RepositoryInitLock | RepositoryInitLockV2;
4773
5271
  export declare function parseRepositoryInitResult(value: unknown): RepositoryInitResult;
5272
+ export declare function parseRepositoryInitResultV2(value: unknown): RepositoryInitResultV2;
5273
+ export declare function parseVersionedRepositoryInitResult(value: unknown): RepositoryInitResult | RepositoryInitResultV2;
4774
5274
  export declare function parseEvidenceManifest(value: unknown): EvidenceManifestContract;
4775
5275
  export declare function parseEvidenceManifestV2(value: unknown): EvidenceManifestV2Contract;
4776
- /** Parses either a frozen v1 manifest or a v2 manifest with an execution backend record. */
4777
- export declare function parseVersionedEvidenceManifest(value: unknown): EvidenceManifestContract | EvidenceManifestV2Contract;
5276
+ export declare function parseEvidenceManifestV3(value: unknown): EvidenceManifestV3Contract;
5277
+ /** Parses a frozen v1/v2 manifest or a v3 manifest with the Bun adapter. */
5278
+ export declare function parseVersionedEvidenceManifest(value: unknown): EvidenceManifestContract | EvidenceManifestV2Contract | EvidenceManifestV3Contract;
4778
5279
  export declare function parseReplayResult(value: unknown): ReplayResult;
4779
5280
  export declare function parseAgenticProfileRequest(value: unknown): AgenticProfileRequest;
4780
5281
  export declare function parseAgenticProfileReport(value: unknown): AgenticProfileReport;
@@ -4814,9 +5315,14 @@ export declare function repositoryAuditJsonSchema(): Record<string, unknown>;
4814
5315
  export declare function repositoryInitConfigJsonSchema(): Record<string, unknown>;
4815
5316
  export declare function repositoryInitLockJsonSchema(): Record<string, unknown>;
4816
5317
  export declare function repositoryInitResultJsonSchema(): Record<string, unknown>;
5318
+ export declare function repositoryInitConfigV2JsonSchema(): Record<string, unknown>;
5319
+ export declare function repositoryInitLockV2JsonSchema(): Record<string, unknown>;
5320
+ export declare function repositoryInitResultV2JsonSchema(): Record<string, unknown>;
4817
5321
  export declare function evidenceManifestJsonSchema(): Record<string, unknown>;
4818
5322
  export declare function verificationRequestV2JsonSchema(): Record<string, unknown>;
4819
5323
  export declare function evidenceManifestV2JsonSchema(): Record<string, unknown>;
5324
+ export declare function verificationRequestV3JsonSchema(): Record<string, unknown>;
5325
+ export declare function evidenceManifestV3JsonSchema(): Record<string, unknown>;
4820
5326
  export declare function replayResultJsonSchema(): Record<string, unknown>;
4821
5327
  export declare function agenticProfileRequestJsonSchema(): Record<string, unknown>;
4822
5328
  export declare function agenticProfileReportJsonSchema(): Record<string, unknown>;