Enforce the checkable rules in a hook, with one override marker a judge rules on, and drop them from CLAUDE.md
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|
|
||||
| 95 | 0.1.0 | | **Make `CLAUDE.md` a short router: only the rules every session needs, and a pointer to where each topic's rules load.** | 6 | 6 | 8 | 8 | 1.1, 1.3, 1.4 | 24.3 |
|
||||
| 96 | 0.1.0 | | **Enforce each rule a program can check in a hook or in CI, with one override marker the agent may use and the PR lists, and delete those rules from `CLAUDE.md`.** | 5 | 6 | 7 | 8 | 1.1, 1.3 | 23.3 |
|
||||
| 98 | 0.1.0 | | **Score R and S from a measurement wherever one exists, and calibrate each guessed score against the finished chunk's measured outcome.** | 2 | 5 | 6 | 7 | 1.1, 1.4 | 22.6 |
|
||||
| 99 | 0.1.0 | | **Drop the comprehension panel as a merge gate, and keep recording its scores and the places in the code its seats found hard, for later measurement and for other reviewers and agents to improve.** | 4 | 5 | 7 | 7 | 1.1, 1.4, 1.5 | 22.6 |
|
||||
| 87 | 0.1.0 | | **Score every `todo.md` item's complexity C from 1 to 10, and have `rank_todo.py` fail on an item without one.** | 3 | 4 | 6 | 7 | 1.1, 1.4 | 21.9 |
|
||||
@@ -74,14 +73,6 @@ Keep in it only what every session needs and no other file loads: the vocabulary
|
||||
- 🟢 "Ask, don't guess": "If an answer is a goal and something else too, write the goal, and record a choice only for what the goal leaves open." Proposed: `When an answer holds a goal and a choice, write the goal in the README, and record as a choice only what the goal leaves open.`
|
||||
- 🟢 "Decisions: one home" lists "a comment" as a wrong home, then names a comment as the destination. Proposed: `a comment away from the code it governs`.
|
||||
|
||||
Needs 96.
|
||||
|
||||
### 96. Enforce each rule a program can check in a hook or in CI, with one override marker the agent may use and the PR lists, and delete those rules from `CLAUDE.md`.
|
||||
|
||||
Anthropic's best-practices page: CLAUDE.md is advisory, hooks are deterministic, so a rule that must hold every time belongs in a hook. Candidates include one-line commit messages without authorship trailers, container images pinned to a full patch version, sorted ignore files, and `rank_todo.py --check` on `todo.md`.
|
||||
|
||||
A blocking hook exits 2 with a message that names the rule, why it holds, and the override. The override is one marker, the same for every hook and check, that names the rule and gives a reason. A CI check accepts it too, in the PR body. larv-review's PR summary lists every override in the chunk, and a judge rules on each from the rule, the reason and the README's goals: loop-claude's judge in a loop, a judge subagent in a run of larv-review alone. A reason the judge accepts stands, and one it rejects sends the worker back to keep the rule (goal 1.2). The judge interrupts the human only for an outrageous override: one that touches a credential, a security rule or a production system, or that cannot be undone. A rule a project sets for itself, such as fejkdata's Go-only-in-compose, goes in that project's own hook.
|
||||
|
||||
### 98. Score R and S from a measurement wherever one exists, and calibrate each guessed score against the finished chunk's measured outcome.
|
||||
|
||||
A score that can be computed from the code it touches, such as the files an item names, comes from that computation. Otherwise size and risk are estimated from finished work, the way reference-class forecasting estimates a project from earlier projects like it. When a chunk merges, record its measured outcome beside the item's guessed R and S: lines and files changed, review rounds, 🔴 and 🟡 findings, and fixes the code needed later. Show the scorer, when it files an item, the finished items whose guessed scores sat nearest and what they measured. Once enough chunks are recorded, report how far each guess was from its outcome, so a scorer whose S runs high can be corrected. Item 87's C is scored and calibrated the same way.
|
||||
@@ -178,6 +169,8 @@ Raised by the product-owner review of PR #211. The resumed worker gets the judge
|
||||
|
||||
The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word.
|
||||
|
||||
A rule check CI runs, such as one of `bin/rule-hook`'s, accepts `# rule-override <rule>: <reason>` in the PR body.
|
||||
|
||||
### 80. State in README → Install that every machine taking this checkout must be a sandbox, as `settings.json`'s auto mode assumes.
|
||||
|
||||
Raised by the principles audit of PR #224. The `settings.json` decision is valid while every machine taking this checkout is a sandbox, but Install asks for a sandbox only for `loop-claude`, so a new machine is never told.
|
||||
|
||||
Reference in New Issue
Block a user