From 7c178038c517aebd57316f05030b49f1d9037034 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:27:29 +0100 Subject: [PATCH 1/6] Take the scoring run's values from seat-prompts.md where the working rules hold none --- bin/larv_review/scoring_setup.py | 14 ++++++++++---- bin/larv_review/test_scoring_setup.py | 22 ++++++++++++++++++++++ todo.md | 12 +++++++++++- 3 files changed, 43 insertions(+), 5 deletions(-) diff --git a/bin/larv_review/scoring_setup.py b/bin/larv_review/scoring_setup.py index 806ef509..f36892ab 100644 --- a/bin/larv_review/scoring_setup.py +++ b/bin/larv_review/scoring_setup.py @@ -61,9 +61,13 @@ def score_bullets(skill: str) -> tuple[list[str], list[str]] | Failure: return anchors, [line.replace("**", "") for _, line in dimensions] +# The heading of the section that holds a project's values: `Scoring run`, numbered or not, or `'s values`. +VALUES_HEADING = r"(\d+\.\s+)?Scoring run|.+'s values" + + def project_values(text: str, source: str) -> dict[str, str] | Failure: """Each value seat-prompts.md fills from the project, from the section of text, read from source, headed `Scoring run` or `'s values`.""" - lines = section(text, r"(\d+\.\s+)?Scoring run|.+'s values") + lines = section(text, VALUES_HEADING) if lines is None: return Failure(f"{source} has no \"Scoring run\" section to fill the seats' prompts from; add one with {listed([f'{{{name}}}' for name in VALUE_NAMES], 'and')}") values = {} @@ -137,13 +141,15 @@ def prepare_scoring(worktree: str, home: pathlib.Path, run: Git = git) -> str | config = located(worktree, home, run) if isinstance(config, Failure): return config - # Where AGENTS.md is missing, this repo keeps the values in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md. source = config.paths["working-rules"] - if not source.is_file() and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file(): - source = own rules = read(source) if source.is_file() else "" if isinstance(rules, Failure): return rules + # Where the working rules hold no values, this repo keeps them in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md. + if section(rules, VALUES_HEADING) is None and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file(): + source, rules = own, read(own) + if isinstance(rules, Failure): + return rules skill = read(PANEL / "SKILL.md") if isinstance(skill, Failure): return skill diff --git a/bin/larv_review/test_scoring_setup.py b/bin/larv_review/test_scoring_setup.py index 4e3eebc9..4372eb18 100644 --- a/bin/larv_review/test_scoring_setup.py +++ b/bin/larv_review/test_scoring_setup.py @@ -165,6 +165,28 @@ class PrepareScoring(unittest.TestCase): assert isinstance(ran, str), ran self.assertIn("every non-test tracked file: `bin/**` and `README.md`. Do NOT open any record of a past panel, nor any review output.", pathlib.Path(ran.splitlines()[2]).read_text()) + def test_takes_the_values_from_the_checkouts_seat_prompts_where_the_working_rules_hold_none(self): + own = self.checkout / "skills" / "comprehension-panel" / "seat-prompts.md" + own.parent.mkdir(parents=True) + own.write_text("# Seats\n\n## proj's values\n\n- Language: Go\n- Kind: a CLI\n- Domain: parsing\n- Domain docs: the spec\n- 3am question: the parse hangs\n") + for rules in ("# Working rules, with no values\n", None): + with self.subTest(rules=rules): + (self.checkout / "AGENTS.md").unlink(missing_ok=True) + self.commit(rules) + ran = self.prepare() + assert isinstance(ran, str), ran + self.assertIn("Your background: ~2 years in Go, first codebase of this kind (a CLI)", pathlib.Path(ran.splitlines()[2]).read_text()) + self.assertIsNone(removed_setup(str(self.checkout), self.root, functools.partial(git, env=self.env))) + + def test_keeps_the_working_rules_values_where_the_checkout_has_seat_prompts_too(self): + own = self.checkout / "skills" / "comprehension-panel" / "seat-prompts.md" + own.parent.mkdir(parents=True) + own.write_text("## proj's values\n\n- Language: Go\n- Kind: a CLI\n- Domain: parsing\n- Domain docs: the spec\n- 3am question: the parse hangs\n") + self.commit("## Scoring run\n\n- Language: Python\n- Kind: a CLI\n- Domain: parsing\n- Domain docs: the spec\n- 3am question: the parse hangs\n") + ran = self.prepare() + assert isinstance(ran, str), ran + self.assertIn("Your background: ~2 years in Python,", pathlib.Path(ran.splitlines()[2]).read_text()) + def test_refuses_writing_nothing_where_the_project_gives_no_values(self): self.commit() ran = self.run_tool("prepare-scoring") diff --git a/todo.md b/todo.md index b00f61c3..a6d7da17 100644 --- a/todo.md +++ b/todo.md @@ -6,13 +6,14 @@ `Bar = 0.1` -`Next ID = 461` +`Next ID = 462` ## Items | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 460 | 0.14.0 | | | **Review the judge's fix for quoting the worker's task as evidence with every larv-review pass it fires, and adjust it to their findings.** | 2 | 2 | 3 | 5 | 2 | code health by 3, 1.1 by 5 | 7.2 | +| 461 | 0.14.0 | | defect | **Take the scoring run's project values from `seat-prompts.md` where the working-rules file holds no "Scoring run" section, so `larv-review prepare-scoring` runs in claude-config again.** | 1 | 1 | 2 | 2 | 1 | code health by 3 | 5.5 | | 452 | 0.14.0 | | | **Make do-epic's view of the Jira workflow settings: the statuses at which an issue unblocks the issues it blocks, and the moves the team's own automation makes, so do-epic makes none of those.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 7, 1.5 by 3 | 2.1 | | 449 | 0.14.0 | | | **Record do-epic's repo picks and sub-task summaries in the team's own spelling, such as `core-4` and `core-4: Bygg …`, as its config sets them.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 6 | 2.0 | | 458 | 0.14.0 | | | **Resume a chunk whose pull request awaits a person's merge once it no longer merges cleanly into the default branch, so the worker brings it level again.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 4, 1.5 by 3 | 1.9 | @@ -91,6 +92,15 @@ Touches: - `bin/agent_cycle/test_judge.py` - `bin/judge_replay/test_judge_replay.py` +### 461. Take the scoring run's project values from `seat-prompts.md` where the working-rules file holds no "Scoring run" section, so `larv-review prepare-scoring` runs in claude-config again. + +`prepare-scoring` falls back to `skills/comprehension-panel/seat-prompts.md` → "claude-config's values" only where the working-rules file is missing. Since claude-config's project config names `docs/decisions.md` as its working rules, that file exists, holds no "Scoring run" section, and `prepare-scoring` exits 1. No chunk can then record the scoring run its merge owes. + +Touches: + +- `bin/larv_review/scoring_setup.py`: `prepare_scoring` (small) +- `bin/larv_review/test_scoring_setup.py` + ### 452. Make do-epic's view of the Jira workflow settings: the statuses at which an issue unblocks the issues it blocks, and the moves the team's own automation makes, so do-epic makes none of those. do-epic counts an issue as done only where Jira's status category is done, and moves a finished chunk's issue to done itself, by `jira-finish-transition`. On a team whose CI moves issues through the workflow, both are wrong. On TW, CI moves an issue to Code Review when its pull request opens, to Release Ready when it merges, and to Done when it is deployed. So do-epic would move an issue to Done before it is deployed, and would hold every blocked issue until the blocker is deployed, though the team wants blocked work to start once the blocker's pull request merges. -- 2.52.0 From 7605094623315a3a7cb8d6f0683e9f0d159ad1ef Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:52:56 +0100 Subject: [PATCH 2/6] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20no=20findin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0 From 4c109b341166b4631600ba5f6cf9c9465dd5949b Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:55:34 +0100 Subject: [PATCH 3/6] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(0=20misread);=20test=20the?= =?UTF-8?q?=20unreadable=20seat-prompts.md=20and=20correct=20prepare-scori?= =?UTF-8?q?ng's=20help?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/larv_review/main.py | 5 +++-- bin/larv_review/test_scoring_setup.py | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index 00e6a1ee..d260a28f 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -91,8 +91,9 @@ prepare-scoring sets up a scoring run in the chunk's review folder: a detached w checkout's HEAD, which the seats read, and one prompt file per seat beside it, as skills/comprehension-panel/seat-prompts.md builds them. It prints the worktree's path and each prompt's. It takes {{language}}, {{kind}}, {{domain}}, {{domain docs}} and {{3am question}} from the -checkout's AGENTS.md → "Scoring run". claude-config keeps no AGENTS.md, so there it takes them from -seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and +project's working-rules file → "Scoring run", which is the checkout's AGENTS.md unless the config +names another. Where that file holds no such section, as in claude-config, it takes them from the +checkout's seat-prompts.md → "claude-config's values". It fills the other placeholders from the worktree and the panel's SKILL.md. Where any one of the five values is missing, it exits 1 and doesn't write anything. Where a setup that record-scoring never removed is still there, it removes it first and says so. diff --git a/bin/larv_review/test_scoring_setup.py b/bin/larv_review/test_scoring_setup.py index 4372eb18..07dbee3b 100644 --- a/bin/larv_review/test_scoring_setup.py +++ b/bin/larv_review/test_scoring_setup.py @@ -203,6 +203,14 @@ class PrepareScoring(unittest.TestCase): assert isinstance(unread, Failure), unread self.assertTrue(unread.reason.startswith(f"cannot read {self.checkout}/AGENTS.md: "), unread.reason) self.assertEqual(len(self.git("worktree", "list").splitlines()), 1) + own = self.checkout / "skills" / "comprehension-panel" / "seat-prompts.md" + own.parent.mkdir(parents=True) + own.write_bytes(b"\xff") + (self.checkout / "AGENTS.md").write_text("# Working rules, with no values\n") + unread = self.prepare() + assert isinstance(unread, Failure), unread + self.assertTrue(unread.reason.startswith(f"cannot read {own}: "), unread.reason) + self.assertEqual(len(self.git("worktree", "list").splitlines()), 1) if __name__ == "__main__": -- 2.52.0 From a357cc7b187fe42fbfba5b22244711d3f3380376 Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 22:55:34 +0100 Subject: [PATCH 4/6] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20state=20the?= =?UTF-8?q?=20repo's=20fact=20in=20the=20comment=20and=20drop=20the=20one?= =?UTF-8?q?=20that=20restates=20the=20pattern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/larv_review/scoring_setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/larv_review/scoring_setup.py b/bin/larv_review/scoring_setup.py index f36892ab..38cdcdf1 100644 --- a/bin/larv_review/scoring_setup.py +++ b/bin/larv_review/scoring_setup.py @@ -61,7 +61,6 @@ def score_bullets(skill: str) -> tuple[list[str], list[str]] | Failure: return anchors, [line.replace("**", "") for _, line in dimensions] -# The heading of the section that holds a project's values: `Scoring run`, numbered or not, or `'s values`. VALUES_HEADING = r"(\d+\.\s+)?Scoring run|.+'s values" @@ -145,7 +144,7 @@ def prepare_scoring(worktree: str, home: pathlib.Path, run: Git = git) -> str | rules = read(source) if source.is_file() else "" if isinstance(rules, Failure): return rules - # Where the working rules hold no values, this repo keeps them in seat-prompts.md: .claude/rules/this-repo-keeps-no-agents-md.md. + # This repo keeps the values in seat-prompts.md, so its working rules hold none: .claude/rules/this-repo-keeps-no-agents-md.md. if section(rules, VALUES_HEADING) is None and (own := pathlib.Path(worktree) / "skills" / "comprehension-panel" / "seat-prompts.md").is_file(): source, rules = own, read(own) if isinstance(rules, Failure): -- 2.52.0 From 04852c3417bafd3a0812bd31b47b6114f3a92c8d Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 23:33:46 +0100 Subject: [PATCH 5/6] Record the comprehension check: Navigation 7.00, Locality 6.00, Shape 6.13, Self-sufficiency 6.00, Overall 6.38 --- docs/comprehension-history.md | 60 +++++++++++++++++++++++++++++++++++ todo.md | 36 +++++++++++---------- 2 files changed, 80 insertions(+), 16 deletions(-) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 35aafb66..e828902c 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -4146,3 +4146,63 @@ Inherited architect, decided by: - Navigation, Shape: `bin/chunk_driver/claims.py:1` module docstring: the lock and the chunk flags sit in one module named for that job, and `starting` yields a `Failure` instead of raising - Locality, Navigation: `bin/forge/reviews.py:23` `review_decision`: all review-state reading in `forge/`, each field shape-checked; three similar names cost a docstring read each - Locality: `bin/chunk_driver/project/model_choice.py:28` `overridden`: the model override is one function, where it was spelled out twice + +## 2026-11-19T22:33:15Z, PR #646 at a357cc7b + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Junior A | 7 | 5.5 | 6 | 6 | 6 | +| Mid A | 7 | 6 | 6.5 | 6 | 6.5 | +| Maintainability senior | 7 | 6 | 6 | 6 | 6.5 | +| Inherited architect | 7 | 6.5 | 6 | 6 | 6.5 | +| Mean | 7.00 | 6.00 | 6.13 | 6.00 | 6.38 | + +Junior A, hardest first: + +- Locality, Shape: `bin/do_epic/main.py:287` `parked_through`: the three-step park and resume order, the `told` and `finished` flags and a raw string compare held at once; the docstring gives the order but not why the flags exist +- Locality, Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: floor rung, escalation mark, cap and the count of unfinished verdicts meet in a dozen lines, and the reasons sit in the decision log +- Shape: `bin/agent_cycle/judge.py:237` `quotes_checked`: six checks each quietly turn one verdict type into another, and the call site doesn't show the result type +- Locality: `bin/do_epic/scheduler.py:144` `start_chunks`: four overlapping sets, a five-branch chain, a counter and nested locks shared with loop-claude +- Shape: `bin/agent_cycle/run.py:150` `rule`: runs the judge, stamps, annotates, steps up and orders the archive writes, beside four near-identical archive helpers +- Locality: `bin/agent_cycle/stuck_workers.py:52` `Watch.check`: mutates `self.cpu` and `self.judged` out of sight, and one condition mixes `and` and `or` without parentheses +- Shape: `bin/do_epic/gates.py:42` `gate`: a long ordered chain where a missing value means something different on each line +- Locality: `bin/loop_claude/loop/reload.py:36` `decode_handed`: pops legacy fields from a handover the old process wrote before it replaced itself; nothing enforces the coupling +- Self-sufficiency: `skills/larv-review/SKILL.md:89` "Round cap": three sections must be open at once to tell whether a fix reruns a pass +- Self-sufficiency: `bin/agent_cycle/verdicts.py:41` the comment: points to `cycle.judge.re_ask_checked`, a module path that doesn't exist + +Mid A, hardest first: + +- Locality: `bin/do_epic/main.py:354` `resumed_news`: a `while True` poll that carries `said` and `shown` across turns, with a nested-quote f-string; no comment says what holds when the loop exits +- Locality, Self-sufficiency: `bin/do_epic/main.py:287` `parked_through`: three steps whose correctness depends on each other; the reason for the order sits in the decision log +- Locality: `bin/do_epic/main.py:241` `chunk_run`: `news`, `told`, `finished` and the reopened-epic exit held across iterations +- Locality: `bin/do_epic/scheduler.py:144` `start_chunks`: a five-branch chain over four sets, counted under nested locks +- Shape: `bin/project_config/settings.py:187` `load`: about twenty comprehension clauses build one `faults` list, so finding what one setting requires means scanning all of them +- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rung concepts at once, readable only with `bin/model_routing/ladder.py` open beside it +- Shape: `bin/chunk_pr/main.py:447` `levelled_and_finished`: checks whether a scoring run is owed, which its name doesn't suggest +- Locality: `bin/plan/ranking.py:239` `score`: the formula forks on the old and the new table shape, both live +- Self-sufficiency: `bin/larv_review/main.py:1` the module docstring: about 165 lines that restate what `COMMANDS` and the modules it calls enforce + +Maintainability senior, hardest first: + +- Locality, Shape: `bin/do_epic/main.py:287` `parked_through`: the told, finished and news interplay, the human-merge cases and the three-step order held at once, and no code enforces the order +- Locality, Shape: `bin/do_epic/main.py:354` `resumed_news`: a loop that mutates five locals and builds its message in a nested f-string, with no stated invariant +- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs, an unfinished count, the escalation mark and the cap held together; each threshold's reason sits in the decision log +- Shape, Self-sufficiency: `bin/project_config/settings.py:187` `load`: about 20 comprehension expressions each encode a rule linking two settings; named predicates would make each rule findable +- Shape, Locality: `bin/chunk_pr/main.py:314` `merged`: the merge-queue loop with its flags, where a variable carries either a string or a Failure and each read must work out which +- Locality: `bin/plan/ranking.py:239` `score`: the old and new table shapes run through the whole module, so each change is checked against both +- Locality: `bin/larv_review/plan.py:21` `Emptied`: a `str` subclass whose type carries meaning, lost without warning by any code that rebuilds the string +- Locality: `bin/agent_cycle/judge.py:76` `TASK_HEADING`: an archive key, so rewording it breaks replays in another module, and only a comment warns +- Self-sufficiency: `skills/larv-review/SKILL.md:89` "Round cap": the review rules exist three times, here, in the help at `bin/larv_review/main.py:1` and in rule-hook's code + +Inherited architect, would restructure first: + +- Locality, Shape: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap lives in four places across three packages, and none owns the whole invariant; rounds are counted from commit titles, never from launches +- Navigation, Shape: `README.md:225` "Packages under bin/": 84 entries listed alphabetically in dense prose, with no grouping by layer +- Shape: `bin/loop_claude/loop/reload.py:18` `LoopRun`: loop-claude's core run state defined in a module named for self-reloading +- Shape: `bin/agent_cycle/judge.py:116` `Rejected`: says loop-claude rejected the reply, in a module do-epic shares +- Self-sufficiency: `bin/agent_cycle/run.py:103` the comment: cites `close.py`, which doesn't exist +- Self-sufficiency: `bin/agent_cycle/verdicts.py:41` the comment: cites `cycle.judge.re_ask_checked`, a stale module path +- Navigation: `bin/chunk_driver/drivers.py:1` the module: "entry point" and "driver" name one concept, and `Run`, `ChunkRun` and `LoopRun` are one concept in three types +- Navigation: `bin/do_epic/status.py:1` the module: in no map, and the package's `__init__.py` is empty like 40 others +- Locality: `reviewer-merge-trials/driver.py:4` the imports: a frozen trial imports live code under `bin/`, so a refactor there breaks a record +- Self-sufficiency: `bin/agent_cycle/routing.py:92` the comment: one of 109 citations of the decision log that carry a unit's reason diff --git a/todo.md b/todo.md index a6d7da17..65bd635c 100644 --- a/todo.md +++ b/todo.md @@ -30,7 +30,7 @@ | 268 | 0.15.0 | | | **End a run whose release is ready to cut with a notice on loop-claude's terminal, in place of an interrupt that waits for an answer.** | 2 | 2 | 3 | 5 | 3 | 1 by 5 | 1.9 | | 445 | 0.15.0 | | | **Refuse a plan that holds an item a `Finish item ` commit already removed, so a merge resolution cannot bring a finished item back.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3, 1.1 by 2 | 1.8 | | 171 | 0.15.0 | | decision | **Group the routing figures' review rounds by the reviewers' rung as well as the worker's, so a call blames a rung only for rounds its own reviews raised.** | 3 | 2 | 2 | 5 | 4 | 1.2 by 3, 1.4 by 3 | 1.8 | -| 300 | 0.15.0 | | owner | **Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Self-sufficiency first; today the scoring runs at 81e8d8a1 scored Navigation 7.13 and 6.75, Locality 6.38 and 5.63, Shape 6.25 and 5.88, Self-sufficiency 5.88 and 5.25, and Overall 6.50 and 5.88.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.7 | +| 300 | 0.15.0 | | owner | **Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Locality and Self-sufficiency first; today the scoring run at a357cc7b scored Navigation 7.00, Locality 6.00, Shape 6.13, Self-sufficiency 6.00 and Overall 6.38.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.7 | | 264 | 0.15.0 | | | **Report the comprehension seats and the escalated subagents as subagent types of their own in `routing-figures.md`, with their dollars.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 5 | 1.7 | | 323 | 0.15.0 | | | **Count a release review as landed once its pull request has merged, whatever its commits are titled.** | 3 | 2 | 3 | 6 | 3 | 1.4 by 3, 1.5 by 2 | 1.7 | | 342 | 0.15.0 | | | **Research the tooling agents read, search and run commands with once more, and file an item for each tool that cuts tokens a replay shows keep quality.** | 1 | 2 | 1 | 2 | 3 | 1.4 by 3, 1.5 by 2 | 1.7 | @@ -307,26 +307,30 @@ Have the gate, or `rank_todo.py --check` where it runs in a checkout, refuse a p Raised by the goals audit of PR #296. `bin/routing_figures/calls.py` groups a chunk's review rounds by the rung its worker started on, and calls for a routing change when a lower rung took more of them. Since PR #296 the reviewers may run above the worker's rung, on the one their item's E + I picks, and no figure groups rounds by it, though the archived worker line names the E + I it follows from. A cheap worker on an item of high E + I gets stronger reviewers, who may raise more rounds, and a call could then blame the worker's rung for them: an interrupt of lilleman that settles nothing (goal 1.2). -### 300. Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Self-sufficiency first; today the scoring runs at 81e8d8a1 scored Navigation 7.13 and 6.75, Locality 6.38 and 5.63, Shape 6.25 and 5.88, Self-sufficiency 5.88 and 5.25, and Overall 6.50 and 5.88. +### 300. Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Locality and Self-sufficiency first; today the scoring run at a357cc7b scored Navigation 7.00, Locality 6.00, Shape 6.13, Self-sufficiency 6.00 and Overall 6.38. -Filed by the comprehension check of PR #473 at 13d1550 (`larv-review record-scoring`), which printed `Floor:` and `Next:`, and refreshed from the two runs of PR #633 at 81e8d8a1. The lowest mean is Self-sufficiency: 5.88 in the first run and 5.25 in the second. Every seat says the same thing: the vocabulary lives only in `CLAUDE.md` → "Vocabulary", the why of thresholds and orderings sits behind `docs/decisions.md → …` pointers, and behaviour lives in prose that no code ties to its check. Locality follows, at 6.38 and 5.63: scheduling state lives in tmux window names, state files and flocks across three packages. Refresh this item's places and aim from the newest run before the chunk starts; do not file a second floor item. +Filed by the comprehension check of PR #473 at 13d1550 (`larv-review record-scoring`), which printed `Floor:` and `Next:`, and refreshed from the run of PR #646 at a357cc7b. The lowest means are Locality and Self-sufficiency, both 6.00. Locality: do-epic's parking and scheduling carry order-dependent state across loop turns, state files and flocks, and no code enforces the order. Self-sufficiency: the why of thresholds and orderings sits behind `docs/decisions.md → …` pointers, 109 of them in 79 modules, and the review rules live in prose that several code sites repeat. Refresh this item's places and aim from the newest run before the chunk starts; do not file a second floor item. Aim: one ambitious refactor of the areas below, sized so every mean reaches 7.0 on the chunk's own scoring run. Where a place is already easier to read when the chunk starts, drop it. -Places the seats named, hardest first (`larv-review places`), Self-sufficiency first: +Places the seats named, hardest first (`larv-review places`), Locality and Self-sufficiency first: -- Self-sufficiency, Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`, with `:131` `escalated_route`: five rungs, a count and the escalation mark held at once. The module table resolves the what, but the why of the caps is only in the decision log. Every seat in both runs named it. -- Self-sufficiency: `bin/agent_cycle/judge.py:235` `quotes_checked`, with `:23` `INTERRUPT_RULES` and `:76` `TASK_HEADING`: six quote kinds fail differently, the prompt is behaviour no code checks, and `TASK_HEADING` is silently an archive format. Seven seats named it. -- Self-sufficiency: `bin/rule_hook/rules.py:27` `RULES`: each rule's only specification is one long English sentence, such as `env-file-read`, and its check lives in a sibling module that nothing ties it to. Five seats named it. -- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:89` "Round cap" and `:97` "Re-entry", with `bin/review_rules/review_passes.py:8` `PASS_AGENTS`: rules with exceptions to exceptions, a cap spread over three packages and this prose, and code constants that must match sentences here. -- Locality: `bin/do_epic/main.py:283` `parked_through`: a polling loop with four mutable locals across three result types, and a crash-ordering invariant across a state file, a window name and Jira. Five seats named it; two would least want to change it. -- Locality: `bin/do_epic/scheduler.py:136` `start_chunks`, with `bin/loop_claude/loop/chunk_windows.py:107` `may_start`: overlapping window sets from two stores feed an elif chain under nested flocks, with the tmux state's schema in `agent_cycle/tmux.py:92` `as_listed`. -- Locality: `bin/chunk_pr/main.py:429` `levelled_and_finished`: a load-bearing order held together by one-liners where a Failure's truthiness carries the control flow. -- Locality, Shape: `bin/agent_cycle/run.py:150` `rule`, with `:32` `Cycle` and `:240` `close`: a 16-field value, very long single-line expressions, and an archive-before-step-up order that only reading order tells. -- Locality: `bin/do_epic/main.py:11` imports, with `bin/loop_claude/loop/reload.py:18` `LoopRun`: do_epic reaches into eight loop_claude modules over a wire format a renamed field breaks. -- Shape, Navigation: `bin/agent_cycle/verdicts.py:1`, `bin/loop_claude/cycle/` and `bin/loop_state/paths.py:6`: stale `cycle.` names, and folders whose names mislead. -- Locality: `bin/project_config/settings.py:182` `load`: one list encodes the whole validation matrix. -- Shape: `bin/agent_cycle/stuck_workers.py:52` `Watch.check`: the condition at line 59 mixes `or` and `and` without parentheses over dicts mutated across ticks. +- Locality, Shape: `bin/do_epic/main.py:287` `parked_through`, with `:354` `resumed_news` and `:241` `chunk_run`: a three-step park and resume order, the `told`, `finished` and `news` flags and a poll that carries five locals across turns. The docstring gives the order, but no code enforces it and no comment states the loop's invariant. Three seats named it hardest; all three would least want to change it. +- Locality, Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`, with `:131` `escalated_route`: five rungs, a count, the escalation mark and the cap held at once. The module table resolves the what, but the why of each threshold is only in the decision log. Three seats named it. +- Locality: `bin/do_epic/scheduler.py:144` `start_chunks`: four overlapping sets feed a five-branch chain, counted under nested locks shared with loop-claude. Two seats named it. +- Locality, Shape: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`, with `bin/review_rules/round_titles.py:33` `round_counts`, `bin/larv_review/reviewer_header.py:75` `unanswered_round` and `skills/larv-review/SKILL.md:89` "Round cap": the cap lives in four places across three packages, none owns the whole invariant, and the rules exist a third time in the help at `bin/larv_review/main.py:1`. Three seats named it. +- Shape, Self-sufficiency: `bin/project_config/settings.py:187` `load`: about twenty comprehension clauses in one `faults` list encode the rules that link settings; named predicates would make each findable. Two seats named it. +- Locality, Shape: `bin/chunk_pr/main.py:314` `merged`, with `:447` `levelled_and_finished`: a queue loop whose variables carry a string or a Failure, and a scoring-run check the name doesn't suggest. Two seats named it. +- Locality: `bin/plan/ranking.py:239` `score`, with `:144` `weigh`: the old and new table shapes run through the whole module. Two seats named it. +- Locality: `bin/agent_cycle/judge.py:76` `TASK_HEADING`, with `bin/model_routing/route.py:47` and `bin/loop_claude/loop/reload.py:36` `decode_handed`: archive and handover formats that a reworded heading or a renamed field breaks, guarded only by comments. Three seats named one of them. +- Shape: `bin/agent_cycle/judge.py:237` `quotes_checked`, with `bin/agent_cycle/run.py:150` `rule`: checks that quietly turn one verdict type into another, and one function that runs the judge, steps up and orders the archive writes. +- Locality: `bin/larv_review/plan.py:21` `Emptied`: a `str` subclass whose type carries meaning, lost by any code that rebuilds the string. +- Shape: `bin/do_epic/gates.py:42` `gate`: a long ordered chain where a missing value means something different on each line. +- Shape: `bin/agent_cycle/stuck_workers.py:52` `Watch.check`: the condition at line 59 mixes `or` and `and` without parentheses over state mutated out of sight. +- Self-sufficiency: `bin/agent_cycle/verdicts.py:41` and `bin/agent_cycle/run.py:103`: comments that cite `cycle.judge.re_ask_checked` and `close.py`, neither of which exists; `bin/agent_cycle/judge.py:116` `Rejected` names loop-claude in a module do-epic shares. +- Navigation, Shape: `README.md:225` "Packages under bin/": 84 entries in alphabetical prose with no grouping by layer, two bullets run together at `:239`, and 40 packages whose `__init__.py` is empty. +- Shape: `bin/loop_claude/loop/reload.py:18` `LoopRun`: loop-claude's core run state in a module named for self-reloading; `Run`, `ChunkRun` and `LoopRun` are one concept in three types. +- Locality: `reviewer-merge-trials/driver.py:4`: a frozen trial imports live code under `bin/`, so a refactor there breaks a record. ### 264. Report the comprehension seats and the escalated subagents as subagent types of their own in `routing-figures.md`, with their dollars. -- 2.52.0 From 2efe9145219ce56f9e4969bfe1f27c1808c2138d Mon Sep 17 00:00:00 2001 From: Lilleman Date: Thu, 19 Nov 2026 23:34:00 +0100 Subject: [PATCH 6/6] Finish item 461 in the plan --- CHANGELOG.md | 4 ++++ todo.md | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9b95cf0..a709e4be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- `larv-review prepare-scoring` takes the scoring run's project values from the checkout's `skills/comprehension-panel/seat-prompts.md` where the working-rules file holds no "Scoring run" section, not only where that file is missing. + ## 0.13.0 - Fix loop-claude stopping after a finished chunk: its judge may now quote the worker's task as evidence, so the loop starts the next chunks instead of exiting. diff --git a/todo.md b/todo.md index 65bd635c..2083d60d 100644 --- a/todo.md +++ b/todo.md @@ -13,7 +13,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| | 460 | 0.14.0 | | | **Review the judge's fix for quoting the worker's task as evidence with every larv-review pass it fires, and adjust it to their findings.** | 2 | 2 | 3 | 5 | 2 | code health by 3, 1.1 by 5 | 7.2 | -| 461 | 0.14.0 | | defect | **Take the scoring run's project values from `seat-prompts.md` where the working-rules file holds no "Scoring run" section, so `larv-review prepare-scoring` runs in claude-config again.** | 1 | 1 | 2 | 2 | 1 | code health by 3 | 5.5 | | 452 | 0.14.0 | | | **Make do-epic's view of the Jira workflow settings: the statuses at which an issue unblocks the issues it blocks, and the moves the team's own automation makes, so do-epic makes none of those.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 7, 1.5 by 3 | 2.1 | | 449 | 0.14.0 | | | **Record do-epic's repo picks and sub-task summaries in the team's own spelling, such as `core-4` and `core-4: Bygg …`, as its config sets them.** | 2 | 2 | 2 | 4 | 3 | 1.6 by 6 | 2.0 | | 458 | 0.14.0 | | | **Resume a chunk whose pull request awaits a person's merge once it no longer merges cleanly into the default branch, so the worker brings it level again.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 4, 1.5 by 3 | 1.9 | @@ -92,15 +91,6 @@ Touches: - `bin/agent_cycle/test_judge.py` - `bin/judge_replay/test_judge_replay.py` -### 461. Take the scoring run's project values from `seat-prompts.md` where the working-rules file holds no "Scoring run" section, so `larv-review prepare-scoring` runs in claude-config again. - -`prepare-scoring` falls back to `skills/comprehension-panel/seat-prompts.md` → "claude-config's values" only where the working-rules file is missing. Since claude-config's project config names `docs/decisions.md` as its working rules, that file exists, holds no "Scoring run" section, and `prepare-scoring` exits 1. No chunk can then record the scoring run its merge owes. - -Touches: - -- `bin/larv_review/scoring_setup.py`: `prepare_scoring` (small) -- `bin/larv_review/test_scoring_setup.py` - ### 452. Make do-epic's view of the Jira workflow settings: the statuses at which an issue unblocks the issues it blocks, and the moves the team's own automation makes, so do-epic makes none of those. do-epic counts an issue as done only where Jira's status category is done, and moves a finished chunk's issue to done itself, by `jira-finish-transition`. On a team whose CI moves issues through the workflow, both are wrong. On TW, CI moves an issue to Code Review when its pull request opens, to Release Ready when it merges, and to Done when it is deployed. So do-epic would move an issue to Done before it is deployed, and would hold every blocked issue until the blocker is deployed, though the team wants blocked work to start once the blocker's pull request merges. -- 2.52.0