diff --git a/CHANGELOG.md b/CHANGELOG.md index 73fd0fe7..8820c079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Every goal in `README.md` โ†’ Goals is marked `**Maintain:**`, a state to hold, or `**Achieve:**`, a direction to pursue. Each achieve goal has a signal, a counter-signal and a one-line reason under it. A change that breaks a maintain goal is redesigned or dropped, whatever it scores: `rules/todo-items.md` says so, and larv-review's goal alignment step no longer merges such a PR. `rules/goals-and-audience.md` states the form for every project's README; `rank_todo.py` still reads the goals as before. Expect larv-review to stop a PR on a maintain goal where it asked you before. + ## 0.1.0 - `todo.md`'s items table has a Blocked by column, right after Release, listing the IDs of the items that must be done before an item starts, such as `12, 14`. Move every machine to this release before any of them ranks a plan another machine shares: an older release reads the new table as no plan. `rank_todo.py` ranks each blocker above every item it blocks, drops an ID once that item leaves the table, and adds the column to a table without it. It does not turn a line such as "Needs 12" in an item's detail into a Blocked by cell; move each into the column by hand. It now fails on text beside the table under `## Items`, such as a line naming items to take first: put an order in the scores or the column. It reads the table's cells by column name, and fails on a column it does not know rather than drop it. `loop-claude` routes a chunk on the next release's first item that is neither marked `question` nor blocked by an item still in the table, which is the item the worker takes, so the first cycle runs on that item's rung. diff --git a/README.md b/README.md index cfe28c38..6f0ae151 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,30 @@ My personal `~/.claude`, version controlled: `CLAUDE.md`, `AGENTS.md` and `rules ## Goals -1. Get the highest quality out of Claude Code while interrupting me the least, so development scales. - 1. Proven, stellar output quality: code, documentation and plans. - 2. Decide by the project's goals when confident; ask me when not, and never the same thing twice. - 3. The same rules in every project and every session. - 4. Add cost only where it meaningfully raises quality; otherwise work to lower cost. - 5. Delivery speed. -2. Make my claude setup shareable between computers. -3. Keep my claude setup and the transcripts of unattended runs, the bench's included, backed up. -4. Leak nothing to the remote โ€” no credentials, no transcripts, no memory files. +1. **Achieve:** Get the highest quality out of Claude Code while interrupting me the least, so development scales. + - Signal: interrupts of me per finished chunk fall. + - Counter-signal: findings that a later change fixes, per finished chunk, rise. + - Why: fewer asks buy nothing if the output gets worse. + 1. **Achieve:** Proven, stellar output quality: code, documentation and plans. + - Signal: ๐Ÿ”ด and ๐ŸŸก findings that review raises per chunk fall. + - Counter-signal: later changes that fix a chunk's code rise. + - Why: review findings show the first draft's quality, later fixes show what review missed. + 2. **Achieve:** Decide by the project's goals when confident; ask me when not, and never the same thing twice. + - Signal: asks that a goal or decision already settled fall to zero. + - Counter-signal: decisions I reverse rise. + - Why: guessing instead of asking saves an interrupt only if the guess holds. + 3. **Maintain:** The same rules in every project and every session. + 4. **Achieve:** Add cost only where it meaningfully raises quality; otherwise work to lower cost. + - Signal: tokens per finished chunk fall. + - Counter-signal: review rounds or unfinished verdicts per chunk rise. + - Why: a cheaper run that needs more rounds costs more. + 5. **Achieve:** Delivery speed. + - Signal: hours from a chunk's start to its merge fall. + - Counter-signal: ๐Ÿ”ด findings per chunk rise. + - Why: speed bought by skipping review shows up as defects. +2. **Maintain:** Make my claude setup shareable between computers. +3. **Maintain:** Keep my claude setup and the transcripts of unattended runs, the bench's included, backed up. +4. **Maintain:** Leak nothing to the remote โ€” no credentials, no transcripts, no memory files. ## Audience diff --git a/docs/decisions.md b/docs/decisions.md index 6c3f1194..05993bf2 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -124,7 +124,7 @@ Valid while the ladder orders its rungs by competence. 2026-10-02, lilleman. Serves goal 1: findings were filed faster than chunks closed them, so the plan grew without telling what mattered. Each item is scored as `~/.claude/rules/todo-items.md` says; this repo's formula counts value highest and size least. An item under the bar is not kept; this repo's bar started at 10 and was set to 9 the same day, purging the 17 items under it. An Exempt cell keeps a row past the bar where a rule needs it kept. lilleman retired the two decisions whose plans the purge removed: the stats line in the transcript archive, and three benches before a workflow change merges. A finding under the bar is recorded nowhere, so a later review may raise it again, and the run rescores it. That costs one scoring; a ledger of dropped findings would regrow the list the bar caps. larv-review's "Round cap" โ†’ "Done" counts a finding named under the bar as settled, so one raised again holds no pass open. `rank_todo.py --check` is part of larv-review's gate, since only a check keeps the stored Score from going stale. The format is mandatory in every project, as the premises are (goal 1.3); the formula, bar and weights are each project's own. A script ranks the table so a re-rank after each addition or edit is deterministic and cheap. A ๐ŸŸก against a technical principle is exempt as `principle`, because its audience value scores low and the bar would drop every one. A ๐ŸŸข against a principle is scored like any other finding. 2026-10-08, lilleman: the goal weights in `todo.md` depart from an even spread by position, which would weigh goal 4, leaking nothing, at 0.11. Valid while one human sets the bar and reads the ranking, and while the items marked `principle` stay few enough to rank. -2026-10-15, lilleman: the scores get a researched method, which `todo.md` items 146, 148, 149, 150, 151 and 152 build; the evidence is in `docs/scoring-and-goals-research.md`. R becomes L + E + I โˆ’ 2: the chance the change holds a defect, set first by its size; the chance the defect escapes tests, review and monitoring; and the worst impact dimension, each about ร—10 per level. I5, irreversible, holds R at 7 or more, and I4 at 5 or more, since a severe enough consequence outranks how unlikely it is. C goes from every table and tool: what it scored beyond size, spread and novelty, which L already holds, is complexity, which adds almost nothing once size is accounted for. A task's R alone then picks its rung. Items rank by V / C, value per cost: C is 2^S, and V sums each cited achieve goal's sum-reciprocal weight times how far the item moves it. A goes, and the Audience says whose value the goals serve. R stays out of the ranking and sets how carefully an item is done; an item that lowers risk scores it as value. Each release fills by priority up to a capacity it states, in place of the bar. Each README goal is `maintain`, which vetoes an item that breaks it, or `achieve`, with a signal, a counter-signal and a one-line reason, and each project keeps settled decisions to test its goals against. Until these items ship, the formula and bar above hold. +2026-10-15, lilleman: the scores get a researched method, which `todo.md` items 146, 148, 149, 151 and 152 build; the evidence is in `docs/scoring-and-goals-research.md`. R becomes L + E + I โˆ’ 2: the chance the change holds a defect, set first by its size; the chance the defect escapes tests, review and monitoring; and the worst impact dimension, each about ร—10 per level. I5, irreversible, holds R at 7 or more, and I4 at 5 or more, since a severe enough consequence outranks how unlikely it is. C goes from every table and tool: what it scored beyond size, spread and novelty, which L already holds, is complexity, which adds almost nothing once size is accounted for. A task's R alone then picks its rung. Items rank by V / C, value per cost: C is 2^S, and V sums each cited achieve goal's sum-reciprocal weight times how far the item moves it. A goes, and the Audience says whose value the goals serve. R stays out of the ranking and sets how carefully an item is done; an item that lowers risk scores it as value. Each release fills by priority up to a capacity it states, in place of the bar. Each README goal is `maintain`, which vetoes an item that breaks it, or `achieve`, with a signal, a counter-signal and a one-line reason, as this README's Goals now mark them; each project keeps settled decisions to test its goals against. Until these items ship, the formula and bar above hold. 2026-10-15, lilleman. Serves goal 1.4: loop-claude routes a chunk's first cycle on the item the chunk takes (`routing: one ladder`). An item lists the items that must be done before it starts in a Blocked by column, and `rank_todo.py` ranks each blocker above every item it blocks. The table's order is `todo.md`'s only order: `rank_todo.py` fails on text beside the table under `## Items`, since a prose order there, "Release 0.3.0 takes items 125, 114 and 124 first", contradicted the table and loop-claude could not read it. A decision that wants an order sets the scores instead. An item waits while it is marked `question` or a blocker of it is still in the table, whatever the rows' order, so a release's first row that does not wait is the item a chunk takes. A blocker the table no longer holds was finished or deleted, and is dropped, so the cell shows what still blocks. A panel of three readers seated as lilleman picked the spelling: two ranked "Blocked by" first, as the cell lists only what still blocks, and all three chose bare IDs such as `12, 14` in a column right after Release, read before the tagline and kept apart from the scores. `rank_todo.py` adds the column to a table without it. The tools read cells by column name, so a later column leaves a reader on an older release working; `rank_todo.py`, which writes every column, fails on one it does not know rather than drop it. diff --git a/rules/goals-and-audience.md b/rules/goals-and-audience.md index 8b12df2b..9c06088d 100644 --- a/rules/goals-and-audience.md +++ b/rules/goals-and-audience.md @@ -6,4 +6,5 @@ paths: # Goals and Audience - **Goals** state the project's aim and intent, not promises: one numbered line each, like slogans, in priority order; a sub-goal is indented under its goal โ€” "1. Blazing fast performance. 2. Correctness is more important than many features." A goal names no step of the work, such as a check to run first, and rarely an implementation. How a goal is met goes in a method section further down the README and names the goal it serves. BANNED as a goal: `Kill weak candidates early, with the cheap checks first.` GOOD: the goal `Keep research on a budget, so it scales in both time and cost.`, with the cheap checks moved to the method section, naming that goal. +- **Mark each goal `**Maintain:**` or `**Achieve:**`.** A maintain goal is a state to hold: a change that breaks it is redesigned or dropped, whatever its value to other goals. An achieve goal is a direction to pursue, weighed against the other achieve goals. Under each achieve goal, three indented bullets: `Signal:` what moving towards it looks like, `Counter-signal:` what shows it is bought at a wrong price, and `Why:` one line on how the two connect. A goal with sub-goals states its own signal. A maintain goal has no bullets. BANNED: an unmarked goal; an achieve goal with no signal; `**Achieve:** Delivery speed.` with the signal `faster`. GOOD: `**Achieve:** Delivery speed.` with `Signal: hours from a chunk's start to its merge fall.`, `Counter-signal: ๐Ÿ”ด findings per chunk rise.` and `Why: speed bought by skipping review shows up as defects.` - **Audience** names who depends on the project and what they may rely on. diff --git a/rules/todo-items.md b/rules/todo-items.md index 7a555264..036fbfdf 100644 --- a/rules/todo-items.md +++ b/rules/todo-items.md @@ -19,4 +19,5 @@ paths: - **Read the places the comprehension seats found hard before filing an item.** `~/.claude/bin/larv-review places`, run in the project, prints them. Where the item's change touches one, its detail says to make that place easier to read. - **An item scoring under the bar is deleted, with every item that needs it, and a finding under the bar is not filed.** The chunk's summary names each, with its score. - **The Exempt cell keeps an item whatever its score:** `security` for a security finding, `defect` for a ๐Ÿ”ด finding, `question` for a question only the human can answer, `decision` for an item `docs/decisions.md` cites, `owner` for an item the human told you to keep, and, where no other reason fits, `principle` for a ๐ŸŸก finding against a file under `~/.claude/principles/`, whose item's detail names that principle. Every item `docs/decisions.md` cites carries one of these reasons. +- **A maintain goal vetoes an item that breaks it,** whatever the item scores: redesign the item so it holds the goal, or drop it. - **Unless the project has a reason to differ, weigh goals by position, the first heaviest.** When the weights stop listing the README's goals, `rank_todo.py` fails and prints those weights. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index d3a81c94..b548efa4 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -154,7 +154,7 @@ Launch prose-reviewer with what the diff touched and every section this review c ## 5. Goal alignment, then merge -1. Read the finished PR against the README goals: does anything in it work against one? Misaligned โ†’ do not merge; ask the human, stating the conflict. +1. Read the finished PR against the README goals: does anything in it work against one? It breaks a maintain goal โ†’ do not merge; redesign the change or drop its item. It works against an achieve goal โ†’ do not merge; ask the human, stating the conflict. 2. Run the comprehension check (ยง3) where it runs; it runs once. When `origin/` moves after that, return to ยง4, and keep the ruling and scoring run already recorded. 3. Aligned, every pass done and everything green โ†’ **merge**. Follow the repo's merge method (`AGENTS.md`; ff-only where that is the convention). A repo withholds this in its `AGENTS.md` โ†’ leave the PR ready and unmerged, and say which line withheld it. 4. Merged โ†’ remove the chunk's items from `todo.md` per `~/.claude/CLAUDE.md` โ†’ "Working loop". diff --git a/todo.md b/todo.md index 964435f7..33156689 100644 --- a/todo.md +++ b/todo.md @@ -24,12 +24,11 @@ | ID | Release | Blocked by | Exempt | Item | R | S | C | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 150 | 0.2.0 | | decision | **Make each README goal `maintain` or `achieve`, give each achieve goal a signal, a counter-signal and a one-line reason, and have a maintain goal veto an item that breaks it.** | 3 | 3 | 4 | 7 | 8 | 1.2 | 25.9 | -| 148 | 0.2.0 | 150 | decision | **Rank items by V / C, where C is 2^S and V sums each cited achieve goal's sum-reciprocal weight times how far the item moves it, and drop A.** | 5 | 5 | 6 | 7 | 8 | 1.1, 1.2 | 23.6 | +| 148 | 0.2.0 | | decision | **Rank items by V / C, where C is 2^S and V sums each cited achieve goal's sum-reciprocal weight times how far the item moves it, and drop A.** | 5 | 5 | 6 | 7 | 8 | 1.1, 1.2 | 23.6 | | 146 | 0.2.0 | | decision | **Score R as L + E + I โˆ’ 2 from anchored levels, at least 7 at I5 and 5 at I4, with L, E and I in their own columns and `rank_todo.py` computing R, drop C, and route a task's model and effort on its R alone.** | 6 | 7 | 7 | 7 | 8 | 1.1, 1.2, 1.4 | 22.1 | | 152 | 0.2.0 | 146, 148 | decision | **Anchor each score level in `rules/todo-items.md` with words, and each project's with two or three items it shipped, and have a scorer compare a new item against them.** | 2 | 4 | 3 | 6 | 7 | 1.1, 1.3 | 22.9 | | 149 | 0.2.0 | 148 | decision | **Fill each release by priority up to a capacity it states, in place of the bar, and move what does not fit to a later release.** | 3 | 3 | 3 | 6 | 7 | 1.1 | 22.1 | -| 151 | 0.2.0 | 150 | decision | **Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes.** | 3 | 5 | 5 | 6 | 7 | 1.2 | 21.5 | +| 151 | 0.2.0 | | decision | **Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes.** | 3 | 5 | 5 | 6 | 7 | 1.2 | 21.5 | | 105 | 0.2.0 | | decision | **Compare review rounds per pass and reading cost for the five chunks before and after the `worker:` decision moved the principles out of the worker's context, and file an item if either rose.** | 1 | 2 | 3 | 5 | 6 | 1.4 | 20.0 | | 154 | 0.2.0 | | defect | **Have `bin/shell_command.py`'s `segments` keep a command's words together across a redirect, so `git > out commit` reads as one git commit.** | 2 | 2 | 3 | 5 | 6 | 1.3 | 19.1 | | 112 | 0.2.0 | | | **Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome.** | 2 | 3 | 5 | 5 | 6 | 1.1 | 19.1 | @@ -88,10 +87,6 @@ ## Details -### 150. Make each README goal `maintain` or `achieve`, give each achieve goal a signal, a counter-signal and a one-line reason, and have a maintain goal veto an item that breaks it. - -`rules/goals-and-audience.md` states the form, with a GOOD and a BANNED example of each. The Audience says whose value the goals serve. A maintain goal is weighed by none of the scores: an item that breaks one is redesigned or dropped. A new spelling of a goal line is something the human reads and writes, so a panel picks it, as `CLAUDE.md` โ†’ "Working loop", "Bench a syntax with the people who write it" says. - ### 148. Rank items by V / C, where C is 2^S and V sums each cited achieve goal's sum-reciprocal weight times how far the item moves it, and drop A. A goal ranked k of n weighs (1/k) / (1 + 1/2 + โ€ฆ + 1/n). An item that moves a goal by M, 1 to 10, adds weight ร— M to V. S stays 1 to 10, each step about ร—2.5 in lines changed, which `docs/scoring-and-goals-research.md` โ†’ "This repo's own measurements" found. R stays out of the ranking. The Goal weights table goes from `todo.md`, since the rule derives them.