Skip to content

claude-review: lockfile, generated and patch-bump diffs get the Sonnet reviewer (row 1.252, replaces 376) - #377

Merged
gorfednet-ship-bot[bot] merged 5 commits into
mainfrom
github-1-252b
Dec 5, 2026
Merged

gorfednet-ship-bot[bot] merged 5 commits into
mainfrom
github-1-252b

Conversation

@gorfednet

@gorfednet gorfednet commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Row 1.252, restarted from origin/main after #376's round 3 (the markdown deny-list leaked rule files four times). Under auto in an Opus repository, Pick the model picks Sonnet only when every changed path is a mechanical R0 class: a lockfile, a generated file (*.generated.*, generated/), or a package.json whose only changes are dependency versions with the same section, range prefix, major and minor (read from git at the merge-base and head). Control-plane paths are never R0, by the lists in ship-bot/lib/drafts.mjs that the workflow carries: the shared prefixes and basenames everywhere, plus scripts/, templates/, fleet.json and docs/claude-home/ in gorfednet/.github, and control/claude-home/, control/ship-bot-patches/, hosts/, infra/, scripts/, inventory-patches/ and the policy files in gorfednet/ops. In another repository scripts/ or templates/ is not control plane. A drift test fails when drafts.mjs gains an entry the workflow lacks. A package.json bump must raise the patch (never 0.0.x). Docs are not a class: every .md, .mdx and .markdown keeps the repository's normal reviewer, in a generated path too. Fails closed on a missing or empty list, a rename, a quoted path or any unknown path. An explicit model input is untouched.

Tests (93 pass), each guard watched failing once: markdown (a *.md class turns red), range prefix, section move, control-plane deny. Also mixed, empty and missing lists.

Live runs: this PR's review runs the shared workflow from main, so a live Actions run of each model shows on the first lockfile-only PR after merge.

R2 (claude-review.yml): Fable read follows. Untouched: templates/claude-review.yml, test/claudeReview.test.mjs:432 (row 1.276m).

Next

  • Merge once claude review is clean on this head and CI is green.

🤖 Generated with Claude Code

…t reviewer in Opus repositories (row 1.252)

Replaces PR 376. Docs are not a class: a deny-list over markdown leaked rule files
four times, so a docs diff keeps the repository's normal reviewer. A package.json
bump is read from git: same section, range prefix, major and minor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

claude review

Comment thread .github/workflows/claude-review.yml Resolved
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Reviewed the R0 model downgrade in claude-review.yml and its tests. The file-list parsing, the rename and quoted-path handling and the package.json patch-bump check all fail closed. One Medium: the control-plane exclusion leaves out ops' root-run paths (hosts/, infra/, inventory-patches/), so lockfile or generated-file changes there get Sonnet.

…r repository (row 1.252)

The workflow carries drafts.mjs's CONTROL_PLANE_PATHS, BASENAMES and the per-repository
extras (ops hosts/, infra/, inventory-patches/, ship-bot patches; .github scripts/,
templates/, fleet.json, docs/claude-home/). A drift test fails when drafts.mjs gains
an entry the workflow lacks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

Round 2: the R0 check now carries ship-bot control-plane lists exactly, per repository (ops hosts/, infra/, inventory-patches/, ship-bot patches, scripts/; .github scripts/, templates/, fleet.json, docs/claude-home/), one test per path watched failing first, plus a drift test that fails when drafts.mjs gains an entry the workflow lacks.

claude review

Comment thread test/claudeReview.test.mjs Resolved
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Reviewed the R0 model downgrade in the Pick the model step of claude-review.yml (control-plane lists, lockfile, generated-file and patch-bump classes, fail-closed paths) and its tests. The step's logic holds; one Low: the rename fail-closed test would still pass if the rename guard were removed.

…e guard (row 1.252)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

Round 3: the rename and quoted-path assertions now use paths that match /generated/ and that no control-plane prefix sees (a brace rename from .github/workflows, a quoted path); watched failing with the guard deleted, plus an ok path that gets Sonnet. The rename path is {.github/workflows => x}/generated/ci.yml, since {.github/workflows => x/generated}/ci.yml has no /generated/ segment for the glob.

claude review

Comment thread .github/workflows/claude-review.yml Resolved
Comment thread .github/workflows/claude-review.yml Resolved
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Reviewed the full diff: the R0 model-selection logic in claude-review.yml (control-plane exclusion, lockfile/generated classes, package.json patch-bump check) and its tests. The fail-closed logic holds; found two Lows: the control-plane basename guard has no test that fails without it, and the model input description no longer matches what "auto" does. I couldn't run the test suite in this environment (permission was refused), so these come from reading the code.

… names the R0 exception (row 1.252)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

Both Lows fixed: tests for rule basenames inside a generated directory (docs/generated/CLAUDE.md, x/generated/canaries.json and others), watched failing with the basename loop deleted; the model input description now names the lockfile, generated and patch-bump exception.

claude review

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Reviewed review-input/full.diff: the R0 model downgrade in the "Pick the model" step of claude-review.yml and its tests. The bash copy of ship-bot's control-plane check matches touchesControlPlane, and every path it can't be sure of keeps Opus: a missing or empty file list, a rename, a quoted path, an added or deleted package.json, a version that isn't plain semver, or a node or git error. The tests exercise both the Sonnet and Opus outcomes. I found no defects.

…st path kept (row 1.252)

Fable read of 8fee44c: a markdown arm ahead of the generated arm, --input-type=module,
a list with no final newline keeps its last path, the patch must rise and 0.0.x is no
patch bump, and *.generated.* matches the file name only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-Use: L3 made undo unread (Claude Sonnet 5.5)
AI-Use-Standing: https://github.com/gorfednet/ai-use-levels/blob/main/docs/delegation.md 2026-11-18
@gorfednet

Copy link
Copy Markdown
Owner Author

Fable FIX and every Low fixed in one push: markdown arm ahead of the generated arm, --input-type=module, last path kept without a final newline, the patch must rise (no 0.0.x), .generated. on the file name only, PR body corrected. Each watched failing first.

claude review

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Reviewed the whole diff: the R0-only model downgrade in the "Pick the model" step of claude-review.yml (the control-plane lists checked against ship-bot/lib/drafts.mjs, numstat rename and quoted-path handling, the read loop's handling of a missing last newline, and the package.json patch-bump check against the merge-base) and its tests. I found no defects: every path I traced fails closed to Opus when the list, git history or node is missing.

@gorfednet
gorfednet marked this pull request as ready for review December 5, 2026 22:30
@gorfednet gorfednet added the ready-to-merge Gates read; ship-bot merges label Dec 5, 2026
@gorfednet-ship-bot
gorfednet-ship-bot Bot merged commit 4a0a916 into main Dec 5, 2026
8 checks passed
@gorfednet-ship-bot

Copy link
Copy Markdown
Contributor

Merged as 4a0a916; deploying is a session's job for this repo (merging is the fleet rollout: every repository's CI uses these workflows at @main).

@gorfednet-ship-bot
gorfednet-ship-bot Bot deleted the github-1-252b branch December 5, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Gates read; ship-bot merges

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant