Follow-up to #14787 (pull #14826), which made restore drills boot their copy inert with FORGE_READ_ONLY=1.
src/release/boot.ts (bootOnPort, around line 92) starts src/main.ts on a data directory with only FORGE_APP_ENV=preview and FORGE_SSH_PORT=0. Preview only keeps the crew off. The proof's copy still runs startDuties: its first delivery pass (engine/duties.ts) sends any pending webhook_delivery and webhook_ping rows, signed. It also starts the notifier, app reconciliation and bootHostedChildren.
FORGE_READ_ONLY=1 is not the fix here. The release proof has to show that a new version boots in full, migrations included, and the standby path skips most of that boot.
Fix. Add an inert boot mode that main.ts honours: run migrations and serve, but skip duties and webhook delivery, the notifier, apps, hosted children, snapshots, mirrors and timers. Make deliverDue refuse in that mode too, as defence in depth. Boot the release proof in it.
Done when a test shows the release proof's environment selects that mode, and a test shows delivery refuses in it.
Follow-up to #14787 (pull #14826), which made restore drills boot their copy inert with
FORGE_READ_ONLY=1.src/release/boot.ts(bootOnPort, around line 92) startssrc/main.tson a data directory with onlyFORGE_APP_ENV=previewandFORGE_SSH_PORT=0. Preview only keeps the crew off. The proof's copy still runsstartDuties: its first delivery pass (engine/duties.ts) sends any pendingwebhook_deliveryandwebhook_pingrows, signed. It also starts the notifier, app reconciliation andbootHostedChildren.FORGE_READ_ONLY=1is not the fix here. The release proof has to show that a new version boots in full, migrations included, and the standby path skips most of that boot.Fix. Add an inert boot mode that main.ts honours: run migrations and serve, but skip duties and webhook delivery, the notifier, apps, hosted children, snapshots, mirrors and timers. Make
deliverDuerefuse in that mode too, as defence in depth. Boot the release proof in it.Done when a test shows the release proof's environment selects that mode, and a test shows delivery refuses in it.