Answer architecture round 4: give the figures their own docs/reading-cost.md, and package the tool as bin/reading-cost with one module that reads loop-claude's archive

This commit is contained in:
2026-10-08 17:59:19 +02:00
parent 60353275f6
commit 946daf5e3f
17 changed files with 335 additions and 312 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ Raised by the architect on PR #225 and by the inherited architect of PR #224's s
The key names the project's session, archive folder and models entry. `project_key` drops the leading `/`, so `~/code/a` and `/a` share all three, and one loop can resume or delete the other's session.
`bin/reading_cost.py` keys the archive by the main checkout, the parent of git's common dir, since it runs in a chunk's worktree; `loop-claude` keys it by `--show-toplevel`, so a loop started inside a worktree archives where `reading_cost.py` never looks. Derive both keys one way.
`bin/reading-cost` keys the archive by the main checkout, the parent of git's common dir, since it runs in a chunk's worktree; `loop-claude` keys it by `--show-toplevel`, so a loop started inside a worktree archives where `reading-cost` never looks. Derive both keys one way.
### 67. Point stability-reviewer at the technical principles in place of its own restatement of them.
@@ -169,7 +169,7 @@ Claude Code owns that file and writes it. `trust` reads it, changes it and write
### 4. Name each chunk's archive folder by the chunk's start time, so `<key>/` lists chunks in the order they ran.
Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. `bin/reading_cost.py` takes a chunk's id from the folder's first 12 characters and skips a chunk whose id the history holds, so give it a way to match a figure written under the old name.
Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. `bin/reading-cost` takes a chunk's id from the folder's first 12 characters and skips a chunk whose id `docs/reading-cost.md` holds, so give it a way to match a figure written under the old name.
### 52. Record why this checkout lives in Claude Code's own directory, or move it out and link it in.