Hold each heavy command for one of a heavy slot per 4 CPUs, and each worker until a quarter of memory is available #366

Merged
lilleman merged 19 commits from item-222 into main 2026-10-23 11:56:55 +02:00
Owner

Adds run-heavy <command>, which runs a heavy command once it holds one of the machine's heavy slots (one per 4 usable CPUs, shared by every session through flock files under ~/.local/state/run-heavy). A CLAUDE.md rule and a new rule-hook rule, run-heavy, have sessions use it for docker builds and mutation runs. loop-claude now waits to start a worker while less than a quarter of memory is available. The slots and the memory share live in bin/machine_load/.

Overrides: round-cap — the human granted the principles pass a fourth round; accepted.

Comprehension check: paired ruling same against 4a0ba59 (Mid A and the inherited architect both ruled Shape worse at rule_hook/rules.py heavy; filed as item 223). The loop-claude --help place keeps one sentence pointing at bin/machine_load/memory.py: the help is the loop's contract, and a loop that stops starting workers must be explainable from it.

Adds `run-heavy <command>`, which runs a heavy command once it holds one of the machine's heavy slots (one per 4 usable CPUs, shared by every session through flock files under `~/.local/state/run-heavy`). A `CLAUDE.md` rule and a new rule-hook rule, `run-heavy`, have sessions use it for `docker build`s and mutation runs. loop-claude now waits to start a worker while less than a quarter of memory is available. The slots and the memory share live in `bin/machine_load/`. Overrides: `round-cap` — the human granted the principles pass a fourth round; accepted. Comprehension check: paired ruling same against 4a0ba59 (Mid A and the inherited architect both ruled Shape worse at `rule_hook/rules.py` `heavy`; filed as item 223). The `loop-claude --help` place keeps one sentence pointing at `bin/machine_load/memory.py`: the help is the loop's contract, and a loop that stops starting workers must be explainable from it.
lilleman added 2 commits 2026-10-23 10:41:15 +02:00
lilleman added 14 commits 2026-10-23 11:49:03 +02:00
lilleman added 2 commits 2026-10-23 11:52:46 +02:00
lilleman marked the pull request as ready for review 2026-10-23 11:56:42 +02:00
lilleman added 1 commit 2026-10-23 11:56:42 +02:00
# Conflicts:
#	CHANGELOG.md
#	README.md
#	docs/comprehension-history.md
#	todo.md
lilleman merged commit 64d438681e into main 2026-10-23 11:56:55 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#366