// Canary script: run in a forked child process to verify index.js loads // without crashing. Exit 0 = safe, non-zero = broken. // // This is the last safety net before solidify commits an evolution. // If a patch broke index.js (syntax error, missing require, etc.), // the canary catches it BEFORE the daemon restarts with broken code. try { require('../index.js'); process.exit(0); } catch (e) { process.stderr.write(String(e.message || e).slice(0, 500)); process.exit(1); }