19 KiB
19 KiB
Changelog
Unreleased
- Every
todo.mditem carries a C score, how hard the change is to get right, from 1 to 10, in a column after S. C stays out of the score.rank_todo.pyfails on an items table without the column, and the rule hook then blocks committing thattodo.md. Before the next commit that changes a project'stodo.md, add the column and score every item's C, asrank_todo.py --helpshows. - The new
bin/score-outcomesshows what finished chunks measured beside the R, S and C their items were guessed at: lines and files changed, review rounds, and 🔴 and 🟡 findings. It reads them from the default branch's merge commits, so a project that merges by squash or fast-forward shows none. Given a guess, it lists the 5 finished items guessed nearest. It always reports, for each score, the median outcome at each guessed value, once 10 chunks that each shipped one item record it: R against 🔴 findings, S against lines changed, C against review rounds past each pass's first. A session filing or editing an item runs it and scores R, S and C from what it shows. - larv-review round commits now carry the round's 🔴 and 🟡 counts,
Answer stability round 1: 1 🔴, 2 🟡; …, and the rule hook's newround-title-countsrule blocks a round title without them. - The stability reviewer mutation-tests the lines each change adds or modifies: it makes small changes to that code, such as flipping a comparison. For each test to add or strengthen, it reports one 🟡 naming the changes that test would catch. It uses the project's documented mutation command, or else cargo-mutants, Infection, mutmut or Stryker. The technical principles replace "Test coverage should not decline" with "Every mutant of a changed line fails a test, unless the mutant leaves behaviour unchanged", and say what a valuable test is: it checks behaviour through the unit's interface, and fails when that behaviour breaks. README → "Tools" gives the mutmut command for
bin/. Expect longer stability passes and more 🟡s about tests. In a project whose README documents no mutation command, the reviewer picks and installs a tool on each run; document one there to make the runs consistent. - Each new
loop-claudeworker session's prompt now quotes the README's Goals and Audience. A line above them says that the chunk'stodo.mditems, or else the task, set its scope, and that the goals only choose how to deliver it. A session outside the loop reads Goals and Audience before starting a chunk, asCLAUDE.mdnow says. - A session no longer reads the technical principles before writing code. It writes the simplest change that solves its item, test first wherever a test can check the change, and reads a principle only when the item changes it, a finding names it, or a decision or
todo.mditem it writes cites it. larv-review's reviewers hold the change to the principles, and a finding against one names it. Expect more findings from the prose and stability reviewers, since sessions no longer load the rules for comments and READMEs. - The rules for comments and READMEs, "Quality" and the examples behind "Prose" moved to
skills/larv-review/standards/, which the prose and stability reviewers andloop-claude's judge read.CLAUDE.mdkeeps a short core of "Prose"; sorting where order carries no meaning lives only in the technical principles. - A session no longer points out a preference you have repeated or asks you to write it up, and no longer restructures
CLAUDE.mdandrules/after changing them. - A
todo.mditem names a release whose version bump fits the item under strict semver: a major for a change to what exists (a minor before 1.0.0), a minor for an addition, a patch for a fix. CLAUDE.mdkeeps only the rules no file path can scope. The rules fortodo.mditems, decisions and a README's Goals and Audience moved to files underrules/. Claude Code loads each one when a session reads or writes a matching file.loop-claude's judge reads them besideCLAUDE.md.- A README no longer holds cross-cutting decisions;
docs/decisions.mddoes. - A technical principle, "Prefer deep modules": a module puts a small, intuitive interface in front of a lot of hidden work, and hides how it works but never what it depends on. It wins over "Explicit over implicit" unless hiding the work makes it harder for someone new to the project to tell what a call does. "Functional core, imperative shell" moves up to second place, a core rule beside "Compose, do not entangle" that no other principle overrides. The systems architect holds every module to it.
- A hook blocks each Bash, Edit, MultiEdit and Write call that breaks a rule a program can check: a commit message that is not one line passed with
-m, a Claude or Anthropic attribution, a container image short of a full patch version, an Action pinned to anything but a semver tag, an unsorted block in an ignore file, and a commit of atodo.mdthatrank_todo.py --checkrejects.CLAUDE.mdstates those rules only where the hook cannot check them;~/.claude/bin/rule-hook --helpstates what it checks. A call overrides a rule with# rule-override <rule>: <reason>. larv-review's new overrides pass, run before stability, accepts or rejects each override the chunk logged, and the PR body lists each with its ruling; a rejected override means the chunk keeps the rule. An override that touches a credential, a security rule or a production system, or cannot be undone, is asked of you. - A project may opt out of larv-review's architect, product-owner pass or comprehension check in every chunk, through a
docs/decisions.mdentry titledreview opt-out: …that names the goal that skipping them serves. A project without such an entry is reviewed as before. Opting out of the comprehension check also skips the scoring run due at a release's end. The principles audit always runs. - A README goal states the project's aim and intent, and no longer names a step of the work, such as "kill weak candidates early". Such steps go in a method section further down the README and name the goal they serve.
- The stability reviewer keeps its scratch work in a directory it creates for the run, deletes that directory afterwards, and deletes nothing else.
- larv-review's mechanical rules run in the new, tested
bin/larv-review: the paired ruling's base (ruling-base), each pass's round count (round-count, which ignores case in a round's commit title, counts a repeated round number as a round of its own, and says to ask you before another round once a pass is at or past the cap), the scoring run's trigger (needs-scoring-run <item ID>...), and the vote count, means and history format (record-ruling <votes file>andrecord-scoring <scores file> [<item ID>...], which append todocs/comprehension-history.mdand refuse a second entry on what a seats file's first line reads;record-scoringrefuses a run the plan does not call, and printsFloor:naming each mean under the comprehension floor of 7.0), and the places seats found hard since the newest scoring run (places). The skill says when to run each and what its answer means. A seats file line the tool cannot read fails the run, so a mistyped vote never counts as same. The base search compares the history before and after each merged change, so it no longer depends on how a line is worded. A release whose last plan item moves to another release is due a scoring run too, once work has landed towards it. A seats file must name commits the checkout holds. When origin cannot be fetched, the tool reads it as last fetched and says so. - The new
bin/metric-benchbenches cheap static metrics of a project's Python against the places its comprehension history names as hardest: cognitive complexity, length, shared state and change spread, each scored by how well it ranks the named functions above the rest. No metric enters review yet. - larv-review runs a comprehension check, which records how hard the project is to read and blocks no merge. It runs once per chunk, after every pass, on the branch as review left it. Where the architecture pass ran, Mid A and the inherited architect read that commit beside the last measured commit: the default branch's newest merged change that added a ruling or a scoring run to
docs/comprehension-history.md. They vote better, same or worse on each dimension and overall:Navigation same, Locality worse, Shape same, Self-sufficiency same, Overall better. When their overall votes differ, the maintainability senior and Junior A vote too. A ruling needs a lead of two or more votes, else it is same. Each place a seat names opens with the dimensions it moves, such asLocality, Shape:, or the run fails, and a vote that no place opens with counts as same. Four seats score the project from 1 to 10 when a chunk ships or removes a release's last plan item, or ships an item naming the comprehension floor of 7.0. A project whose owndocs/decisions.mdorAGENTS.mdstill says the floor or a worse ruling blocks a merge keeps that rule; edit it there to stop blocking. - larv-review reruns fewer passes after a fix. A fix reruns the pass whose 🔴 or 🟡 it answers, plus stability when the fix changes behaviour, security when it opens an untrusted-input boundary or touches authn/authz, secrets or crypto, and architecture when it carries an architectural decision. A rerun reviews only what changed since that pass last reviewed. A fix for a 🟢, a ❓ or any prose finding reruns no pass, and prose takes one round.
- larv-review runs one security pass on each change: the full scan alone when it runs, else
/security-review. - larv-review runs the new
bin/reading-cost, which measures each chunkloop-claudefinished from its archive: the new input tokens the worker and its subagents took in before the worker's first commit, and the files git tracks that they read most. It appends each figure the project'sdocs/reading-cost.mdlacks. Once 10 chunks are measured, and the last 5 chunks' median is above the 5 before them, larv-review files one plan item naming the files read most, or refreshes it. The chunk that ships it runsreading-cost --reset, so the trend counts only chunks that finished after it. - larv-review appends every paired ruling and scoring run to the project's
docs/comprehension-history.md: the commit the seats read, a ruling's base, each seat's vote or scores, and the places each seat named. The PR summary gives each ruling with its base and votes. The seats do not read the history. - The architect and the stability reviewer get the places seats found hard since the newest scoring run, from the new
larv-review places: that run's places, and each later ruling's places a seat voted worse. Each reports, as a 🟡, a place the change touches without making it easier to read; the chunk fixes it or says in the PR summary why not. A session filing atodo.mditem reads the places too, and an item touching one says to make it easier to read. - The README's goals put quality with the fewest interrupts first, as goal 1; sharing the setup, backups and leaking nothing follow as goals 2–4.
- larv-review skips the comprehension check for a chunk whose plan items a project decision names. The decision also names the later item whose check ends the suspension. The skipped chunk's summary cites the decision. A chunk that ships or removes a release's last plan item, or ships an item naming the floor, still gets the scoring run.
- README → Install and Update give the commands that check the latest tag out into
~/.claude: on a new machine, whether or not Claude Code has already created the directory, and on one already on an older tag. - A session commits changes Claude Code made to
settings.jsononly once their diff holds no credential, and asks you to move any credential out of the file first. - A technical principle, "Sane defaults, where a default serves better than an explicit ask". A default suits a value most callers want, does no harm when wrong, and can be seen and changed. It lives at the program's edge, such as a CLI; a library still asks for data, the clock and randomness.
- larv-review's principles audit reads only the files under
~/.claude/principles/that apply to the project, launching a file's auditor when unsure. A file'sApplies toline says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns only the reviewers whose 🔴 or 🟡 the fixes answer, unless the fixes carry an architectural decision. - When
loop-claude's judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names,
ArchitectureandFull scan. Each round's commit is titled with its pass's name in lower case:Answer full scan round 1: …. loop-claude's judge reads your~/.claude/CLAUDE.mdbeside the project'sAGENTS.mdanddocs/decisions.md. It no longer interrupts for a choice that file settles, and it answers the worker's questions from it.loop-claude's judge holds a chunk open until each answer you typed in it that a later chunk could need is recorded. An answer counts as recorded once the README's goals or audience,AGENTS.md,docs/decisions.mdor~/.claude/CLAUDE.mdhold it. It also counts once the transcript shows the worker writing it into the README's goals or audience,AGENTS.md,docs/decisions.md,todo.mdor a code comment. The worker writing to~/.claude/CLAUDE.mddoes not count, since new rules there are yours. The resumed worker is told this rule.loop-claudearchives each answer the judge quotes, with the question it answers and its UTC time, in<sha256>.outcomes.md.- larv-review keeps its three-round cap across a resumed session. It closes each review round with a commit naming the pass and the round, empty when the round changed nothing, and counts rounds from the branch's own commits.
- larv-review runs
/security-reviewin a subagent, so the run goes on to the next pass without you prompting it. - larv-review asks once before the full security scan: it states the evidence and its recommendation, and
claude-security's cost prompt is the ask. loop-claudeaccepts the judge's quote of the transcript when it elides with an ellipsis and the transcript holds each fragment in order. The transcript the judge reads, and the worker's printed output, show tool input with its non-ASCII characters as written, so the judge can quote it.- Unless another Exempt reason fits, larv-review marks a
todo.mditem filed from a 🟡 finding against~/.claude/principles/withprinciple, an Exempt reason that keeps it whatever its score. loop-claude's judge reads the project'sAGENTS.mdanddocs/decisions.mdbeside the README's goals and audience, and does not interrupt for a choice they settle. When the worker asks a question that the README or those files answer, the worker resumes with the judge's quote of the answer, whichloop-claudeprints. A quote they do not hold word for word is dropped, and the question goes to you. So does a question asked again after its answer. The fourth question they answer in one cycle goes to you too, with the quote. The judge reads as much of the transcript's end as fits a 400,000-character prompt, up from the last 40,000 characters.loop-claudeexits 1 whenAGENTS.mdordocs/decisions.mdcannot be read or is not UTF-8.- A project's decision log is
docs/decisions.mdalone, the one file the judge,rank_todo.pyand the reviewers read. loop-claudewaits out a usage limit and retries: 2 minutes past the reset, or every 10 minutes when the reset time is unknown. A limit is not a failure, and restarts the count of three failures in a row. It prints what claude said about the limit and when the next try is due.- Add the official plugin marketplace and install every plugin
settings.jsonenables (README → Install):claude-security,code-reviewandrust-analyzer-lsp, which needsrust-analyzeronPATHfor Rust projects. Withclaude-security, larv-review's full security scan runs once you confirm its cost; an unattended larv-review reports the scan as not run.settings.jsonsilences the plugin's scan tip aftergit push. - systems-architect and product-owner-reviewer can no longer edit what they review; stability-reviewer keeps its shell to run tests, and loses Claude Code's file-editing tools.
- Every project's
todo.mdtakes one shape, and larv-review's gate checks it: one table of items, each scored by the formula and goal weights the file states and held to its bar, an item under the bar dropped unless its Exempt cell says why.bin/rank_todo.pyranks the table, andrank_todo.py --helpshows a valid file. - Run
loop-claudeonly in a sandbox with no direct access to production: every claude it starts skips every permission prompt. - First release:
README.mdstates what the checkout holds and needs,loop-claude --helpwhatloop-claudedoes. settings.json, the agents and the status line run unedited on any machine with README → Install's prerequisites; the status line shows reset times in the machine's own time zone.loop-claude's no-premises exit names what is wrong:README.mdunopenable or not UTF-8, a## Goalsor## Audienceheading missing or repeated, or nothing under one.loop-claudesays why when it cannot read or write~/.claude.jsonbefore an interrupt, naming aprojectsentry that is not an object, and the interrupt then lands in Claude Code's trust dialog.loop-claudeskips a transcript line it cannot parse, exits 1 naming a transcript it cannot read, and counts aclaudeit cannot start as a failed worker run.loop-claude's judge quotes the transcript for every verdict, and a verdict quoting nothing or interrupting without a question, or aclaudethe judge cannot start, is a failed judge run; aclaudethat cannot start for an interrupt exits 1.loop-claude's exit-2 message says what the human is needed for.loop-claudeexits 1 saying why whengit, or python for a reload, cannot start.loop-claude --helplists each exit cause on its own line, and when an edit toloop-claudebreaks its reload, the exit-1 message names what the edited script could not read.loop-claudeshows the judge's reply when it rejects the judge's verdict.loop-clauderetries a failed worker within its cycle.loop-claudecounts an interrupt reply starting with<as typed.loop-claude's judge sees a reply the human types while claude works, and an interrupt counts one as typed.loop-claudearchives the raw.jsonltranscript at every interrupt and as every cycle ends, Ctrl-C and failures included, in one folder per chunk. Each distinct transcript is kept once, named by its SHA-256. Beside it,<sha256>.outcomes.mdholds the verdict, with the transcript passage the judge rested it on, and why the loop stopped. The verdict and the stop each open with their UTC time. The subagents' transcripts and the session's other files go in the chunk folder'ssession/subfolder.loop-claudeexits 1 when it cannot archive.loop-claudeexits 1 when it cannot delete a finished chunk's session, naming what to delete before rerunning; the next chunk would otherwise resume it.loop-claudekeeps the mode of~/.claude.jsonand of its models file when it rewrites them, and creates the models file 0600.