Compare commits

..

1 Commits

Author SHA1 Message Date
lilleman e9517f13c7 File items 588 and 589: count every turn of a bench run, and report how far its change reached
CI / tests (pull_request) Has been cancelled
2026-12-04 09:53:55 +01:00
21 changed files with 119 additions and 450 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
# Changelog
## 0.18.0
## Unreleased
- Split the README's opening paragraph into one sentence on what dev-factory is and a list of what each folder and file holds.
- **The loop's Claude home keeps out your own `~/.claude/CLAUDE.md` and `~/.claude/rules/`, which Claude Code loaded in every project under your home folder.** The home's generated `settings.json` now names your `~/.claude` in `claudeMdExcludes`. build-release and build-epic refuse to run from a release cloned inside `~/.claude`, since that setting would drop the release's own rules: clone it elsewhere, as `README.md` → Install says. The gate now runs a first chunk as a newcomer would, in a container with a stock Claude Code and a mock Messages API (`first-chunk-e2e/run`), and fails where anything from that `~/.claude` reaches a request or the folder changes.
- Added `claude-release`, which opens claude in the loop's Claude home with the setup loaded, in the folder you run it in, and passes every argument on to claude; `README.md` → Install says how it differs from the claude you start from your own `~/.claude`.
- **The project and its repo are named `dev-factory`, in the README, the docs, the prose and the tools; the repo moved from `claude-config` on the forge.** Before you update, point each clone at the new URL, as `README.md` → Install clones it: `git remote set-url origin <URL>`. First finish the project's open chunks and stop its running `build-release`: neither the tmux session `loop-claude-config` nor a claude session named `A claude-config build-release <window>` is found under the new key. Then rename the setup's development clone from `~/code/claude-config` to `~/code/dev-factory`, where the tools expect it. A project's key is its clone's path relative to `~/code`, so the rename gives the project a new key. After it, set `checkout = "~/code/dev-factory"` in the project's `config.toml`, move its folder `~/.config/build-release/claude-config/` to `~/.config/build-release/dev-factory/`, move its folder under the transcripts root the same way (`~/.local/state/build-release/transcripts/`, unless `BUILD_RELEASE_TRANSCRIPTS` names another), and rename its entry in `~/.config/build-release/models.json`. The Docker image the README builds for `task-bench` is tagged `dev-factory-task-bench`, not `claude-config-task-bench`: build it again.
+1 -15
View File
@@ -1,20 +1,6 @@
# dev-factory
dev-factory builds a project's plan into merged pull requests, with Claude Code as its harness today. This repo holds dev-factory's setup, version controlled:
- `CLAUDE.md` and `rules/` for instructions, with the words they use defined under `CLAUDE.md` → "Vocabulary"
- `.claude/rules/` for the rules that load in this repo alone
- `agents/` and `skills/`
- `principles/` and `skills/larv-review/standards/` for what the reviewer agents hold projects to, which a project's config names as `principles` and `standards`
- `docs/` for decisions and the comprehension history
- `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo
- `CHANGELOG.md` and `todo.md`
- `bin/` for the tools, with the routing ladder they ship, `bin/model_routing/routing-ladder.json`
- `workflow-bench/`, the scripts and prompts of the 2026-09-30 bench of larv-review and of the 2026-11-12 bench of the advisor tool
- `reviewer-merge-trials/`, the 2026-11-09 trials of merging reviewers, with their method, results and scripts
- `judge-field-trials/`, the 2026-11-11 trials of which facts code could read itself instead of leaving them to build-release's judge, with their results and scripts
- `stability-skip-count/`, the 2026-11-12 count of archived stability rounds, with its script, which larv-review used to decide when to skip a stability round 2
- `presentation/`, the page of a talk that explained this setup to newcomers, as the setup stood at the talk, with the script that prints it to PDF
dev-factory builds a project's plan into merged pull requests, with Claude Code as its harness today. This repo holds dev-factory's setup, version controlled: `CLAUDE.md` and `rules/` for instructions, the words under `CLAUDE.md` → "Vocabulary"; `.claude/rules/` for the rules that load in this repo alone; `agents/` and `skills/`; `principles/` and `skills/larv-review/standards/` for what the reviewer agents hold projects to, which a project's config names as `principles` and `standards`; `docs/` for decisions and the comprehension history; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `CHANGELOG.md` and `todo.md`; the tools in `bin/`, with the routing ladder they ship, `bin/model_routing/routing-ladder.json`; `workflow-bench/`, the scripts and prompts of the 2026-09-30 bench of larv-review and of the 2026-11-12 bench of the advisor tool; `reviewer-merge-trials/`, the 2026-11-09 trials of merging reviewers, with their method, results and scripts; `judge-field-trials/`, the 2026-11-11 trials of which facts code could read in place of build-release's judge, with their results and scripts; `stability-skip-count/`, the 2026-11-12 count of archived stability rounds, with its script, from which larv-review took when to skip a stability round 2; and `presentation/`, the page of a talk that explained this setup to newcomers, as it stood then, with the script that prints it to PDF.
## Goals
+1 -1
View File
@@ -2,7 +2,7 @@ from loop_effects.effects import Effects, say
def tell(text: str, effects: Effects, directory: str | None = None) -> bool:
"""DMs text to the human through the notifier of the project whose checkout holds directory, else the current directory, and returns whether it went out: true too where the DM is skipped, since the project's config names no notifier. Where the DM fails, it says why on stderr and goes on: the DM only copies what the terminal shows, so its failure never stops the loop."""
"""DMs text to the human through the notifier of the project whose checkout holds directory, else the current directory, and returns whether it went out. Where the DM fails, it says why on stderr and goes on: the DM only copies what the terminal shows, so its failure never stops the loop."""
if failed := effects.dm(text, directory):
say(f"could not DM you: {failed.reason}", effects)
return not failed
+3 -3
View File
@@ -60,10 +60,10 @@ FINISHED_RULES = (
"The chunk is the piece of work the worker is on, shipped as one pull request.\n\n"
"finished=true when the chunk is complete: merged, or nothing remains that the worker could do on "
"its own. Even then, it is finished only once {answers_recorded}.\n\n"
"An answer counts as recorded where the premises or the records above already hold it. The records include "
"the setup's CLAUDE.md, the setup's rules/ and the project's review standards, each headed by its name. "
"An answer counts as recorded where the premises or the records above already hold it, the human's rules "
"(the setup's CLAUDE.md, the setup's rules/, the project's review standards, each headed by its name) included. "
"It also counts where the transcript shows the worker writing it into {answer_destinations}, "
"but not into one of the setup's rules.\n\n"
"but not into one of the human's rules.\n\n"
"finished=false when work remains that a further run can "
"continue: an open PR, a review not yet run, CI not yet reported, an answer not yet recorded."
)
+1 -1
View File
@@ -196,7 +196,7 @@ class JudgePrompt(unittest.TestCase):
def test_the_judge_prompt_names_the_entry_points_answer_destinations_in_both_rules_on_a_recorded_answer(self):
prompt, _ = judge.judge_prompt(self.brief([assistant({"type": "text", "text": "done"})], 0, "the ledger"))
self.assertIn("is recorded in the ledger at the one place it governs", prompt)
self.assertIn("the worker writing it into the ledger, but not into one of the setup's rules", prompt)
self.assertIn("the worker writing it into the ledger, but not into one of the human's rules", prompt)
def test_shows_the_judge_where_the_worker_last_stepped_up_and_checks_an_escalation_only_after_it(self):
entries = [assistant({"type": "text", "text": "round 2: 🔴"}), assistant({"type": "text", "text": "round 3: 🔴"})]
+4 -4
View File
@@ -4,13 +4,13 @@ import dataclasses
from chunk_driver.drivers import BUILD_EPIC
from build_epic.backend.protocol import EpicIssue
from build_epic import findings
from chunk_driver.project.records import HUMAN_RULE_NAMES, RECORD_FILES
from build_epic.repo_pick import LabelRepos
from text_files.markdown_text import listed
import pathlib
from project_config.settings import ProjectConfig
from model_routing.ladder import ProjectRung
from chunk_driver import prompts
from chunk_driver.project.records import RECORD_FILES, SETUP_RULE_NAMES
from model_routing.route import Route
from project_config import templates
from agent_cycle.worker_prompts import WorkerPrompts
@@ -57,11 +57,11 @@ def fresh(task: str, premises: str, route: Route, project: ProjectRung | None, f
# The worker names no plan items: the chunk's one item is its issue.
# The epic's records come first, as its goals do; a chunk without a repo is handed only those and the setup's rules, so the names that mention a repo's then don't name anything it reads.
# The epic's records come first, as its goals do; a chunk without a repo is handed only those and the human's rules, so the names that mention a repo's then name nothing it reads.
NAMES = prompts.RecordNames(
quote_sources=listed(("the epic's description", "the repo's goals file's Goals and Audience", *RECORD_FILES, *SETUP_RULE_NAMES), "or"),
quote_sources=listed(("the epic's description", "the repo's goals file's Goals and Audience", *RECORD_FILES, *HUMAN_RULE_NAMES), "or"),
answer_destinations="the epic's description under ## Decisions, the repo's goals file's Goals or Audience, " + ", ".join(RECORD_FILES) + ", the repo's plan or a comment",
records_named="the epic's scoring and decisions, then the repo's working rules and decisions, then the setup's rules for every project",
records_named="the epic's scoring and decisions, then the repo's working rules and decisions, then the human's rules for every project",
)
WORKER = prompts.worker_prompts(DRIVER, fresh, "", NAMES)
+1 -1
View File
@@ -548,7 +548,7 @@ def repoless_models(epic: EpicRun) -> Models:
def records_read(root: str | None, epic: EpicRun) -> str | Failure:
"""The epic's Scoring and Decisions, from its description, then the records of the repo checked out at root, where the chunk has one, then the setup's rules."""
"""The epic's Scoring and Decisions, from its description, then the records of the repo checked out at root, where the chunk has one, then the human's rules."""
sections: list[tuple[str, str]] = []
for name in ("Scoring", "Decisions"):
body = epic.record.section(name)
+1 -1
View File
@@ -628,7 +628,7 @@ class AChunksRun(BuildEpicTest):
self.assertIn("add one bullet to `## Unreleased` in `CHANGELOG.md`", prompt)
self.assertIn("the chunk finished; started ABC-12\n", out)
judge_prompt = [what[1] for seam, what in fake.calls if seam == "claude"][0]
self.assertIn("The records: the epic's scoring and decisions, then the repo's working rules and decisions, then the setup's rules for every project:\nFrom the epic ABC-12's description, ## Decisions:\nKeep the v1 endpoints.\n\nFrom AGENTS.md:\nSquash every merge.", judge_prompt)
self.assertIn("The records: the epic's scoring and decisions, then the repo's working rules and decisions, then the human's rules for every project:\nFrom the epic ABC-12's description, ## Decisions:\nKeep the v1 endpoints.\n\nFrom AGENTS.md:\nSquash every merge.", judge_prompt)
self.assertIn("writing it into the epic's description under ## Decisions, the repo's goals file's Goals or Audience, AGENTS.md, docs/decisions.md, the repo's plan or a comment", judge_prompt)
def test_a_chunk_without_a_repo_reads_no_forge(self) -> None:
+4 -15
View File
@@ -55,18 +55,11 @@ def new_calls(root: pathlib.Path, paths: Paths, env: Mapping[str, str], effects:
def raise_calls(root: pathlib.Path, new: list[Call], rung: Rung, loop: Loop) -> Stop | None:
"""Says each call on stderr and DMs it, then puts it to the human through a claude in this setup's development clone, where the routing decision is changed. Off a terminal it stays unraised and comes again at the next measurement on one. A machine without that clone has no way to change the decision, so a DM that went out, or that `tell` skipped because the project names no notifier, is the last word there and marks the calls raised; a DM that failed leaves them to come again."""
"""Puts the calls to the human through a claude in this setup's development clone, where the routing decision is changed. Off a terminal they are only said, and stay in the figures, raised at the next measurement on a terminal."""
bullets = "".join(f"- {call.sentence()}\n" for call in new)
question = f"build-release's routing figures call for a routing change:\n{bullets}The figures: {root / archive.FIGURES}"
say(f"\n{question}", loop.effects)
sent = tell(f"build-release in {loop.root} asks:\n\n{question}", loop.effects)
if not loop.paths.config_clone.is_dir():
if sent:
say(f"No development clone at {loop.paths.config_clone}, where the routing decision is changed: the calls above are all this machine puts to you, and they are not raised again.", loop.effects)
keep_raised(root, new, loop)
else:
say(f"No development clone at {loop.paths.config_clone}, where the routing decision is changed, and the DM didn't go out: the calls are raised again at the next measurement.", loop.effects)
return None
tell(f"build-release in {loop.root} asks:\n\n{question}", loop.effects)
if not loop.effects.on_terminal():
say("Not on a terminal: the calls are raised again at the next measurement.", loop.effects)
return None
@@ -74,11 +67,7 @@ def raise_calls(root: pathlib.Path, new: list[Call], rung: Rung, loop: Loop) ->
unstarted = hand_over(ClaudeCommand(claude_args(rung, [prompt]), str(loop.paths.config_clone), {}), loop.effects)
if unstarted:
return Stop(1, f"could not start claude for the routing calls in {loop.paths.config_clone}, the setup's development clone: {unstarted.reason}")
keep_raised(root, new, loop)
return None
def keep_raised(root: pathlib.Path, new: list[Call], loop: Loop) -> None:
"""Marks the calls raised once they have been put to the human, answered or not: an unanswered call reaches the plan through docs/decisions.md → "Working rules", so it is not asked twice."""
# Raised once the human has seen them, answered or not: an unanswered call reaches the plan through docs/decisions.md → "Working rules", so it is not asked twice.
if unmarked := state.mark_raised(root, new, utc(loop.effects.now()), loop.effects.replace_file):
say(f"routing figures: {unmarked.reason}", loop.effects)
return None
@@ -34,7 +34,6 @@ class RoutingCheck(unittest.TestCase):
self.addCleanup(shutil.rmtree, self.home)
self.root = self.home / "archive"
self.paths = paths.paths_from(self.home, {})
self.paths.config_clone.mkdir(parents=True)
self.session = session.session_named("A log build-release", self.paths.claude_code_transcripts)
def loop(self, fake):
@@ -117,32 +116,6 @@ class RoutingCheck(unittest.TestCase):
self.assertIsNone(state.mark_measured(self.root, 0))
self.assertIn("Not on a terminal", self.check(FakeEffects(on_terminal=False, git=[UNREAD] * 3))[1])
def test_sends_the_calls_once_where_the_machine_has_no_development_clone_even_off_a_terminal(self):
"""A release's clone holds only a release, so a machine without `~/code/dev-factory` has nowhere to change the routing decision: the DM is how the human sees the calls, and they are not sent again at each measurement."""
self.chunks(5, 4)
shutil.rmtree(self.paths.config_clone)
fake = FakeEffects(on_terminal=False, git=[UNREAD] * 3)
stop, said = self.check(fake)
self.assertIsNone(stop)
self.assertEqual(fake.made("claude_on_terminal"), [])
self.assertIn(f"No development clone at {self.paths.config_clone}, where the routing decision is changed: the calls above are all this machine puts to you, and they are not raised again.", said)
self.assertEqual(len(fake.dms), 1)
self.assertIn("Explore subagents' reports took more of the worker's context", (self.root / "routing-figures.md").read_text())
self.assertIn(f"- {utc(NOW)} Explore subagents'", (self.root / "routing-calls-raised.md").read_text())
self.assertIsNone(state.mark_measured(self.root, 0))
again = FakeEffects(on_terminal=False, git=[UNREAD] * 3)
self.assertEqual(self.check(again), (None, ""))
self.assertEqual(again.dms, [])
def test_raises_the_calls_again_where_there_is_no_development_clone_and_the_dm_did_not_go_out(self):
self.chunks(5, 4)
shutil.rmtree(self.paths.config_clone)
stop, said = self.check(FakeEffects(git=[UNREAD] * 3, dm_failures=[Failure("no route")]))
self.assertIsNone(stop)
self.assertIn("could not DM you: no route", said)
self.assertIn("and the DM didn't go out: the calls are raised again at the next measurement.", said)
self.assertFalse((self.root / "routing-calls-raised.md").exists())
def test_leaves_the_measuring_to_a_loop_holding_the_lock(self):
self.chunks(5, 4)
with archive.locked(self.root):
+1 -1
View File
@@ -38,7 +38,7 @@ class ExitContract(unittest.TestCase):
def test_every_exit_1_stop_has_its_clause_in_help(self):
read, git, premises_ = "a transcript cannot be read or archived", "git cannot start or finds no checkout", "no config names the checkout, its config cannot be read, or the goals file holds no premises"
models_ = "the models file cannot be read or written"
names = (*records.RECORD_FILES, records.SETUP_RULE_NAMES[0], f"{records.SETUP_RULE_NAMES[1]}*.md", records.SETUP_RULE_NAMES[2])
names = (*records.RECORD_FILES, records.HUMAN_RULE_NAMES[0], f"{records.HUMAN_RULE_NAMES[1]}*.md", records.HUMAN_RULE_NAMES[2])
unreadable = f"the goals file, or {', '.join(names[:-1])} or {names[-1]} where they exist, cannot be read or is not UTF-8"
# Every Stop whose code is not a literal 0, 2 or 130, in source order: path, function, code, start of reason, its --help clause.
clauses = [
+8 -8
View File
@@ -7,32 +7,32 @@ from chunk_driver.project.text_file import read_utf8
from loop_state.paths import RELEASE_ROOT
from record_store.stores import store
# The records the judge reads beside the premises, by the name that heads each, with the setting in the project's config that places it; then the setup's rules below.
# The records the judge reads beside the premises, by the name that heads each, with the setting in the project's config that places it; then the human's rules below.
WORKING_RULES = ("AGENTS.md", "working-rules")
DECISIONS = ("docs/decisions.md", "decisions")
RECORD_FILES = (WORKING_RULES[0], DECISIONS[0])
# The rules the judge reads after the records, in order: the setup's CLAUDE.md, each .md file in the setup's rules/,
# The human's rules, in the order the judge reads them: the setup's CLAUDE.md, each .md file in its rules/,
# then each .md file in the review standards folder the project's config sets.
SETUP_RULES_FILE = "CLAUDE.md"
SETUP_RULE_DIR = "rules"
HUMAN_RULES_FILE = "CLAUDE.md"
HUMAN_RULE_DIR = "rules"
# How the judge's prompt names the records above, in the order it reads them.
RECORDS_NAMED = "the project's working rules and decisions, then the setup's rules for every project"
RECORDS_NAMED = "the project's working rules and decisions, then the human's rules for every project"
# How prose names a file of the setup wherever its clone lies: the setup's CLAUDE.md → "Vocabulary", "setup".
OF_THE_SETUP = "the setup's"
SETUP_RULE_NAMES = (f"{OF_THE_SETUP} {SETUP_RULES_FILE}", f"{OF_THE_SETUP} {SETUP_RULE_DIR}/", "the project's review standards")
HUMAN_RULE_NAMES = (f"{OF_THE_SETUP} {HUMAN_RULES_FILE}", f"{OF_THE_SETUP} {HUMAN_RULE_DIR}/", "the project's review standards")
CONSEQUENCE = "the judge cannot read the records"
def read_records(root: str | None, home: pathlib.Path, env: Mapping[str, str], claude_dir: pathlib.Path, first: tuple[tuple[str, str], ...] = ()) -> str | Failure:
"""The project's `AGENTS.md` and decision log, then the setup's rules, CLAUDE.md first, each headed by its name. One that does not exist, or is empty, is left out. A text that several of them hold appears once, headed by all their names.
"""The project's `AGENTS.md` and decision log, then the human's rules, CLAUDE.md first, each headed by its name. One that does not exist, or is empty, is left out. A text that several of them hold appears once, headed by all their names.
`AGENTS.md` is read where the config under home of root's project puts it, and the decision log from the store that config names. Each is headed by its name in RECORD_FILES wherever it is kept.
first holds records kept outside the project, such as the sections of a Jira epic's description, each as its heading and text: they come before the project's. A root of None is work without a checkout, which has no project records and no review standards."""
texts: list[tuple[str, str | Failure]] = list(first)
rules = [claude_dir / SETUP_RULES_FILE, *sorted((claude_dir / SETUP_RULE_DIR).glob("*.md"))]
rules = [claude_dir / HUMAN_RULES_FILE, *sorted((claude_dir / HUMAN_RULE_DIR).glob("*.md"))]
if root is not None:
config = located(root, home, env)
if isinstance(config, Failure):
+2 -2
View File
@@ -106,8 +106,8 @@ class Records(unittest.TestCase):
class JudgeRules(unittest.TestCase):
def test_the_judge_prompt_names_every_rule_the_judge_reads_from_the_setup(self):
self.assertEqual([name for name in records.SETUP_RULE_NAMES if name not in judge.judge_rules("the ledger", "a-driver")], [])
def test_the_judge_prompt_names_every_rule_the_judge_reads_from_the_human(self):
self.assertEqual([name for name in records.HUMAN_RULE_NAMES if name not in judge.judge_rules("the ledger", "a-driver")], [])
if __name__ == "__main__":
+2 -2
View File
@@ -7,13 +7,13 @@ from agent_cycle.escalation_mark import asks_higher_rung
from model_routing.review_choice import chosen, ReviewChoice
from model_routing.route import ESCALATION_MARKER, Route
from agent_cycle.routing import escalation_rungs
from chunk_driver.project.records import HUMAN_RULE_NAMES, RECORD_FILES, RECORDS_NAMED
from review_rules.review_passes import INSTRUCTION_FILES, INSTRUCTION_FOLDERS
from text_files.markdown_text import listed, quoted
from model_routing.ladder import ProjectRung, Rung
from chunk_driver.project.records import RECORD_FILES, RECORDS_NAMED, SETUP_RULE_NAMES
# Where the judge may quote an answer from, named as the human and the worker see them; of the goals file the judge sees only the premises.
QUOTE_SOURCES = listed(("the goals file's Goals and Audience", *RECORD_FILES, *SETUP_RULE_NAMES), "or")
QUOTE_SOURCES = listed(("the goals file's Goals and Audience", *RECORD_FILES, *HUMAN_RULE_NAMES), "or")
# Where the worker may write an answer the human typed, so it counts as recorded.
ANSWER_DESTINATIONS = "the goals file's Goals or Audience, " + ", ".join(RECORD_FILES) + ", the plan or a comment"
ANSWERS_RECORDED = answers_recorded(ANSWER_DESTINATIONS)
+1 -1
View File
@@ -2,7 +2,7 @@
A subagent inherits both variables, so the ceiling reaches every reviewer the worker launches."""
# Claude Code saves a Bash result longer than this many characters to a file, and hands the model the file's path and the first 2,000 characters. The file sits under projects/<project>/<session>/tool-results/ in the Claude home.
# Claude Code saves a Bash result longer than this many characters to a file, and hands the model the file's path and the first 2,000 characters. The file sits under ~/.claude/projects/<project>/<session>/tool-results/.
BASH_CEILING = "BASH_MAX_OUTPUT_LENGTH"
BASH_CEILING_CHARACTERS = 6_000
# A Read of more than this many tokens fails and asks for an offset and a limit; Claude Code's default is 25,000.
+1 -1
View File
@@ -261,7 +261,7 @@ class Main(unittest.TestCase):
code, _, err = self.run_main(["claude-opus-5-5"], lambda rung, interrupted: self.verdict(interrupted, f"said {INTERRUPTED if interrupted else FINISHED}"))
self.assertEqual(code, 0, err)
for prompt, schema in zip(self.prompts, self.schemas, strict=True):
self.assertIn("\n\nThe records: the project's working rules and decisions, then the setup's rules for every project:\n", prompt)
self.assertIn("\n\nThe records: the project's working rules and decisions, then the human's rules for every project:\n", prompt)
self.assertIn("what build-release told it on [loop] lines, latest last:\n", prompt)
self.assertEqual(prompt.count("said Verdict: "), 1)
self.assertIn("build-release", schema)
+2 -2
View File
@@ -6,13 +6,13 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from chunk_driver.project.records import HUMAN_RULE_DIR
from repo_checks import ROOT
from chunk_driver.project.records import SETUP_RULE_DIR
# The review standards this repo ships. A project's config may name another folder as `standards`.
STANDARDS = "skills/larv-review/standards"
# The folders whose files a citation may name by path. The judge reads both.
RULE_DIRS = (SETUP_RULE_DIR, STANDARDS)
RULE_DIRS = (HUMAN_RULE_DIR, STANDARDS)
RULE_PATH = rf"(?:{'|'.join(map(re.escape, RULE_DIRS))})/[\w-]+\.md"
NAMES = r'("[^"]+"(?:,? (?:and )?"[^"]+")*)'
CITATION = re.compile(rf'`?(CLAUDE\.md|{RULE_PATH})`? → {NAMES}')
-119
View File
@@ -4793,122 +4793,3 @@ Inherited architect, would restructure first:
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap has four homes and fails open at `earlier_titles`
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over four homes
- Locality: `bin/transcript_archive/outcomes.py:11` `outcomes`: a line format parsed by regex in four readers
## 2026-12-04T07:58:11Z, PR #813 at 5070d896
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6 | 6 | 6 | 6.5 |
| Mid A | 7 | 5.5 | 6.5 | 6 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 6 | 6 |
| Inherited architect | 7 | 7 | 6 | 6 | 6.5 |
| Mean | 7.00 | 6.00 | 6.13 | 6.00 | 6.25 |
Junior A, hardest first:
- Self-sufficiency, Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs held at once, the escalation mark in another module
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a queue loop carrying flock, approval, human-merge, park and epic-base variants, and a side trip to `remeasure`
- Shape, Self-sufficiency: `bin/task_bench/main.py:242` `Planner`: three layers of curried callables, and the Rust test-module rules in one chain of nested clauses
- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:109` "Re-entry": a nine-row table whose exceptions and the round cap sit in other sections
- Locality, Shape: `bin/build_epic/main.py:241` `chunk_run`: one loop over `str | Stop | Merged` with about 30 imports
Mid A, hardest first:
- Locality, Shape: `bin/chunk_pr/main.py:530` `merge_turn`: about seven decisions in a row, with the order of side effects load-bearing and unstated
- Locality: `bin/build_epic/scheduler.py:178` `start_chunks`: state carried in tmux window-name suffixes written in another package
- Locality: `bin/build_epic/parking.py:26` `parked_through`: park state spread over a file, a window name and the forge, with a mutable `Told`
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs, the reason in the decision log
- Shape: `bin/task_bench/main.py:243` `Planner`: closures three deep
Maintainability senior, hardest first:
- Locality: `bin/build_epic/scheduler.py:178` `start_chunks`: correctness depends on window names that `parking.py` writes
- Locality, Shape: `bin/build_epic/parking.py:26` `parked_through`: one chunk's parked state in three places, order stated and not justified
- Locality: `bin/chunk_pr/main.py:462` `merged`: failure mid-merge decided in sibling tools
- Shape: `bin/build_epic/main.py:241` `chunk_run`: `news` typed `str | Stop | Merged`, the empty string never named
- Locality: `bin/agent_cycle/judge.py:79` `TASK_HEADING`: a heading wording that replay parses, held by a comment alone
Inherited architect, would restructure first:
- Navigation, Shape: `README.md:276` "Packages under bin/": the only map of a flat `bin/` of about 83 entries
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round count lives in four places with two failure policies
- Shape: `bin/chunk_pr/main.py:462` `merged`: a 778-line module with seven subcommands
- Self-sufficiency: `bin/build_epic/__init__.py:1` the empty package docstring, with 22 modules citing one decision entry
- Self-sufficiency: `.claude/rules/this-repo-keeps-no-agents-md.md:3` a rationale that says `~/.claude` is a checkout of this repo
## 2026-12-04T08:00:09Z, PR #813 rerun at 5070d896
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 5.5 | 6 | 6 | 6 |
| Mid A | 7 | 5.5 | 6 | 5.5 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 6 | 6 |
| Inherited architect | 7 | 6.5 | 6 | 6.5 | 6.5 |
| Mean | 7.00 | 5.75 | 6.00 | 6.00 | 6.13 |
Junior A, hardest first:
- Self-sufficiency, Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs and a counter held at once, the escalation mark in another module
- Locality, Shape: `bin/build_epic/main.py:241` `chunk_run`: `news` typed `str | Stop | Merged`, its exit test readable only after `parked_through`
- Locality: `bin/build_epic/parking.py:118` `resumed_news`: a polling loop whose mutable `Told` renames tmux windows
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a flock queue, an approval wait and by-human, to-epic and park flags
- Shape: `bin/task_bench/main.py:242` `Planner`: a callable that returns a callable that returns a callable
Mid A, hardest first:
- Locality: `bin/build_epic/parking.py:26` `parked_through`: state in files, tmux window names and the slot scheduler
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a name that returns a str, with a hidden `scoring-run-owed` call
- Locality, Shape: `bin/build_epic/scheduler.py:178` `start_chunks`: five derived sets and an elif ladder under a lock
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: rungs, floor, cap and mark interacting
- Shape: `bin/release_plan/release_standing.py:206` `next_release`: a boolean expression that reads as a puzzle
Maintainability senior, hardest first:
- Locality: `bin/build_epic/scheduler.py:178` `start_chunks`: the scheduler's state is a tmux window name that `tmux.py` writes
- Locality, Shape: `bin/build_epic/main.py:241` `chunk_run`: whether the loop ends depends on `news == ""` together with `Finished`
- Locality: `bin/chunk_pr/main.py:462` `merged`: sentinels and two flags that switch each other off, a scoring-run check inside the turn
- Locality: `bin/build_release/loop/chunk_windows.py:46` `held_items`: which chunks start depends on a worker's `Chunk items:` line
- Locality: `bin/build_release/loop/reload.py:97` `exec_if_edited`: any edit under `bin/` reloads a live loop
Inherited architect, would restructure first:
- Navigation, Shape: `README.md:276` "Packages under bin/": the only map of a flat `bin/` of about 85 entries
- Shape: `bin/chunk_pr/main.py:1` `chunk_pr`: 778 lines, 35 functions, seven subcommands
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap lives in prose, a constant and a hook
- Self-sufficiency: `.claude/rules/this-repo-keeps-no-agents-md.md:3` a rationale that says `~/.claude` is a checkout of this repo
## 2026-12-04T10:44:50Z, release-review-0.18.0 at d4516523, against 81f26860
Ruling: same
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Mid A | same | same | better | better | better |
| Inherited architect | same | same | same | better | same |
| Maintainability senior | same | worse | same | better | same |
| Junior A | same | same | better | better | better |
Mid A, decided by:
- Shape, Overall: `bin/chunk_driver/project/records.py:16` `SETUP_RULES_FILE`: the constants were `HUMAN_RULES_FILE`, `HUMAN_RULE_DIR` and `HUMAN_RULE_NAMES` but point at CLAUDE.md and rules/ in the setup's clone; the new names match what they hold, so a newcomer no longer works out that "the human's rules" means the setup's files
- Self-sufficiency, Overall: `bin/build_release/loop/routing_check.py:57` `raise_calls`: the docstring now states the no-clone branch (a DM that went out marks the calls raised, one that didn't leaves them to come again), and the "why mark raised" comment became its own unit, `keep_raised`
- Self-sufficiency: `bin/agent_cycle/direct_message.py:4` `tell`: the docstring says it returns true when the DM is skipped for want of a notifier, which `raise_calls` depends on
Inherited architect, decided by:
- Self-sufficiency: `bin/agent_cycle/direct_message.py:4` `tell`: the docstring says it returns true when the DM is skipped for want of a notifier; the no-clone branch of `raise_calls` depends on exactly that
- Self-sufficiency: `bin/build_release/loop/routing_check.py:57` `raise_calls`: the docstring covers the whole policy in the file, and the "why it is not asked twice" comment became the small `keep_raised`; the dependence on what `tell` returns in another file stays
- Self-sufficiency: `bin/claude_code/output_limits.py:5` `BASH_CEILING`: the comment pointed at `~/.claude/projects/...`, now wrong; it says "in the Claude home"
Maintainability senior, decided by:
- Locality: `bin/build_release/loop/routing_check.py:57` `raise_calls`: it branches on the value `tell` returns, and the fact that `tell` returns true for a skipped DM lives in `bin/agent_cycle/direct_message.py:4`; the docstring covers only "went out" and "didn't go out"
- Self-sufficiency: `bin/agent_cycle/direct_message.py:4` `tell`: the docstring now says the return is true where the DM is skipped, which partly pays for the Locality cost
- Self-sufficiency: `bin/build_release/loop/routing_check.py:81` `keep_raised`: the rule for when calls count as raised is a named function with its reason
- Self-sufficiency: `bin/claude_code/output_limits.py:5` `BASH_CEILING`: the comment now places the tool-results folder "in the Claude home", not under `~/.claude`
Junior A, decided by:
- Shape, Overall: `bin/chunk_driver/project/records.py:14` `SETUP_RULES_FILE`: the constants called "the human's rules" now carry the name "setup", which matches the strings `named()` writes and reaches the callers in `bin/chunk_driver/prompts.py:13` and `bin/build_epic/chunk_prompt.py:13`
- Self-sufficiency, Overall: `bin/agent_cycle/direct_message.py:5` `tell`: the docstring says it returns true when the DM is skipped for want of a notifier, which `raise_calls` now branches on
- Self-sufficiency: `bin/build_release/loop/routing_check.py:57` `raise_calls`: the docstring covers each outcome in place and `keep_raised` carries its reason
+4 -8
View File
@@ -90,7 +90,7 @@ Valid while every tool that reads old files in the two folders reads through `te
2026-10-23, larv-review, through PR #367. Serves code health: a reader can trust that one word names one thing in every tool. Before, "record" and "outcome" each named different things in three modules, and "place" in two. Each word kept the meaning it already had where renaming costs most:
- An outcome: the archive's file names end in `.outcomes.md`, and the tools that read them find them by that suffix. score-outcomes' `Outcome` became `Result`, and rule-hook's became `Checked`. The command `score-outcomes` keeps its name, since renaming it would be a change of its own: files every project loads, such as `rules/todo-items.md`, name it, and so do decision titles. Its help and report keep the word its name uses.
- A record: "judge's records" is a term in the setup's `CLAUDE.md` → "Vocabulary", and reading-cost's help calls its file a record. A single item in such a document is an entry; the route the archive keeps is a worker line (`Route.worker_line`). The verb "to record" keeps its plain meaning.
- A record: "judge's records" is a term in `~/.claude/CLAUDE.md` → "Vocabulary", and reading-cost's help calls its file a record. A single item in such a document is an entry; the route the archive keeps is a worker line (`Route.worker_line`). The verb "to record" keeps its plain meaning.
- A place: the comprehension panel's term, also in the Vocabulary. reading-cost's `Reading.places`, how often each file was read, became `Reading.files`.
Valid while the archive's file names, the Vocabulary and the panel keep these words.
@@ -143,8 +143,6 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b
2026-12-04, lilleman's plan for 0.18.0. Serves goal 3. `bin/claude_home` builds the home in the data folder, `~/.local/share/build-release/claude-home`, so the clone stays a clean checkout: the files Claude Code keeps in its home never reach a commit. Only a change made through one of the six links below reaches the clone. `bin/claude_home` links `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/` to the clone's, `bin/` and `principles/` since `setup files: …` below, and writes `settings.json` from the clone's with the clone's path in place of `{clone}`, since the clone may lie anywhere and the tracked file can't hold its path. It builds the home again when the clone's commit or path changes, which covers a release's tag and a development clone alike. Probed on 2.1.336, once, while the home was built: `claude plugin install` finds a plugin only after `claude plugin marketplace add` of its marketplace; each exits 0 where its work is already done; and an install rewrites the home's `settings.json` in Claude Code's key order. Not tested: that a session loads `agents/`, `CLAUDE.md`, `rules/` and `skills/` through links, which needs a model request.
2026-12-04, the release review of 0.18.0, declining the architect's finding that two clones can rebuild one home. Only the README keeps the development clone's build-release, build-epic, `task-bench gather` and `claude-release` from repointing a running loop's home. Serves goal 2. One home per machine is what lets the person sign in once. A program-held guard would have to know which clone is the development one and whether a loop is running, and pass both into `claude_home`. The cost of the README's rule is a chunk that runs on unreleased rules after someone ran the development clone's tool. Valid while one person runs the setup on a machine; two clones that run loops at once would each need a home.
## comprehension floor: every dimension and the overall at the project's readability floor or above is the target, and no score blocks a merge or release
2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 1. 2026-10-13, lilleman: the floor doesn't block anything, and `review: the comprehension check records …` says why. Valid while the scoring run keeps its four seats. 2026-11-12, lilleman, through todo item 358: a project's config sets this floor as `readability-floor`, its readability floor, since legacy code scores low. It is 7.0 where left out, and the signal stays that the score rises. Readers seated as the person who writes the config picked the key, 2 of 3.
@@ -157,7 +155,7 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b
2026-11-11, lilleman through item 314. Serves goal 1.4. Claude Code loaded `~/.claude/AGENTS.md` into every other project's sessions, and each 1,000 tokens every thread starts with cost $68.60 of the $9,154 spent from 2026-09-30 to 2026-11-11: the 14.4 KB file cost about 2.1% of spend, and put this repo's rules in front of other projects. Other projects keep the name `AGENTS.md`, so the setup stays portable to other harnesses. The working rules sit there too, rather than in `.claude/rules/`, since build-release's judge reads the decision log and no project's `.claude/rules/`. In the clone, the release's `~/.claude/CLAUDE.md` and the clone's both loaded, about 0.9% of spend; the exclude drops the release's, so a chunk runs under the rules it is changing. A session working in `~/.claude` itself loads no `CLAUDE.md`, since there both are the same file; none works there, as the entry above says.
Valid while `~/.claude` is a checkout of this repo. Item 585 ends it: from 0.18.0 `~/.claude` is the person's own Claude home, not a checkout, so AGENTS.md no longer loads into other projects' sessions.
Valid while `~/.claude` is a checkout of this repo.
## deploy: `cut-release` cuts a release through a pull request merged fast-forward only, then tags the merged commit, and `--patch` tags a patch of the newest tag beside `main`, then merges the tag back; the human runs both
@@ -214,7 +212,7 @@ Valid while `~/.claude` is a checkout of this repo. Item 585 ends it: from 0.18.
2026-09-28, larv-review, declining a product-owner nit to exit at once when `claude` is missing. Serves goal 1. Claude Code's updater repoints `~/.local/bin/claude` at each new version under running loops, and a start that meets it mid-update fails with the same error as a broken install; the retry costs two minutes on the second and saves an unattended loop on the first. 2026-12-04, the review of item 483: the check of the loop's Claude home runs `claude` too, so a chunk's window and a reload retry it the same way, in `agent_cycle.retry.home_unready`; the command a person typed stops at once, since they are there to read why. Valid while Claude Code updates by repointing its link.
## build-release: a judge decides each interrupt and each quoted answer from the transcript, the premises, `AGENTS.md`, `docs/decisions.md`, the setup's `CLAUDE.md`, the setup's `rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; it interrupts for a reserved choice those don't settle, or an ask that carries no recommendation
## build-release: a judge decides each interrupt and each quoted answer from the transcript, the premises, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; it interrupts for a reserved choice those don't settle, or an ask that carries no recommendation
2026-09-21, lilleman. Serves goal 1. Asked to name the goal behind each choice, the worker cites a real goal for a choice that goal does not settle, and under-reports its own decisions; the judge's bar is whether the README's premises or the files in the title discriminate between the alternatives. Valid while the worker's self-report stays unreliable. Since 2026-11-08, below, that bar holds only for a reserved choice and an ask without a recommendation.
@@ -689,7 +687,7 @@ Valid while the worker reports in its transcript the triggers that fired, and wh
2026-10-15, lilleman. Serves goals 1.2 and 1.4.
The cost of a cheaper worker shows as extra review rounds and unfinished verdicts. Every 20 cycles across the archive, build-release measures them in code, with no model run (goal 1.4), and interrupts lilleman with the calls not raised before, when chunks routed onto a rung took more of either than chunks routed onto the next rung up, each rung with 5 chunks or more. Five keeps one odd chunk from calling for a change (goal 1.2). It also calls when the reports of 5 or more subagents of one type were longer than the tool results they read, so a delegated search cost the worker more context than it saved. `bin/routing_figures/` measures and words the calls. A loop on another project cannot commit here, so it writes the figures and the calls raised at the archive's root, and this repo's next chunk files the plan item, as `AGENTS.md` says. Off a terminal, a call is said on stderr and the loop goes on: it is about this setup, not the running project's chunk. A machine without the development clone, such as a release-only install, has nowhere to change the decision. There a DM that didn't fail marks the calls raised, since it is the last word, and a failed one leaves them to come again. A project whose config names no notifier skips the DM, so stderr is what its human gets, and the calls are marked raised all the same. A reset line in the calls file restarts the figures after a routing change, so they show whether the change worked.
The cost of a cheaper worker shows as extra review rounds and unfinished verdicts. Every 20 cycles across the archive, build-release measures them in code, with no model run (goal 1.4), and interrupts lilleman with the calls not raised before, when chunks routed onto a rung took more of either than chunks routed onto the next rung up, each rung with 5 chunks or more. Five keeps one odd chunk from calling for a change (goal 1.2). It also calls when the reports of 5 or more subagents of one type were longer than the tool results they read, so a delegated search cost the worker more context than it saved. `bin/routing_figures/` measures and words the calls. A loop on another project cannot commit here, so it writes the figures and the calls raised at the archive's root, and this repo's next chunk files the plan item, as `AGENTS.md` says. Off a terminal, a call is said on stderr and the loop goes on: it is about this setup, not the running project's chunk. A reset line in the calls file restarts the figures after a routing change, so they show whether the change worked.
Since 2026-10-16 the reviewers may run above the worker's rung, on the one the highest E + I among their chunk's items picks, so chunks whose worker ran on a lower rung may take more rounds from stronger reviewers, and a call could blame the worker's rung for them; `todo.md` item 171 groups the rounds by the reviewers' rung too. Valid while build-release's archive holds every finished chunk's review rounds and unfinished verdicts.
@@ -922,8 +920,6 @@ Valid while task-bench's figures are unproven against the panel's scores.
The protection lives in Gitea's settings, outside the repo: rule `main`, required status check `CI / tests (pull_request)`. A pull request has no status until CI queues its run, so `cut-release` waits for each check the protection requires rather than reading no status as no checks, for 30 minutes at most. CI runs no rule-hook check, so a `rule-override` in the PR body doesn't have anything to override. Whoever adds a rule check to CI must also let it read the PR body's `rule-override`. Valid while gitea.larvit.se runs a runner labelled `docker-host`.
2026-12-04, the release review of 0.18.0, recording the architect's finding that the first-chunk e2e makes the gate depend on the network, and keeping the dependency. Serves goal 2. `ci.sh` also runs `first-chunk-e2e/run`, which adds two waits of at most 300 s each and needs the network: apt for git and tmux, and `claude plugin marketplace add` for the plugins the setup's `settings.json` enables, taken at the marketplace's head. The e2e keeps the apt install and the marketplace head, since it runs a first chunk as a newcomer's install does. Claude Code's documentation says `plugin marketplace add` pins a GitHub source only to a branch or tag with `#<ref>`, and refuses a commit for the reserved name `claude-plugins-official`. That repository has no tags, so a ref could only name a branch that moves. A red gate that the network or the marketplace caused is rerun, not fixed. Valid while `anthropics/claude-plugins-official` publishes no tags; once it does, add the marketplace at a tag.
## tests: each test earns its keep as the technical principles' test bullet says, and the worker takes a test's expected values from its item, never from the code
2026-10-16, lilleman asked for research on what makes tests valuable, then for these changes; claude drafted them. Serves goal 1.1, since a test that cannot catch a bug, or breaks without one, lowers quality and costs review rounds.
-17
View File
@@ -4172,20 +4172,3 @@ Read most (opens and searches):
- `bin/build-epic` 1
- `bin/build-release` 1
- `bin/build_release/loop/test_main.py` 1
## Reading cost, chunk e61c74f0c138, finished 2026-12-04T07:47:29Z
78968 new input tokens before the first commit.
Read most (opens and searches):
- `bin/agent_cycle/judge.py` 4
- `README.md` 3
- `bin/claude_home/home.py` 3
- `bin/agent_cycle/worker.py` 2
- `bin/build_release/loop/main.py` 2
- `bin/loop_effects/effects.py` 2
- `.gitignore` 1
- `bin/agent_cycle/verdicts.py` 1
- `bin/transcript_archive/__init__.py` 1
- `bin/transcript_archive/outcomes.py` 1
+81 -219
View File
@@ -6,29 +6,21 @@
`Bar = 0.1`
`Next ID = 601`
`Next ID = 590`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 578 | 0.18.0 | | owner | **Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.** | 1 | 2 | 1 | 2 | 1 | 2 by 4 | 1.2 |
| 589 | 0.18.0 | | | **Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed.** | 2 | 2 | 1 | 3 | 4 | 1.1 by 4 | 1.0 |
| 588 | 0.18.0 | | | **Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.** | 2 | 2 | 1 | 3 | 2 | 1.1 by 3 | 1.0 |
| 586 | 0.19.0 | | | **Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.** | 2 | 3 | 2 | 5 | 3 | 3 by 4 | 5.0 |
| 599 | 0.19.0 | | principle | **Return a `Failure` from the loop's Claude home build where the clone's `settings.json` is malformed or lacks a marketplace, or a file stands where a link belongs, so `unready` prints one line instead of a traceback.** | 2 | 1 | 3 | 4 | 3 | code health by 3 | 3.8 |
| 585 | 0.19.0 | | | **Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.** | 3 | 1 | 3 | 5 | 4 | code health by 3 | 3.1 |
| 597 | 0.19.0 | | principle | **Wait on an event in the tests that poll with sleeps or assert on the wall clock, in `loop_effects`, `cut_release` and `mutate_changes`, with a timeout that only fails the test.** | 3 | 2 | 1 | 4 | 5 | code health by 3, 1.5 by 2 | 2.7 |
| 596 | 0.19.0 | | principle | **Let an environment variable name the setup's development clone, with `~/code/dev-factory` as its default, documented in README's Install and build-release's `--help`.** | 2 | 1 | 2 | 3 | 3 | code health by 2 | 2.5 |
| 600 | 0.19.0 | | principle | **Move the five dated folders of studies and a talk at the repo's root under one folder named for what it holds, so the root shows the entry points first.** | 3 | 1 | 2 | 4 | 5 | code health by 3 | 2.3 |
| 580 | 0.19.0 | | | **Call no scoring run for a release already cut whose last item the chunk moved to a later release.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3, 1.5 by 3 | 1.6 |
| 598 | 0.19.0 | | principle | **Pin hard tabs for the tracked `settings.json` in the settings check, or record the decision that keeps its spaces, and report each failing case of the check's loops through `subTest`.** | 1 | 1 | 1 | 1 | 2 | code health by 1 | 1.4 |
| 594 | 0.19.0 | | | **Make the prose reviewer check each behavioural claim on a line the diff adds or rewrites against the code, script or sibling sentence it describes, and report a mismatch as a 🟡 at the changed line.** | 2 | 2 | 3 | 5 | 2 | 1.1 by 4 | 1.3 |
| 589 | 0.19.0 | | | **Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.** | 2 | 2 | 1 | 3 | 2 | 1.1 by 3 | 1.0 |
| 590 | 0.19.0 | 589 | | **Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed.** | 2 | 2 | 1 | 3 | 4 | 1.1 by 4 | 1.0 |
| 487 | 0.20.0 | | owner | **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.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 |
| 498 | 0.20.0 | 487 | owner | **Drive each chunk as a state machine in `build-release`, from preflight through implementing, review, the pull request and the merge to finishing its items, with the worker as one model step that ends in a result that code checks.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 4, 1.4 by 4 | 0.3 |
| 488 | 0.20.0 | 498 | owner | **Cut the larv-review skill, `CLAUDE.md` and rule-hook down to what `build-release` doesn't own: the judgement the model makes and the safety guards.** | 2 | 2 | 3 | 5 | 5 | 1.4 by 4, code health by 2 | 2.3 |
| 592 | 0.20.0 | | | **Keep each project's decision log to decisions no principle covers and that govern more than one place, with few principles that state a rule and stop, and sweep the log at each release review.** | 2 | 2 | 3 | 5 | 4 | 1.2 by 5, 1.4 by 4 | 2.1 |
| 591 | 0.20.0 | | | **Have the judge read a project's principles and decision titles in place of every decision entry, so a growing log can't crowd the transcript out of its prompt.** | 3 | 2 | 3 | 6 | 5 | 1.5 by 6, 1.4 by 3 | 1.5 |
| 593 | 0.20.0 | 592 | | **Make the decision log's cleanup the next chunk in a project whose log holds a covered entry or outgrows a size budget, checked by `rank_todo.py --check` and named by `chunk-preflight`.** | 3 | 2 | 3 | 6 | 5 | 1.4 by 4, 1.5 by 4 | 1.4 |
| 489 | 0.21.0 | 498 | owner | **Run every model step through a harness interface whose operations are a headless run, a one-shot reply, an interactive run, resume and reading a transcript, with each harness declaring what it supports and Claude Code as the first adapter.** | 4 | 2 | 3 | 7 | 8 | 1.3 by 4, 6 by 7, code health by 3 | 1.5 |
| 492 | 0.21.0 | 489 | owner | **Refuse to run a harness without pre-tool hooks in a project that sets an `env-file`, unless it runs in a sandbox that cannot read that file.** | 3 | 2 | 4 | 7 | 5 | 5 by 5 | 3.9 |
| 510 | 0.21.0 | 489 | owner | **Run `task-bench`, its gather step included, through the harness interface, in place of calling `claude -p` directly.** | 2 | 2 | 1 | 3 | 3 | code health by 2, 6 by 3 | 3.2 |
@@ -50,7 +42,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, Locality first; today the second scoring run at 5070d896 scored Navigation 7.00, Locality 5.75, Shape 6.00, Self-sufficiency 6.00 and Overall 6.13.** | 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, Locality, Shape and Self-sufficiency first; today the second scoring run at 0aff7d39 scored Navigation 7.00, Locality 5.88, Shape 5.88, Self-sufficiency 6.00 and Overall 6.00.** | 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 |
@@ -111,6 +103,47 @@
## Details
### 578. Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.
Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. This is the proof lilleman asked for before the cut. The chunk takes any item left in 0.18.0, or a tiny one filed for it. The machines themselves move after the cut, which is no plan item: the script that moves transcripts, archives, memory and plugins into the new home is thrown away once both machines have run it.
Touches nothing of its own: the chunk it ships carries its item's list.
Which file that chunk changes is not predictable until its item is chosen. The list holds `README.md` whole as the likeliest file of a tiny item, since a list needs one bullet.
Touches:
- `README.md`
### 589. Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed.
Pass or fail says whether a fix works, not whether it was the small, local change a readable codebase allows. These figures need no model and cost nothing to collect. A fix that edits several files to repair a one-line mutant, or rewrites the line in place of restoring it, points at code that is hard to change safely.
For a feature, report the files changed outside those the reference patch touches, and the share of the reference patch's files the change touched.
Add a column per figure to the table, with its median per side and its change, as the token columns have. A model review of each fix waits until these show whether they track anything.
Touches:
- `bin/task_bench/tasks.py`
- `bin/task_bench/figures/run_figures.py`: `Figures`, `Column`, `figures`, `table`
- `bin/task_bench/figures/test_run_figures.py`
- `bin/task_bench/test_task_bench.py`
- `bin/task_bench/main.py`: `(module)` (small)
### 588. Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.
Today `figures` in `bin/task_bench/figures/run_figures.py` reads only the last `result` event of a run's stream. Where Haiku starts a background task, such as a long `go test`, Claude Code ends the first turn with a result, then starts another turn when the task finishes and ends that with a second result. The bench then records only that second turn.
Seen in fejkdata's pilot bench of 2026-12-03, `bug-1-base-1.jsonl`: the fix took 12 turns and 152 s, and the table showed 1 turn, 188 output tokens and 1.7 s. That skewed the head's change against the base by several hundred percent.
Write the test first from that shape: a stream with two `result` events, whose figures are the sums of both.
Touches:
- `bin/task_bench/figures/run_figures.py`: `figures`
- `bin/task_bench/figures/test_run_figures.py`
### 586. Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.
Item 577's stability review probed Claude Code 2.1.336 in a throwaway config home: with `HOME` set to a symlink to the home folder, a skill, an agent and a command under the person's `.claude` reached the request; with `HOME` as the real path none did. `claudeMdExcludes` kept `CLAUDE.md` and the rules out both ways. The probe ran outside a checkout, so first repeat it in a project, in `first-chunk-e2e/first_chunk.py`'s container. Where it holds, have `bin/claude_home` or `bin/loop_effects` name the home folder by its real path, and exclude both spellings of the person's Claude home. Record the probe in the decision that the home's settings comment in `bin/claude_home/home.py` cites.
@@ -120,26 +153,9 @@ Touches:
- `bin/claude_home/home.py`: `settings_written` (small)
- `first-chunk-e2e/first_chunk.py`
### 599. Return a `Failure` from the loop's Claude home build where the clone's `settings.json` is malformed or lacks a marketplace, or a file stands where a link belongs, so `unready` prints one line instead of a traceback.
Principle: `principles/technical-principles.md` → "Handle errors explicitly, as values — avoid the exception path", whose third bullet says a function that both returns a result and throws has two error channels. From the principles pass of 0.18.0's release review.
Evidence, in `bin/claude_home/home.py`:
- :92-99 `linked` is typed `-> Failure | None` but always returns None; its `symlink_to` raises FileExistsError where a file or folder stands at the link's place.
- :104 `settings_written` and :134-137 `plugins_installed` call `json.loads` on the clone's `settings.json`, and the latter indexes `settings["extraKnownMarketplaces"][name]["source"]["repo"]`: a malformed file raises ValueError, a missing key KeyError.
- :42 `unready` catches only `(OSError, subprocess.TimeoutExpired)`, so ValueError and KeyError escape as a traceback instead of the `Failure` its callers handle.
Return a `Failure` for each case, and make `linked`'s `Failure` real or drop it from the type. I 3, since every loop builds the home before it starts.
Touches:
- `bin/claude_home/home.py`: `linked`, `settings_written` (small), `plugins_installed` (small)
- `bin/claude_home/test_home.py`: `Home`
### 585. Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.
Answer to question item 584: the decision "deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout" lost its reason with item 483. A release is a clone anywhere, and the loop's Claude home links six files and folders of the clone, none of them `AGENTS.md`, so an `AGENTS.md` here no longer loads into another project's session. Without the reason, the special case only costs: each rule that names a project's `AGENTS.md` needs a second reading for this repo. The loop took the recommended option, as "Ask, don't guess" allows for a choice the goals don't reserve; the human unmarks or drops this item to reverse it.
Answer to question item 584: the decision "deploy: this repo keeps no `AGENTS.md`, since `~/.claude` is its checkout" lost its reason with item 483. A release is a clone anywhere, and the loop's Claude home links only `CLAUDE.md`, `rules/`, `agents/` and `skills/`, so an `AGENTS.md` here no longer loads into another project's session. Without the reason, the special case only costs: each rule that names a project's `AGENTS.md` needs a second reading for this repo. The loop took the recommended option, as "Ask, don't guess" allows for a choice the goals don't reserve; the human unmarks or drops this item to reverse it.
Move the head of `docs/decisions.md`, before `# Decisions`, into a new `AGENTS.md`: the project principles, the decision titles and the working rules. Move "dev-factory's values" there from `skills/comprehension-panel/seat-prompts.md` as the scoring-run values. Drop the decision and `.claude/rules/this-repo-keeps-no-agents-md.md`, and let the tools read this repo as any project. The item waits for 0.18.0's cut: until then this repo is developed beside a `~/.claude` checkout on 0.17.0.
@@ -156,80 +172,6 @@ Touches:
- `bin/review_rules/test_reviewer_context.py`
- `bin/review_replay/test_review_replay.py`
### 597. Wait on an event in the tests that poll with sleeps or assert on the wall clock, in `loop_effects`, `cut_release` and `mutate_changes`, with a timeout that only fails the test.
Principle: `principles/technical-principles.md`, the tests bullets: a test neither sleeps nor asserts on the wall clock, and waits for a signal the code under test or its fake sends, with a timeout whose only effect is to fail the test. From the principles pass of 0.18.0's release review.
Evidence:
- `bin/loop_effects/test_effects.py:39-45`: `wait_until` loops on `time.sleep(0.05)`, and :483 sleeps again.
- `bin/cut_release/test_cut_release.py`: asserts `time.monotonic() - began < 20` at :706, :719 and :733, and polls at :391-393, :710-712 and :726-727.
- `bin/mutate_changes/test_mutate_changes.py:372-386`: `interrupted` and `assert_ends` poll with sleeps.
- `bin/mutate_changes/test_mutate_changes_runs.py:299, 306` poll with sleeps.
A wait that polls, or a bound on elapsed time, can fail on a loaded runner without a defect in the code. Wait on an event instead: `os.pidfd_open` with `select`, or a pipe the child writes to, and `Popen.wait(timeout=...)` only as the backstop that fails the test. Items 102 and 456 cover other places: test_black_box.py's `sitecustomize` swaps and the `ChildShells` race.
L 3, since the change spans three packages and brings a new waiting pattern. E 2, since a wait that still races shows only under load.
Touches:
- `bin/loop_effects/test_effects.py`: `wait_until`, `Timer.test_stopping_a_timer_whose_action_runs_waits_for_the_action_to_end` (small)
- `bin/cut_release/test_cut_release.py`: `Cut.test_a_cut_stopped_by_ctrl_c_ends_its_trace_saying_so` (small), `PatchCi.test_the_runner_stops_a_ci_sh_that_hangs_with_what_it_started_and_says_so` (small), `PatchCi.test_the_runner_kills_a_stopped_ci_sh_that_ignores_the_interrupt_once_its_grace_has_passed` (small), `PatchCi.test_the_runner_stops_ci_sh_and_removes_its_container_where_the_cut_is_interrupted` (small)
- `bin/mutate_changes/test_mutate_changes.py`: `ToolProcess.interrupted`, `ToolProcess.assert_ends`
- `bin/mutate_changes/test_mutate_changes_runs.py`: `MutateChangesRuns.test_a_signal_that_ends_the_run_ends_the_tool_and_removes_the_scratch_copy` (small)
### 596. Let an environment variable name the setup's development clone, with `~/code/dev-factory` as its default, documented in README's Install and build-release's `--help`.
Principle: `principles/technical-principles.md` → "Sane defaults, where a default serves better than an explicit ask": a default is one the caller can change through a `--help` line or a documented option. From the principles pass of 0.18.0's release review.
Evidence: `bin/loop_state/paths.py:92` sets `config_clone=home / "code" / "dev-factory"` with no override. README's Install clones it to `~/code/dev-factory` and names no option, and `usage.py:162` names the path. A clone kept under another name or folder reads as absent, so `routing_check.py` never puts its routing calls to a claude.
Read the path from an environment variable, as `paths.py` reads the XDG folders, and name the variable where the path is named today. The variable's name is a spelling users write: a panel picks it, as `CLAUDE.md` → "Working loop", "Bench a syntax with the people who write it" asks.
Touches:
- `bin/loop_state/paths.py`: `paths_from` (small)
- `bin/loop_state/test_paths.py`: `SetupFolders` (small)
- `bin/build_release/loop/usage.py`: `HELP` (small)
- `README.md`: `## Install` (small)
- `README.md`: `## Release`, `## Tools` (small)
- `bin/build_release/loop/test_routing_check.py`
- `CLAUDE.md`: `## Vocabulary` (small)
- `bin/self_update/main.py`: `lines 5-9` (small)
### 600. Move the five dated folders of studies and a talk at the repo's root under one folder named for what it holds, so the root shows the entry points first.
Principle: `principles/technical-principles.md` → "About seven things per level, so a reader new to the project can take in each level at once" and "Make the entry point the first thing a newcomer finds". From the principles pass of 0.18.0's release review.
Evidence: the root holds about 14 folders and 9 files. Five are dated, one-off material: four studies, `workflow-bench/`, `reviewer-merge-trials/`, `judge-field-trials/` and `stability-skip-count/`, and the talk's page `presentation/`. A newcomer sorts past them to reach `bin/`, `ci.sh` and the README.
Move the five under one folder named for what is inside, such as `studies/`, and update every path that names them. Item 392 regroups only `bin/`, and item 68 only tests workflow-bench.
L 3, since the paths are named across several packages, and I 2, since `review_passes.py` reads `workflow-bench/*-prompt.md` as instruction files when it picks a chunk's passes. The trials scripts that import from `bin/` find it by their own path, which moves one level down. Every file under the five folders moves; the list names the files that change beside them.
Touches:
- `README.md`: `lines 17-17`, `lines 271-271`, `lines 294-294`, `lines 339-339` (small)
- `.gitignore`
- `bin/review_rules/review_passes.py`: `INSTRUCTION_FILES` (small)
- `bin/review_rules/test_review_passes.py`
- `bin/chunk_driver/test_prompts.py`: `MARKDOWN` (small)
- `bin/rule_hook/test_rule_hook.py`
- `bin/repo_checks/test_trials_imports.py`: `TRIALS` (small)
- `bin/repo_checks/test_gitignore.py`
- `bin/repo_checks/test_setup_files_named.py`: `HISTORY` (small)
- `bin/repo_checks/test_headless_mcp.py`: `HeadlessMcp` (small)
- `bin/repo_checks/test_no_patched_globals.py`: `NoPatchedGlobals` (small)
- `skills/larv-review/SKILL.md`
- `reviewer-merge-trials/analyze.py`
- `reviewer-merge-trials/collect.py`
- `reviewer-merge-trials/counts.py`
- `reviewer-merge-trials/driver.py`
- `judge-field-trials/cases.py`
- `judge-field-trials/escalations.py`
- `judge-field-trials/items.py`
- `judge-field-trials/release_ready.py`
### 580. Call no scoring run for a release already cut whose last item the chunk moved to a later release.
When a chunk's first change moves its plan item out of a release already cut into the next one, as `CLAUDE.md` → "Working loop" asks, `larv-review needs-scoring-run <ID>` and `scoring-run-owed` still say the chunk "leaves release 0.17.0 with no plan item". The chunk then owes two scoring runs: eight seat launches and a task-bench run, hours of work. Item 579, a one-line change to an agent file, ran the full scoring twice for this reason.
@@ -246,66 +188,6 @@ Touches:
- `bin/larv_review/test_larv_review.py`: `ScoringRunDue`, `LarvReviewTool`
- `bin/larv_review/main.py`: `(module)` (small)
### 598. Pin hard tabs for the tracked `settings.json` in the settings check, or record the decision that keeps its spaces, and report each failing case of the check's loops through `subTest`.
Principle: `principles/technical-principles.md` → "Indent with hard tabs", unless a tool setting and a decision override it. From the principles pass of 0.18.0's release review.
Evidence: `bin/repo_checks/test_settings.py:20` requires `json.dumps(indent=2, sort_keys=True)`. The repo has no `.editorconfig`, and no decision mentions indentation, while `routing-ladder.json` and the Python are tab-indented: the check enforces the opposite of the principle with no reason recorded.
Pin `indent="\t"` and re-indent `settings.json`. Where something needs the spaces, such as a tool that rewrites the file, keep them and record that decision instead.
The same file's tests at :22 and :34 loop over cases without `subTest`, so the first failure hides the rest.
Touches:
- `bin/repo_checks/test_settings.py`: `Settings.test_the_tracked_settings_hold_no_model_and_sorted_keys` (small), `Settings.test_every_hook_runs_a_tool_of_the_clone` (small), `Settings.test_every_enabled_plugins_marketplace_names_the_repo_the_home_adds_it_from` (small)
- `settings.json`
### 594. Make the prose reviewer check each behavioural claim on a line the diff adds or rewrites against the code, script or sibling sentence it describes, and report a mismatch as a 🟡 at the changed line.
Gap: in a client repo, a Markdown-only chunk ran the prose pass alone, as `skills/larv-review/SKILL.md` → "Markdown only" says. A rewritten README bullet kept an older sentence stating how an unset or empty setting resolves. The same bullet, and the shell script it describes, showed that sentence false. The prose reviewer didn't report it; an outside reviewer did. `agents/prose-reviewer.md` names "a claim the code shows false" and "a sentence contradicting another" only in the "Also report" line after the four priority checks, so a reviewer working through the checks treats them as an afterthought and doesn't open the code. The review standards' `quality.md` → "A false claim is a bug" already holds the rule.
Change:
- In `agents/prose-reviewer.md` → "Checks, in priority order", add a numbered check of its own: for each behavioural claim on a line the diff adds or rewrites, such as a command, a default, a path, a limit or a resolution rule, open the code, script or config it describes, and the sentences around it in the same item or section, and report a claim they show false as a 🟡 at the changed line, naming the code's `path:line` or the sentence that contradicts it. A line kept verbatim inside a rewritten bullet or paragraph counts as rewritten. Take "a sentence contradicting another" and "a claim the code shows false" out of the "Also report" line, so the rule is said once. Keep the check's place in the priority order consistent with the header's rule that a later check's fix never breaks an earlier one.
- Check `## Scopes`: its "read only what a finding needs checking against" must allow opening the code a changed claim describes; adjust its wording only if it doesn't.
- `skills/larv-review/SKILL.md`: change "Markdown only" or "### Prose" only if the launch doesn't already let prose-reviewer read the repo; its Read and Grep tools do, so the expected edit there is none or one clause.
Test: no tool checks an agent's prompt; the chunk's own prose pass reads the new check.
Touches:
- `agents/prose-reviewer.md`: `## Checks, in priority order`, `## Scopes` (small)
- `skills/larv-review/SKILL.md`: `### Prose` (small)
### 589. Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.
Today `figures` in `bin/task_bench/figures/run_figures.py` reads only the last `result` event of a run's stream. Where Haiku starts a background task, such as a long `go test`, Claude Code ends the first turn with a result, then starts another turn when the task finishes and ends that with a second result. The bench then records only that second turn.
Seen in fejkdata's pilot bench of 2026-12-03, `bug-1-base-1.jsonl`: the fix took 12 turns and 152 s, and the table showed 1 turn, 188 output tokens and 1.7 s. That skewed the head's change against the base by several hundred percent.
Write the test first from that shape: a stream with two `result` events, whose figures are the sums of both.
Touches:
- `bin/task_bench/figures/run_figures.py`: `figures`
- `bin/task_bench/figures/test_run_figures.py`
### 590. Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed.
Pass or fail says whether a fix works, not whether it was the small, local change a readable codebase allows. These figures need no model and cost nothing to collect. A fix that edits several files to repair a one-line mutant, or rewrites the line in place of restoring it, points at code that is hard to change safely.
For a feature, report the files changed outside those the reference patch touches, and the share of the reference patch's files the change touched.
Add a column per figure to the table, with its median per side and its change, as the token columns have. A model review of each fix waits until these show whether they track anything.
Touches:
- `bin/task_bench/tasks.py`
- `bin/task_bench/figures/run_figures.py`: `Figures`, `Column`, `figures`, `table`
- `bin/task_bench/figures/test_run_figures.py`
- `bin/task_bench/test_task_bench.py`
- `bin/task_bench/main.py`: `(module)` (small)
### 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.
Part of the standalone-install plan lilleman approved on 2026-11-20. It applies the decision `loop: a step whose result a program can check …` in `docs/decisions.md`. The reviewer briefs stay prose. Start here, since larv-review holds the most sequencing rules.
@@ -318,33 +200,6 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Keep the wo
Part of the standalone-install plan lilleman approved on 2026-11-20. The skill becomes a thin call of the program, so `/larv-review` still works by hand. rule-hook keeps its guards on secrets, destructive commands and writes outside the worktree, and drops the checks of step order the program now owns.
### 592. Keep each project's decision log to decisions no principle covers and that govern more than one place, with few principles that state a rule and stop, and sweep the log at each release review.
Today `rules/decisions.md` lifts a rule shared by several decisions into a project principle, but only the covered titles leave `AGENTS.md`: the entries stay in `docs/decisions.md`, so the log only grows. In fejkdata it reached 263 KB and stopped the loops (item 591).
Change the rules so that:
- **A covered entry is deleted** the moment the human approves the principle that covers it. Detail the principle leaves open, such as a per-table weight, moves to the one place it governs. Git history keeps the reasoning.
- **A choice that governs one place is recorded there**, in a comment, docstring or package doc, never in the log, as `CLAUDE.md` → "Working loop", "Ask, don't guess" already says. That covers data-import choices (one locale's source, one package's weighting) and code-layout facts.
- **A principle states one rule and stops.** No "Applied by …" list of the places that apply it: a principle must not grow with each place. Keep principles few: propose a new one only where it would remove at least three entries.
- **The release review sweeps the log** (`larv-review` §3 → "Release review"): it re-reads the entries that remain, lifts a principle where three or more apply one rule, and moves one-place entries to their place. A proposed principle is the human's to approve, as today.
- **The cleanup works on a project's existing log**, as fejkdata's did by hand in its `decisions-cleanup` chunk: delete covered entries, move one-place and code-layout entries, trim long entries to the decision, who, when, why and the "valid while" premise, and draft principles for the human. It must keep `bin/plan/citations.py` satisfied: where a moved entry cited a `todo.md` item marked `decision`, re-mark that item or keep the citation in the log.
- **An entry or a principle that restates a technical principle goes.** A project principle states only what the technical principles in the config's principles folder leave open, and an entry those principles already decide is deleted like a covered one. Before proposing a project principle, check it against them. In fejkdata, three of the five principles its cleanup drafted restated strict semver, inputs that change between runs taken as parameters, and validating data early.
- **Moved text is checked as new text.** The cleanup, and the reviewers of its pull request, hold each moved claim against the code and the source it names, not only against the log entry it came from. In fejkdata's cleanup no pass did this. An outside reviewer then found nine claims the old log stated wider than its source or the code: a name no register writes, and a fallback an import script doesn't have. Give the prose reviewer's brief the same check for any claim about code or a source that a change moves or rewords.
### 591. Have the judge read a project's principles and decision titles in place of every decision entry, so a growing log can't crowd the transcript out of its prompt.
fejkdata's four build-release loops died on 2026-12-03, each right after its chunk merged. `bin/agent_cycle/judge.py` refused three judge runs in a row: the premises, the records and the rules left 45–49K of `JUDGE_PROMPT_CHARS` (400,000) for the transcript, under `TRANSCRIPT_FLOOR` (50,000). The records took 334–338K, of which `docs/decisions.md` was 263 KB with 185 entries. Each chunk adds about one entry, so trimming a log only buys time; the judge's input must stop growing with the log.
`AGENTS.md` already lists the project principles and the title of each decision no principle covers, which is what governs the work. Have the judge's records hold `AGENTS.md` and the human's rules, and not the entries' bodies. Keep the quote check working: an answer the judge quotes must still be checkable against what it read, so either it quotes only titles and principles, or the judge fetches the one entry it needs and its quote is checked against that entry. Pick the simpler one and record why.
A loop must not die on a budget it can predict: where the records still leave too little room, say so before the chunk starts (chunk-preflight), not after it merged.
### 593. Make the decision log's cleanup the next chunk in a project whose log holds a covered entry or outgrows a size budget, checked by `rank_todo.py --check` and named by `chunk-preflight`.
A tool catches a growing log every time; a reviewer only when it notices. fejkdata's `docs/decisions.md` grew to 263 KB before anything noticed, and then it was build-release's judge failing (item 591).
Have `rank_todo.py --check` warn where `docs/decisions.md` holds an entry whose title `AGENTS.md` no longer lists (covered by a principle, so item 592 says to delete it), or where the log is over a size budget. Source the budget from the judge's room: what the records may take and still leave `TRANSCRIPT_FLOOR` for the transcript, with a margin. Where it warns, `chunk-preflight`'s facts make the cleanup item 592 describes the project's next chunk, as an unshaped `todo.md` makes reshaping it the only work. This is how the update cleans up a project that already has a big log, such as fejkdata's before its cleanup.
### 489. Run every model step through a harness interface whose operations are a headless run, a one-shot reply, an interactive run, resume and reading a transcript, with each harness declaring what it supports and Claude Code as the first adapter.
Part of the standalone-install plan lilleman approved on 2026-11-20. The `claude_code` package and the calls of `claude` in `bin/loop_effects/effects.py` move behind it. Capabilities to declare: subagents on their own model, pre-tool hooks, skills and path-scoped rules.
@@ -404,7 +259,7 @@ Name the entry and the Dockerfile line. Source the secret-name list from a widel
### 462. Run under `mutate-changes` the tests that today fail in mutmut's copy of the tree, so a mutant of a line only they cover is killed.
Found while shipping item 461: `mutate-changes` printed `23 mutants on changed lines, 18 not killed. Left out the tests that fail without a mutant, in do_epic/test_main.py, larv_review/test_larv_review.py, larv_review/test_scoring_setup.py, plan/test_ranking.py, repo_checks/…, review_rules/test_review_passes.py, review_rules/test_reviewer_context.py, rule_hook/test_rule_hook.py, test_settings_filter.py` (`do_epic/` is `build_epic/` since 0.18.0). All 18 survivors were in `bin/larv_review/scoring_setup.py`: `prepare_scoring`, whose tests are among those left out, so the chunk checked four of them by hand and left 14 unchecked. Find why each left-out test fails in mutmut's copy, such as a path to `skills/` or a git checkout it expects, and make it pass there, or report under the count which changed lines no remaining test covers.
Found while shipping item 461: `mutate-changes` printed `23 mutants on changed lines, 18 not killed. Left out the tests that fail without a mutant, in do_epic/test_main.py, larv_review/test_larv_review.py, larv_review/test_scoring_setup.py, plan/test_ranking.py, repo_checks/…, review_rules/test_review_passes.py, review_rules/test_reviewer_context.py, rule_hook/test_rule_hook.py, test_settings_filter.py`. All 18 survivors were in `bin/larv_review/scoring_setup.py`: `prepare_scoring`, whose tests are among those left out, so the chunk checked four of them by hand and left 14 unchecked. Find why each left-out test fails in mutmut's copy, such as a path to `skills/` or a git checkout it expects, and make it pass there, or report under the count which changed lines no remaining test covers.
Item 536 met the same gap: `deploy_release/test_deploy_release.py` runs `deploy-release` as a subprocess, and those tests fail in mutmut's copy, so only its in-process tests ran, and 530 of 590 mutants of `bin/deploy_release/` went unchecked.
@@ -450,7 +305,7 @@ The prose pass's replay under item 318's new bar, on 2026-11-12, qualified no ru
### 273. Re-tune the E + I steps of `REVIEW_STEPS` for 6 to 8 once 10 finished chunks have scored an E + I of 6 or more, from how well E + I orders their review rounds and 🔴 findings.
`docs/decisions.md` → `routing: one ladder…` records why lilleman kept the steps on 2026-11-08. Of the 36 chunks it measured, 1 scored an E + I of 6 or more and none 7 or more, so the steps for 6 to 8 are untested. Start once `score-outcomes` shows 10 finished chunks with an E + I of 6 or more. Then read its rank correlation for E + I, and the routed-chunks table of `routing-figures.md` in build-release's archive (`$BUILD_RELEASE_TRANSCRIPTS`, default `~/.local/state/build-release/transcripts`). Propose new steps to lilleman, whose call they are.
`docs/decisions.md` → `routing: one ladder…` records why lilleman kept the steps on 2026-11-08. Of the 36 chunks it measured, 1 scored an E + I of 6 or more and none 7 or more, so the steps for 6 to 8 are untested. Start once `score-outcomes` shows 10 finished chunks with an E + I of 6 or more. Then read its rank correlation for E + I, and the routed-chunks table of `routing-figures.md` in build-release's archive (`$BUILD_RELEASE_TRANSCRIPTS`, default `~/.claude/loop-claude-transcripts`). Propose new steps to lilleman, whose call they are.
### 268. End a run whose release is ready to cut with a notice on build-release's terminal, in place of an interrupt that waits for an answer.
@@ -472,32 +327,39 @@ 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, Locality first; today the second scoring run at 5070d896 scored Navigation 7.00, Locality 5.75, Shape 6.00, Self-sufficiency 6.00 and Overall 6.13.
### 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, Shape and Self-sufficiency first; today the second scoring run at 0aff7d39 scored Navigation 7.00, Locality 5.88, Shape 5.88, Self-sufficiency 6.00 and Overall 6.00.
Filed by the comprehension check of PR #473 at 13d1550 (`larv-review record-scoring`), which printed `Floor:` and `Next:`, and refreshed from each later run; most recently from the two runs of item 578's chunk (PR #813) at 5070d896. Those scored Navigation 7.00, Locality 5.75, Shape 6.00, Self-sufficiency 6.00 and Overall 6.13. Locality is lowest, so this item aims at it first. 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: build-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/build_epic/main.py:236` `chunk_run` and `bin/build_epic/scheduler.py:172` `start_chunks` are the hardest build-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 that puts each piece of chunk state, and each ordered protocol, in one unit that owns it, so a reader follows one merge, one park or one schedule without opening sibling modules. Size it 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.
Newest run, two runs of item 569's chunk at add7c09d: Locality is lowest at 5.63. It adds these places to the list below: `bin/rule_hook/reviewer_rung.py:28` `reviewer_breaches` refuses a launch for its rung and never for its round count, so the round cap has a launch-time gap beside the three counters; `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start` is a near-twin of `bin/build_epic/scheduler.py:172` `start_chunks` with different rules and no stated reason for two; `bin/agent_cycle/tmux.py:92` `as_listed` keeps chunk state in window-name suffixes that other code matches on; `bin/plan/ranking.py:144` `weigh` checks the old table shape in every function; `bin/build_epic/__init__.py:1` has no map of its 25 modules.
Locality: the seats' main complaint is that chunk state lives in tmux window-name suffixes, files, the forge and the scheduler's slots at once, written in one package and read in another, and that ordered steps keep their order unstated. Give that state one owner with a typed interface, and state each protocol's order beside the code that enforces it.
Newest run, two runs of item 579's chunk at 0aff7d39: Locality and Shape are lowest, both at 5.88, with Self-sufficiency at 6.00 and Navigation at 7.00. It adds these places to the list below: `bin/chunk_pr/main.py:601` `levelled_and_finished` is an order-dependent chain of git changes and a scoring-run check, with no statement of what holds after it returns; `bin/agent_cycle/run.py:160` `rule` decides the figures written by the order of its archive calls, and only a comment says so; `bin/larv_review/main.py:33` "needs-scoring-run" holds the whole rule for when a run is due and owed only in a long docstring; `bin/plan_store/jira_epic.py:200` `edit` hides the loop-filed against person-filed rule among about 45 lines of early returns; `bin/transcript_archive/outcomes.py:11` `outcomes` is a line format that four readers parse by regex; `bin/build_epic/main.py:236` `chunk_run` sits in a 520-line main that also holds help text and the issue-move policy.
Places the seats named in the two runs at 5070d896, most repeated first (`larv-review places`):
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.
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a merge-queue loop carrying a flock, an approval wait and the by-human, to-epic and park flags, two of which switch each other off; a hidden `scoring-run-owed` call and a side trip to `remeasure`; what happens on a failure mid-merge is decided in sibling tools; the module is 778 lines with seven subcommands. With `:530` `merge_turn`: about seven decisions in a row whose side-effect order is load-bearing and unstated. Six seat reports named `merged`, and two more `merge_turn` or the module.
- Locality, Shape: `bin/build_epic/scheduler.py:178` `start_chunks`: five derived sets and an elif ladder under a lock, and its correctness depends on window-name suffixes that `parking.py` and `tmux.py` write. Four seat reports named it.
- Locality, Shape: `bin/build_epic/parking.py:26` `parked_through`: one chunk's parked state in a file, a window name, the forge and the slot scheduler, its order stated and not justified. With `:118` `resumed_news`: a polling loop whose mutable `Told` renames tmux windows. Four seat reports named them.
- Locality, Shape: `bin/build_epic/main.py:241` `chunk_run`: one loop over `news` typed `str | Stop | Merged`, whose exit depends on `news == ""` together with `Finished`, the empty string never named; about 30 imports. Four seat reports named it.
- Self-sufficiency, Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs, a floor, the cap and a counter held at once, the escalation mark in another module and the reason in the decision log. Four seat reports named it.
- Navigation, Shape: `README.md:276` "Packages under bin/": the only map of a flat `bin/` of about 85 entries; with `bin/build_epic/__init__.py:1`, an empty package docstring over 22 modules. Group `bin/`'s packages by purpose, or give each package a map in its `__init__.py`. Both architect reports named it.
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap lives in prose, a constant and a hook, and the count in four places with two failure policies. Both architect reports named it.
- Shape: `bin/task_bench/main.py:242` `Planner`: three layers of curried callables, and the Rust test-module rules in one chain of nested clauses. Three seat reports named it.
- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:109` "Re-entry": a nine-row table whose exceptions and the round cap sit in other sections.
- Locality: `bin/agent_cycle/judge.py:79` `TASK_HEADING`: a heading's wording that replay parses, held by a comment alone.
- Locality: `bin/build_release/loop/chunk_windows.py:46` `held_items`: which chunks start depends on a worker's `Chunk items:` line.
- Locality: `bin/build_release/loop/reload.py:97` `exec_if_edited`: any edit under `bin/` reloads a live loop.
- Shape: `bin/release_plan/release_standing.py:206` `next_release`: a boolean expression that reads as a puzzle.
- Self-sufficiency: `.claude/rules/this-repo-keeps-no-agents-md.md:3`: its rationale says `~/.claude` is a checkout of this repo. Both architect reports named it.
Places the seats named in the two runs at 98c49021, hardest first (`larv-review places`), Self-sufficiency first:
Earlier runs also named these, still open unless the chunk finds them easier: `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start`, a near-twin of `start_chunks` with different rules and no stated reason for two; `bin/agent_cycle/tmux.py:92` `as_listed`, which keeps chunk state in window-name suffixes; `bin/chunk_pr/main.py:601` `levelled_and_finished`, an order-dependent chain with no statement of what holds after it returns; `bin/agent_cycle/run.py:160` `rule`, whose archive calls' order decides the figures; `bin/transcript_archive/outcomes.py:11` `outcomes`, a line format four readers parse by regex; `bin/plan/ranking.py:144` `weigh`, with the OLD_SHAPE fork doubling the paths through ranking.
- 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/build_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/build_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/build_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/build_release/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/build_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/build_release/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/build_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` "build_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.
@@ -614,7 +476,7 @@ While `rank_todo.py` ranks two shapes, projects follow two sets of scoring rules
Filed by PR #553, which made the routing ladder a file: `bin/model_routing/routing-ladder.json`, and a project's own `routing-ladder.json` in its config's folder. `CLAUDE.md` → "Working loop", "Ask, don't guess" reserves a change to the routing ladder for the human, and until PR #553 the ladder was code, which only a reviewed chunk changed. A worker can now write its project's file, and with it choose the rungs its own later cycles and reviews run on. The security pass of PR #553 noted that a ladder changed mid-cycle also makes rule-hook's `reviewer-rung` skip its check, since the rungs build-release handed are then off the ladder.
Project principle 4 asks that a rule a program can check is enforced by a program. Refuse a Write, an Edit and a MultiEdit of a file named `routing-ladder.json` under `~/.config/build-release/`, with no override, and say that the ladder is the human's to change. The shipped file stays editable in the setup's own checkout, where a chunk's review covers it.
Project principle 4 asks that a rule a program can check is enforced by a program. Refuse a Write, an Edit and a MultiEdit of a file named `routing-ladder.json` under `~/.claude-projects/`, with no override, and say that the ladder is the human's to change. The shipped file stays editable in the setup's own checkout, where a chunk's review covers it.
### 365. Have `score-outcomes` read the finished and dropped items of a plan outside the checkout, from the project repo's history or from Jira's issue changelogs.
@@ -718,7 +580,7 @@ Before PR #310, reports reached the worker as the Agent call's result, a median
### 266. Move the chunks archived under the key `home/lilleman/.claude` to the key `dev-factory`, so the routing figures and `score-outcomes` count this repo's chunks as one project.
The archive holds 277 chunk folders under `home/lilleman/.claude`, from 2026-09-24 on, and 39 under `claude-config` (2026-11-10). The routing figures of 2026-11-04 list no project `home/lilleman/.claude`. They find a chunk's later fixes on the default branch of the checkout its key names (`bin/routing_figures/archive.py` `measure_project`), and `/home/lilleman/.claude` is a release checkout on a detached HEAD. Item 5 fixes how keys are derived, not the chunks already archived. `~/.config/build-release/models.json` still holds a `home/lilleman/.claude` entry; it is machine state outside the repo, so removing it is a one-off step on each machine, not part of the change.
The archive holds 277 chunk folders under `home/lilleman/.claude`, from 2026-09-24 on, and 39 under `claude-config` (2026-11-10). The routing figures of 2026-11-04 list no project `home/lilleman/.claude`. They find a chunk's later fixes on the default branch of the checkout its key names (`bin/routing_figures/archive.py` `measure_project`), and `/home/lilleman/.claude` is a release checkout on a detached HEAD. Item 5 fixes how keys are derived, not the chunks already archived. `~/.claude/loop-claude-models.json` still holds a `home/lilleman/.claude` entry; it is machine state outside the repo, so removing it is a one-off step on each machine, not part of the change.
### 339. Lower the reading cost of the files a chunk reads most before its first commit.
@@ -925,9 +787,9 @@ Savings: one judge call per about 12 verdicts. That is small, and nobody has mea
### 1. Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.
It lives under `~/.local/state/build-release/`, outside any repo and so out of the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read.
It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read.
2026-10-02, the human: ai-sandbox is the VM `build-release` will run on, hosted on the server bender. bender-infra, the infrastructure-as-code project that manages bender, will back up ai-sandbox's data volume once ai-sandbox is rebuilt. The item waits for the human to say the rebuild has landed; do not remind them. Before writing the README line, check that `~/.local/state/build-release/` lives on that volume and that the backup is private and encrypted at rest.
2026-10-02, the human: ai-sandbox is the VM `build-release` will run on, hosted on the server bender. bender-infra, the infrastructure-as-code project that manages bender, will back up ai-sandbox's data volume once ai-sandbox is rebuilt. The item waits for the human to say the rebuild has landed; do not remind them. Before writing the README line, check that `~/.claude` lives on that volume and that the backup is private and encrypted at rest.
The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 4).
@@ -935,7 +797,7 @@ The README line covers the bench's transcripts in `workflow-bench/logs/` too (go
lilleman asked, on 2026-10-16, for a standing audit each release, so the loop keeps moving work a program does as well from the model to scripts (goals 1.4 and 1.5). This audit reads the archived transcripts of the chunks that shipped releases 0.10.0 to 0.22.0 for every step that chunks repeated by hand, before, during or after review. It keeps the steps whose answer a program computes the same way each time, such as a lookup, a check, a prompt assembled for a reviewer, a cleanup. File one item per such step, with the time and tokens it cost, into the next release with items left. Leave a step that needs judgement with the model. Run `command-patterns <version>` first for each of 0.10.0 to 0.22.0; each run's table is the audit's starting point. `read_threads` and `calls` in `bin/command_patterns/tally.py` open the calls of one pattern, or `command-patterns <version> --calls <file>` dumps them all as JSON lines. The 0.7.0 audit found that most steps its chunks repeated were already scripted by that release's own tools, so a step a shipped item already covers is not filed.
A pattern's call count is a poor guide: most of the 0.9.0 calls were reading and hand edits, which stay with the model. Cluster the calls by their command text with numbers and paths normalised away, then check each cluster against the tools in the setup's `bin/` before filing.
A pattern's call count is a poor guide: most of the 0.9.0 calls were reading and hand edits, which stay with the model. Cluster the calls by their command text with numbers and paths normalised away, then check each cluster against the tools in `~/.claude/bin` before filing.
The 0.8.0 audit filed four steps, items 334, 335, 336 and 337. The 0.9.0 audit filed one, item 396, and found most other repeated steps already covered by tools that shipped inside the release: `chunk-pr merge`'s wait for the checks, `run-tests`, `wait-for`, `larv-review round-title` and `todo-item show`.