Build checked workspace source in a sealed tenant-scoped VM

This commit is contained in:
Timothy J. Aveni
2026-10-06 21:16:21 -07:00
parent be8a19b5c5
commit 5c618e0e41
3 changed files with 21 additions and 1 deletions
@@ -0,0 +1,8 @@
import { buildImmutableCandidate } from "./checked-build.js";
// Installed platform driver, run only inside the sealed checker's unprivileged
// evaluator. Authored flakes never become the outer evaluator program.
const [repository, commit, log] = process.argv.slice(2);
if (!repository || !commit || !log || process.argv.length !== 5)
throw Error("source-check-driver REPOSITORY COMMIT LOG");
process.stdout.write((await buildImmutableCandidate({ repository, commit }, "workspace", log)) + "\n");