// Image-baked final admission, using the same strict state reader as the host. import { assertProcessing } from './state.mjs'; try { assertProcessing(process.argv[2], process.env.MOSAIC_PROCESSING_GENERATION ?? null); } catch (e) { process.stderr.write(`run-agent: ${e.code?.startsWith('processing-') ? e.code : 'processing-state-invalid'}\n`); process.exit(3); }