Compare commits

41 Commits

Author SHA1 Message Date
lilleman add7c09dd4 Answer prose round 1: 0 🔴, 3 🟡 (0 misread); fixed in the previous commit: reword the entry, cut the vague phrase, name the first row
CI / tests (pull_request) Successful in 4m12s
2026-12-01 17:38:25 +01:00
lilleman 4c820ac427 Answer stability round 1: 0 🔴, 2 🟡 (0 misread); define the new row's terms and point the exemption at the first 🟡 row 2026-12-01 17:38:25 +01:00
lilleman f252e19bd9 Rerun stability on a 🟡 fix that adds a unit of behaviour
CI / tests (pull_request) Successful in 3m55s
2026-12-01 17:32:42 +01:00
lilleman aef6967560 Record reading cost 2026-12-01 17:32:42 +01:00
lilleman e450e0602a Finish item 568 in the plan
CI / tests (pull_request) Successful in 6m43s
2026-12-01 17:24:40 +01:00
lilleman 7ff30aa373 Merge origin/main into item-568
CI / tests (pull_request) Has been cancelled
2026-12-01 17:24:35 +01:00
lilleman 29c9174873 Finish item 567 in the plan
CI / tests (pull_request) Successful in 3m56s
2026-12-01 17:16:35 +01:00
lilleman 1abd90132b Merge remote-tracking branch 'origin/main' into item-567 2026-12-01 17:16:35 +01:00
lilleman 489ad9ce1e Answer prose round 1: 0 🔴, 4 🟡 (0 misread); reword both lines as the reviewer suggested
CI / tests (pull_request) Successful in 3m50s
2026-12-01 17:14:37 +01:00
lilleman 516ef6e4bf Answer stability round 1: 0 🔴, 1 🟡 (0 misread); limit the claim check to measured results and changed lines 2026-12-01 17:14:37 +01:00
lilleman a98412da4f Answer prose round 1: 0 🔴, 1 🟡 (0 misread); same fix, plus reorder two lists and reword the finding sentence
CI / tests (pull_request) Has been cancelled
2026-12-01 17:10:41 +01:00
lilleman 84a024e2cc Answer stability round 1: 0 🔴, 1 🟡 (0 misread); leave step 7's claims to step 7 2026-12-01 17:10:41 +01:00
lilleman b85854aca4 Answer security round 1: 0 🔴, 0 🟡 (0 misread); nothing to fix 2026-12-01 17:08:55 +01:00
lilleman 21c10ef0ec Finish item 566 in the plan
CI / tests (pull_request) Successful in 4m3s
2026-12-01 17:06:15 +01:00
lilleman 442c6bc117 Answer stability round 1: 0 🔴, 0 🟡 (0 misread); approved, nothing to fix
CI / tests (pull_request) Has been cancelled
2026-12-01 17:06:00 +01:00
lilleman 83f9e8f2b4 Answer prose round 1: 0 🔴, 2 🟡 (0 misread); lead with the condition, split off the timeout, name each example's parts 2026-12-01 17:06:00 +01:00
lilleman 60f85c52a6 Make product-owner-reviewer report each sentence the change promises that no shipped code makes true 2026-12-01 17:04:15 +01:00
lilleman f3c3564d13 Make the prose and product-owner reviewers check number, threshold and noise claims against the change's figures
CI / tests (pull_request) Successful in 6m10s
2026-12-01 17:04:08 +01:00
lilleman 6632ceb3d3 Add a test-waits-on-a-signal bullet to the technical principles
CI / tests (pull_request) Has been cancelled
2026-12-01 17:04:05 +01:00
lilleman fdbd81e4f2 Finish item 570 in the plan
CI / tests (pull_request) Successful in 4m11s
2026-12-01 16:59:00 +01:00
lilleman 73c0d59245 Answer prose round 1: 0 🔴, 0 🟡 (0 misread); reword the clock comment
CI / tests (pull_request) Has been cancelled
2026-12-01 16:58:15 +01:00
lilleman 4af3edbfa5 Answer stability round 1: 0 🔴, 0 🟡 (0 misread); approved, nothing to fix 2026-12-01 16:58:15 +01:00
lilleman 650b9041b0 Fix the clock of the usage-limit wait test
CI / tests (pull_request) Has been cancelled
2026-12-01 16:55:51 +01:00
lilleman 17f3784c63 File item 571: make task-bench run tests that call git from a worktree
CI / tests (pull_request) Successful in 3m51s
2026-12-01 16:50:10 +01:00
Lilleman 52f59cdc15 File item 570: make the usage-limit wait test independent of the clock
CI / tests (pull_request) Successful in 3m51s
2026-12-01 16:42:02 +01:00
Lilleman f450adb910 File item 569: rerun stability on a 🟡 fix that adds a new unit of behaviour
CI / tests (pull_request) Failing after 3m54s
2026-12-01 16:36:59 +01:00
lilleman 649748429f Merge remote-tracking branch 'origin/main' into item-565
CI / tests (pull_request) Successful in 7m6s
# Conflicts:
#	todo.md
2026-12-01 16:23:48 +01:00
lilleman 622afd332b Record the comprehension check: two scoring runs of PR #767 at 98c49021, overall 6.00 then 6.13, and refresh floor item 300
CI / tests (pull_request) Has been cancelled
2026-12-01 16:23:23 +01:00
Lilleman abe1f52ff8 Flag unsupported number, threshold and noise claims in docs, and benchmark notes that omit what they leave out
CI / tests (pull_request) Successful in 4m14s
2026-12-01 16:05:35 +01:00
Lilleman 5dedca303d Describe item 567 without the project's feature
CI / tests (pull_request) Successful in 6m47s
2026-12-01 15:51:28 +01:00
Lilleman c8cf50c540 File item 567: make product-owner-reviewer report claims no code makes true yet
CI / tests (pull_request) Has been cancelled
2026-12-01 15:51:18 +01:00
Lilleman 03a63262ec Plan a principle on waiting for another goroutine's work in a test
CI / tests (pull_request) Successful in 3m49s
2026-12-01 15:35:40 +01:00
lilleman 98c49021c7 Finish item 565 in the plan
CI / tests (pull_request) Successful in 8m32s
2026-12-01 14:51:44 +01:00
lilleman 6f24a7f0ba Answer prose round 2: 0 🔴, 0 🟡 (0 misread); say Claude Code writes the memory files
CI / tests (pull_request) Has been cancelled
2026-12-01 14:47:10 +01:00
lilleman 2159b64a7b Answer prose round 1: 0 🔴, 2 🟡 (0 misread); say whose the memory files are and tell the reader to leave them out
CI / tests (pull_request) Has been cancelled
2026-12-01 14:46:16 +01:00
lilleman 1c0b598e9e Leave the agents' memory files off Install's backup list, and drop an unused folder from item 484
CI / tests (pull_request) Has been cancelled
2026-12-01 14:45:01 +01:00
lilleman 6e17de5fdf Finish item 562 in the plan
CI / tests (pull_request) Successful in 6m46s
2026-12-01 13:55:40 +01:00
lilleman a24abd6425 Answer prose round 2: 0 🔴, 1 🟡 (0 misread); say when the backup holds credentials, and name the transcripts folder apart from the variable
CI / tests (pull_request) Has been cancelled
2026-12-01 13:51:12 +01:00
lilleman 916b90c139 Answer prose round 1: 0 🔴, 3 🟡 (0 misread); list the backup paths and say what each holds
CI / tests (pull_request) Has been cancelled
2026-12-01 13:49:53 +01:00
lilleman ab550b89ff Back up the project config folder and the models file too, and word goal 3 to point at Install's list
CI / tests (pull_request) Has been cancelled
2026-12-01 13:47:34 +01:00
Lilleman 0e36b4c035 File two review gaps an outside reviewer found: a write that doesn't recheck its condition, and an overlapping oneOf
CI / tests (pull_request) Successful in 3m43s
2026-11-30 17:30:00 +01:00
11 changed files with 228 additions and 47 deletions
+4
View File
@@ -2,6 +2,10 @@
## Unreleased
- The prose and product-owner reviewers flag a number, threshold or "noise" claim in docs that the change's figures don't support, and a benchmark note that omits what its setup leaves out.
- The product-owner reviewer reports each sentence of a change that promises a behaviour the shipped code doesn't make true, even where a plan item will make it true later.
- The technical principles now say that a test waits on a signal the code or its fake sends when it reads state another goroutine, process or queue sets, never on a count read straight after the call.
- Added the project config folder and the models file to the install's backup step, and worded goal 3 to point at that list.
- Worded goal 1 for any agent harness and model, and goal 3 for the setup's files with this repo as their copy.
- Added a goal that the setup doesn't depend on any one model vendor or agent harness, and worded goals 1, 1.2 and 3 for whoever runs the setup.
- prose-reviewer checks a decision or plan item a change records against the decision log and the CI checks that list a published package's files, and reports a contradiction or a check the text leaves out.
+12 -2
View File
@@ -33,7 +33,7 @@ My personal `~/.claude`, version controlled: `CLAUDE.md` and `rules/` for instru
- Signal: the steps a person takes from a release's tag to their first finished chunk fall, and the changes an install or a run makes to their own `~/.claude` fall to none.
- Counter-signal: defects that show up only on a machine other than mine rise.
- Why: fewer steps and an install that leaves their `~/.claude` alone count only where the setup then works on machines that aren't mine.
3. **Maintain:** Keep the setup's files backed up, with this repo as their copy, and the transcripts of unattended runs too. A bench's transcripts are the exception: they stay only until `task-bench gather` has filed plan items from their digest, or the next bench starts.
3. **Maintain:** Keep the setup's files backed up: this repo is the copy of those it tracks, and Install lists the rest, which includes the transcripts of unattended runs. A bench's transcripts are the exception: they stay only until `task-bench gather` has filed plan items from their digest, or the next bench starts.
4. **Maintain:** Don't leak anything: no credentials, transcripts or memory files to this repo's remote, and no client's code, transcripts or credentials to another client or to this repo.
5. **Achieve:** The setup doesn't depend on any one model vendor or agent harness: what lives in the `.claude` folder is split into parts that each run on their own, and Claude Code is one harness among others.
- Signal: the harnesses the loop can run a chunk on rise.
@@ -80,7 +80,17 @@ Then pick a model with `/model`.
Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Every claude it starts, the interactive ones included, skips every permission prompt. loop-claude runs each chunk in its own window of a tmux session per project, so it needs tmux 3.2 or later.
Back up three folders: `~/.claude/loop-claude-transcripts`, where loop-claude keeps every transcript, `~/.claude/do-epic-transcripts`, where do-epic keeps its chunks' transcripts, and `~/.local/state/larv-review`, where larv-review keeps each chunk's reports. To keep loop-claude's transcripts and the reports small, add a crontab line that gzips each transcript and review file 30 days after it last changed, and logs each run with its date:
Back up these four folders and one file:
- `~/.claude-projects/`: each project's config, and a client project's plan and records. A project's `env-file`, if you keep it here as below, puts credentials in the backup, so keep the backup private.
- `~/.claude/loop-claude-models.json`: the model of each project, which loop-claude and do-epic write.
- `~/.claude/loop-claude-transcripts`: every transcript loop-claude keeps. Where you set `LOOP_CLAUDE_TRANSCRIPTS`, back up the folder it names instead.
- `~/.claude/do-epic-transcripts`: the transcripts of do-epic's chunks.
- `~/.local/state/larv-review`: each chunk's review reports.
Leave out Claude Code's memory files in `~/.claude/projects/<folder>/memory/`: Claude Code writes them, so they aren't part of this setup.
To keep loop-claude's transcripts and the reports small, add a crontab line that gzips each transcript and review file 30 days after it last changed, and logs each run with its date:
```sh
17 4 * * * { date; $HOME/.claude/bin/compress-archives; } >> $HOME/.local/state/compress-archives.log 2>&1
+4
View File
@@ -47,6 +47,10 @@ Before anything else, **read the technical principles** in the folder your promp
7. **Check each claim about output against its run.** A changed doc line that says what a command, flag or error prints, or what a command writes, is true only if the real output or the written file says so. Where your prompt has a `Claimed output:` line, that file holds each such claim's command and real output, or the lines it wrote. Report a claim the output or the written lines don't bear out, such as an error said to name the fix that doesn't, and name the missing words. Never settle one by reading code. A claim marked `not run`, or one you find that the prompt doesn't hand you a run of, is a ❓ naming the command that would run it.
8. **Check each behaviour the change's own text promises against the code it ships.** Where text the change adds or edits, in docs, error text or help, states a behaviour other than what step 7 checks against a run, check that the shipped code makes it true everywhere the text says it holds, such as for each flag, input or output. Report each sentence the code doesn't make true as a 🟡, even where a plan item will make it true later. Its fix qualifies the sentence to what holds today, or ships the item first. Name the sentence and the output or case where it doesn't hold. Text the change didn't touch that is false for the same reason stays unreported.
9. **Check each changed doc line that claims a measured result, a threshold drawn from one, or that a difference is noise against the figures the change or the repo reports.** One that no figure supports is a finding naming the sentence. One that a figure or the run-to-run spread contradicts is a finding naming the sentence and that figure or spread. A changed benchmark note that doesn't say what its setup leaves out, such as encoding or network I/O it never runs, is a finding naming the work.
## Your Output Format
Report only a defect a persona hits; a requirement that the change breaks, of the plan in the file your prompt's `Plan:` line names, of the goals in the file your prompt's `Goals and audience:` line names, or of code health (`~/.claude/CLAUDE.md` → "Shared goal", unless that file voids it); or a breach of a technical principle, or of a coding convention, which counts as one. Friction that is none of these is not a finding.
+2
View File
@@ -28,6 +28,8 @@ Run them in this order. A fix for a later check never breaks an earlier one.
Also report a list whose order carries no meaning and is not sorted (the technical principles' "Deterministic order", in the folder your prompt's `Technical principles:` line names; without one, open your report by saying so), a sentence contradicting another, a claim the code shows false, and a word used against `CLAUDE.md` → "Vocabulary".
Report a changed doc line that claims a measured result, a threshold drawn from one, or that a difference is noise, where the figures the change or the repo reports don't support it. Name the sentence, and either the figure or run-to-run spread that contradicts it or that no figure supports it. Report a changed benchmark note that doesn't say what its setup leaves out, such as encoding or network I/O it never runs, and name that work.
Where your prompt hands you claims a fix rewrote, judge each claim afresh, not only the finding it answered. Look for a counter-example: one input or case where it is false. Then check it against every term of the source it names, such as each credit and notice a licence file lists. Report a claim you can't check as a ❓ naming what would check it.
Where the diff records a decision in the decision log, or adds or edits a plan item, test its text against what already covers the names it uses:
+7 -2
View File
@@ -141,6 +141,9 @@ if os.path.basename(sys.argv[0]) == "loop-claude":
record({"argv": sys.argv[1:]})
pause = time.sleep
time.sleep = lambda seconds: record({"sleep": seconds}) if seconds >= 1 else pause(seconds)
# LOOP_TEST_NOW pins the loop's wall clock to that many seconds since the epoch.
if "LOOP_TEST_NOW" in os.environ:
time.time = lambda: float(os.environ["LOOP_TEST_NOW"])
# The host's own memory doesn't matter: every read finds all of it available.
sys.path.insert(0, os.path.dirname(os.path.realpath(sys.argv[0])))
import pathlib
@@ -704,13 +707,15 @@ class Cycles(unittest.TestCase):
def test_waits_out_a_usage_limit_which_ends_a_run_of_failures(self):
checkout = Checkout(self)
checkout.env["TZ"] = "UTC"
resets_at = int(time.time()) + 3600
now = 1_800_000_000
checkout.env["LOOP_TEST_NOW"] = str(now)
resets_at = now + 3600
rejected = json.dumps({"type": "rate_limit_event", "rate_limit_info": {"status": "rejected", "resetsAt": resets_at}})
limited = json.dumps({"type": "result", "api_error_status": 429, "is_error": True, "result": "You've hit your session limit"})
run = checkout.run([worker(exit=1), worker(exit=1), worker(stream=f"{rejected}\n{limited}\n", result=False, exit=1), worker(exit=1), worker(), judge(stdout=limited, exit=1), judge()])
self.assertEqual(run.code, 130)
self.assertEqual(run.roles(), ["worker"] * 5 + ["judge"] * 2 + ["worker"])
self.assertEqual([round(seconds, -1) for seconds in run.sleeps], [60, 60, 3720, 60, 600])
self.assertEqual(run.sleeps, [60, 60, 3720, 60, 600])
self.assertIn(f"the worker hit a usage limit (You've hit your session limit); retrying at {datetime.datetime.fromtimestamp(resets_at + 120, datetime.timezone.utc):%Y-%m-%d %H:%M:%S}\n", run.stderr)
self.assertIn("the judge hit a usage limit (You've hit your session limit); retrying at ", run.stderr)
+81
View File
@@ -4513,3 +4513,84 @@ Inherited architect, decided by:
- Locality: `bin/task_bench/main.py:293` `options`: each step is a pure function, where the base's single loop changed `given` as it went and made checks order-dependent
- Shape: `bin/task_bench/tasks.py:14` `Side`: the core type sits with what the task kinds share, not in the report module
- Shape: `bin/release_plan/release_standing.py:138` `reviewed_releases`: returns the reviewed releases, where the base's bool said only that some review landed
## 2026-12-01T13:57:33Z, item-565 at 98c49021
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6 | 6 | 5.5 | 6 |
| Mid A | 7 | 5.5 | 5.5 | 5 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 5.5 | 6 |
| Inherited architect | 7 | 6 | 5.5 | 6.5 | 6 |
| Mean | 7.00 | 5.75 | 5.75 | 5.63 | 6.00 |
Junior A, hardest first:
- Locality, Self-sufficiency, Overall: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs interact, and the reasons sit in the decision log
- Locality, Shape: `bin/do_epic/parking.py:18` `parked_through`: a crash-ordering protocol across a file, a tmux window and scheduler slots
- Shape: `bin/chunk_pr/main.py:485` `merged`: a merge queue with chained Failure ternaries
- Shape: `bin/do_epic/main.py:236` `chunk_run`: a loop with a nested ternary at line 285
Mid A, hardest first:
- Locality, Shape: `bin/do_epic/main.py:402` `handed_on`: reads like a getter and writes Jira, the store and tmux
- Locality, Shape: `bin/do_epic/scheduler.py:172` `start_chunks`: four sets, five branches and two nested locks
- Locality: `bin/do_epic/parking.py:18` `parked_through`: three ordered steps and a polling loop
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: only the module's table explains it
- Shape: `bin/agent_cycle/run.py:160` `rule`: four near-identical archive names and one very long expression at line 255
Maintainability senior, hardest first:
- Navigation, Locality: `bin/do_epic/scheduler.py:172` `start_chunks`: the cap on running chunks lives here, in `resume` and in `bin/loop_claude/loop/chunk_windows.py:117` `start_chunks`
- Locality, Self-sufficiency: `bin/do_epic/parking.py:18` `parked_through`: state in a file, tmux attributes and Jira, with the order only in the docstring
- Shape: `bin/chunk_pr/main.py:485` `merged`: four flags whose combinations aren't all visibly handled
- Self-sufficiency: `bin/do_epic/main.py:485` `next_cycle`: a tmux window name doubles as the Jira issue key, written down nowhere
- Shape: `bin/task_bench/main.py:241` `Planner`: three levels of curried callables
Inherited architect, would restructure first:
- Locality: `bin/larv_review/reviewer_header.py:75` `unanswered_round`: round counting has a second counter in `bin/rule_hook/round_cap.py:28` with the opposite failure mode
- Shape, Navigation: `bin/rule_hook/rules.py:27` `RULES`: a prose table and the check functions share one file
- Navigation: `README.md:269` "do_epic": the only map of a 22-module package with an empty `__init__.py`
- Shape: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields
## 2026-12-01T14:02:49Z, item-565 rerun at 98c49021
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6 | 6 | 5 | 6 |
| Mid A | 7 | 6 | 6 | 6 | 6 |
| Maintainability senior | 7 | 6 | 6.5 | 6 | 6.5 |
| Inherited architect | 7 | 5.5 | 6 | 6 | 6 |
| Mean | 7.00 | 5.88 | 6.13 | 5.75 | 6.13 |
Junior A, hardest first:
- Self-sufficiency, Overall: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs interact, and the reasons sit in the decision log
- Self-sufficiency: `skills/larv-review/SKILL.md:104` "Re-entry": depends on "Round cap" and "Mechanical answers", read twice to know which pass a fix reruns
- Locality, Shape: `bin/do_epic/main.py:236` `chunk_run`: a loop mixing parking, reopening and a nested ternary at line 285
- Shape: `bin/chunk_pr/main.py:485` `merged`: about eight functions to follow one merge
- Shape: `bin/do_epic/scheduler.py:172` `start_chunks`: three window sets and a parked map in a five-way branch
Mid A, hardest first:
- Shape: `bin/task_bench/main.py:241` `Planner`: three layers of curried callables
- Locality: `bin/chunk_pr/main.py:624` `levelled_and_finished`: the order of the scoring-run check and the remeasure isn't explained
- Locality, Shape: `bin/chunk_pr/main.py:485` `merged`: a merge-queue loop interleaving approval, parking and a flock
- Shape: `bin/do_epic/main.py:236` `chunk_run`: a long loop with flags threaded through
- Locality: `bin/agent_cycle/judge.py:88` `Reply`: prompt wording coupled to `judge_replay.archived_prompt`
Maintainability senior, hardest first:
- Shape, Self-sufficiency: `bin/release_plan/release_standing.py:206` `next_release`: one boolean packs three inputs
- Locality, Self-sufficiency: `bin/chunk_pr/main.py:485` `merged`: git, forge and plan effects in one flow, with the order unexplained
- Locality: `bin/chunk_driver/chunk_run.py:44` `closed_cycle`: `Route.unfinished` and `Run.unfinished_run` have near-identical names and different meanings
- Locality: `bin/loop_claude/loop/reload.py:97` `exec_if_edited`: a new `LoopRun` field breaks running loops
- Shape: `bin/rule_hook/env_file.py:34` `reaching`: `and` over `or` without parentheses at line 41
Inherited architect, would restructure first:
- Locality: `bin/rule_hook/round_cap.py:28` `earlier_titles`: a round counter that fails open, beside `bin/larv_review/reviewer_header.py:83` `branch_summaries` and `bin/review_rules/round_titles.py:39` `named_counts`
- Locality, Self-sufficiency: `skills/larv-review/SKILL.md:96` "Round cap": the cap's contract spans the skill, three modules and `bin/rule_hook/rules.py:85`
- Navigation, Shape: `bin/agent_cycle/__init__.py:1` `agent_cycle`: 17 flat modules against its own "about seven" citation
- Navigation: `bin/chunk_driver/this_loop.py:12` `Loop`: the name doesn't say it holds a chunk's run context
+3 -1
View File
@@ -371,7 +371,7 @@ Valid while no published standard sets either number, the reading-cost window st
2026-10-08, lilleman. Serves goal 1.4: run beside the full scan, `/security-review` started seconds apart from it each round and returned a near-identical report. Valid while the full scan covers what `/security-review` reports.
## review: a fix for a 🔴 reruns the pass that found it, unless that pass is at its cap, and each pass whose row in `larv-review` §3's re-entry table the fix meets; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a 🟢 or a ❓ doesn't rerun any pass, nor does one for a prose finding unless it rewrites a claim a command or a source file can check, which reruns prose once, and a fix for a 🟡 reruns the pass that raised it only when the fix weakens, skips or guards a test; the stability pass doesn't rerun on a round's fixes where every 🔴 and 🟡 of that round asked only that a named mutant be killed or a named failing test pass, and the tests and the mutation command run clean on the fixes
## review: a fix for a 🔴 reruns the pass that found it, unless that pass is at its cap, and each pass whose row in `larv-review` §3's re-entry table the fix meets; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a 🟢 or a ❓ doesn't rerun any pass, nor does one for a prose finding unless it rewrites a claim a command or a source file can check, which reruns prose once, and a fix for a 🟡 reruns the pass that raised it when the fix weakens, skips or guards a test, and reruns stability when it adds a guard, counter or shared state; the stability pass doesn't rerun on a round's fixes where every 🔴 and 🟡 of that round asked only that a named mutant be killed or a named failing test pass, and the tests and the mutation command run clean on the fixes
2026-10-08, lilleman. Serves goal 1.4. An audit of the four costliest archived chunks found nearly every finding that mattered in a pass's first round; when every fix, a nit's included, re-entered review, later rounds mostly re-checked the last fix, reworded what an earlier round wrote, or contradicted another round on the same line. A round 2 caught real bugs only where a fix changed behaviour, so stability still reruns on every fix that does, and security on every fix that opens an untrusted-input boundary or touches authn/authz, secrets or crypto. Valid while round-2 reviews of nit and prose fixes change only what a user wouldn't notice.
@@ -385,6 +385,8 @@ Valid while no published standard sets either number, the reading-cost window st
2026-11-25, lilleman through todo item 540. Serves goals 1.1 and 1.4. The 2026-10-08 entry's validity condition broke once, in one chunk. A prose reviewer flagged a doc's claim about generated output as false, the rewrite was still false, and only the outside auto-reviewer caught it, after the PR was ready. A credit sentence also left out the licence link and the notice of changes that the source's licence file lists. So a prose fix that rewrites a checkable claim, such as generated output, a number or a licence term, reruns the prose pass as its second and last round. The reviewer gets each rewritten claim and looks for a counter-example, then checks it against the source the claim names. A fix that rewords a claim without changing what it says reruns no pass. The other direction, having the reviewer test each rewrite before accepting it, needs a round that sees the rewrite anyway. Valid while a second prose round finds a false rewrite in more than a few of the chunks it runs in.
2026-12-01, lilleman through todo item 569. Serves goals 1.1 and 1.4. The 2026-10-29 entry's validity condition broke once more. A product-owner round raised a 🟡: a callback could recurse. The fix added a shared counter that guards the callback, and no pass read it, since a 🟡 fix doesn't rerun any pass unless it weakens a test. The forge's auto-reviewer then found a second entry point that bypassed the guard. So a 🟡 fix that adds a type, a function, a guard, a counter or shared state, or another new unit of behaviour, reruns Stability, which reads what the new unit does. A fix that only edits what existing lines do, or adds a test, doesn't rerun any pass, as before, and the round cap still holds. No deterministic tool fits, since whether a fix adds a unit of behaviour is a judgement on the diff. Valid while a stability round on such a fix finds a defect in more than a few of the chunks it runs in.
## review: a comment is prose in any file; a branch changing only Markdown no agent follows runs only the prose pass and, for README or docs an outside reader lands on, the product-owner pass; plan rows a chunk files from a finding, re-scores or moves get no review
2026-10-29, lilleman. Serves goals 1.4 and 1.5. One project's chunk on 2026-10-29 changed a README paragraph, `todo.md` and three lines of `gate.yml`, and the principles, security and stability passes all ran on it, each twice: 6 of the chunk's 10 rounds. A change to config is one that changes what runs, so a comment in it fires only the prose pass, as a comment in code already did. A branch that changes only Markdown no agent follows changes no code, config or tests, so no pass that reads those runs on it. A plan row a chunk files from a finding, re-scores or moves is read by the chunk that ships it, so reviewing it at filing reviewed it twice: that chunk spent a prose round of 4 minutes on its plan change. Markdown an agent follows, such as a skill, is config, since a change there changes what agents do. Valid while defects in prose-only chunks stay rare in later chunks' fixes.
+46
View File
@@ -3864,3 +3864,49 @@ Read most (opens and searches):
Read most (opens and searches):
- `agents/stability-reviewer.md` 1
## Reading cost, chunk 180918d0d6c2, finished 2026-12-01T15:54:50Z
122282 new input tokens before the first commit.
Read most (opens and searches):
- `docs/decisions.md` 18
- `todo.md` 12
- `README.md` 4
## Reading cost, chunk 4740420b79e6, finished 2026-12-01T16:03:35Z
61467 new input tokens before the first commit.
Read most (opens and searches):
- `bin/loop_claude/test_black_box.py` 3
- `README.md` 2
- `bin/agent_cycle/retry.py` 1
- `bin/claude_code/entries.py` 1
## Reading cost, chunk 2fa341e0b5d1, finished 2026-12-01T16:16:53Z
50216 new input tokens before the first commit.
Read most (opens and searches):
- `principles/technical-principles.md` 2
## Reading cost, chunk a19368c2217b, finished 2026-12-01T16:24:41Z
51799 new input tokens before the first commit.
Read most (opens and searches):
- `agents/product-owner-reviewer.md` 6
## Reading cost, chunk 9b36460eb19c, finished 2026-12-01T16:31:56Z
52867 new input tokens before the first commit.
Read most (opens and searches):
- `agents/prose-reviewer.md` 2
- `agents/product-owner-reviewer.md` 1
+1
View File
@@ -62,6 +62,7 @@
- Every escaped bug becomes a test that fails without its fix.
- Write no test that no real bug could fail: a constant's value, a list's length, the framework's own behaviour.
- A test neither sleeps nor asserts on the wall clock, and seeds any randomness.
- When another goroutine, process or queue sets the state a test reads, the test waits for a signal that the code under test or its fake sends, such as a message on a channel or a callback. Give the wait a timeout whose only effect is to fail the test when the signal never comes. Reading the state straight after the call that starts the work races with that work, and polling with sleeps breaks the rule above. BANNED: `assert len(server.connections) == 3` right after the client opens three connections. GOOD: the fake server sends on a channel each time it accepts a connection, and the test receives from that channel three times, each receive with a timeout.
- For pure logic over many inputs, prefer a property test: a round trip, an invariant.
- Changing tests and changing other code are two separate processes — be very careful about doing both at once.
- Use properly randomised UUID v7s — never `aaaa-0000`-style placeholders.
+3 -2
View File
@@ -112,6 +112,7 @@ Give a reviewer without Bash `git ls-files`'s output in its prompt, since some h
| a 🔴 of a pass other than prose | made rule-hook log an override | Overrides |
| a 🔴 of a pass other than prose | changes behaviour: what the code or its tests do | Stability |
| a 🟡 of a pass other than prose | removes or loosens an assertion, changes an expected value, or skips, deletes or guards a test or assertion with a condition or a catch | that pass |
| a 🟡 of a pass other than prose | adds a type, a function, a guard, a counter or shared state to code, or any other new unit of behaviour, whether in new lines or inside existing ones; a test, or a change that only edits what existing lines do, adds none | Stability |
| a prose finding, of any severity | rewrites what a claim says, where a command or a source file can check the claim, such as what generated output holds, a number or a licence term | Prose, as its second and last round |
Example: in the release review, a fix for a stability 🔴 that changes code and a comment reruns Stability and Principles.
@@ -119,12 +120,12 @@ Example: in the release review, a fix for a stability 🔴 that changes code and
A fix that fits no row doesn't rerun any pass. So none of these does:
- a fix for a 🟢 or a ❓, whatever it changes;
- a fix for a 🟡 that does none of what the 🟡 row lists;
- a fix for a 🟡 that does none of what the 🟡 rows list;
- a fix for a prose finding that rewords a claim and keeps what it says.
A comment or doc edit inside a fix for another pass's finding adds no pass: no row reruns Prose for it.
One fix fits the 🟡 row and still doesn't rerun the pass: a fix that only kills a named mutant or makes a named failing test pass, once §2's tests and mutation command run clean on it and the named failing test is unedited ("Mechanical answers"). A skipped test kills no mutant.
One fix fits the first 🟡 row and still doesn't rerun the pass: a fix that only kills a named mutant or makes a named failing test pass, once §2's tests and mutation command run clean on it and the named failing test is unedited ("Mechanical answers"). A skipped test kills no mutant.
A round's fixes re-enter together: run every pass the table names for any of them, a done pass included, in the waves of "Waves", then §4. "Mechanical answers" below names the one case where the fixes for a 🔴 don't rerun its pass. A pass at its cap doesn't run again ("Round cap" → "Cap").
+65 -40
View File
@@ -6,15 +6,16 @@
`Bar = 0.1`
`Next ID = 563`
`Next ID = 572`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 562 | 0.17.0 | | question | **Decide which of the files the setup keeps outside this repo goal 3 and the Install section's backup step cover.** | 1 | 2 | 1 | 2 | 1 | | 0.0 |
| 569 | 0.17.0 | | | **Rerun the stability pass on a fix for a 🟡 that adds a new unit of behaviour, such as a guard or shared state; today no pass reads it.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 |
| 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 1.9 |
| 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/<tool>`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, 2 by 2, code health by 2 | 1.5 |
| 571 | 0.18.0 | | | **Make `task-bench` run a project's tests that call git, such as `git ls-files` and `git show :settings.json`, when started from a chunk's worktree, or fail before its first run with a message naming the cause.** | 2 | 1 | 1 | 2 | 3 | 1.1 by 3, 1.4 by 2 | 1.4 |
| 561 | 0.18.0 | | | **Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.** | 2 | 2 | 2 | 4 | 3 | 1.5 by 2 | 0.5 |
| 482 | 0.19.0 | 481 | owner | **Install the setup with `uv tool install` from a release tag, with `build-release` and `build-epic` on `PATH`, and replace `deploy-release` with `build-release self-update`.** | 3 | 2 | 3 | 6 | 7 | 1.6 by 4, 1.3 by 3, 2 by 6 | 1.6 |
| 485 | 0.19.0 | 482 | owner | **Rename `loop-claude` to `build-release`, and keep `loop-claude` as an alias that warns, for one release.** | 2 | 2 | 3 | 5 | 4 | 1.3 by 2, 5 by 2 | 2.5 |
@@ -45,7 +46,7 @@
| 499 | 0.23.0 | | defect | **Stop `todo-item add` and `edit` from waiting on a stdin that stays open without data, so a call without a heredoc ends at once.** | 2 | 2 | 2 | 4 | 2 | 1.5 by 3, 1.4 by 2 | 1.5 |
| 445 | 0.23.0 | | | **Refuse a plan that holds an item a `Finish item <ID>` 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.4 |
| 171 | 0.23.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.4 |
| 300 | 0.23.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, Locality and Shape first; today the second scoring run at 68611733 scored Navigation 7.13, Locality 6.13, Shape 6.13, Self-sufficiency 5.88 and Overall 6.25.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.4 |
| 300 | 0.23.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, Locality and Shape first; today the second scoring run at 98c49021 scored Navigation 7.00, Locality 5.88, Shape 6.13, Self-sufficiency 5.75 and Overall 6.13.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.4 |
| 264 | 0.23.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.4 |
| 323 | 0.23.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.4 |
| 342 | 0.23.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.4 |
@@ -91,6 +92,8 @@
| 298 | 0.23.0 | | | **Send the judge only the decision entries and the transcript tail a verdict needs, and keep the cut only where `judge-replay` changes no verdict kind.** | 3 | 3 | 3 | 7 | 4 | 1.4 by 2, 1.5 by 1 | 0.7 |
| 265 | 0.23.0 | | | **Archive each wait that costs a chunk wall time, for a usage limit, low memory, a failed worker start or a heavy slot, with its start and end stamps, so goal 1.5's hours split waiting from work.** | 3 | 2 | 2 | 5 | 4 | 1.5 by 3 | 0.7 |
| 475 | 0.23.0 | | | **Have stability-reviewer report, as a finding, each lookup that an input from outside the repo can make fail without an error naming what was missing.** | 1 | 1 | 2 | 2 | 2 | 1.1 by 2 | 0.7 |
| 563 | 0.23.0 | | | **Have the stability reviewer flag a write that acts on rows an earlier statement selected by a condition, where the write neither repeats the condition nor holds a lock.** | 2 | 2 | 2 | 4 | 2 | 1.1 by 2 | 0.7 |
| 564 | 0.23.0 | | | **Have the product-owner reviewer check that the branches of a `oneOf` in an API schema cannot both match one body.** | 2 | 2 | 2 | 4 | 2 | 1.1 by 2 | 0.7 |
| 395 | 0.23.0 | | decision | **Keep each block a save didn't change, with its localId, and the spacing paragraphs beside it as Jira or Confluence holds them.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 4 | 0.7 |
| 425 | 0.23.0 | | | **Show on loop-claude's terminal why it doesn't start a chunk beside the next item, as chunk-preflight prints it.** | 1 | 1 | 2 | 2 | 2 | 1.5 by 2 | 0.6 |
| 169 | 0.23.0 | | | **Have rule-hook's `todo-rank-check` catch a `todo.md` that the same Bash call edits and then commits.** | 3 | 1 | 3 | 5 | 3 | 1.1 by 2 | 0.6 |
@@ -105,22 +108,13 @@
## Details
### 562. Decide which of the files the setup keeps outside this repo goal 3 and the Install section's backup step cover.
### 569. Rerun the stability pass on a fix for a 🟡 that adds a new unit of behaviour, such as a guard or shared state; today no pass reads it.
README.md's goal 3 reads "Keep the setup's files backed up, with this repo as their copy, and the transcripts of unattended runs too." This repo is the copy of every file it tracks, but three places hold state of the setup that it doesn't track, and goal 3 may leave them out:
A chunk's product-owner round raised a 🟡: a callback could recurse. The fix added a new mechanism, a shared counter that guards the callback. `larv-review` §3 → "Re-entry" reruns no pass for a 🟡 fix unless it loosens a test, so no reviewer of ours read the mechanism. The forge's auto-reviewer then found that a second entry point bypassed the guard.
- `~/.claude/loop-claude-models.json`: the models loop-claude routes to on this machine. `.gitignore` is an allowlist that doesn't list it, so it stays out of this repo. Install doesn't mention backing it up.
- `~/.local/state/larv-review`: each chunk's review reports. Install's "Back up three folders" step already names it, beside `~/.claude/loop-claude-transcripts` and `~/.claude/do-epic-transcripts`.
- `~/.claude-projects/<key>/`: a client project's config, plan, records and `goals.md`, in a local git repo with no remote. Goal 4 keeps a client's files out of this repo, so this repo can't be their copy. Install's "Set up a project" describes the folder, but the backup step doesn't name it.
Add a row to the Re-entry table, in `skills/larv-review/SKILL.md` and wherever `bin/review_rules/` mirrors it: a fix for a 🟡 that adds a unit of behaviour the pass has not seen, such as a new type, a guard, a counter or shared state, reruns Stability. A fix that only changes existing lines of a unit stays as today. The round cap still holds.
Question: should Install's "Back up three folders" step add `~/.claude/loop-claude-models.json` and `~/.claude-projects/`, and should goal 3 say that the setup's files outside this repo are backed up too?
Recommendation: yes to both for `~/.claude-projects/`, since it holds a client project's only copy of its plan and records, and losing it loses the loop's memory of that project. Add `~/.claude/loop-claude-models.json` to the step too: it is one small file, and rebuilding it by hand costs an interrupt. Word goal 3 as "the setup's files, with this repo as the copy of those it tracks, and the folders Install names backed up", so the list lives once, in Install.
The chunk that takes this writes the answer once, in README.md.
Touches:
- `README.md`: `## Goals` (small), `## Install` (small)
No deterministic tool fits: whether a fix adds a mechanism is a judgement on the diff.
### 480. Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.
@@ -130,6 +124,24 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Today about
Part of the standalone-install plan lilleman approved on 2026-11-20. About 70 places in `CLAUDE.md`, `rules/`, `skills/` and `agents/` name a tool by its path in `~/.claude/bin/`. Keeping the tools on `PATH` only inside the loop's sessions keeps short names such as `wait-for` out of the human's shell. And prose that names no install folder works under every harness.
### 571. Make `task-bench` run a project's tests that call git, such as `git ls-files` and `git show :settings.json`, when started from a chunk's worktree, or fail before its first run with a message naming the cause.
Found while finishing item 565's chunk: `task-bench`, started from the chunk's worktree with `CLAUDE_CODE_OAUTH_TOKEN` exported, failed its baseline. Inside the container, this repo's tests failed with "not a git repository": `git ls-files` exited 128, and `git show :settings.json` failed. The chunk recorded no bench figures.
The cause is not verified, so the first step is to reproduce it: run the bench once from a worktree and once from the main checkout. Two causes fit:
- A worktree's `.git` is a file that points at the main checkout's git folder, which the container doesn't mount.
- More likely from the code: `archived` in `bin/task_bench/main.py` builds each side's tree with `git archive`, which leaves out `.git`. `baseline_failure` then tests that tree through `tests_in_copy` before `committed` has given it a repository. So any test that calls git, such as `bin/repo_checks/test_settings.py`, `test_import_order.py` and `test_citations.py`, would fail from the main checkout too.
Where the second cause holds, give each side's tree a repository with its files staged and committed (`committed` in `bin/task_bench/tasks.py` already does this for a planted tree) before its tests run. Then the copy `tests_in_copy` makes carries it. Either way, write first a test in `bin/task_bench/test_task_bench.py` that fails today. Where no fix fits, fail before the first run, naming the cause.
`Planner` in `bin/task_bench/main.py:241` is a place the comprehension seats found hard. Leave it alone unless the change touches it; if it does, make it easier to read.
Touches:
- `bin/task_bench/main.py`: `bench_in`, `archived` (small)
- `bin/task_bench/tasks.py`: `committed`, `tests_in_copy` (small)
- `bin/task_bench/test_task_bench.py`
### 561. Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.
Today a parked chunk whose pull request is no longer open (`gates.Unopened`, `bin/do_epic/gates.py`) gets news for its worker to remove the worktree (`parking.news_after`). That worker needs a running slot, so behind the epic's `**Max parallel chunks:**` cap or the repo's `parallel-chunks`, the chunk stays parked with "it may be merged or closed already, but the chunk stays parked", and its window lingers for days. On a team epic, the issue of one such chunk was already Done while its window still read "awaits a slot". The person reads that as stuck work, and once a slot frees, a whole worker run goes to `chunk-pr clean`.
@@ -154,7 +166,7 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Once the lo
### 484. Keep project configs, this machine's rules, transcripts and review reports in `~/.config/build-release/` and `~/.local/state/build-release/`, move them there with `build-release migrate`, and have rule-hook guard the new places.
Part of the standalone-install plan lilleman approved on 2026-11-20. Today they live in `~/.claude-projects/`, `~/.claude/rules/this-machine/`, `~/.claude/*-transcripts` and `~/.local/state/larv-review`. Read the old places for one release, warning on each read. From the first release that reads project configs from `~/.config/build-release/`, rule-hook must read each `env-file` from those configs and refuse a read of it.
Part of the standalone-install plan lilleman approved on 2026-11-20. Today they live in `~/.claude-projects/`, `~/.claude/*-transcripts` and `~/.local/state/larv-review`. Read the old places for one release, warning on each read. From the first release that reads project configs from `~/.config/build-release/`, rule-hook must read each `env-file` from those configs and refuse a read of it.
### 487. Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.
@@ -295,34 +307,35 @@ 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, Locality and Shape first; today the second scoring run at 68611733 scored Navigation 7.13, Locality 6.13, Shape 6.13, Self-sufficiency 5.88 and Overall 6.25.
### 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, Locality and Shape first; today the second scoring run at 98c49021 scored Navigation 7.00, Locality 5.88, Shape 6.13, Self-sufficiency 5.75 and Overall 6.13.
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 item 525's chunk at 68611733. The lowest mean of the second run is Self-sufficiency at 5.88, with Locality and Shape at 6.13; the first run put Locality lowest at 5.88, Self-sufficiency at 6.00 and Shape at 6.13. Self-sufficiency: the why behind code sits in `docs/decisions.md`, cited by title from about 120 places, and the review loop's rules live in `skills/larv-review/SKILL.md`, not beside the unit that enforces them. Locality: do-epic and chunk-pr run order-dependent steps and keep state in tmux window names and between loop passes (`start_chunks`, `resumed_news`, `merged`, `merge_turn`), and no code enforces the order. Shape: `bin/` holds about 82 entries at one level, long functions carry several flags at once, and the OLD_SHAPE fork in `bin/plan/ranking.py` doubles the paths through ranking. 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:`, refreshed from the two runs of item 525's chunk at 68611733, and then from the two runs of item 565's chunk at 98c49021. The lowest mean of the second run at 98c49021 is Self-sufficiency at 5.75, with Locality at 5.88 and Shape at 6.13; the first run put Self-sufficiency lowest at 5.63, with Locality and Shape at 5.75. Self-sufficiency: the why behind code sits in `docs/decisions.md`, cited by title from about 120 places, and the review loop's rules live in `skills/larv-review/SKILL.md`, not beside the unit that enforces them; `bin/agent_cycle/routing.py:115` `unfinished_route` keeps its reasons in the decision log too. Locality: do-epic and chunk-pr run order-dependent steps and keep state in tmux window names and between loop passes (`start_chunks`, `resumed_news`, `merged`, `merge_turn`), and no code enforces the order; `bin/do_epic/main.py:236` `chunk_run` and `bin/do_epic/scheduler.py:172` `start_chunks` are the hardest do-epic places, and the round cap is counted three ways (`bin/rule_hook/round_cap.py:28` `earlier_titles`, `bin/larv_review/reviewer_header.py:83` `branch_summaries`, `bin/review_rules/round_titles.py:39` `named_counts`). Shape: `bin/` stays flat at about 86 entries at one level, long functions carry several flags at once, and the OLD_SHAPE fork in `bin/plan/ranking.py` doubles the paths through ranking. 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 in the second run, hardest first (`larv-review places`), Self-sufficiency first:
Places the seats named in the two runs at 98c49021, hardest first (`larv-review places`), Self-sufficiency first:
- Self-sufficiency: `skills/larv-review/SKILL.md:102` "Re-entry", with `:94` "Round cap": a rule table with exceptions to its own rows, read three times to know which passes a fix reruns. Two seats named it.
- Self-sufficiency: `bin/review_rules/round_titles.py:39` `named_counts`, with `bin/rule_hook/round_cap.py:28` `earlier_titles`: the round cap's whole contract lives in the skill's text, no code counts reviewer launches, and `earlier_titles` fails open to an empty list on a slow git.
- Self-sufficiency: `bin/plan/ranking.py:144` `weigh`, with `:239` `score`: an old and a new item shape branch through the module, and nothing says which is current. Two seats named it.
- Self-sufficiency: `bin/do_epic/main.py:402` `handed_on`: retries through an intermediate status and polls with no stated bound.
- Self-sufficiency: `bin/agent_cycle/judge.py:88` `Reply`: the field names don't say what each verdict means to the loop.
- Self-sufficiency: `bin/rule_hook/folder_search.py:89` `skips`: flag semantics of rg and ag that can't be checked without the tools' manuals. Two seats named it.
- Locality, Shape: `bin/chunk_pr/main.py:448` `merged`, with `:516` `merge_turn` and `:587` `levelled_and_finished`: one queue loop holds the merge settings, the flock queue and the approval wait, in an order that matters and that only the help docstring states. Three seats named it.
- Locality: `bin/do_epic/scheduler.py:172` `start_chunks`: five branches over seven sets and three limits under one lock, with part of the parked state read from tmux window names.
- Locality: `bin/do_epic/parking.py:105` `resumed_news`: an endless poll loop whose `awaits`, `stays`, `shown` and `said` mix display state with control state.
- Locality, Navigation: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing has about nine homes, the escalation mark's meaning is split over four modules, and no file says which parts make routing up. Two seats named it.
- Locality: `bin/agent_cycle/judge.py:300` `judge_prompt`: the prompt's wording is coupled to judge_replay's parsing of archived prompts.
- Locality: `bin/do_epic/main.py:485` `next_cycle`: picks the prompt by comparing a tmux window name with the epic's key.
- Locality: `bin/loop_claude/loop/reload.py:85` `fingerprint`: an edit to any `.py` under `bin/` reloads the running loop, through a handover format that already carries history.
- Shape: `README.md:244` "Packages under bin/": one flat list of about 40 bullets carries a level of some 82 entries, with no grouping into families.
- Shape: `bin/do_epic/main.py:236` `chunk_run`: the loop variable `news` is a `str` or a `Stop`, and a nested conditional picks the `Landed` value. Two seats named it.
- Shape: `bin/project_config/settings.py:205` `load`: about twenty conditional entries encode the cross-setting rules, with the table they depend on 175 lines below. Two seats named it.
- Shape: `bin/chunk_pr/main.py:398` `epic_opened`: a chain of `x = prev if isinstance(prev, Failure) else f(prev)` hides the success path.
- Shape: `bin/agent_cycle/run.py:250` `close`, with `:33` `Cycle`: one long conditional decides the archived outcome, and the dataclass has 17 fields.
- Shape: `bin/chunk_driver/this_loop.py:12` `Loop`, with `bin/chunk_driver/cycle_start.py:96` `cycle_of`: `Loop` is built per chunk and serves do-epic too, as the `loop_`-prefixed packages do; `cycle_of` takes ten keyword arguments.
- Shape: `bin/rule_hook/rules.py:27` `RULES`: each rule's prose is one very long string, which hides the table's structure.
- Self-sufficiency, Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs interact, and the reasons sit in the decision log or the module's table. Three seats named it.
- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:104` "Re-entry", with `:96` "Round cap": Re-entry depends on "Round cap" and "Mechanical answers" and is read twice to know which pass a fix reruns, and the cap's contract spans the skill, three modules and `bin/rule_hook/rules.py:85`. Two seats named it.
- Self-sufficiency: `bin/do_epic/main.py:485` `next_cycle`: a tmux window name doubles as the Jira issue key, written down nowhere.
- Self-sufficiency, Shape: `bin/release_plan/release_standing.py:206` `next_release`: one boolean packs three inputs.
- Locality, Self-sufficiency, Shape: `bin/do_epic/parking.py:18` `parked_through`: a crash-ordering protocol of three ordered steps and a polling loop, with state in a file, tmux attributes, Jira and scheduler slots, and the order only in the docstring. Three seats named it.
- Locality, Shape, Navigation: `bin/do_epic/scheduler.py:172` `start_chunks`: window sets and a parked map in a five-way branch under two nested locks, and the cap on running chunks lives here, in `resume` and in `bin/loop_claude/loop/chunk_windows.py:117` `start_chunks`. Three seats named it.
- Locality: `bin/rule_hook/round_cap.py:28` `earlier_titles`, with `bin/larv_review/reviewer_header.py:83` `branch_summaries` and `bin/review_rules/round_titles.py:39` `named_counts`: three round counters, and `earlier_titles` fails open where the others don't. Two seats named it.
- Locality, Shape: `bin/do_epic/main.py:402` `handed_on`: reads like a getter and writes Jira, the store and tmux.
- Locality: `bin/chunk_pr/main.py:624` `levelled_and_finished`: the order of the scoring-run check and the remeasure isn't explained.
- Locality: `bin/agent_cycle/judge.py:88` `Reply`: the prompt's wording is coupled to `judge_replay.archived_prompt`.
- Locality: `bin/chunk_driver/chunk_run.py:44` `closed_cycle`: `Route.unfinished` and `Run.unfinished_run` have near-identical names and different meanings.
- Locality: `bin/loop_claude/loop/reload.py:97` `exec_if_edited`: a new `LoopRun` field breaks running loops.
- Shape, Locality, Self-sufficiency: `bin/chunk_pr/main.py:485` `merged`: a merge-queue loop interleaving approval, parking and a flock, with chained Failure ternaries, four flags whose combinations aren't all visibly handled, about eight functions to follow one merge, and git, forge and plan effects in an unexplained order. Five seats named it.
- Shape, Locality: `bin/do_epic/main.py:236` `chunk_run`: a long loop mixing parking and reopening, with flags threaded through and a nested ternary at line 285. Three seats named it.
- Shape: `bin/task_bench/main.py:241` `Planner`: three layers of curried callables. Two seats named it.
- Shape: `bin/agent_cycle/run.py:33` `Cycle`, with `:160` `rule`: the dataclass has 17 fields, and `rule` has four near-identical archive names and one very long expression at line 255.
- Shape, Navigation: `bin/rule_hook/rules.py:27` `RULES`: a prose table and the check functions share one file.
- Shape: `bin/rule_hook/env_file.py:34` `reaching`: `and` over `or` without parentheses at line 41.
- Navigation, Shape: `bin/agent_cycle/__init__.py:1` `agent_cycle`: 17 flat modules against its own "about seven" citation.
- Navigation: `README.md:269` "do_epic": the only map of a 22-module package with an empty `__init__.py`.
- Navigation: `bin/chunk_driver/this_loop.py:12` `Loop`: the name doesn't say it holds a chunk's run context.
### 264. Report the comprehension seats and the escalated subagents as subagent types of their own in `routing-figures.md`, with their dollars.
@@ -675,6 +688,18 @@ A forge's auto-reviewer raised two such findings on a chunk whose stability pass
Add one line to `agents/stability-reviewer.md`, where it lists what to check: for every value the change reads from a file, a response or a table that the repo does not hold, follow each lookup by key or index on it, and report one that fails without a message naming the missing key, unless the code states that the key is always there and why. A deterministic tool was weighed first and fits badly: no linter tells a mapping parsed from outside data from one the code built.
### 563. Have the stability reviewer flag a write that acts on rows an earlier statement selected by a condition, where the write neither repeats the condition nor holds a lock.
An outside reviewer raised this on a client's pull request, and two stability rounds had passed the code. A job selected the rows that met a condition, then changed them by primary key in a second statement. A row that stopped meeting the condition between the two statements was changed anyway, which broke the guarantee the change was written to give.
Put the rule where the stability reviewer reads it, such as the review standards' `quality.md` or the agent's definition: where a change states a guarantee as "never X a row that has Y", the reviewer checks that the statement that writes also checks Y, or that a lock covers both statements. A transaction alone doesn't count.
### 564. Have the product-owner reviewer check that the branches of a `oneOf` in an API schema cannot both match one body.
An outside reviewer raised this on a client's pull request. A fix for a product-owner finding described a response as `oneOf` two schemas, where one schema required no property and so matched every object. Each real body matched both branches, which `oneOf` forbids. The fix came at the pass's round cap, so no reviewer of ours read it.
First look for a deterministic check: a linter rule for OpenAPI that fails a `oneOf` holding a branch with no required property and no `additionalProperties: false`. Where no linter offers one, add the rule to the product-owner reviewer's definition: a `oneOf` whose branches can overlap is a 🟡, and `anyOf` is the fix where the branches cannot be made disjoint.
### 395. Keep each block a save didn't change, with its localId, and the spacing paragraphs beside it as Jira or Confluence holds them.
Today a Jira detail edited in one line, or a Confluence record with one entry appended, is written back whole by adf-codec's portable pair, which drops each block's localId and the empty paragraphs Jira uses for spacing. A save whose text is the text a read showed already sends nothing (`docs/decisions.md` → `project config: the loop shows a Jira description and a Confluence page as adf-codec's portable markdown, …`). Match the saved markdown's top-level blocks against the held document's, each as the portable pair reads it, and send the held block where they match. The decision's limit on partial saves ends with this item.