|
|
|
@@ -33,7 +33,7 @@ No remote → review locally and say so in the summary.
|
|
|
|
|
|
|
|
|
|
**Reading cost.** Run `~/.claude/bin/reading-cost` in the chunk's worktree, unless loop-claude's prompt shows that `chunk-preflight` already ran it there, and commit what it appends to `docs/reading-cost.md`; the commit re-enters no pass. Resolve a merge conflict in that file by putting the default branch's figures first and dropping a figure for a chunk the default branch already holds. On `Rising:`, file a plan item titled `**Lower the reading cost of the files a chunk reads most before its first commit.**`, scored per `~/.claude/rules/todo-items.md` with the tool's medians and files as its detail; where the plan already holds it, leave it as it is: `docs/reading-cost.md` holds the figures. The item names the next release, or the one after when this chunk ships the next release's last item. On exit 1, repair what its message names and run it again; when the message names no repair, file it as a `question` item, or refresh the question item an earlier run filed, and go on. Leave the plan as it is on any other output. The chunk that ships that item runs the tool with `--reset` instead, so the next rise is measured on chunks that finished after it.
|
|
|
|
|
|
|
|
|
|
**Tests and static analysis.** Where the branch changes code, config or tests, before each stability round: search the project's Markdown, the help and error text in code, and the comments beside the code for each flag, name, path and number the change renames, removes or changes, and fix each line it made false. Search too for each builtin, flag or option the change adds: take each range or set of inputs its docs state and run the command once with a value just outside it, such as a date past the years it supports, in a fresh clone, under the Run and Limits bullets of §3 → "Claimed output". Where the output is empty, an error or a clamp, the docs must name that result: fix each line that leaves it unsaid, and keep the run for §3's hand-over. Commit, then run the project's test suite and static analysis in the chunk's worktree as its README documents them, and fix a failure before going on. Hand stability-reviewer the commit they last passed on; a fix from the mutation tests below moves the head, so run them again after it, and the reviewer doesn't run them again on that commit.
|
|
|
|
|
**Tests and static analysis.** Where the branch changes code, config or tests, before each stability round: search the project's Markdown, the help and error text in code, and the comments beside the code for each flag, name, path and number the change renames, removes or changes, and fix each line it made false. For each builtin, flag or option the change adds, take each range or set of inputs its docs state. Run the command once with a value just outside it, such as a date past the years it supports, as the Run and Limits bullets of §3 → "Claimed output" say. Where it printed nothing, an error or a clamped value, fix each doc line that states the range so that it names that result, and keep the run for §3's hand-over. Commit, then run the project's test suite and static analysis in the chunk's worktree as its README documents them, and fix a failure before going on. Hand stability-reviewer the commit they last passed on; a fix from the mutation tests below moves the head, so run them again after it, and the reviewer doesn't run them again on that commit.
|
|
|
|
|
|
|
|
|
|
**Mutation tests.** Where the branch changes code, run the project's mutation command in the chunk's worktree, with every change committed, before each stability round: the one the project's README documents, else `~/.claude/bin/run-heavy ~/.claude/bin/mutate-changes --prefix '<how the project runs its tools>'`. `mutate-changes --help` says how to set `--prefix` and `--jobs`. Where a mutant of a changed line survives and changes behaviour, kill it: add or strengthen a test that fails on it, commit, and run the command again. Hand stability-reviewer what the last run printed, with the commit it ran on. On exit 1, repair what its message names and run it again; when you cannot, hand the reviewer the message.
|
|
|
|
|
|
|
|
|
@@ -79,7 +79,7 @@ Give a reviewer without Bash `git ls-files`'s output in its prompt, since some h
|
|
|
|
|
- **Run.** Run each claim's command in a fresh clone of the chunk's worktree at its head, with every change committed: `git clone <worktree> <folder>`, the folder in the chunk's review folder. The clone lacks the ignored build and cache files that earlier runs wrote, so a command that needs one fails there, as it does in a fresh checkout. Run the command the way the project runs its tools (its container setup, unless its config sets `tooling-on-host`), with the input that triggers the output the line describes, such as the input that raises the error.
|
|
|
|
|
- **Limits.** A command may change files in the clone only. Run none that changes a file elsewhere, or sends data out; list such a claim as `not run: <why>`.
|
|
|
|
|
- **Writes.** Run a claim about what a command writes like one about what it prints, and compare the file it writes with the claim, such as `git diff` in the clone against the claim about the diff. Hand over the file's relevant lines or the diff.
|
|
|
|
|
- **Hand over.** Write each claim into `claimed-output-round-<n>.md` in the chunk's review folder, `<n>` the round's number: its file and line, the command, the exit code and the real output (for a claim about what a command writes, the written lines or the diff), or `not run: <why>`. Add §2's out-of-range runs, each with the doc line that states the range; in round 2 take only those whose lines the round's fixes changed. Add `Claimed output: <that path>` to the prompts of the Product-owner and Prose reviewers. With no claim, write no file and add no line. Then remove the clone.
|
|
|
|
|
- **Hand over.** Write each claim into `claimed-output-round-<n>.md` in the chunk's review folder, `<n>` the round's number: its file and line, the command, the exit code and the real output (for a claim about what a command writes, the written lines or the diff), or `not run: <why>`. Add §2's out-of-range runs, each with the doc line that states the range; in round 2 take only those whose lines the round's fixes changed. Add `Claimed output: <that path>` to the prompts of the Product-owner and Prose reviewers. With no claim and no out-of-range run, write no file and add no line. Then remove the clone.
|
|
|
|
|
|
|
|
|
|
**Precedent, then ask** — for the full scan:
|
|
|
|
|
|
|
|
|
|