Public: anyone can read this; the crew can change it.
A delegated cell's pids.max counts threads, so it's TASKS_MAX; the watch still stops at 512 processes #17540
Merged 12h 24m ago, live in production
cellCgroup wrote a cell's pids.max as PROCESSESMAX (512), the watch's process limit. cgroup v2's pids.max counts tasks, threads included, as RLIMITNPROC does, and cells already ran under RLIMITNPROC at TASKSMAX (4096).
-
Reviews
Changes requested — before the latest pushThe code change is right and safe:
pids.maxcounts threads, soTASKS_MAX(4096) is the correct kernel limit and the watch keeps its 512-process count. It also removes a cap that was starving checks. Tests cover it, and the /system wording matches the two limits.One thing to fix: the docs still state the old behaviour, so there are now two answers to the same question.
docs/APPS.mdlines 716-719 say each app and check cell getspids.max512. It is now 4096 (TASKS_MAX, threads counted), while the watch still stops a cell at 512 processes. Reword that paragraph to say so, and keep the #10518 reference.
Optional: the new comment lines in
src/apps/contain.tsrun past the comment width used elsewhere in the file.bun scripts/gate.ts --fixwill rewrap them.No second door is needed: the TUI has no screen for this /system line.
ApprovedThe fix is right: pids.max counts threads, so the kernel cap is TASKS_MAX (4096) and the watch keeps its 512-process count. The cap no longer starves sharded checks. Tests assert the new value and the ordering, docs/APPS.md is reworded (the sentinel's point is done), and the /system line names both limits. The only web change is one sentence on /system, the same paragraph and no new component, so the design principles hold. The preview's /system answers (it redirects to sign-in without a session). No second door is needed: the TUI has no screen for this line.
Two things I would do next:
- In src/apps/cgroup.ts,
openCellCgroup's parameter and the comment near line 271 still say 'process count' for the value written to pids.max. Rename it to say tasks, so there is one word for the kernel's number. - The new comment lines in src/apps/contain.ts around cellCgroup run past the file's comment width; run
bun scripts/gate.ts --fixand commit the rewrap.
-
Checks
shipped production is serving it deploy 339cc69
-
History
- A delegated cell's pids.max counts threads, so it's TASKS_MAX; the watch still stops at 512 processes 003dcbc
- Games G1: Modrinth, done properly: search with a compatibility badge, dependency preview, a locked install, updates (#17293) 07aa752
- A test file that reads a ratchet list names the one line to edit when it fails (#17538) 9b542ac
- A pull's review verdicts are 44 px targets under a finger: room before each radio, inside its label (#17530) b3c859f
- Talk: a message sent while the forge boots says it is starting, never "agent is not running" (#17518) 5556e83
- Talk: the Preview pane shows the conversation's own work, or nothing yet, never a repository it only read (#17517) 18aeb4d
- Talk: the agent says the Do it buttons are above the message box, and calls a name it picked its pick (#17516) 69778db
- scripts/design-lint.ts runs the empty-words and width-read ratchets, so a builder sees them before the push (#17531) 57d706a
- The check cell has what takeLook with only loopback needs, or the test says so once and stays out of the verdict (#17534) f6a4faf
- Merge pull request #17533 from sold/game-diag-containers 9e80f3f
- A game box's diag counts every container, not the last two da46449
- A loading terminal screen holds its own keys until load settles, and every load awaits its first read (#17529) a8e4988
- Tests depend on their order within a file: 66 tests in 24 of 80 sampled files fail under --randomize (#17505) d8024b8
- The Dependencies screen is busy until its report is read, so a and f are never dropped (#17524) 0d18300
- Talk: a turn's words written before it heard a confirm's answer are not kept, so the thread never says a pressed Do it still waits (#17507) ae14868
- The OpenAPI served-routes walk loads its route modules in the hook and runs in two tests, under the 2 s CPU budget (#17525) b482465
- /sitemap.xml lists the public apps /explore ranks, up to 200, each with its last change (#13624) 9fff9f4
- Talk: what the dock said is cleared by the next turn, so the live region never keeps an old refusal (#17519) 2e019c9
- Talk: with several proposals waiting, the newest is first and open, so Do it answers what was asked last (#17515) 0fbd355
- A runner's cgroup delegated after it starts is used: a named cgroup not yet writable is asked again (#17501) a36194f
cellCgroup wrote a cell's pids.max as PROCESSES_MAX (512), the watch's process limit. cgroup v2's pids.max counts tasks, threads included, as RLIMIT_NPROC does, and cells already ran under RLIMIT_NPROC at TASKS_MAX (4096). On the first runner with a delegated cgroup (vx-1, 2026-12-02) a sharded check's cell, eight bun processes of a dozen threads each plus their servers and git spawns, ran into 512: posix_spawn of git, bun and claude answered EAGAIN, Bun aborted creating a thread, and 54 tests failed that pass on every other runner. Now pids.max is TASKS_MAX, the same count as the RLIMIT_NPROC the cell starts under; the watch still stops a cell past PROCESSES_MAX (512) processes every tick, delegated or not. /system says both. Measured in a delegated runner-shaped container: one shard of cookie-flags and boot-production peaks at 64-142 tasks; forced to 60, pids.events counts and tests fail; at 4096, eight shards of cookie-flags and two of boot-production pass with no pids event.
Direction: contributors' cells on runners held by the kernel, without starving a sharded check (#10441) No door: the terminal shows no cell caps line; this rewords /system's existing one to the right number Looks: /system Try: open /system on a forge whose cells have a delegated cgroup: the cells line says tasks are capped by the kernel at 4096 and processes by the watch at 512
🤖 Generated with Claude Code