Answer architecture round 1: measure from loop-claude's archive in the CLI, file the reading-cost item only on a rise, keep only tracked files

This commit is contained in:
2026-10-08 16:10:23 +02:00
parent 1b8142e7e5
commit 13d8b167a7
17 changed files with 468 additions and 327 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
## Unreleased
- `loop-claude` measures each finished chunk's reading cost: the tokens the worker and its subagents took in before the worker's first commit, and the project's files they read most. It keeps the figure in `$LOOP_CLAUDE_TRANSCRIPTS/<key>/reading-cost.md`. larv-review runs the new `bin/reading_cost.py`, which appends each figure the project's `docs/comprehension-history.md` lacks. When the last 5 chunks' mean is above the 5 before them, larv-review keeps one plan item naming the files read most; when not, it deletes that item.
- larv-review runs the new `bin/reading_cost.py`, which measures each chunk `loop-claude` finished from its archive: the tokens the worker and its subagents took in before the worker's first commit, and the files git tracks that they read most. It appends each figure the project's `docs/comprehension-history.md` lacks. When the last 5 chunks' mean is above the 5 before them, larv-review files one plan item naming the files read most, or refreshes it; only its own chunk or you remove it.
- larv-review appends every scoring run to the project's `docs/comprehension-history.md`: the commit the seats read, each seat's five scores and the seats' mean, and the places each seat named. The ratchet compares a run with the history's last run on the default branch. The `comprehension floor:` entry in `docs/decisions.md` keeps only the decisions to ship under the floor; a project's next scoring run moves the last scores the entry still holds into the history. The seats do not read the history.
- The README's goals put quality with the fewest interrupts first, as goal 1; sharing the setup, backups and leaking nothing follow as goals 2–4.
- larv-review reruns the comprehension scoring run before merge when any commit since the last run changes more than `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`, so the recorded scores are the merged commit's. A score under the floor, or below the default branch's recorded scores, blocks the merge and is never filed in `todo.md`. A fix lifts either; your decision to ship under the floor lifts only a score under the floor. A rerun counts toward the three-round cap only when it reports a blocking score that no decision of yours covers.