Complete V1 performance and OOM release gates

This commit is contained in:
mes123456
2026-08-14 22:32:09 -04:00
parent 3ea9974eee
commit a3f3071c03
45 changed files with 4206 additions and 276 deletions

View File

@@ -274,7 +274,13 @@ export async function writeProjectBlend(
stageName,
createdAt: new Date().toISOString(),
};
await writeFile(project, stageName, data);
try {
await writeFile(project, stageName, data);
}
catch (error) {
await removeFile(project, stageName);
throw error;
}
if (!await verifyFile(project, stageName, journal.bytes, journal.sha256)) {
throw new Error("PROJECT_SAVE_STAGE_VERIFY_FAILED: staged blend does not match its digest");
}