test: seal AB delivery failure and preserve validation boundaries

This commit is contained in:
Agent Workbench Dev
2026-11-05 03:35:06 +08:00
parent 658a5c4e37
commit 7ab242dfec
173 changed files with 1401499 additions and 6 deletions
@@ -0,0 +1,8 @@
import { spawnSync } from 'node:child_process';
import { readFileSync } from 'node:fs';
for (const file of ['src/amount.mjs','src/summary.mjs','src/report.mjs']) {
const result=spawnSync(process.execPath,['--check',file],{encoding:'utf8'});
if(result.status!==0) { process.stderr.write(result.stderr);process.exit(result.status??1); }
if(!readFileSync(file,'utf8').trim()) throw new Error('Empty business module');
}
console.log('All three business modules compile.');