Compact the worker's context above 200k tokens, from item 231's evaluation of context cost, and file items 235 and 236

This commit is contained in:
2026-10-27 00:13:08 +01:00
parent aa020f15f7
commit f2e239d111
9 changed files with 52 additions and 8 deletions
+1
View File
@@ -15,6 +15,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
- loop-claude: the worker's claude compacts its context above 200k tokens, and `CLAUDE.md` → "Compact instructions" says what the summary keeps
- machine load: a heavy command waits for one of the machine's heavy slots, one for every 4 CPUs, which every session shares, and loop-claude starts a worker only while at least a quarter of the machine's memory is available
- machine load: every container a session starts has a memory limit and a swap limit as large as its work needs; rule-hook's `docker-run-memory` blocks a `docker run` or `docker create` without them outside run-heavy, under which a container that lacks them gets the slot's share of three quarters of the memory; and no daemon-wide cap limits all containers together
- 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