[docs] CpuGuard: Record the guard in CLAUDE.md 5.7, its review, and G0.28 closed
This commit is contained in:
@@ -220,6 +220,7 @@ pnpm test:e2e # builds, then Playwright against the B
|
||||
pnpm test:offline # builds, loads once, CLOSES the server, reloads
|
||||
pnpm validate:library # every hope sentence; fixtures must FAIL
|
||||
pnpm lint:copy # forbidden words and names (§5.6)
|
||||
pnpm guard:cpu # waits for, then refuses, a machine above 80 % CPU (§5.7)
|
||||
pnpm art:board # prompts + stand-ins -> tools/art-prep/dist/board/ (docs/ART.md)
|
||||
pnpm art:accept <id> <file> # an accepted picture -> art/final/*.webp, sheets cut
|
||||
tsx scripts/build-places.ts <folder> # rebuilds the town list from downloaded Natural Earth + tzdb (by hand)
|
||||
@@ -412,7 +413,10 @@ happened twice.)*
|
||||
### 5.7 A test run leaves the machine as it found it
|
||||
|
||||
Nothing binds to anything but `127.0.0.1`. Every browser a test starts is closed in `finally`. Do not
|
||||
start a full run above ~80% CPU. *(Imported from Ludus and Aeterna.)*
|
||||
start a full run above ~80% CPU. *(Imported from Ludus and Aeterna.)* **Enforced, not trusted:**
|
||||
`pnpm test`, `test:e2e` and `test:offline` first run `pnpm guard:cpu`, which waits up to three minutes
|
||||
for the machine to calm and then refuses (`tools/cpu-guard`, lessons/process.md). A dedicated machine
|
||||
such as CI sets `ROSEA_CPU_MAX` (100 never refuses); never set it to get past a busy desktop.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user