Record with each archived verdict the setup that ran it, what each model spent by kind, and the human's reversals
CI / tests (pull_request) Failing after 2m12s
CI / tests (pull_request) Failing after 2m12s
This commit is contained in:
@@ -15,6 +15,7 @@ Each project principle states one rule that the decisions below apply; their ent
|
||||
- bin/: the tools run on the host's Python, with no container, and so do their tests outside CI
|
||||
- bin/: the tools support only the latest stable Python, and the tests, written in plain unittest, run on it in four pytest-xdist workers
|
||||
- deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout; its principles and decision titles head `docs/decisions.md`, its working rules follow them there, and its `.claude/settings.json` excludes every `.claude/CLAUDE.md`, so a session in the clone loads only the clone's `CLAUDE.md`
|
||||
- loop-claude: each verdict records the setup, the spend and the reversals: the claude-config release and commit that ran it, the raw tokens each thread spent by model and kind since the previous record, and the human's typed answer the judge quotes as reversing a choice the worker took itself
|
||||
- loop-claude: one session per project, its id derived from the checkout's path relative to `~/code`, or to `/` outside it
|
||||
- loop-inbox: a loop-claude lists itself while it runs, and its waiting question, as files per session under `~/.local/state/loop-claude/`, and takes the first answer, from its terminal or from loop-inbox, that names that question
|
||||
- machine load: a heavy command waits for one of the machine's heavy slots, one for every 4 CPUs, which every session shares, and loop-claude starts a worker only while at least a quarter of the machine's memory is available
|
||||
@@ -138,6 +139,16 @@ Valid while `~/.claude` is a checkout of this repo.
|
||||
|
||||
2026-09-28, lilleman. Serves goals 1 and 3: saving each transcript locally is the first step of backing it up, and it shows afterwards what an unattended run did. A copy of the `.jsonl`, deduplicated by content hash, with its outcomes beside it; a rendering drops tool results, and a second-resolution stamp names two states within one second as one file. A failed archive exits 1, since a loop that loses its record silently fails the backup goal. Valid while transcripts stay small enough to copy whole.
|
||||
|
||||
## loop-claude: each verdict records the setup, the spend and the reversals: the claude-config release and commit that ran it, the raw tokens each thread spent by model and kind since the previous record, and the human's typed answer the judge quotes as reversing a choice the worker took itself
|
||||
|
||||
2026-11-12, lilleman, todo item 305. Serves goals 1, 1.2 and 1.4. A change to the setup can be judged only by comparing chunks run before it with chunks run after, so each verdict, interrupt and quoted answer in loop-claude's archive records three things beside its judge lines.
|
||||
|
||||
- `Config: <release> (<commit>)`: `git describe` and the commit of `~/.claude`, so outcomes group by the setup that produced them. Where git can't tell, it records `unknown` and why, on one line.
|
||||
- A `Spent since` block: the raw tokens each thread spent, by model and by kind (input, cache write 5m, cache write 1h, cache read, output), then the list prices of `bin/routing_figures/prices.py` in force. The threads are the worker's main thread, each subagent by its agent type and description, and the judge run that ruled. Each message counts once, by its id. The stretch runs from the previous outcome that recorded a spend, so a `/talk` or a stop between rulings neither counts twice nor drops a stretch. Tokens, not dollars, are kept, since prices change and a past chunk's cost can be derived again from them. Claude Code doesn't report thinking apart from output, so it is left in output. The judge's tokens come from its json reply's `usage`, until item 303 archives the judge's own transcript.
|
||||
- A `Reversed:` quote: the latest `[human]` line the judge finds overriding a choice the worker took on its own recommendation and recorded. The quote must appear verbatim in the transcript, or it is dropped. `score-outcomes` counts the distinct quotes per finished chunk, which is the counter-signal of goal 1.2 the 2026-11-08 entry of `loop-claude: a judge decides each interrupt…` is valid under. It counts only chunks that record a Config line, since earlier judges didn't look for reversals.
|
||||
|
||||
Valid while the archive stays the record score-outcomes and routing-figures read.
|
||||
|
||||
## loop-claude: the worker's claude compacts its context before it fills a 200k window, at about 170k tokens, and `CLAUDE.md` → "Compact instructions" says what the summary keeps
|
||||
|
||||
2026-10-27, lilleman's yes to claude's evaluation through todo todo item 231. Serves goal 1.4; its counter-signal, review rounds and unfinished verdicts per chunk, is the check.
|
||||
|
||||
@@ -1771,3 +1771,20 @@ Read most (opens and searches):
|
||||
- `bin/release_plan/test_ranking.py` 2
|
||||
- `bin/todo_item/main.py` 2
|
||||
- `skills/larv-review/SKILL.md` 2
|
||||
|
||||
## Reading cost, chunk f1f5d123e494, finished 2026-11-12T08:38:23Z
|
||||
|
||||
114937 new input tokens before the first commit.
|
||||
|
||||
Read most (opens and searches):
|
||||
|
||||
- `todo.md` 11
|
||||
- `docs/decisions.md` 2
|
||||
- `skills/larv-review/SKILL.md` 2
|
||||
- `README.md` 1
|
||||
- `bin/failure.py` 1
|
||||
- `bin/larv_review/main.py` 1
|
||||
- `bin/reading-cost` 1
|
||||
- `bin/subagent_rung/main.py` 1
|
||||
- `bin/subagent_rung/test_subagent_rung.py` 1
|
||||
- `ci.sh` 1
|
||||
|
||||
Reference in New Issue
Block a user