Record lilleman's answers: merge the window, trial the reading rule as item 240, no scout for reviewers, and the audit keeps reading the project whole
This commit is contained in:
@@ -17,14 +17,12 @@
|
||||
| 233 | 0.4.0 | | | **Run one principles-auditor per round that checks the goals and every principles file that applies, in place of one auditor for each, so the principles pass reads the project once per round.** | 3 | 2 | 3 | 6 | 3 | 1.4 by 3, 1.5 by 2 | 4.9 |
|
||||
| 234 | 0.4.0 | | | **Report the routing figures in dollars, cache reads included, from the cost each archived run records.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3 | 3.0 |
|
||||
| 239 | 0.4.0 | | owner | **Block a Read, `cat`, `sed` or `head` of a file range already in the session's context, with a note saying so, and let it through once a compaction dropped the range or the file changed.** | 3 | 2 | 3 | 6 | 4 | 1.4 by 3 | 2.0 |
|
||||
| 236 | 0.5.0 | | question | **Answer whether the principles audit keeps reading the whole project, or reads only the files the chunk changed and their callers, now that half of its 🔴 and 🟡 findings name a file the chunk did not edit.** | 1 | 1 | 1 | 1 | 1 | 1.4 by 4 | 6.4 |
|
||||
| 240 | 0.5.0 | | question | **Answer whether workers get a reading rule in `CLAUDE.md`: never read more than 80 lines of a file at once, nor take a tool output over 3,000 characters into your context.** | 1 | 2 | 3 | 4 | 1 | 1.4 by 3 | 4.8 |
|
||||
| 226 | 0.5.0 | | question | **Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording.** | 2 | 2 | 3 | 5 | 3 | 1.2 by 2, 1.5 by 2 | 4.0 |
|
||||
| 241 | 0.5.0 | | question | **Answer whether reviewers hand a read over 80 lines to a Haiku scout, which on four replayed stability rounds cut the reviewer's reading by a third and its cost by a tenth, slowed it, and found as many findings as the reviewer finds on its own.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3 | 3.0 |
|
||||
| 235 | 0.5.0 | | | **Compare the first 20 chunks whose worker ran under the 200k compaction window with the 20 before them, on review rounds past each pass's first, unfinished verdicts, 🔴, 🟡 and misread findings, dollars and hours per chunk, and file an item where any rose.** | 1 | 2 | 1 | 2 | 2 | 1.1 by 2, 1.4 by 3 | 6.8 |
|
||||
| 59 | 0.5.0 | | | **Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end.** | 2 | 1 | 3 | 4 | 3 | 1.4 by 6 | 6.0 |
|
||||
| 167 | 0.5.0 | | | **Refuse a `/security-review` or `/claude-security` Skill call below the project's rung, as rule-hook refuses such an Agent call.** | 3 | 2 | 3 | 6 | 2 | 1.1 by 4 | 5.6 |
|
||||
| 6 | 0.5.0 | | decision | **Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay.** | 3 | 3 | 3 | 7 | 3 | 1.1 by 5 | 5.3 |
|
||||
| 240 | 0.5.0 | | | **Add a reading rule for workers to `CLAUDE.md` → "Working with the codebase", never read more than 80 lines of a file at once nor take a tool output over 3,000 characters into your context, and compare the 20 chunks after it with the 20 before on review rounds, unfinished verdicts, 🔴, 🟡 and misread findings, dollars and hours per chunk.** | 1 | 2 | 3 | 4 | 2 | 1.4 by 3 | 4.0 |
|
||||
| 1 | 0.6.0 | | question | **Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 1 | 2 | 1 | 2 | 1 | | 0.0 |
|
||||
| 229 | 0.6.0 | | | **Keep the rule for which commands reach run-heavy's docker beside that docker in `bin/run_heavy/capped_docker.py`, so rule-hook's `docker-run-memory` asks it instead of repeating run-heavy's PATH rules.** | 2 | 1 | 3 | 4 | 2 | code health by 3 | 18.0 |
|
||||
| 219 | 0.6.0 | | | **Name the project's rung `project` in `bin/judge_replay/main.py`, `bin/subagent_rung/main.py` and `bin/review_replay/main.py`, in place of `anchor`, as `bin/model_routing/ladder.py` and `bin/loop_claude` name it.** | 1 | 1 | 3 | 3 | 2 | code health by 2 | 12.0 |
|
||||
@@ -102,22 +100,10 @@ The routing figures count input, cache-written and output tokens, and leave out
|
||||
|
||||
lilleman's call, 2026-10-27, filed from PR #376's measurement of loop-claude's archive since 2026-10-21: a read of a file the agent read earlier in the thread, more than three messages before and without editing it in between, is 13% of the worker's reading, about $6 of the $45 its reads cost, and 1 to 2% of a reviewer's. How many of those repeat a range exactly is unmeasured, so the figures are a ceiling. A hook on `Read` and on the Bash reads `cat`, `sed` and `head` blocks such a read with a short note that the content is already in context and unchanged. It lets the read through after a compaction, when the content has left the context, or when the file changed since the read. A PreToolUse hook gets a `transcript_path`, which holds the earlier reads and each `compact_boundary`, so it may need no state of its own; check whether a hook inside a subagent gets the subagent's own transcript. A scout only cheapens these re-reads and doesn't remove them, which is why this is a separate item. If scouts ship (`docs/decisions.md` → `loop-claude: the worker's claude compacts its context before it fills a 200k window…` records the trial, and item 241 asks), the same idea applies to scout answers, cached by file and content hash.
|
||||
|
||||
### 236. Answer whether the principles audit keeps reading the whole project, or reads only the files the chunk changed and their callers, now that half of its 🔴 and 🟡 findings name a file the chunk did not edit.
|
||||
|
||||
Since 2026-10-21, 342 principles-auditor runs cost $274 at list prices, 23% of all spend, and 176 of their 🔴 and 🟡 findings named a file: 83 a file the chunk edited, 90 another. `docs/decisions.md` → `review: the principles audit runs on every chunk…` holds the whole-project audit valid while its findings are drift a chunk would otherwise merge, and calls a repeat a question on the audit's scope for the human. Reading only the changed files and their callers would cut most of the auditors' $129 of cache writes and drop the findings elsewhere, unless the same findings come back chunk after chunk: read a sample of the 90 before answering. Item 233 merges the auditors either way.
|
||||
|
||||
### 240. Answer whether workers get a reading rule in `CLAUDE.md`: never read more than 80 lines of a file at once, nor take a tool output over 3,000 characters into your context.
|
||||
|
||||
lilleman's question, from PR #376's trials, recorded in `docs/decisions.md` → `loop-claude: the worker's claude compacts its context before it fills a 200k window…`. Three worker-like tasks on this repo, a search, a rename and an explanation, each ran once as workers run today and once under the rule. Under the rule each task read 45% to 60% fewer characters, cost the same or less, and came out as well; of the four runs of the rename, the one under the rule was the only one that also kept the import names sorted. Only 4% of what a worker reads is in a file it later edits. Three tasks say little about real chunks, where a worker that reads less may misread more, and the rule is one line in `CLAUDE.md` that every session loads. A yes ships the line and measures the 20 chunks after it against the 20 before, as item 235 measures the compaction window: review rounds, unfinished verdicts, 🔴, 🟡 and misread findings, dollars and hours per chunk.
|
||||
|
||||
### 226. Answer whether rule-hook's `run-heavy` rule should also catch a mutation run or docker build behind `uv run`, `poetry run`, `python3 -m`, `sudo`, `docker image build` and `docker compose up --build`, or narrow the `machine load:` decision's wording.
|
||||
|
||||
Found by review of PR #370. Today `uv run mutmut run`, `poetry run mutmut run`, `python3 -m mutmut run`, `sudo docker build .`, `docker image build .` and `docker compose up --build` pass the rule, which `docs/decisions.md` → `machine load: …` and `RULES["run-heavy"]` describe as blocking docker builds and mutation runs. The rule's own text says a gate script isn't checked since no program can tell it from a light one, so the human decides where the line sits. Say what the rule's "checked" text promises either way. Where the answer widens the rule, the change touches `heavy` in `bin/rule_hook/heavy_command.py`, which the comprehension seats found hard: make it easier to read.
|
||||
|
||||
### 241. Answer whether reviewers hand a read over 80 lines to a Haiku scout, which on four replayed stability rounds cut the reviewer's reading by a third and its cost by a tenth, slowed it, and found as many findings as the reviewer finds on its own.
|
||||
|
||||
lilleman's question, from PR #376's trials, recorded with the scout's shapes and costs in `docs/decisions.md` → `loop-claude: the worker's claude compacts its context before it fills a 200k window…`. A scout is Haiku 5.5 reading raw content, whole files or long output, and returning facts as path:line and the ranges worth reading; in session it is an agent under `agents/`, and as a slim headless `claude -p` on the subscription login it starts at 6k tokens in 3 to 5 seconds. On four replayed stability rounds the agent scout found 5 of 6 archived findings against the baseline's 4 and read 29% fewer characters at 6% less cost and 14% more time; the CLI scout 4 of 6, 38% fewer, 17% less and 39% more; the auditors with the agent scout 3 of 6, the 🔴 among the lost, at the same cost and twice the time. The reviewers under `agents/` spent $646 of the $1,215 since 2026-10-21, so a tenth off is about $65 per 90 chunks. `AGENTS.md` makes a change to the delegation rule lilleman's call. A yes names the shape, agent or CLI, and which reviewers, and measures the 20 chunks after it against the 20 before, as item 235 measures the compaction window.
|
||||
|
||||
### 235. Compare the first 20 chunks whose worker ran under the 200k compaction window with the 20 before them, on review rounds past each pass's first, unfinished verdicts, 🔴, 🟡 and misread findings, dollars and hours per chunk, and file an item where any rose.
|
||||
|
||||
`docs/decisions.md` → `loop-claude: the worker's claude compacts its context before it fills a 200k window…` expects a saving of about 6% of all spend with no rise in the other figures. Measure from loop-claude's archive as that decision did: rounds past each pass's first and the 🔴, 🟡 and misread counts from the round commit titles, unfinished verdicts from the outcomes files, hours from the worker's first message to its last, and dollars at list prices, cache reads included, from the chunk's `cost-state` entry, which counts the compaction calls that no message's usage records; item 234 puts such dollars into the routing figures. A chunk ran under the window when its first worker started after that decision merged.
|
||||
@@ -134,6 +120,10 @@ rule-hook checks Agent calls (item 163) but no Skill calls. A worker that invoke
|
||||
|
||||
Claude Code owns that file and writes it. `trust` reads it, changes it and writes it back, so a write that lands in between is lost.
|
||||
|
||||
### 240. Add a reading rule for workers to `CLAUDE.md` → "Working with the codebase", never read more than 80 lines of a file at once nor take a tool output over 3,000 characters into your context, and compare the 20 chunks after it with the 20 before on review rounds, unfinished verdicts, 🔴, 🟡 and misread findings, dollars and hours per chunk.
|
||||
|
||||
lilleman's call, 2026-10-27, answering PR #376's trials, recorded in `docs/decisions.md` → `loop-claude: the worker's claude compacts its context before it fills a 200k window…`. Three worker-like tasks on this repo, a search, a rename and an explanation, each ran once as workers run today and once under the rule: under it each task read 45% to 60% fewer characters, cost the same or less, and came out as well, and of the four runs of the rename, the one under the rule was the only one that also kept the import names sorted. Only 4% of what a worker reads is in a file it later edits. The line goes to `CLAUDE.md` → "Working with the codebase", which every session loads, so a worker that reads less may misread more: measure the 20 chunks after the line merges against the 20 before, as item 235 measures the compaction window, and drop the line where any of those figures rose.
|
||||
|
||||
### 1. Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.
|
||||
|
||||
It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read.
|
||||
|
||||
Reference in New Issue
Block a user