From d671053b21133c8c2140ad04c7db000e5a751cc8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 22:09:40 +0200 Subject: [PATCH 1/2] Plan a researched scoring method, and keep its evidence in docs/scoring-and-goals-research.md --- docs/decisions.md | 2 + docs/scoring-and-goals-research.md | 55 +++++++++++++++++++++++++ todo.md | 64 ++++++++++++++++++++++++------ 3 files changed, 109 insertions(+), 12 deletions(-) create mode 100644 docs/scoring-and-goals-research.md diff --git a/docs/decisions.md b/docs/decisions.md index 9ad6a35e..a2f0b8f5 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -128,6 +128,8 @@ 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, 147, 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. + ## todo.md: only a session or subagent on the project's rung or above scores or reshapes the plan; one below it drafts new items and changes to filed ones for a subagent at or above that rung to apply and score, and removes finished ones 2026-10-15, lilleman. Serves goal 1.1: a cheaper rung writes worse scores, and a wrong score routes a chunk onto the wrong rung, ranks the plan wrong and drops an item under the bar that should stay. Below the project's rung, a session or subagent may not score an item, move it between releases, split a milestone, delete an item under the bar, or rewrite a filed item. It drafts each new item, and each change to a filed item, such as a refresh a rule asks for. Before the next commit, one subagent on the project's rung or above applies and scores the drafts. One launch covers all of a chunk's drafts (goal 1.4). A security finding gets that subagent at once, since it is filed the moment it is found. Removing a finished item closes work and plans none, so any rung does it. Scoring a delegated task's R + C runs on any rung too: a launch on the project's rung to score each delegation would cost more than the cheaper task saves (goal 1.4). diff --git a/docs/scoring-and-goals-research.md b/docs/scoring-and-goals-research.md new file mode 100644 index 00000000..41626f39 --- /dev/null +++ b/docs/scoring-and-goals-research.md @@ -0,0 +1,55 @@ +# Scoring and goals research + +The evidence behind how `todo.md` scores an item and how a README states its goals. Read it only when changing that method; daily work needs only `rules/todo-items.md` and `rules/goals-and-audience.md`. `docs/decisions.md` → `todo.md: …` records what was chosen from it. Gathered on 2026-10-15 by web research; a source marked † was read only as an abstract or a secondary summary. + +## Risk is likelihood, escape and impact, added on log scales + +- **Multiplying 1–10 labels misleads.** FMEA's risk priority number, S × O × D, gives one product for different risks (2×6×5 = 3×4×5), because ordinal codes carry order, not size (Stevens 1946, *Science* 103:677). AIAG-VDA replaced it in 2019 with a lookup that ranks severity first†. Risk matrices compress ranges and can rank worse than chance when likelihood and impact move oppositely (Cox 2008, *Risk Analysis*, doi:10.1111/j.1539-6924.2008.01030.x). +- **Give each level a real quantity, about ×10 per step, and add the levels.** Adding log-scale levels multiplies the underlying probability and cost, which is what risk is (Kaplan & Garrick 1981, *Risk Analysis*, doi:10.1111/j.1539-6924.1981.tb01350.x†). +- **Take the worst impact dimension, not a sum.** NIST defines impact level as "the assessed worst-case potential impact" (csrc.nist.gov/glossary/term/impact_level). CVSS v4 buckets impacts by their High values (first.org/cvss/v4-0/specification-document). +- **Impact dimensions:** confidentiality, integrity and availability (CVSS v4); reach, the people and systems a failure spreads to (NIST; CVSS "subsequent systems"; Hyrum's law, hyrumslaw.com); reversibility, one-way versus two-way doors (Bezos, 2015 shareholder letter); duration, until users stop feeling pain (Google Cloud blog, 2019). +- **Count detection once, as its own axis.** FMEA rates detection apart from severity†. DORA's change failure rate measures likelihood, not impact (dora.dev/guides/dora-metrics). + +## What predicts that a change brings a defect + +Every study below predicts from the diff or history, none from a description, so for a planned item these are priors. + +1. **Size**, the strongest. Added lines alone beat CC2Vec and DeepJIT on over 310,000 changes (Zeng et al. 2021, ISSTA, doi:10.1145/3460319.3464819). Relative churn predicts well (Nagappan & Ball 2005, ICSE†). +2. **Spread** across subsystems, directories and files (Kamei et al. 2013, TSE, doi:10.1109/TSE.2012.70†; Hassan 2009, ICSE, change entropy†). +3. **Defect history** of the touched code: about a tenth of files held 73–95% of faults (Kim et al. 2007, ICSE†). +4. **Familiarity and ownership** (Bird et al. 2011, FSE†; contested in open source, Foucault et al. 2014†). +5. **Review coverage and participation** (McIntosh et al. 2016, EMSE). +6. **Live config or infrastructure as code.** About 70% of Google's outages come from changes to a live system (sre.google/sre-book/introduction). Syntax and configuration defects were 36.5–62.7% of IaC defects at four organisations (Rahman et al. 2018, arXiv:1809.07937). +7. **New technology or AI-written code**, with mixed evidence (Pearce et al. 2022, S&P†; Perry et al. 2023, CCS†; Spracklen et al. 2025, USENIX Security). + +Complexity metrics add almost nothing once size is accounted for (El Emam et al. 2001, TSE, doi:10.1109/32.935855†). So a separate difficulty score beside size, spread and novelty measures nothing new. + +## Value per cost, not a sum + +- **Order by value over cost.** Weight over duration minimises total weighted waiting time on one machine (Smith's rule, 1956†); WSJF is that rule with cost of delay as the weight (Reinertsen, *The Principles of Product Development Flow*, 2009). An additive score has no such derivation, and its order changes with the unit of size. +- **WSJF counts reducing risk as value** (framework.scaledagile.com/wsjf). +- **No source grounds a fixed score bar.** DSDM fills a timebox by priority up to its capacity† (MoSCoW, DSDM v4.2, 2006). +- **Pairwise comparison is the best-supported method** (Karlsson, Wohlin & Regnell 1998, IST, doi:10.1016/S0950-5849(97)00053-0; Bukhsh et al. 2020, *Computer Standards & Interfaces*, doi:10.1016/j.csi.2019.103389). +- **LLM scorers:** absolute ratings bunch near the middle or top (arXiv:2509.24678†); pairwise prompting beat pointwise by over 10% on document ranking (Qin et al., arXiv:2306.17563); worked examples cut story-point error about 59% (Tawosi et al., arXiv:2403.08430†); swapping the order of two candidates can flip a judgement (Wang et al., arXiv:2305.17926). + +## Goals and audience + +Almost none of this is tested on software projects; the firmer evidence is goal-setting in general. + +- **Specific, difficult goals beat vague ones** (Locke & Latham 2002†; Epton et al. 2017, 141 RCT papers, d = .34†). A narrow goal neglects what it leaves out (Ordóñez et al. 2009, "Goals gone wild"†), and a metric made a target gets gamed (Manheim & Garrabrant 2018, arXiv:1803.04585). +- **Maintain goals differ from achieve goals.** KAOS separates goals that hold a state from goals that reach one (van Lamsweerde 2001, RE'01). Anthropic's constitution keeps its hard limits outside its weighing (anthropic.com/constitution). +- **Weights from a ranking:** against weights people actually gave, sum-reciprocal weights did best and rank-order centroid worst of the rank rules (Burk & Nehring 2023, *Decision Analysis*†). +- **Written guidance can fail to change behaviour.** Repository context files did not generally raise agents' task success and added over 20% inference cost (arXiv:2602.11988†), so a project's goals need a test that they still decide cases. +- **Personas** have uneven, weakly evidenced use (Nielsen & Hansen 2014, CHI†; arXiv:2403.15917). + +## Calibrating scores against outcomes + +- **Log each guess with an outcome window fixed in advance**, such as a 🔴 in review or a later fix within N days, and compare guesses with what happened. The Brier score measures it (Brier 1950, doi:10.1175/1520-0493(1950)078<0001:VOFEIT>2.0.CO;2†); Murphy (1973†) splits it into reliability (do L3 items fail about as often as L3 says?) and resolution (do higher scores fail more?). +- **When a level misses by a factor of ten, fix its anchor, not the formula**, as reference-class forecasting corrects estimates against similar past cases (Flyvbjerg 2006†; Lovallo & Kahneman 2003†). +- **Anchor each level to observable cases**, two or three already built (Smith & Kendall 1963, "unambiguous anchors for rating scales"†), and keep the axes' weights equal (Dawes 1979†). +- **Expect overconfidence:** people's "90%" ranges hold about 11 times in 20 (Hubbard, *How to Measure Anything*†). +- **Routing confounds outcomes:** a high score buys more review, which finds more. Meta randomised review on a slice of risky diffs to measure it (arXiv:2410.06351†). + +## This repo's own measurements + +`score-outcomes` on 2026-10-15: the median lines changed by a chunk at guessed S 3, 4, 5, 6 and 7 were 16, 78, 160.5, 511.5 and 1149, roughly ×2.5 per step. diff --git a/todo.md b/todo.md index 167ffc67..bbfba295 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 9` -`Next ID = 146` +`Next ID = 153` | Goal | W | |---|---| @@ -28,14 +28,20 @@ Release 0.3.0 takes items 125, 114 and 124 first, whatever their scores: Shape i |---|---|---|---|---|---|---|---|---|---|---| | 143 | 0.1.0 | | **Resume a worker one rung up in the next cycle when its run ends asking for a higher rung and the judge finds the escalation trigger it cites in the transcript.** | 5 | 5 | 7 | 6 | 7 | 1.1, 1.4 | 19.6 | | 136 | 0.1.0 | decision | **Route a chunk on the item its worker says it takes, in place of the next release's first row.** | 2 | 3 | 4 | 4 | 5 | 1.4 | 14.8 | +| 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 | 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.** | 5 | 6 | 6 | 7 | 8 | 1.1, 1.2 | 23.3 | +| 152 | 0.2.0 | 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 | 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 | 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 | | 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 | -| 110 | 0.2.0 | | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed R.** | 2 | 4 | 6 | 5 | 6 | 1.1, 1.4 | 18.9 | +| 110 | 0.2.0 | | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E.** | 2 | 4 | 6 | 5 | 6 | 1.1, 1.4 | 18.9 | +| 147 | 0.2.0 | decision | **Drop C from every `todo.md`, `score-outcomes` and the routing, and route a task's model and effort on its R alone.** | 6 | 6 | 6 | 6 | 7 | 1.1, 1.4 | 18.4 | | 115 | 0.2.0 | question | **Confirm or set how many finished chunks that each shipped one item `score-outcomes` waits for before it shows a score's medians, today 10.** | 1 | 1 | 2 | 4 | 5 | 1.2 | 16.6 | -| 116 | 0.2.0 | | **Report R by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴.** | 1 | 2 | 2 | 4 | 5 | 1.1 | 16.4 | +| 116 | 0.2.0 | | **Report L by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴.** | 1 | 2 | 2 | 4 | 5 | 1.1 | 16.4 | | 111 | 0.2.0 | | **Measure the chunks of a project that merges by squash or fast-forward, which `score-outcomes` skips today.** | 3 | 3 | 5 | 4 | 5 | 1.3 | 13.9 | | 113 | 0.2.0 | | **Compute an item's S from the code it names, where it names any, and show it beside the finished items `score-outcomes` lists.** | 3 | 4 | 6 | 4 | 5 | 1.1, 1.4 | 13.9 | -| 118 | 0.2.0 | | **Have `score-outcomes` count review rounds only from chunks merged after 2026-10-13, when review passes were narrowed, so C's medians compare chunks reviewed under one rule.** | 2 | 2 | 3 | 3 | 4 | 1.4 | 11.2 | | 120 | 0.3.0 | | **Rewrite larv-review §3's "Round cap" and "Re-entry" as one table that says, for each kind of fix, which passes rerun and what a round reviews.** | 2 | 4 | 5 | 5 | 6 | 1.1, 1.2 | 18.9 | | 121 | 0.3.0 | | **Check that `bin/round_titles.py`'s `PASSES` lists exactly the passes of larv-review §3's table.** | 1 | 3 | 2 | 4 | 5 | 1.1, 1.3 | 16.1 | | 122 | 0.3.0 | | **Assemble the judge's prompt in `bin/loop_claude/cycle/judge.py`, importing only wording the worker also sees, and call the worker "the worker" in it.** | 3 | 4 | 4 | 4 | 5 | 1.1 | 13.9 | @@ -99,6 +105,40 @@ loop-claude routes on the first row of the next release, while the worker takes Once this lands, the judge follows the item the worker takes too, since `judge_rung` routes on the chunk's item. +### 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` → "Bench a syntax" 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. + +Needs 150. 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. + +### 146. 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. + +Each level is about ×10 of a real quantity; `docs/decisions.md` → `todo.md: …` says why. The anchors, for `rules/todo-items.md`: + +| Level | L — chance the change holds a defect | E — chance the defect escapes | I — damage, worst of availability, data, secrets, reach and reversibility | +|---|---|---|---| +| 1 | S 1–2, and nothing new | a test or the gate fails on it | one person's tooling or something cosmetic; a revert fixes it in minutes | +| 2 | S 3–5, in one component, a pattern the repo already has | only review or a manual check sees it | one feature or service degraded; a revert within the hour | +| 3 | one of: S 6 or more, several components, a new tool or pattern, live config or state | nothing checks it before users hit it | a service down, or every consumer affected; hours to restore | +| 4 | two or more of level 3's, or a rewrite of code with known defects | — | everything down, a backup restore, or a secret or PII exposed | +| 5 | — | — | irreversible: data lost for good, or a one-way door | + +`rank_todo.py` accepts a table in the old shape until its project reshapes it, and says so, so no project's commits stop the day this lands. Reshaping is then that project's chunk, as `CLAUDE.md` → "Working loop" says of a `todo.md` in another shape. + +### 152. 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. + +Needs 146 and 148. LLM ratings drift to the middle of an unanchored scale, and worked examples cut estimation error. A project's anchors are shipped items, cited by ID and commit, chosen from what `score-outcomes` measured for them. + +### 149. 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. + +Needs 148. A release's capacity is a sum of its items' C. Each project states its own; the human sets the first value per project. Nothing is deleted by score. + +### 151. Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes. + +Needs 150. Each case is a question the project settled and the answer it chose. A fresh-context agent given only the README's premises answers each case; a case it answers differently says the goals no longer decide it. Written guidance can fail to change behaviour, which is why the goals get a test. + ### 105. 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. The `worker:` decision is valid while review rounds per pass do not rise. Count the rounds from each PR's `Answer round :` commits, and take reading cost from `docs/reading-cost.md`. Run it once five chunks have merged after the one that recorded the decision. @@ -107,17 +147,21 @@ The `worker:` decision is valid while review rounds per pass do not rise. Count `score-outcomes` counts every item a merge removed from `todo.md` as shipped. A merge that changed only the plan ships nothing, but one that built an item and also dropped another gives the dropped item the built one's outcome, as PR #253 did with item 69. Mark a dropped item in the change that drops it, such as by the commit or merge title, and leave it out. -### 110. Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed R. +### 110. Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E. -`score-outcomes` measures R only by the 🔴 findings review caught. A serious bug review missed shows later, as a change that fixes code the chunk wrote. +`score-outcomes` measures risk only by the 🔴 findings review caught. A serious bug review missed shows later, as a change that fixes code the chunk wrote: the defect that escaped, which E guesses (item 146). + +### 147. Drop C from every `todo.md`, `score-outcomes` and the routing, and route a task's model and effort on its R alone. + +Needs 146. The bands that map R + C to a rung (`docs/decisions.md` → `routing: one ladder…`) become bands over R, spread across the R values the rescored plans hold. The bands are the human's call, so the chunk proposes them and waits. `CLAUDE.md`'s delegation rule, `subagent-rung`, `loop-claude`'s prompts and `score-outcomes` drop C with them. ### 115. Confirm or set how many finished chunks that each shipped one item `score-outcomes` waits for before it shows a score's medians, today 10. `ENOUGH` in `bin/score_outcomes/outcomes.py` matches the 10 figures the reading-cost trend waits for. No published standard sets either, and `CLAUDE.md` → "Web research" asks the human for a threshold a consumer relies on. -### 116. Report R by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴. +### 116. Report L by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴. -`score-outcomes` reports R as the median 🔴 count at each guessed R. Where most chunks have no 🔴, every median reads 0 and tells a scorer nothing. No round title held counts before PR #254, so how often a chunk has a 🔴 is not yet known. +`score-outcomes` reports risk as the median 🔴 count at each guessed R; with item 146 it is L a 🔴 tests. Where most chunks have no 🔴, every median reads 0 and tells a scorer nothing. No round title held counts before PR #254, so how often a chunk has a 🔴 is not yet known. ### 111. Measure the chunks of a project that merges by squash or fast-forward, which `score-outcomes` skips today. @@ -127,10 +171,6 @@ The `worker:` decision is valid while review rounds per pass do not rise. Count `score-outcomes` grounds R, S and C in finished chunks only. Where an item names files or units, their size bounds what the change can touch. -### 118. Have `score-outcomes` count review rounds only from chunks merged after 2026-10-13, when review passes were narrowed, so C's medians compare chunks reviewed under one rule. - -Since 2026-10-13 (`docs/decisions.md` → "review: stability and product-owner report only…"), reviewers report fewer findings and later rounds review only the answers to earlier ones, to cut rounds. A chunk merged before that date took more rounds for the same C, so mixing both eras skews C's medians. - ### 120. Rewrite larv-review §3's "Round cap" and "Re-entry" as one table that says, for each kind of fix, which passes rerun and what a round reviews. Junior A, Mid A and the maintainability senior of PR #257's scoring run named `skills/larv-review/SKILL.md:63` "Round cap" hardest, two of them with `:74` "Re-entry"; the inherited architect named `:71` "Cap". A reader holds the trigger table's "a fix, only where …" clauses, the cap, later rounds' scope and the prose, 🟢 and ❓ exceptions at once. Junior A could not say what a fix to a stability 🟡 that also touches a comment reruns. Make those sections easier to read. -- 2.52.0 From 45cb331a4998f098a09dd4e3aa71c98df2c6c947 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 15 Oct 2026 22:18:51 +0200 Subject: [PATCH 2/2] Ship dropping C with R's new method, as one item --- docs/decisions.md | 2 +- todo.md | 25 +++++++++++-------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/docs/decisions.md b/docs/decisions.md index a2f0b8f5..003641a8 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -128,7 +128,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, 147, 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, 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. ## todo.md: only a session or subagent on the project's rung or above scores or reshapes the plan; one below it drafts new items and changes to filed ones for a subagent at or above that rung to apply and score, and removes finished ones diff --git a/todo.md b/todo.md index bbfba295..8157475a 100644 --- a/todo.md +++ b/todo.md @@ -30,14 +30,13 @@ Release 0.3.0 takes items 125, 114 and 124 first, whatever their scores: Shape i | 136 | 0.1.0 | decision | **Route a chunk on the item its worker says it takes, in place of the next release's first row.** | 2 | 3 | 4 | 4 | 5 | 1.4 | 14.8 | | 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 | 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.** | 5 | 6 | 6 | 7 | 8 | 1.1, 1.2 | 23.3 | | 152 | 0.2.0 | 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 | 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 | +| 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 | | 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 | | 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 | | 110 | 0.2.0 | | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E.** | 2 | 4 | 6 | 5 | 6 | 1.1, 1.4 | 18.9 | -| 147 | 0.2.0 | decision | **Drop C from every `todo.md`, `score-outcomes` and the routing, and route a task's model and effort on its R alone.** | 6 | 6 | 6 | 6 | 7 | 1.1, 1.4 | 18.4 | | 115 | 0.2.0 | question | **Confirm or set how many finished chunks that each shipped one item `score-outcomes` waits for before it shows a score's medians, today 10.** | 1 | 1 | 2 | 4 | 5 | 1.2 | 16.6 | | 116 | 0.2.0 | | **Report L by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴.** | 1 | 2 | 2 | 4 | 5 | 1.1 | 16.4 | | 111 | 0.2.0 | | **Measure the chunks of a project that merges by squash or fast-forward, which `score-outcomes` skips today.** | 3 | 3 | 5 | 4 | 5 | 1.3 | 13.9 | @@ -113,7 +112,15 @@ Once this lands, the judge follows the item the worker takes too, since `judge_r Needs 150. 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. -### 146. 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. +### 152. 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. + +Needs 146 and 148. LLM ratings drift to the middle of an unanchored scale, and worked examples cut estimation error. A project's anchors are shipped items, cited by ID and commit, chosen from what `score-outcomes` measured for them. + +### 149. 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. + +Needs 148. A release's capacity is a sum of its items' C. Each project states its own; the human sets the first value per project. Nothing is deleted by score. + +### 146. 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. Each level is about ×10 of a real quantity; `docs/decisions.md` → `todo.md: …` says why. The anchors, for `rules/todo-items.md`: @@ -127,13 +134,7 @@ Each level is about ×10 of a real quantity; `docs/decisions.md` → `todo.md: `rank_todo.py` accepts a table in the old shape until its project reshapes it, and says so, so no project's commits stop the day this lands. Reshaping is then that project's chunk, as `CLAUDE.md` → "Working loop" says of a `todo.md` in another shape. -### 152. 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. - -Needs 146 and 148. LLM ratings drift to the middle of an unanchored scale, and worked examples cut estimation error. A project's anchors are shipped items, cited by ID and commit, chosen from what `score-outcomes` measured for them. - -### 149. 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. - -Needs 148. A release's capacity is a sum of its items' C. Each project states its own; the human sets the first value per project. Nothing is deleted by score. +C goes in the same chunk, so no reshaped table meets bands built for R + C: R alone runs 1 to 10, and the R + C bands would step most tasks well down the ladder. The bands (`docs/decisions.md` → `routing: one ladder…`) become bands over R, spread across the R values the rescored plans hold. The bands are the human's call, so the chunk proposes them and waits, and puts one option beside them: the worker routed on L and its reviewers on E + I, since impact makes a task riskier, not harder. `CLAUDE.md`'s delegation rule, `subagent-rung` and its `--plan`, loop-claude's chunk routing and prompts, the judge's rung, escalation trigger 1 and `score-outcomes` drop C. The routing decision's "S never moves a rung" no longer holds, since size sets L, so the chunk revises it. Once it merges, append a `Reset` to `routing-calls-raised.md`, as `AGENTS.md` says of a band change, so the routing figures count only chunks routed on R. ### 151. Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes. @@ -151,10 +152,6 @@ The `worker:` decision is valid while review rounds per pass do not rise. Count `score-outcomes` measures risk only by the 🔴 findings review caught. A serious bug review missed shows later, as a change that fixes code the chunk wrote: the defect that escaped, which E guesses (item 146). -### 147. Drop C from every `todo.md`, `score-outcomes` and the routing, and route a task's model and effort on its R alone. - -Needs 146. The bands that map R + C to a rung (`docs/decisions.md` → `routing: one ladder…`) become bands over R, spread across the R values the rescored plans hold. The bands are the human's call, so the chunk proposes them and waits. `CLAUDE.md`'s delegation rule, `subagent-rung`, `loop-claude`'s prompts and `score-outcomes` drop C with them. - ### 115. Confirm or set how many finished chunks that each shipped one item `score-outcomes` waits for before it shows a score's medians, today 10. `ENOUGH` in `bin/score_outcomes/outcomes.py` matches the 10 figures the reading-cost trend waits for. No published standard sets either, and `CLAUDE.md` → "Web research" asks the human for a threshold a consumer relies on. -- 2.52.0