Check execution workspace candidates with pinned artifact builders

This commit is contained in:
Timothy J. Aveni
2026-09-21 01:09:31 -07:00
parent 7652b4c0b9
commit f69c81f607
4 changed files with 91 additions and 18 deletions
+8 -1
View File
@@ -34,6 +34,7 @@ export async function checkAuthoring(
phase: string;
output: string;
compilation?: "passed";
runtime?: "execution";
activationReadiness?: "preserve" | "migration-required" | "blocked";
migrationRequired?: string[];
} = {
@@ -98,7 +99,13 @@ export async function checkAuthoring(
const candidateText = await fs.readFile(path.join(report.artifactPath, "candidate.json"), "utf8");
await fs.writeFile(path.join(output, "candidate.json"), candidateText);
report.compilation = "passed";
if (resource.kind === "workspace" && !options.contractOnly) {
try {
await fs.access(path.join(report.artifactPath, "execution-plan.json"));
report.runtime = "execution";
} catch (error) {
if ((error as NodeJS.ErrnoException).code !== "ENOENT") throw error;
}
if (resource.kind === "workspace" && !options.contractOnly && report.runtime !== "execution") {
report.phase = "evolution";
await progress();
let baseline = options.baseline;