From 58abf95ac5a1ec1d49cdeb5563d961536a1e332b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 03:31:58 +0000 Subject: [PATCH 1/2] ci: say the review-line check is required on dev The owner added `review-line` to the dev ruleset's required checks on 2026-11-20 (ruleset 26819943, with merge-only). Three texts still called it advisory: the workflow header, check_review_line.py's docstring and the health-watch signal. Each now says it is required, and keeps what it does not judge (that the review was independent and its fixes read). The header adds that a body edit re-runs the check, so a merge waits for that run. Comment and docstring text only; no behaviour changes. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LGMKZYKjCq2pTmNWtKf2hy --- .claude/skills/health-watch/SKILL.md | 2 +- .github/workflows/review-line.yml | 9 +++++---- build_tools/check_review_line.py | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.claude/skills/health-watch/SKILL.md b/.claude/skills/health-watch/SKILL.md index fd5a23d4b..45c121724 100644 --- a/.claude/skills/health-watch/SKILL.md +++ b/.claude/skills/health-watch/SKILL.md @@ -57,7 +57,7 @@ Then: Each of these has happened here. Check for the class, not the instance. **Merges and gates** -- A code PR merged without a current `Independent review @ ` line, or with a stale one (`/implement-plan` › Cleanup and Report step 4). The line is a convention; only required checks are enforced by the ruleset. +- A code PR merged without a current `Independent review @ ` line, or with a stale one (`/implement-plan` › Cleanup and Report step 4). The `review-line` check is required on `dev`, but it judges only what the line says against history: that the review was independent and its fixes read are still the reviewer's to check. - A red explained away. A run cancelled by a newer push reports its gate as failed: that is noise. Any other red is root-caused; README item 6 says when one re-run may decide. - A red "fixed" without its log. The fix names the failing test as the CI log prints it; a local reproduction of some other failure is a guess. - A path only `mainline` runs. Coverage-on tests run on `mainline` pushes and `coverage: true` dispatches, never on a PR: a change to a test that reads IL or enumerates an instrumented assembly's types is proven by a coverage-on run (`gh api -X POST repos/antonsynd/sharpy/actions/workflows/dotnet10.yml/dispatches -f ref= -F 'inputs[coverage]=true'`; `/ci-gate` is coverage-off), not by its PR gate. diff --git a/.github/workflows/review-line.yml b/.github/workflows/review-line.yml index 2c7d3a042..bd59cb017 100644 --- a/.github/workflows/review-line.yml +++ b/.github/workflows/review-line.yml @@ -7,14 +7,15 @@ # "no code path changed" (a base other than `dev`; a Dependabot PR that changes only package versions in manifests), and what it does not judge (that the review was # independent, that the fixes were read, the counts, an empty-diff history rewrite). # -# ADVISORY as shipped: the check `review-line` is not in the `dev` ruleset's required set; making it -# required is the owner's ruleset change. A draft PR's review line is judged but never failed (a +# REQUIRED: the owner added the check `review-line` to the `dev` ruleset's required set on +# 2026-11-20 (ruleset 26819943). A body edit re-runs it, so a merge waits for the run after the last +# edit. A draft PR's review line is judged but never failed (a # warning), so work in progress stays green; marking it ready re-runs the check. The sharpy-issues # step (build_tools/issue_block.py) fails a malformed block on drafts too. # # Evidence, not a control: a pull_request run uses the PR's OWN copy of this workflow and of the -# script, so a PR can change the check it is judged by. Even if made required, it would only show -# what the line says against history; a reviewer of the PR still has to read changes to these two +# script, so a PR can change the check it is judged by. Though required, it only shows what the +# line says against history; a reviewer of the PR still has to read changes to these two # files. # # Its own workflow, not a job in commit-subjects.yml: the body changes without a push, so this runs on diff --git a/build_tools/check_review_line.py b/build_tools/check_review_line.py index c772bc1a6..f710518aa 100644 --- a/build_tools/check_review_line.py +++ b/build_tools/check_review_line.py @@ -11,7 +11,8 @@ a `dev` merge landed after it. A second (third, ...) review's `@ : ` follows on the same line; the last one written is the one that counts. Nothing enforced this before: PRs #2615 (src/) and #2612 (build_tools/) merged on 2026-11-11 with no line. This script makes a missing or -malformed line visible; it is advisory unless the owner makes its check required. +malformed line visible; its check `review-line` is required on `dev` (the owner's ruleset change, +2026-11-20). Which lines count. A line counts when, after at most three spaces, an optional list marker, bold or a backtick, it starts with `Independent review @`. Recognised and never read, because they quote the From 564ebb4c7d70b045aaa4868f1272e175bb916bd3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 03:38:31 +0000 Subject: [PATCH 2/2] ci: cite the owner's ruleset change, close the re-run gap Independent review of 58abf95ac (merge after fixes), three findings, all applied: - the date was stated without a source: the header now cites the owner's "done" (2026-11-20 19:34Z, the ruleset's updated_at); the docstring says "reported done"; - "a merge waits for the run after the last edit" missed the seconds before that run is queued, when the previous green run still stands: now "merge only once that run has completed"; - the health-watch line said "the reviewer's" where the skill addresses the watcher, and dropped that a PR editing review-line.yml or check_review_line.py runs its own copy: both restored. Also says a malformed sharpy-issues block now blocks a merge (optional note in the review). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LGMKZYKjCq2pTmNWtKf2hy --- .claude/skills/health-watch/SKILL.md | 2 +- .github/workflows/review-line.yml | 12 +++++++----- build_tools/check_review_line.py | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.claude/skills/health-watch/SKILL.md b/.claude/skills/health-watch/SKILL.md index 45c121724..1e5a4ebd3 100644 --- a/.claude/skills/health-watch/SKILL.md +++ b/.claude/skills/health-watch/SKILL.md @@ -57,7 +57,7 @@ Then: Each of these has happened here. Check for the class, not the instance. **Merges and gates** -- A code PR merged without a current `Independent review @ ` line, or with a stale one (`/implement-plan` › Cleanup and Report step 4). The `review-line` check is required on `dev`, but it judges only what the line says against history: that the review was independent and its fixes read are still the reviewer's to check. +- A code PR merged without a current `Independent review @ ` line, or with a stale one (`/implement-plan` › Cleanup and Report step 4). The `review-line` check is required on `dev`, but it judges only what the line says against history: that the review was independent and its fixes read are still yours to check, as is any PR that edits `review-line.yml` or `check_review_line.py` (it runs its own copy). - A red explained away. A run cancelled by a newer push reports its gate as failed: that is noise. Any other red is root-caused; README item 6 says when one re-run may decide. - A red "fixed" without its log. The fix names the failing test as the CI log prints it; a local reproduction of some other failure is a guess. - A path only `mainline` runs. Coverage-on tests run on `mainline` pushes and `coverage: true` dispatches, never on a PR: a change to a test that reads IL or enumerates an instrumented assembly's types is proven by a coverage-on run (`gh api -X POST repos/antonsynd/sharpy/actions/workflows/dotnet10.yml/dispatches -f ref= -F 'inputs[coverage]=true'`; `/ci-gate` is coverage-off), not by its PR gate. diff --git a/.github/workflows/review-line.yml b/.github/workflows/review-line.yml index bd59cb017..7f622363e 100644 --- a/.github/workflows/review-line.yml +++ b/.github/workflows/review-line.yml @@ -7,11 +7,13 @@ # "no code path changed" (a base other than `dev`; a Dependabot PR that changes only package versions in manifests), and what it does not judge (that the review was # independent, that the fixes were read, the counts, an empty-diff history rewrite). # -# REQUIRED: the owner added the check `review-line` to the `dev` ruleset's required set on -# 2026-11-20 (ruleset 26819943). A body edit re-runs it, so a merge waits for the run after the last -# edit. A draft PR's review line is judged but never failed (a -# warning), so work in progress stays green; marking it ready re-runs the check. The sharpy-issues -# step (build_tools/issue_block.py) fails a malformed block on drafts too. +# REQUIRED: the owner added the check `review-line` to the `dev` ruleset's required set (ruleset +# 26819943; the owner's "done", 2026-11-20 19:34Z, matching its updated_at). A body edit re-runs it: +# merge only once that run has completed (in the seconds before it is queued, the previous run still +# stands). Being required, a malformed sharpy-issues block also blocks the merge. A draft PR's +# review line is judged but never failed (a warning), so work in progress stays green; marking it +# ready re-runs the check. The sharpy-issues step (build_tools/issue_block.py) fails a malformed +# block on drafts too. # # Evidence, not a control: a pull_request run uses the PR's OWN copy of this workflow and of the # script, so a PR can change the check it is judged by. Though required, it only shows what the diff --git a/build_tools/check_review_line.py b/build_tools/check_review_line.py index f710518aa..7d4fa81bd 100644 --- a/build_tools/check_review_line.py +++ b/build_tools/check_review_line.py @@ -12,7 +12,7 @@ same line; the last one written is the one that counts. Nothing enforced this before: PRs #2615 (src/) and #2612 (build_tools/) merged on 2026-11-11 with no line. This script makes a missing or malformed line visible; its check `review-line` is required on `dev` (the owner's ruleset change, -2026-11-20). +reported done on 2026-11-20). Which lines count. A line counts when, after at most three spaces, an optional list marker, bold or a backtick, it starts with `Independent review @`. Recognised and never read, because they quote the