diff --git a/docs/decisions.md b/docs/decisions.md index 0a70ba7c..f55a595e 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -4,7 +4,7 @@ 2026-09-20, lilleman. Serves goal 1. Across six projects scored with the four seats, Locality or Self-sufficiency was the lowest dimension at every seat and Navigation at none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats. -2026-10-15, lilleman, set by PR #283 on 2026-10-16: an item that lifts the lowest dimension moves each goal it cites by 9, since the lowest dimension caps the overall and lifting it is worth the most to the floor. Within a chunk its work comes first; in the plan, lilleman answering that PR's review, such items compete with the others like any item and don't rank first. PR #257's scoring run found Shape lowest, at 6.25, and `todo.md` items 124 and 125 lifted it. Release 0.3.0's scoring runs found Locality lowest, at 5.75 and 5.88, so the 9 moved from those items to the ones lifting Locality. +2026-10-15, lilleman, set by PR #283 on 2026-10-16: an item that lifts the lowest dimension moves each goal it cites by 9, since the lowest dimension caps the overall and lifting it is worth the most to the floor. Within a chunk its work comes first; in the plan, lilleman answering that PR's review, such items compete with the others like any item and don't rank first. PR #257's scoring run found Shape lowest, at 6.25, and `todo.md` items 124 and 125 were to lift it. Release 0.3.0's scoring runs found Locality lowest, at 5.75 and 5.88, so the 9 moved from those items to the ones lifting Locality. ## loop-claude: a judge decides each interrupt and each quoted answer from the transcript, the README's premises, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; the worker's own account of which goal settles a choice decides nothing diff --git a/todo.md b/todo.md index 26a86c0e..a3e7a81b 100644 --- a/todo.md +++ b/todo.md @@ -79,15 +79,15 @@ ### 121. List larv-review's passes in one place that `round_titles.PASSES`, `ladder.ReviewedPass` and `ladder.REVIEWERS` derive from, and check larv-review §3's table against it. -Release 0.3.0's inherited architect (PR #324 rerun at c713910) named `bin/round_titles.py:5` `PASSES`: "the pass list lives in four places, PASSES, ladder.ReviewedPass, REVIEWERS and SKILL.md's table, kept in sync by hand". That lowers Locality: adding a pass means editing four places. PR #257's run found it repeats `skills/larv-review/SKILL.md:33` with no check tying them. It leaves out the auto-reviewer, whose rounds `SKILL.md:68` counts by hand. A test under `bin/repo_checks/` can hold the table to the list. Make `PASSES` easier to read. +Release 0.3.0's inherited architect (PR #324 rerun at c713910) named `bin/round_titles.py:5` `PASSES`: "the pass list lives in four places, PASSES, ladder.ReviewedPass, REVIEWERS and SKILL.md's table, kept in sync by hand". That lowers Locality: adding a pass means editing four places. PR #257's run found that `PASSES` repeats the pass list in `skills/larv-review/SKILL.md:33`, with no check tying the two. It leaves out the auto-reviewer, whose rounds `SKILL.md:68` counts by hand. A test under `bin/repo_checks/` can hold the table to the list. Make `PASSES` easier to read. ### 213. Compute the next release, and whether work has landed towards it, in one function that both `chunk_pick.standing` and `larv_review/plan.py`'s `scoring_run_due` call. -Release 0.3.0's scoring runs (PR #324 at c713910) named `bin/chunk_pick.py:97` `standing` at three seats. Inherited architect: "'next release' is computed two ways, here and in larv_review/plan.py's scoring_run_due, which may diverge after a rename". Junior A, rerun: "two separate notions of the next release and of work having landed". This lowers Locality: changing what the next release is means changing both places, which may diverge. The seats also found `standing` itself hard: "five inputs, three of which may be Failure, produce five outcomes, the order of the Failure checks carrying meaning" (Maintainability senior), and `chunk_pick.Finished` "shares its name with judge.Finished" (Junior A). Rename `chunk_pick.Finished`. Make `standing` and `scoring_run_due` easier to read. +Release 0.3.0's scoring runs named `bin/chunk_pick.py:97` `standing` at three seats (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910). Inherited architect, first run: "'next release' is computed two ways, here and in larv_review/plan.py's scoring_run_due, which may diverge after a rename". Junior A, rerun: "two separate notions of the next release and of work having landed". This lowers Locality: changing what the next release is means changing both places, which may diverge. The seats also found `standing` itself hard: "five inputs, three of which may be Failure, produce five outcomes, the order of the Failure checks carrying meaning" (Maintainability senior, rerun), and `chunk_pick.Finished` "shares its name with judge.Finished" (Junior A, first run). Rename `chunk_pick.Finished`. Make `standing` and `scoring_run_due` easier to read. ### 137. Archive a chunk's route as a record loop-claude reads back field by field, in place of the `Worker:` prose `ROUTED` parses, and name `stepped` and the judge's `bundled` by what they do. -PR #262's paired ruling found the project reads worse: a rerun resumes on its rung only by parsing `Rung.__str__`'s and `Route.__str__`'s wording back with `bin/loop_claude/routing.py`'s `ROUTED`, a string contract over four files, where a reword silently routes afresh. Write the route as a structured line, such as JSON after `Worker:`, that `transcript_archive` reads into fields. `stepped` both raises to a bundled item's rung and counts towards a one-rung step; `Reply.bundled` names neither L nor highest. Release 0.3.0's scoring runs (PR #324 at c713910) found the same contract: `bin/model_routing/route.py:13` `ROUTED`, "parsed back by regexes in four places, so rewording one string silently changes routing" (Junior A), and `:86` `Route.__str__`, "parsed back by ROUTED, routing_figures, reading_cost, score_outcomes and judge_replay" (inherited architect). That lowers Locality, the lowest dimension, so this item moves each goal it cites by 9, per `docs/decisions.md` → `larv-review: within a chunk lifting a project towards the comprehension floor, …`. Seats also named `bin/loop_claude/routing.py:64` `stepped`: "seven one-line rung functions each defined by the others, four inputs held together, and an import cycle steering the interface" (Maintainability senior). Make `ROUTED`, `Route.__str__`, `stepped`, `Reply.bundled` and `bin/loop_claude/loop/main.py`'s `run_loop` easier to read. The structured line must keep the escalation's mark, archived today as `escalated at transcript entry N`: without it, a trigger that already stepped the worker could step it again. +PR #262's paired ruling found the project reads worse: a rerun resumes on its rung only by parsing `Rung.__str__`'s and `Route.__str__`'s wording back with `bin/loop_claude/routing.py`'s `ROUTED`, a string contract over four files, where a reword silently routes afresh. Write the route as a structured line, such as JSON after `Worker:`, that `transcript_archive` reads into fields. `stepped` both raises to a bundled item's rung and counts towards a one-rung step, and release 0.3.0's Maintainability senior named `bin/loop_claude/routing.py:64` `stepped` for "seven one-line rung functions each defined by the others, four inputs held together, and an import cycle steering the interface" (rerun). `Reply.bundled` names neither L nor highest. Release 0.3.0's scoring runs found the same contract (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910): `bin/model_routing/route.py:13` `ROUTED`, "parsed back by regexes in four places, so rewording one string silently changes routing" (Junior A, first run), and `:86` `Route.__str__`, "parsed back by ROUTED, routing_figures, reading_cost, score_outcomes and judge_replay" (inherited architect, rerun). That lowers Locality, the lowest dimension. Make `ROUTED`, `Route.__str__`, `stepped`, `Reply.bundled` and `bin/loop_claude/loop/main.py`'s `run_loop` easier to read. The structured line must keep the escalation's mark, archived today as `escalated at transcript entry N`: without it, a trigger that already stepped the worker could step it again. ### 211. State each routing rule once, in the docstring of the code that enforces it, and cut `loop-claude --help`'s routing paragraph to what the human running the loop needs. @@ -95,11 +95,11 @@ Release 0.3.0's scoring runs (PR #324 at c713910) named `bin/loop_claude/loop/ma ### 212. Split `review_launches` into a choice of each pass's rung, made in `bin/model_routing` beside `ladder.review_rungs`, and whole prompt sentences that render that choice. -Release 0.3.0's scoring runs (PR #324 at c713910) named `bin/loop_claude/cycle/prompts.py:46` `review_launches` at three seats in both runs. Junior A: "with ladder.review_rungs, REPLAYED and escalation_rungs open at once". Mid A: "fragments that each start with a space, so no whole prompt is visible without running it in your head", and "routing policy and English wording interleaved". Maintainability senior: "which conditional sentences reach which prompt means tracing fresh, routed_by, resumed, rungs_held and stepped_to". This lowers Locality, since choosing a rung needs the ladder's units open, and Shape, since one unit holds both policy and wording. Make `review_launches` easier to read. +Release 0.3.0's scoring runs named `bin/loop_claude/cycle/prompts.py:46` `review_launches` at three seats in both runs (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910). Junior A, rerun: "with ladder.review_rungs, REPLAYED and escalation_rungs open at once". Mid A: "fragments that each start with a space, so no whole prompt is visible without running it in your head" (first run), and "routing policy and English wording interleaved" (rerun). Maintainability senior, rerun: "which conditional sentences reach which prompt means tracing fresh, routed_by, resumed, rungs_held and stepped_to". This lowers Locality, since choosing a rung needs the ladder's units open, and Shape, since one unit holds both policy and wording. Make `review_launches` easier to read. ### 214. Have rule-hook refuse a round commit past round 3 of its pass, unless an override quotes the human's answer, so a program holds the round cap. -Release 0.3.0's inherited architect (PR #324 at c713910) named, in both runs, `bin/round_titles.py:4` `CAP`: "no program loops the reviewers; the cap lives in SKILL.md prose and the code only counts rounds and prints a note", and `bin/rule_hook/rules.py:55` `round-title-counts`: "no program blocks a fourth review round; rule-hook checks only the counts inside a round's title". This lowers Self-sufficiency: a reader of `CAP` must know larv-review's "Round cap" to learn what holds it. The cap is `docs/decisions.md` → `review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human`. Make `CAP` and `round-title-counts` easier to read. +Release 0.3.0's inherited architect named `bin/round_titles.py:4` `CAP` in the first run (PR #324 at c713910): "no program loops the reviewers; the cap lives in SKILL.md prose and the code only counts rounds and prints a note". The same seat named `bin/rule_hook/rules.py:55` `round-title-counts` in the rerun: "no program blocks a fourth review round; rule-hook checks only the counts inside a round's title". This lowers Self-sufficiency: a reader of `CAP` must know larv-review's "Round cap" to learn what holds it. The cap is `docs/decisions.md` → `review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human`. Make `CAP` and `round-title-counts` easier to read. ### 172. Name the project's rung `project` across `bin/loop_claude`, in place of `anchor`, as `bin/model_routing/ladder.py` names it. @@ -107,7 +107,7 @@ The architecture pass of PR #296 found one rung under two names: `bin/model_rout ### 210. Hold the escalation mark in one module that states that one trigger buys one step, so a reader changes it without opening four files. -Release 0.3.0's scoring runs (PR #324 at c713910) found the mark spread out. `bin/model_routing/route.py:66` `Route.escalated_at`: "the escalation mark lives in six units across four files" (Junior A), "one concept spread over five files" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:153` `escalation_mark`: "no single place states that one trigger buys one step" (Maintainability senior, rerun). `bin/loop_claude/cycle/run.py:45` `Cycle.stepped_from` and `:69` `escalated`: "state outside the state machine, cleared on every event but HumanTyped" (Mid A). `bin/loop_claude/cycle/judge.py:216` `quotes_checked` checks the escalation against `Grounds.since_step` beside the quoted answer: "three quote checks follow different rules" (Junior A, rerun). This lowers Locality: changing the mark means opening `route.py`, `judge.py`, `run.py` and `routing.py` together. Move the mark's stamping, `STEP_LINE`, the since-step grounds and their check, and the step's state into one module, and make `stepped_from` part of the cycle's state machine. Make `Route.escalated_at`, `escalation_mark`, `Cycle.stepped_from`, `escalated` and `quotes_checked` easier to read. Item 137 also archives the mark, so whichever ships second keeps it. +Release 0.3.0's scoring runs found the mark spread out (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910). `bin/model_routing/route.py:66` `Route.escalated_at`: "the escalation mark lives in six units across four files" (Junior A, first run), "one concept spread over five files" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:153` `escalation_mark`: "no single place states that one trigger buys one step" (Maintainability senior, rerun). `bin/loop_claude/cycle/run.py:45` `Cycle.stepped_from` and `:69` `escalated`: "state outside the state machine, cleared on every event but HumanTyped" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:216` `quotes_checked` checks the escalation against `Grounds.since_step` beside the quoted answer: "three quote checks follow different rules" (Junior A, rerun). This lowers Locality: changing the mark means opening `route.py`, `judge.py`, `run.py` and `routing.py` together. Move the mark's stamping, `STEP_LINE`, the since-step grounds and their check, and the step's state into one module, and make `stepped_from` part of the cycle's state machine. Make `Route.escalated_at`, `escalation_mark`, `Cycle.stepped_from`, `escalated` and `quotes_checked` easier to read. Item 137 also archives the escalation's mark, so whichever of the two ships second keeps that mark. ### 190. Rewrite the `docs/decisions.md` entries `todo.md: one table …`, `loop-claude: a judge decides …` and `loop-claude: before it opens claude …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds. @@ -151,7 +151,7 @@ The README line covers the bench's transcripts in `workflow-bench/logs/` too (go ### 123. Have `bin/comprehension_history.py` parse each history entry once into seats, votes and places, so `latest_places`, `worse_places` and `worse_votes` neither depend on table order nor split a label to find a seat. -Three seats of PR #257's scoring run named `bin/comprehension_history.py:106` `latest_places`; the logic it rests on is `:114` `worse_places` and `:126` `worse_votes`. They regex the markdown the module writes. `worse_votes` keeps a seat's first row through `setdefault`, because the votes table comes first. `worse_places` recovers the seat with `label.split(",")[0]`. `Entry` still holds scoring seats' places for rulings recorded before PR #255. Release 0.3.0's seats named the same split: `:150` `scoring_runs`, "near-synonyms scored and scoring_runs differ only on a ruling from before PR #255" (Maintainability senior), `:130` `newest_scored`, "four near-identical names over two concepts", and `:159` `scored`. Make these functions easier to read. +Three seats of PR #257's scoring run named `bin/comprehension_history.py:106` `latest_places`; the logic it rests on is `:114` `worse_places` and `:126` `worse_votes`. They regex the markdown the module writes. `worse_votes` keeps a seat's first row through `setdefault`, because the votes table comes first. `worse_places` recovers the seat with `label.split(",")[0]`. `Entry` still holds scoring seats' places for rulings recorded before PR #255. Release 0.3.0's seats named near-synonyms left from before PR #255: `:150` `scoring_runs`, "near-synonyms scored and scoring_runs differ only on a ruling from before PR #255" (Maintainability senior), `:130` `newest_scored`, "four near-identical names over two concepts", and `:159` `scored`. Make these functions easier to read. ### 139. Split `bin/routing_figures/measure.py` by concern, and keep the figures' measured cycle and each raised call as fields loop-claude reads back, not as the prose it renders. @@ -163,7 +163,7 @@ F is 8 until then, about one S 3 change, lilleman's call in PR #283. A chunk cos ### 215. Decode a reload's handed JSON with a decoder for `LoopRun` and its `Route`, in place of `decoded_as`'s generic one with its two sentinels and `Route.fits` hook. -Release 0.3.0's Mid A (PR #324 at c713910) named `bin/loop_claude/loop/reload.py:43` `decoded_as`: "a generic decoder with two sentinels and a duck-typed fits hook defined on Route". This lowers Shape: a type-driven decoder serves the one dataclass `decode_handed` is called with. Keep what it does today: a field added since the running script started may be missing, and a retired field decodes as None. Make `decoded_as` easier to read. +Release 0.3.0's Mid A (PR #324 at c713910) named `bin/loop_claude/loop/reload.py:43` `decoded_as`: "a generic decoder with two sentinels and a duck-typed fits hook defined on Route". This lowers Shape: `decoded_as` is generic over any type, yet `decode_handed` calls it with one dataclass, `LoopRun`. Keep what it does today: a field added since the running script started may be missing, and a handed dataclass holding a field its `RETIRED` names decodes as None where its type allows None, and is rejected otherwise. Make `decoded_as` easier to read. ### 49. Check that `AGENTS.md` lists exactly the titles of `docs/decisions.md`. @@ -209,7 +209,7 @@ A retitled decision leaves its citations in `todo.md` stale, and no check reads ### 124. Group the shared modules at `bin/`'s root into packages named by purpose, so the root holds only launchers and stand-alone tools. -Shape scored 6.25 in PR #257's run. `bin/` held about 30 entries then: 6 launchers, 6 tool packages, 3 shared packages and 15 root modules. Two root modules are tools (`rank_todo.py`, `statusline.py`) and 13 are shared libraries, and nothing in the layout tells them apart; only README's import-root paragraph maps them. Candidate packages: git running and parsing, the todo table with `rank_todo.py`'s formula language and goal weighing, and the comprehension history with round titles. `rank_todo.py` keeps its path, which every project's rules name. The `.gitignore` allowlist and README follow the move. Release 0.3.0's inherited architect (PR #324 at c713910) named `bin/git_repo.py:8` `git`: "bin/'s root holds about 43 entries, with 13 loose modules … not grouped by purpose". It also named `bin/rank_todo.py:196` `read_all`: "a 658-line library as well as a tool, imported by rule_hook and larv_review". Make `git` and `read_all` easier to read. +Shape scored 6.25 in PR #257's run. `bin/` held about 30 entries then: 6 launchers, 6 tool packages, 3 shared packages and 15 root modules. Two root modules are tools (`rank_todo.py`, `statusline.py`) and 13 are shared libraries, and nothing in the layout tells them apart; only README's import-root paragraph maps them. Candidate packages: git running and parsing, the todo table with `rank_todo.py`'s formula language and goal weighing, and the comprehension history with round titles. `rank_todo.py` keeps its path, which every project's rules name. The `.gitignore` allowlist and README follow the move. Release 0.3.0's inherited architect named `bin/git_repo.py:8` `git` in the rerun (PR #324 rerun at c713910): "bin/'s root holds about 43 entries, with 13 loose modules … not grouped by purpose". In the first run (PR #324 at c713910) it named `bin/rank_todo.py:196` `read_all`: "a 658-line library as well as a tool, imported by rule_hook and larv_review". Make `git` and `read_all` easier to read. ### 81. Have `workflow-bench/bench.py` return each run's failure as a value, so one failed clone does not hide the later runs' results.