The app sleep sweep (src/apps/runtime.ts around lines 1222-1240) decides from time since the last request only. A hosted forge, or any app whose child processes are mid-work (a crew run, a build), can be put to sleep under them.
Acceptance:
Files: src/apps/runtime.ts, src/apps/*.test.ts, src/web/studio/now.ts. Risk: an app that lies about being busy never sleeps; cap the grace at one run length.
Found by the 2026-10-02 runtime spike while planning hosted forges; it blocks forges inside forges.
The app sleep sweep (src/apps/runtime.ts around lines 1222-1240) decides from time since the last request only. A hosted forge, or any app whose child processes are mid-work (a crew run, a build), can be put to sleep under them.
Acceptance:
Files: src/apps/runtime.ts, src/apps/*.test.ts, src/web/studio/now.ts. Risk: an app that lies about being busy never sleeps; cap the grace at one run length.
Found by the 2026-10-02 runtime spike while planning hosted forges; it blocks forges inside forges.