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

This commit is contained in:
2026-10-23 10:40:57 +02:00
parent 9df08bd41e
commit 6c823de29c
19 changed files with 303 additions and 6 deletions
+1
View File
@@ -14,6 +14,7 @@ Decisions live in `docs/decisions.md`:
- loop-claude: every claude it starts bypasses permissions inside its sandbox
- loop-claude: one session per project, its id derived from the checkout's path relative to `~/code`, or to `/` outside it
- loop-claude: the archive keeps the raw transcript, and a failed archive stops the loop
- machine load: a heavy command waits for one of a slot per 4 CPUs that every session on the machine shares, and loop-claude starts a worker only while a quarter of the machine's memory is available
- principles: about seven things per level, four or five where they act on each other, more where a reader finds them by name; crossing a limit asks for a grouping or a recorded reason
- reading cost and `score-outcomes`: each waits for 10 finished chunks before it shows a median
- reading cost: a rise is the last 5 chunks' median above the 5 before them, and files or refreshes one plan item