Repository navigation
Roadmap 0.5: remaining gaps in the rule-script tests - #4
Conversation
PR #3 moved twelve minor points to this PR, under the minor-round rule. This commit closes them. Review round 13: - CLAUDE.md, step 5: "It reviews" becomes "The reviewer reviews". - The reviewer prompt's description is split into short sentences. - Roadmap 0.5 says that its last item, the review trace, is an open point for the owner to decide, not a missing test. - The auditor prompt accepts a note in the first commit message as the way to close a moved point on a pushed commit message. - The message of 5244cbe did not name the reworded sentence on brackets at the top of docs/design.md. Noted here. Review round 14: - The reviewer prompt knows the minor-round rule: findings that are all minor give APPROVED, and each point on personal data, confirmation or writing files is marked. - CLAUDE.md says what the count covers: the minor rounds before one commit. A CHANGES NEEDED round in between does not restart it; the next commit starts a new count; the points of the third minor round move too. "Its verdict comment" becomes "The verdict comment of that round". A point on the message of a commit already pushed is closed by a note in the next commit message (owner's decisions, 2026-11-24). - CLAUDE.md, the points that never move: "confirmation or writing files" becomes "or on confirmation or writing files". They are fixed and reviewed before the commit; the reviewer prompt says so too. - The message of 5244cbe lists "After each commit, a PR comment names the commit" under the owner's decisions; CLAUDE.md does not. Noted here. - The reviewer prompt lists the commands that run from a script as a sub-list. Review of the 0.4 mark: - docs/design.md: the 25 requirement labels lose their bold (owner's decision, 2026-11-24). - Roadmap intro: CI is green on all four jobs "on its last commit". - The message of 6fe7029 says nine minor points move; twelve moved. Noted here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review rounds 1 to 3 of the first commit of this PR (5 files against 6fe7029), each by a newly started Runs in each round: Round 1. VERDICT: APPROVED. Four minor points:
Round 2. VERDICT: APPROVED. Five minor points, all fixed: the auditor prompt accepts the note; points that never move are fixed and reviewed before the commit ( Round 3. VERDICT: APPROVED. Tree of the reviewed copy:
Edited on 2026-11-25: the owner's words are given in English, translated from Italian (audit 0011, F5). The meaning is unchanged. |
|
Commit 2852907 holds the changes approved in round 3 of the first comment of this PR. Its tree, Review rounds 1 to 3 of the second commit of this PR (5 files against 2852907), each by a newly started Runs in each round: Round 1. VERDICT: APPROVED. Five minor points, all fixed: ignore Round 2. VERDICT: APPROVED. Six minor points, all fixed:
Round 3. VERDICT: APPROVED. Four minor points. This was the third minor round, so they move to the next commit of this PR:
Edited on 2026-11-25: the owner's words are given in English, translated from Italian (audit 0011, F5). The meaning is unchanged. |
Owner's decision of 2026-11-24 on the review trace: it becomes a rule.
The reviewer reports the tree of its staged copy (git write-tree), on
a TREE line after the verdict. The verdict comment quotes it, with the
subject line of the reviewed message. After the commit, git rev-parse
HEAD^{tree} must give the same tree. If it does not, nothing is
pushed: the commit is undone locally and reviewed again. The auditor
compares tree and subject for every commit from 2852907 on. The open
item in roadmap 0.5 is gone.
Where moved points go (owner's decision, 2026-11-24): to the next
commit of the same PR when more commits are planned in it, otherwise
to the first commit of the next PR.
.gitignore now ignores .claude/worktrees/, where agents working in
parallel keep their copies. The reviewer leaves that folder out of
its scratch copy, so the reported tree never picks them up.
This commit also closes the two minor points that round 3 of the
review of 2852907 moved on:
- CLAUDE.md and the auditor prompt now agree on the note for a point
on a pushed commit message: a note in the message of a later commit,
listed as one of the ways to close a finding.
- The lead-in of roadmap 0.5 says "except where an item says
otherwise", since its "Rust" section lists items that are not
tested by the owner's decision.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Commit 39635f6 holds the changes approved in round 3 of the review of the second commit of this PR. Its tree, State: the third commit of this PR (the rule-script tests, roadmap 0.5 and 0.6) is in review. Rounds 1 to 3 were CHANGES NEEDED; each found real bugs in |
|
Review of the third commit of this PR, "Close the gaps in the rule-script tests" (roadmap 0.5, rule-script tests, roadmap 0.6). Ten rounds, each by a newly started Round 10: APPROVED. Reviewed tree Rounds 1 to 7: CHANGES NEEDED. Each finding was fixed test first and reviewed again in the next round.
Rounds 8 to 10: APPROVED with minor points (minor rounds 1 to 3).
Checks in the last round:
The Windows branches of the drive-letter tests run only in CI. |
Roadmap 0.5, test first; the step is marked done. Three agents
worked in parallel git worktrees; their changes are merged here, with
the fixes of the reviews of this commit.
check-public.sh and the hooks:
- A failing git command stops the check with exit 2, never a silent
pass: show, ls-tree, diff-tree, cat-file, log, rev-list and diff
(13 tests, plus 2 controls of the git wrapper).
- A failing git rev-list --parents let a merge commit through
unscanned, since the exit status was that of wc (bug found in
review, test first).
- A failing git cat-file -t on a tag skipped the tag scan and
passed (bug, test first).
- Nested annotated tags are scanned to the innermost one. Before, only
the outer message was scanned (bug, test first; 7 tests, up to three
levels).
- Every hook refuses when its check finds a problem, is missing or
cannot run, for check-public.sh and audit-status.sh alike (16
tests).
cleanup.sh (tests only, no change to the script):
- the "still merged into main" check just before deletion, with a
branch that moves while the script runs;
- a branch created at main is removed (audit 0003, F6);
- a detached HEAD at an unmerged commit;
- the skip counts of the blocks skipped on Windows are still written
by hand. Off Windows they are now checked: a block that runs a
different number of checks fails.
audit-status.sh:
- Everything that is not green counts as red (owner's decision,
2026-11-24). The rule is an allowlist. A check run is red when its
conclusion is not empty and not SUCCESS, NEUTRAL or SKIPPED. A status
is red when its state is not empty and not SUCCESS, PENDING or
EXPECTED. So STALE and any value GitHub adds later are red; a row of
an unknown type is judged by the same lists. NEUTRAL and SKIPPED are
green, as in GitHub's branch protection: the report flags what would
block a merge.
- Only the latest attempt of each check counts (owner's decision,
2026-11-25). An attempt not started yet, with empty values, is the
latest, so a queued re-run is not red (owner's decision: a queued
re-run is in progress). A finished attempt with no start time is
older than any with a time. Each type has its own green list.
- A check is one pull request, one type, one workflow and one name.
Without the workflow or the type, a red check could hide behind a
green one of the same name (two bugs found in review, test first).
- When a gh call fails (network, API limit), the report says "not
read" for open pull requests, their checks, the CI runs and the
interaction limit, never "no open pull requests", "no CI runs" or
"interaction limit not active".
- A red check is printed as "workflow / name", and "(no name)" when
it has none.
- The hooks check accepts core.hooksPath set to ".githooks" or to the
absolute path of this repository's .githooks, in POSIX or Windows
drive-letter form. The two paths are compared as files (test -ef),
not as strings.
- The CI runs on main and the open pull requests are tested under
their headings.
- The gh stub returns raw data, so the tests check which checks are
selected as red, including equal start times and the type guards.
- New tests for uncommitted changes, stashes and the unpushed and
not-pulled counts. A test that checks a line is absent now fails
when its section prints nothing, except in the "Rust" section. The
"no warning with hooks" test checks that the report printed.
Roadmap 0.5 now lists what this step closed and the known limits that
remain. The owner marked the step done with them listed. Eight
limits are new:
- the jq projection in the gh call is not tested;
- gh gives no event, so a green manual run of a job hides a failed
run of the same job;
- a check name with a backslash prints doubled;
- gh pr list reads at most 30 open pull requests;
- the exit status of the awk that selects red checks is not checked;
- start times are compared as strings;
- a commit held only by a detached HEAD is not reported;
- nothing checks that every off_windows block ends with
end_off_windows.
Roadmap 0.6 is new: the four changes to the way of working that the
owner adopted on 2026-11-25 ("Done when" for every step, a
merge-ready script, the model chosen by risk with PRs of about 400
lines, and a lessons file with no CI watching by agents).
Minor points moved from round 3 of the review of 39635f6:
- CLAUDE.md names the command to undo a commit whose tree does not
match (git reset --soft HEAD~1), and says "when the author plans
more commits".
- The auditor prompt checks the tree in the comment that names the
commit, and the subject line from 39635f6 on.
- CLAUDE.md points to the known limits of roadmap 0.5 as the other
untested parts of the rule scripts.
- CLAUDE.md says where parallel agents work and who removes their
worktrees: after comparing the worktree with the patch it took,
git worktree remove --force and git branch -D.
- Note on the message of 39635f6: the ignore rule keeps
.claude/worktrees/ out of the reported tree; the reviewer leaving
that folder out of its copy only avoids copying other work. The
message of 39635f6 also says the auditor compares tree and subject
from 2852907 on; the subject is compared from 39635f6 on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Commit 74cb34c holds the changes approved in round 10 of the review of the third commit of this PR. Its tree, State: this is the fifth commit since audit 0010, so coherence audit 0011 runs next. Its report is committed alone. The next commit closes its findings and the two minor points moved from round 10. Then CI green on all four jobs, the PR marked ready, and the merge into |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review of the commit that closes audit 0011 (on top of 29643bd), round 1: CHANGES NEEDED. Reviewed tree The F1 fix holds: breaking each of its three prunes fails a test. Two missing tests block the commit; they are fixed test first and go to round 2:
Three minor points, fixed for round 2:
|
|
Review of the commit that closes audit 0011, round 2: CHANGES NEEDED. Reviewed tree Two findings, both on personal data, so neither moves. Both are fixed test first and go to round 3:
One minor point, fixed for round 3: the commit message names only the first leak; it now also names the file names of binary documents. |
|
Review of the commit that closes audit 0011, round 3: CHANGES NEEDED. Reviewed tree One missing test on a personal-data rule, so it does not move. It is fixed test first and goes to round 4:
Minor points, fixed for round 4:
To check before the PR is marked ready: |
|
Review of the commit that closes audit 0011, round 4: CHANGES NEEDED. Reviewed tree One missing test on personal data, so it does not move. It is fixed test first and goes to round 5:
Minor points, fixed for round 5:
|
|
Review of the commit that closes audit 0011, round 5: APPROVED with one minor point (minor round 1 of this commit). Reviewed tree No bug and no missing test. The reviewer found no input that makes the marker search open Minor point, fixed for round 6: a sentence of the commit message ("New tests: ...") holds five ideas in about 50 words; it becomes a list. Outside the changes: the marker search prints "none" when |
|
Review of the commit that closes audit 0011, round 6: CHANGES NEEDED. Reviewed tree Two missing tests. The first is on personal data, so it does not move. Both are fixed and go to round 7:
Minor points, fixed for round 7:
|
|
Review of the commit that closes audit 0011, round 7: APPROVED with three minor points (minor round 2 of this commit). Reviewed tree No bug and no missing test. Every rule the reviewer broke on a copy failed a test, except the one in the third point below, where no file is read. Minor points, fixed for round 8:
|
|
Review of the commit that closes audit 0011, round 8: APPROVED with five minor points (minor round 3 of this commit). Reviewed tree No bug and no missing test. The reviewer broke the marker search in fourteen ways on copies, among them reading then hiding, This is the third minor round, so the five points move without a new round (
|
F1, bug, test first: the marker search of audit-status.sh read tests/corpus/ and tests/out/, which hold real and extracted documents. A marker word in a real document would be printed in the session report. For a binary document, such as a signed file, grep printed its file name. find now prunes both folders, in any case of their names. It prunes tests/fixtures too, in that exact case. So the two folders are never read, even when .gitignore lacks them. Before, the marker section had no test. New tests: - a tracked and an untracked marker are listed; - fixtures, corpus and output are not listed, binary files and capital names (tests/CORPUS, tests/OUT) included; - symbolic links into the corpus are not followed; - each of the six marker words is listed; - with a single file to search, its name is still printed; - grep never searches recursively and is never given a file in the two folders (a grep stand-in logs its options and files); - a repository with no marker says "none". Roadmap 0.5 lists one more known limit, added after the owner marked the step done: the marker search prints "none" when find or grep cannot run. F2, moved from round 10: the lead-in of roadmap 0.5 again carries the exception, and now names the "Rust" section. The audit leaves F3 and F4 to the owner. The owner delegated such choices on 2026-11-25: choose the solution that serves the goal and is coherent with earlier choices. F3, moved from round 10: roadmap 0.6 no longer counts scripts as routine code. The owner's decision says only "Sonnet for routine code"; the rule scripts protect. Step 0.6 decides whether the rule scripts and the hooks count as routine code. F4 and F5 are written into roadmap 0.6 as the first lessons of docs/lessons.md: post each verdict when its round ends; give the owner's decisions in English on GitHub. At the owner's request, the two PR #4 comments with Italian quotes now give them in English, with a note that says so. F6: the reviewer prompt says a point on personal data or R28–R34 "never moves", without naming a place. F7: the three long sentences the audit names are split: in CLAUDE.md, marking a PR ready and the worktree removal; in roadmap 1.5, sensitive folders and the risky run. The session-start sentence of CLAUDE.md is split too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Commit 72b89f3 holds the changes approved in round 8 of the review of the commit that closes audit 0011. Its tree, State: every finding of audit 0011 is closed. Next: CI green on all four jobs on this commit, read in the job list (the Windows job must show that the new marker tests use the |
Roadmap 0.5: remaining gaps in the rule-script tests
This PR closes the gaps that the reviews of PR #1, PR #2 and PR #3 found in the tests of the rule scripts (
docs/roadmap.md, 0.5). It also closes the minor points that PR #3 moved here.Planned in this step:
scripts/audit-status.sh: everything that is not green counts as red (owner's decision, 2026-11-24), and the missing tests of the unfinished-work and GitHub sections;scripts/cleanup.sh: tests for the "still merged" check before deletion, a branch created atmain, a detached HEAD at an unmerged commit, and checked skip counts;scripts/check-public.shand the hooks: tests that a failing git command or a crashing check refuses, never passes;Each script change is test first. The red and green runs of the script commit are below.
Red and green runs
TDD proof for the scripts commit of this PR (roadmap 0.5). Each script change was made test first; where a test fixes behaviour that was already correct, the red comes from breaking a copy of the script and seeing the test fail.
check-public.sh: nested annotated tags (bug fixed)
Red, before the fix:
Green:
hooks tests: 41 passed, 0 failed.check-public.sh: a failing git command stops the check
The code already refused, except for
git cat-file -ton a tag: there a failure skipped the tag scan and passed. With the HEAD script and the new tests, red:For the other commands, red on broken copies, for example
git show ... || cannotchanged to|| true:Each of
show,ls-tree(tip and merge),diff-treeand the newcat-filelines has a breakage that fails a test.Hooks refuse when a check is missing or crashes
Red on a copy where pre-push blocks only on exit 1 and skips any other exit; all earlier tests stayed green:
cleanup.sh (tests only)
Red on broken copies:
audit-status.sh: what counts as red
Red, before the change (the old script did no selection):
Red, only the latest attempt counts:
Red on copies for the empty-section rule, for example with the "Audit cadence" section made silent:
Fixes of the first review (CHANGES NEEDED)
$1 SUBSEP $4):FAIL: report: only the latest attempt of each check counts(198 passed, 1 failed).audit-status.shcannot run: on a copy where both hooks skip exit 2 of the gate,pre-push: audit-status.sh that cannot run refusedandpre-commit: ...fail (41 passed, 2 failed).FAIL: report printed with hooks enabled.Fixes of the second review (CHANGES NEEDED)
Red, tests only, before the script change (198 passed, 4 failed):
Breakages on copies: the key without the type fails "a red status is not hidden ..."; the old denylist for either type fails the red-selection and latest-attempt tests; the allowlist without its anchor fails the latest-attempt test; a changed "checks not read" line fails "a failing gh pr list is said".
Fixes of the third review (CHANGES NEEDED)
Red, a failing
git rev-list --parentsover a merge commit (206 passed, 1 failed):Red, a row of an unknown type (207 passed, 1 failed):
Breakages on copies, one failing test each: the
git log, both rangegit rev-listand thegit diff --cachedguards changed to|| true; the empty-state rule of a status removed; the unknown-type rule disabled, or without its conclusion or its state.Fixes of the fourth review (CHANGES NEEDED)
Red, tests first, before the script change (210 passed, 8 failed):
Breakages on copies, each failing at least one test: a finished row with no time treated as latest; the anchors of the unknown-type allowlist removed; the not-started rule or its zero-time clause removed; each "not read" line turned back into "no ..."; the workflow prefix or "(no name)" removed; the absolute hooks path never accepted, accepted without the equality check, compared unresolved, or accepted when missing.
Fixes of the fifth review (CHANGES NEEDED)
Red on broken copies:
Fixes of the sixth review (CHANGES NEEDED)
Red on broken copies:
Fix of the seventh review (CHANGES NEEDED)
Red on copies where either green list is replaced by the union of both:
Fix of the eighth review (APPROVED, minor points)
A failing
gh apifor the interaction limit printed "INTERACTION LIMIT NOT ACTIVE". Red, tests first (231 passed, 2 failed):The same two tests fail on a copy where a failing
gh apiis not recorded.Fix of the ninth review (APPROVED, minor points)
The test of the expiry warning now matches the whole line, date only. Red on a copy where the date is not cut from the time stamp (232 passed, 1 failed):
Green, all suites, on the merged changes
Red and green runs of the commit that closes audit 0011
TDD proof for the commit that closes audit 0011.
F1: the marker search skips tests/corpus/ and tests/out/
Red, tests first, before the fix (235 passed, 1 failed):
Breakages on copies, each failing a test: the prune of tests/corpus/ removed; the prune of tests/out/ pointed at another folder; the prune of tests/fixtures/ removed (235 passed, 1 failed each).
Fix of the first review (CHANGES NEEDED): two missing tests
Tests for each marker word and for the file name with a single file to search. These rules were already in the script, so the red comes from breaking copies:
Fix of the second review (CHANGES NEEDED): case and binary files
Red, tests first, before the fix (242 passed, 1 failed):
Red on a copy where the search reads the folders and hides their lines (
grep -r ... | grep -Ev '^tests/(fixtures|corpus|out)/'), which prints the names of binary files (241 passed, 2 failed):Fix of the third review (CHANGES NEEDED): every letter in both cases
The cased test now uses
tests/CORPUSandtests/OUT, every letter in capitals; the first test has them in lower case. Breakages on copies, each failing the cased test (242 passed, 1 failed each):Fix of the fourth review (CHANGES NEEDED): symbolic links
The search did not follow links, so the red comes from breaking copies (244 passed, 1 failed each):
Fix of the sixth review (CHANGES NEEDED): never opened, and "none"
A grep stand-in logs each recursive option and each file grep is given; a test checks that no grep is recursive and none is given a corpus or output file. A test checks the "none" line. Red on copies:
Green, all suites
State
Draft. The current state and the next step are in the latest comment.
Generated with Claude Code