Plan cutting review cost and measuring comprehension cheaply from real work #223
@@ -6,7 +6,7 @@
|
||||
|
||||
`Bar = 9`
|
||||
|
||||
`Next ID = 72`
|
||||
`Next ID = 80`
|
||||
|
||||
| Goal | W |
|
||||
|---|---|
|
||||
@@ -24,6 +24,14 @@
|
||||
|
||||
| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|
|
||||
| 79 | 0.1.0 | | **Measure each chunk's reading cost from its transcript as loop-claude archives it, append it to `docs/comprehension-history.md`, and file a plan item naming the most-read places when the trend rises.** | 2 | 4 | 10 | 9 | 1.1, 1.4 | 34.8 |
|
||||
| 72 | 0.1.0 | | **Rerun after a fix only the pass whose finding it answers, over the fix's diff alone; close a pass on a round of only 🟢, and give prose one round.** | 4 | 4 | 10 | 9 | 1.4, 1.5 | 32.3 |
|
||||
| 75 | 0.1.0 | | **Decide the ratchet by a paired run: Mid A and the inherited architect read the whole project at the default branch and at the PR head, and rule whether it reads better, the same or worse once the PR lands; add seats only until the votes settle.** | 5 | 5 | 10 | 9 | 1.1, 1.4 | 31.6 |
|
||||
| 73 | 0.1.0 | | **Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.** | 3 | 4 | 10 | 8 | 1.4 | 31.4 |
|
||||
| 76 | 0.1.0 | | **Keep every scoring run and paired ruling in an append-only `docs/comprehension-history.md` in the project, with its commit, date, each seat's scores and the places it named.** | 2 | 3 | 9 | 8 | 1.1 | 31.1 |
|
||||
| 74 | 0.1.0 | | **Run one security pass per round: the full scan alone when it triggers, else `/security-review`.** | 2 | 1 | 10 | 6 | 1.4 | 29.3 |
|
||||
| 77 | 0.1.0 | | **Measure each project with cheap static metrics — cognitive complexity, how far a change spreads, state shared or mutated across methods — and keep only those the panel's history shows tracking comprehension.** | 3 | 7 | 9 | 8 | 1.1, 1.4 | 29.1 |
|
||||
| 78 | 0.1.0 | | **Generate comprehension questions with deterministic scripts — from symbols, the call graph and the tests, each answer checkable by a tool — and bench the scores an agent gets on them against the panel, reading cost and static metrics.** | 3 | 7 | 9 | 8 | 1.1, 1.4 | 29.1 |
|
||||
| 1 | 0.1.0 | question | **Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 3 | 5 | 8 | 9 | 3, 4 | 27.0 |
|
||||
| 62 | 0.1.0 | defect | **Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 8 | 1.1 | 22.3 |
|
||||
| 21 | 0.1.0 | | **Give `settings.json`'s model one writer, and sort its keys.** | 3 | 3 | 6 | 7 | 1.3 | 21.8 |
|
||||
@@ -45,6 +53,38 @@
|
||||
|
||||
## Details
|
||||
|
||||
### 79. Measure each chunk's reading cost from its transcript as loop-claude archives it, append it to `docs/comprehension-history.md`, and file a plan item naming the most-read places when the trend rises.
|
||||
|
||||
The human wants comprehension measured from real work. The archived transcript already records what the worker opened and searched before its first edit, and how much it read per line it changed; a script derives both at archive time with no model call. One chunk's figure is noise, since tasks differ; the trend over many chunks is the signal. The files read most often before an edit name where to act.
|
||||
|
||||
### 72. Rerun after a fix only the pass whose finding it answers, over the fix's diff alone; close a pass on a round of only 🟢, and give prose one round.
|
||||
|
||||
The human ranks review cost first. An audit of the four costliest archived chunks (adf-codec, loop-claude's quoted answers, visthus networking, fejkdata on-demand loading; 2026-10-08) found nearly every finding that mattered in round 1 of its pass. Later rounds mostly re-checked the previous fix, flipped wording that earlier rounds wrote, or reported a bug the previous fix created; reviewers contradicted each other on the same CHANGELOG line across rounds. Estimated 55–75% of review effort in those chunks changed nothing a user would notice. Keep a round 2 where a fix touched behaviour: it caught real bugs the fix introduced.
|
||||
|
||||
### 75. Decide the ratchet by a paired run: Mid A and the inherited architect read the whole project at the default branch and at the PR head, and rule whether it reads better, the same or worse once the PR lands; add seats only until the votes settle.
|
||||
|
||||
The human ranks review cost first, and wants the project as a whole measured, since comprehension drifts across chunks that each look fine alone. Today the ratchet compares two independent absolute runs of four seats, whose scores move up to about 0.4 between runs on near-identical code, so a fall within that noise forces rounds that move nothing. A seat comparing the two commits judges the difference on the same material, so the noise the commits share cancels. Start with two seats; add one at a time until a sign test settles better or worse, and call it the same if four seats leave it unsettled. The four-seat scoring run still checks the floor, once, on each release's last item.
|
||||
|
||||
### 73. Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.
|
||||
|
||||
The human ranks review cost first. Across 54 archived chunks the worker's own thread was 54% of spend, mostly cache reads: its context averaged about 350k tokens a turn and peaked near 700k, filled by reviewer reports, each of which arrived twice (the spawn result and the task notification).
|
||||
|
||||
### 76. Keep every scoring run and paired ruling in an append-only `docs/comprehension-history.md` in the project, with its commit, date, each seat's scores and the places it named.
|
||||
|
||||
Today the `comprehension floor:` entry in `docs/decisions.md` holds only the last run, replaced each time; earlier scores survive only in that file's git log, and the places the seats named survive only in archived transcripts. The trend across chunks, and benching item 77's metrics against the panel, both need this history. Items 77, 78 and 79 need it.
|
||||
|
||||
### 74. Run one security pass per round: the full scan alone when it triggers, else `/security-review`.
|
||||
|
||||
The human ranks review cost first. In the audited chunks two security agents started seconds apart each round and returned near-identical reports.
|
||||
|
||||
### 77. Measure each project with cheap static metrics — cognitive complexity, how far a change spreads, state shared or mutated across methods — and keep only those the panel's history shows tracking comprehension.
|
||||
|
||||
The human wants these explored and benched against the panel, with a global push toward a good state in every project. Candidates: cognitive complexity per function; how far a change spreads (files and modules a typical chunk touches, and files that change together in git history); state shared or mutated across methods (fields written by more than one method of a type, package-level variables written outside init, lack of cohesion between methods). Function and file length are warnings to look into, never limits: a plain long function can be simple, and a hard one may need five-line pieces. One harness under `bin/` serves every project; which metrics a project tracks may differ by project. Needs item 76's history to bench against.
|
||||
|
||||
### 78. Generate comprehension questions with deterministic scripts — from symbols, the call graph and the tests, each answer checkable by a tool — and bench the scores an agent gets on them against the panel, reading cost and static metrics.
|
||||
|
||||
A hand-written question bank goes stale as the project grows and leaves everything it does not ask about unmeasured. A script that samples symbols at random each run ("what calls X?", "where is Y validated?", "which test fails if Z changes?") covers the whole project over time, and the call graph, grep and the tests hold the answers, so no judge is needed. Each answer names the code it rests on, so a question whose code changed is regenerated. Keep the method only where the bench shows it tracks the panel at a lower cost. Needs item 76's history.
|
||||
|
||||
### 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