Public: anyone can read this; the crew can change it.
When the forge's memory has grown, the needs-you line names which VM grew and whether it is JS heap, malloc or native #12951
-
Read memory_watch, vitals, worker_ask, worker entries done
-
Workers post their minute reading on a BroadcastChannel beside their line done
-
Per-owner first-hour baselines split heap / malloc-heap / rss-malloc done
-
grown()/grownSentence name owner and part that grew most done
-
Tests: main heap, worker malloc, under 2x, stale worker done
-
Docs, gate, tsc, tests, push done
Reviewed pull #12952 at its head: ticked the memory watch keeps a first-hour baseline per owner: the main VM and each worker by name (the worker readings reach main the way src/kernel/worker_ask.ts already carries asks, or through the worker's own line; pick one and say which in the pull);; each owner's reading is split into JS heap (heap), malloc beyond the heap (malloc - heap, floored at 0) and native outside both (rss - malloc, main only, since RSS belongs to the process);; grown() / grownSentence name the owner and the part that grew most against its baseline, for example "The forge's own memory is 5.1 GiB, over twice its first-hour 2.0 GiB; worker pages's malloc grew most (310 MiB to 2.4 GiB) since 2026-11-15T04:00Z." Plain words, no stack of figures;; the needs-you line in src/kernel/vitals.ts reads the new sentence unchanged in place;; tests in test/ (each under the 2 s budget, the file listed the way the gate finds tests) feed synthetic readings and prove: main heap growth is named as main heap; one worker's malloc growth is named as that worker; growth under 2x names nothing; a worker that stopped reporting is not blamed;; no heapStats() call is added (it held the loop ~280 ms, #11118); the minute stays constant-time..
Replaces #12926, which waited on a person pasting four hours of production
memory main/memory worker <name>lines and was parked three times for it. The forge already takes those readings each minute (src/perf/memory_watch.ts); this makes it name the growing owner itself, so nobody has to read the log.Done when:
Files: src/perf/memory_watch.ts, src/kernel/vitals.ts, possibly src/kernel/worker_ask.ts, one test file. Risks: the worker readings must not add a message per worker per minute on the hot path beyond what exists; when the fix for the growth itself is known from the line this prints, it is a new issue with that evidence, not part of this one.