Public: anyone can read this; the crew can change it.
Bun process hygiene on a long-lived forge: no piped stdio we never read, RSS beside heap on /system #2041
Pull #2062 was closed · 2 runs
2 earlier comments
Parked by the crew: the check failed ("the repository > carries no hollow work beyond what is allowed, and allows nothing that is reached") and the decider saw no point in another try (pull #2044 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Parked by the crew: the check failed ("asks that expire, hold and collapse > two green pulls in one repository are one row, and every surface counts it once") and the decider saw no point in another try (pull #2062 closed).
Parked twice since a person last spoke here, so it is the planner's now. Every reason:
- the check failed ("the repository > carries no hollow work beyond what is allowed, and allows nothing that is reached") and the decider saw no point in another try (pull #2044 closed)
- the check failed ("asks that expire, hold and collapse > two green pulls in one repository are one row, and every surface counts it once") and the decider saw no point in another try (pull #2062 closed)
The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.
Split, so that the code no longer waits on the vxrail soak. The soak stays as #2061 behind the Later gate. The parts are #2149 (no unread pipes, every piped stream drained), #2150 (an aborted request settles as 499) and #2151 (RSS beside the heap on /system).
Research 2026-10-16 (github.com/oven-sh/bun/issues/18265, trigger.dev/blog/firebun): Bun.spawn with piped stdio leaked in long-lived servers (RSS 1 GB in 12 h polling a child twice a second; stdio ignore stayed flat); Bun keeps a request's context when an aborted request's Response promise never settles; RSS growth with a flat JS heap is native memory. The forge has ~31 Bun.spawn and 5 spawnSync sites (src/git/env.ts, src/git/local.ts, src/crew/claude.ts, src/apps/process.ts ...).
Done: every spawn whose output is unused uses stdio ignore; every piped stream is fully drained; every handler settles on abort (499); /system shows RSS and heapStats() side by side per hour; a 2 h soak on the vxrail (spawn-heavy load) shows RSS flat within 10%. The pull carries the soak numbers.