Compare commits

...

18 Commits

Author SHA1 Message Date
Lilleman 3ec8bf9436 File an item: refuse to mark a pull request ready while its description predates the head
CI / tests (pull_request) Successful in 6m24s
2026-12-04 13:12:01 +01:00
Lilleman 3584890d71 File item 601: stability-reviewer checks hand-made equivalent mutants and library boundaries
CI / tests (pull_request) Successful in 6m17s
2026-12-04 12:06:27 +01:00
lilleman 4998cf910d Cut release 0.18.0
CI / tests (pull_request) Successful in 5m59s
2026-12-04 11:51:57 +01:00
lilleman 0f96153874 Record the comprehension check: paired ruling same
CI / tests (pull_request) Successful in 6m3s
2026-12-04 11:45:17 +01:00
lilleman ce20d793e4 Say in raise_calls' docstring that a skipped DM marks the calls raised 2026-12-04 11:45:14 +01:00
lilleman d4516523e9 Merge remote-tracking branch 'origin/main' into release-review-0.18.0
CI / tests (pull_request) Has been cancelled
# Conflicts:
#	todo.md
2026-12-04 11:39:48 +01:00
lilleman 7988138b2d Have item 592 drop what the technical principles decide, and check moved text against code and source
CI / tests (pull_request) Successful in 4m51s
2026-12-04 11:30:04 +01:00
lilleman f609bdfbb1 Answer prose round 2: 0 🔴, 7 🟡 (0 misread); correct the routing docstrings and the no-clone rule, split the decisions' long sentences, and decline renaming the setup's rules group 2026-12-04 11:27:03 +01:00
lilleman da62773329 Answer stability round 2: 0 🔴, 1 🟡 (0 misread); keep the judge prompt's meaning that the records include the setup's files, and say what tell returns for a skipped DM 2026-12-04 11:27:03 +01:00
Lilleman 0ebb903e33 Plan: make the prose reviewer verify changed claims against the code
CI / tests (pull_request) Successful in 5m3s
2026-12-04 11:06:31 +01:00
lilleman b001581573 Answer prose round 1: 0 🔴, 14 🟡 (0 misread); correct the plan items' principle names and paths, narrow the decisions' wording, and state the no-clone routing rule 2026-12-04 10:57:55 +01:00
lilleman 6f2d22dff6 Answer stability round 1: 0 🔴, 1 🟡 (0 misread); mark the routing calls raised only where the DM went out 2026-12-04 10:57:55 +01:00
lilleman 1048e7a40a Answer principles round 1: 1 🔴, 6 🟡 (0 misread); end the AGENTS.md decision with item 585, send the routing calls once where no development clone exists, and file five principle findings as items 591 to 595 2026-12-04 10:34:22 +01:00
lilleman 01448eb5a0 Cite the Working loop heading in item 592's detail
CI / tests (pull_request) Successful in 5m30s
2026-12-04 10:32:25 +01:00
lilleman 9d6df6526d File items 591 to 593: keep decision logs small enough for the judge
CI / tests (pull_request) Failing after 4m40s
2026-12-04 10:27:07 +01:00
lilleman 6bc91f700a Answer architecture round 2: 0 🔴, 2 🟡 (0 misread); correct the marketplace pinning claim, name item 1's archive folder, finish the test rename and sort the imports it moved 2026-12-04 10:23:33 +01:00
lilleman 9450017fd3 Answer architecture round 1: 1 🔴, 21 🟡 (0 misread); skip the routing call where no development clone exists, name the judge's rules the setup's, record two accepted trade-offs, and update stale plan paths 2026-12-04 10:19:24 +01:00
lilleman b568445ed8 Release review of 0.18.0 2026-12-04 10:10:32 +01:00
19 changed files with 307 additions and 46 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Changelog
## Unreleased
## 0.18.0
- 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.
+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. 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: 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."""
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 human's rules "
"(the setup's CLAUDE.md, the setup's rules/, the project's review standards, each headed by its name) included. "
"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. "
"It also counts where the transcript shows the worker writing it into {answer_destinations}, "
"but not into one of the human's rules.\n\n"
"but not into one of the setup'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 human's rules", prompt)
self.assertIn("the worker writing it into the ledger, but not into one of the setup'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 human's rules, so the names that mention a repo's then name nothing it reads.
# 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.
NAMES = prompts.RecordNames(
quote_sources=listed(("the epic's description", "the repo's goals file's Goals and Audience", *RECORD_FILES, *HUMAN_RULE_NAMES), "or"),
quote_sources=listed(("the epic's description", "the repo's goals file's Goals and Audience", *RECORD_FILES, *SETUP_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 human's rules for every project",
records_named="the epic's scoring and decisions, then the repo's working rules and decisions, then the setup'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 human'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 setup'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 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("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("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:
+15 -4
View File
@@ -55,11 +55,18 @@ 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:
"""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."""
"""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."""
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)
tell(f"build-release in {loop.root} asks:\n\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
if not loop.effects.on_terminal():
say("Not on a terminal: the calls are raised again at the next measurement.", loop.effects)
return None
@@ -67,7 +74,11 @@ 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}")
# 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.
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."""
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,6 +34,7 @@ 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):
@@ -116,6 +117,32 @@ 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.HUMAN_RULE_NAMES[0], f"{records.HUMAN_RULE_NAMES[1]}*.md", records.HUMAN_RULE_NAMES[2])
names = (*records.RECORD_FILES, records.SETUP_RULE_NAMES[0], f"{records.SETUP_RULE_NAMES[1]}*.md", records.SETUP_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 human'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 setup's rules below.
WORKING_RULES = ("AGENTS.md", "working-rules")
DECISIONS = ("docs/decisions.md", "decisions")
RECORD_FILES = (WORKING_RULES[0], DECISIONS[0])
# The human's rules, in the order the judge reads them: the setup's CLAUDE.md, each .md file in its rules/,
# The rules the judge reads after the records, in order: the setup's CLAUDE.md, each .md file in the setup's rules/,
# then each .md file in the review standards folder the project's config sets.
HUMAN_RULES_FILE = "CLAUDE.md"
HUMAN_RULE_DIR = "rules"
SETUP_RULES_FILE = "CLAUDE.md"
SETUP_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 human's rules for every project"
RECORDS_NAMED = "the project's working rules and decisions, then the setup'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"
HUMAN_RULE_NAMES = (f"{OF_THE_SETUP} {HUMAN_RULES_FILE}", f"{OF_THE_SETUP} {HUMAN_RULE_DIR}/", "the project's review standards")
SETUP_RULE_NAMES = (f"{OF_THE_SETUP} {SETUP_RULES_FILE}", f"{OF_THE_SETUP} {SETUP_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 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.
"""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.
`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 / HUMAN_RULES_FILE, *sorted((claude_dir / HUMAN_RULE_DIR).glob("*.md"))]
rules = [claude_dir / SETUP_RULES_FILE, *sorted((claude_dir / SETUP_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_human(self):
self.assertEqual([name for name in records.HUMAN_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_setup(self):
self.assertEqual([name for name in records.SETUP_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, *HUMAN_RULE_NAMES), "or")
QUOTE_SOURCES = listed(("the goals file's Goals and Audience", *RECORD_FILES, *SETUP_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 ~/.claude/projects/<project>/<session>/tool-results/.
# 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.
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 human's rules for every project:\n", prompt)
self.assertIn("\n\nThe records: the project's working rules and decisions, then the setup'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 = (HUMAN_RULE_DIR, STANDARDS)
RULE_DIRS = (SETUP_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}')
+36
View File
@@ -4876,3 +4876,39 @@ Inherited architect, would restructure first:
- 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
+8 -4
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 `~/.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 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 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,6 +143,8 @@ 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.
@@ -155,7 +157,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.
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.
## 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
@@ -212,7 +214,7 @@ Valid while `~/.claude` is a checkout of this repo.
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`, `~/.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
## 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
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.
@@ -687,7 +689,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 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 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.
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.
@@ -920,6 +922,8 @@ 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.
+192 -9
View File
@@ -6,20 +6,29 @@
`Bar = 0.1`
`Next ID = 591`
`Next ID = 603`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
@@ -58,6 +67,7 @@
| 5 | 0.23.0 | | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 4 | 2 | 3 | 7 | 5 | 1.1 by 6 | 1.1 |
| 291 | 0.23.0 | | owner | **Let `principles/technical-principles.md` → "Sane defaults" allow a library whose README goals ask that it work with no config to default the clock and randomness in its public constructor, where a documented option overrides each.** | 1 | 2 | 3 | 4 | 1 | 1.2 by 3 | 1.0 |
| 156 | 0.23.0 | | decision | **Drop `rank_todo.py`'s ranking of an old-shape table once no project under `~/code` holds one.** | 2 | 1 | 3 | 4 | 4 | 1.1 by 4 | 1.0 |
| 601 | 0.23.0 | | | **Make stability-reviewer accept a surviving hand-made mutant as equivalent only on a test or proof that no input tells it apart, and run the library calls a change uses to parse or convert a date, time or number at their boundaries.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 3 | 1.0 |
| 388 | 0.23.0 | | | **Refuse an agent's Write or Edit of a routing ladder file in rule-hook, since a change to the ladder is the human's.** | 1 | 1 | 3 | 3 | 2 | 1.2 by 3 | 1.0 |
| 365 | 0.23.0 | | | **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.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 2, 1.1 by 2 | 0.9 |
| 368 | 0.23.0 | | | **Call a release review due, call a release ready to cut, and tell whether a chunk owes a scoring run, for a plan outside the checkout, from the project repo's history or from Jira.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 2, 1.1 by 2 | 0.9 |
@@ -70,6 +80,7 @@
| 201 | 0.23.0 | | owner | **Save the human's tmux setups and restore them after a reboot, so work is up and running again quickly.** | 3 | 2 | 1 | 4 | 4 | 1.5 by 4 | 0.9 |
| 267 | 0.23.0 | | | **Keep waiting when an interrupt gets an empty answer, at the terminal or in the claude opened for it, in place of stopping the loop.** | 2 | 1 | 3 | 4 | 2 | 1.5 by 3 | 0.9 |
| 4 | 0.23.0 | | | **Name each chunk's archive folder by the chunk's start time, so `<key>/` lists chunks in the order they ran.** | 3 | 2 | 3 | 6 | 3 | 1.1 by 3 | 0.9 |
| 602 | 0.23.0 | | | **Make `chunk-pr ready` refuse while a commit on the branch is newer than the pull request's last description edit, naming those commits, so a fix pushed after review can't leave the description claiming what the head no longer does.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 3 | 0.9 |
| 324 | 0.23.0 | | | **Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 2, 1.4 by 1 | 0.9 |
| 187 | 0.23.0 | | | **Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 0.8 |
| 266 | 0.23.0 | | | **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.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3 | 0.8 |
@@ -111,9 +122,26 @@ 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 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.
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.
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.
@@ -130,6 +158,80 @@ 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.
@@ -146,6 +248,37 @@ 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.
@@ -187,6 +320,33 @@ 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.
@@ -246,7 +406,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`. 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` (`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.
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.
@@ -292,7 +452,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 `~/.claude/loop-claude-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 `~/.local/state/build-release/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.
@@ -452,11 +612,28 @@ The key names the project's session, archive folder and models entry. `project_k
While `rank_todo.py` ranks two shapes, projects follow two sets of scoring rules, against goal 1.3. Once every project has reshaped, drop `OLD_SHAPE`'s weighing from `bin/plan/ranking.py`, `RESHAPE`, and the old shape's lines in `rank_todo.py --help` and `rules/todo-items.md`. Keep `todo_table` reading old tables: `score_outcomes` reads every past merge's `todo.md`. PR #283's paired ruling found the old-shape path made `ranking.py`'s `score`, `Scoring.weights`, `unknown_columns` and `todo_table.py`'s `Moves` harder to read; leave each easier, with one shape and moves that are always moves, and the Moves cell's rules in one place. Release 0.3.0's seats named `ranking.py`'s `score`, `weigh` and `rank` and `todo_table.py`'s `OLD_SHAPE` for the same fork: "every rule exists twice for the old table shape" (Mid A). Make `weigh` and `rank` easier to read too.
### 601. Make stability-reviewer accept a surviving hand-made mutant as equivalent only on a test or proof that no input tells it apart, and run the library calls a change uses to parse or convert a date, time or number at their boundaries.
An outside reviewer raised two findings on a pull request in another project, a PHP project with no mutation tool, that parses ISO date-times. Neither the implementer nor stability-reviewer had caught them.
First, a regex's range check on an offset's hour, 00 to 23, was deleted because a hand-made mutant of it survived. The mutant was judged equivalent after one input, an hour of 25, which the language's own parser refused anyway. Hour 24, which the parser accepts, was never tried. Second, a library call that converted a fraction of a second with 16 digits rounded it up into the next second, and so moved a timestamp across midnight in a time zone. Nobody ran the conversion at its limits.
Chosen: two rules in stability-reviewer's brief, and one sentence in larv-review §2's "Mutation tests" where the implementer runs mutants by hand.
- Where mutants are made by hand, a surviving one counts as equivalent only where no input can tell the two programs apart, shown by a test or a short proof. Trying one input never shows it. Otherwise it is a 🟡 asking for the test that kills it.
- Where the change parses or converts a date, a time or a number through a library call, the reviewer runs that call at the boundaries: each end of a range and one step past it, a long fraction that rounds, trailing characters, and overflow next to a day, hour or offset limit. It reports each boundary whose behaviour no test pins, as a 🟡, or as a 🔴 where the value then crosses a limit, such as a day.
A deterministic fix is better where one exists: a mutation tool for the language, which `mutate-changes` runs and §2 already asks to file an item for where none covers it. That catches the first finding only where the tool runs, so the rules above still close the gap for languages without one, and the second finding has no tool.
Touches:
- `agents/stability-reviewer.md`: `## First Steps` (small), `### 5. Edge Cases & Input Validation` (small)
- `skills/larv-review/SKILL.md`: `## 2. Ship the branch (idempotent — skip whatever already exists)` (small)
### 388. Refuse an agent's Write or Edit of a routing ladder file in rule-hook, since a change to the ladder is the human's.
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 `~/.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.
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.
### 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.
@@ -550,6 +727,12 @@ Weigh the widely used tmux-resurrect and tmux-continuum plugins against a script
Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. `bin/reading-cost` takes a chunk's id from the folder's first 12 characters and skips a chunk whose id `docs/reading-cost.md` holds, so give it a way to match a figure written under the old name.
### 602. Make `chunk-pr ready` refuse while a commit on the branch is newer than the pull request's last description edit, naming those commits, so a fix pushed after review can't leave the description claiming what the head no longer does.
An outside reviewer found a pull request whose description still claimed a change that the branch's last commit had reverted. No pass reads the description against the head: the prose pass reads the diff, and the description is written once, at `chunk-pr open`. A fix commit after the reviews leaves every claim in it unchecked.
Fix: in `chunk-pr ready` (and `push`, where it re-requests review), compare the time the description was last edited with the newest commit on the branch: GitHub's GraphQL `lastEditedAt`, or `createdAt` where it was never edited; Gitea's `updated_at` for the body. Where a commit is newer, refuse and name the commits, so the description is reread and edited, or accepted unchanged with a flag such as `--description-current`. A deterministic check, because a reviewer only catches this when it happens to read the description.
### 324. Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.
`docs/decisions.md` → `routing: build-release reads the items a chunk takes …` holds only while workers write the line when asked, and nothing counts a chunk whose worker skipped it. There build-release scores no item beyond the one the chunk was routed on, so the route holds. Count in `bin/routing_figures/`, beside the chunks counted, those whose worker's transcript holds no such line, so the human sees when the decision's premise stops holding.
@@ -560,7 +743,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. `~/.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.
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.
### 339. Lower the reading cost of the files a chunk reads most before its first commit.
@@ -767,9 +950,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 `~/.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.
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.
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.
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.
The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 4).
@@ -777,7 +960,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 `~/.claude/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 the setup's `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`.