diff --git a/AGENTS.md b/AGENTS.md index c0cb7139..dfd95160 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,3 +31,4 @@ Decisions live in `docs/decisions.md`: - review: an ask no user answers leaves the PR unmerged - review: the architecture pass audits every principle and goal over the whole project, and a release's last chunk fires it - loop-claude: every claude it starts bypasses permissions inside its sandbox +- stats: a chunk's cost and review numbers are kept beside the transcript archive diff --git a/docs/decisions.md b/docs/decisions.md index cbd3c56e..83688c75 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -107,3 +107,7 @@ ## loop-claude: every claude it starts bypasses permissions inside its sandbox 2026-09-30, lilleman. Applies "Always grant explicit access to data": the sandbox `loop-claude` runs in is where access is granted, so the worker and the interrupt run with `bypassPermissions`. The worker may read `~/.claude/.credentials.json`: it holds Claude Code's own credentials, which claude reads to run anyway. Its one seam to production is the forge: what it pushes or merges can publish through CI. Valid while `loop-claude` runs only in the sandbox README → Install names. + +## stats: a chunk's cost and review numbers are kept beside the transcript archive + +2026-10-01, lilleman. Serves goals 3 and 4.4. The numbers show whether a change to the workflow raised quality or only cost; they name other projects and their work, so they stay off this repo's remote. `loop-claude` writes what the transcript holds, and larv-review adds the review's numbers. Valid while the transcript archive stays off the remote. diff --git a/todo.md b/todo.md index 5a9b1c19..1ccac411 100644 --- a/todo.md +++ b/todo.md @@ -35,3 +35,6 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens - **Archive the transcript as each cycle ends, so a failed exit or Ctrl-C loses nothing.** Today only an interrupt or a finish archives, against goal 2. - **Key a project on its checkout's full path — its session, archive folder and models entry — and refuse to start while another session on that id is active.** `checkout.py:22` drops the leading `/`, so `~/code/a` and `/a` share a session, an archive folder and a models entry, and one loop can resume or delete the other's session. - **Move what `loop-claude` writes out of `~/.claude.json`, and bring each case that must stay to the human.** Claude Code owns and writes that file, and `trust`'s read-modify-write loses a write landing in its window. +- **Have `loop-claude` write one stats line per finished chunk, beside the transcript archive.** The line names the project and the chunk, and holds what the transcript and the verdicts already record: tokens for the worker and the judge, cycles, and interrupts. +- **End larv-review with a machine-readable summary, and add it to the chunk's stats line.** Agents launched and rounds per pass, findings per pass by severity, and the comprehension scores when the panel ran. +- **Review the workflow from the stats at each release, and file each change it proposes as a plan item.** The signals to read: findings the whole-project passes make in code a diff review passed, comprehension scores per release, fixes after merge, and the human's corrections.