Assemble generic execution installations from checked artifacts

This commit is contained in:
Timothy J. Aveni
2026-09-21 01:16:51 -07:00
parent f69c81f607
commit 20ef63007c
3 changed files with 123 additions and 0 deletions
+8
View File
@@ -19,8 +19,16 @@ const checked = await compiler.loadCheckedArtifactWorld(
.update(await readFile(compilerPath))
.digest("hex"),
);
const installation = await compiler.loadExecutionInstallation(
plan,
roots,
createHash("sha256")
.update(await readFile(compilerPath))
.digest("hex"),
);
for (const [file, value] of [
["execution-world.json", checked.world],
["installation.json", installation],
["kernel.json", compiler.compileKernelProgram(plan)],
["queries.json", compiler.compileQueryProgram(plan)],
["execution-artifacts.json", { codec: "camino-checked-execution-v1", roots, manifests: checked.manifests }],