# Bound how many workspaces pnpm runs at once.
#
# `pnpm test` is `pnpm run -r --if-present test`, and 80 workspaces each start their own vitest,
# which fans out to its own worker pool. Left to defaults these two multipliers compound: measured
# on this repo, pnpm ran 9 workspaces concurrently and each vitest opened up to 22 workers, so a
# single `pnpm test` reached 84 concurrent test processes holding 7.1 GB after 40 seconds — still
# climbing. Two agents doing that at once exhausted 23 GB of RAM and 4 GB of swap on 2026-07-26 and
# the kernel OOM-killed the desktop session.
#
# 4 here pairs with the fork cap in vitest.config.ts (and VITEST_MAX_FORKS, which applies even to
# the 31 packages that carry their own vitest config). Same 40s window, both caps applied:
# 27 processes, 1.9 GB.
workspace-concurrency=4
