Repository navigation
feat(finalize-pr): run the self-review at /code-review medium - #319
Conversation
Every PR over review.skipWhen is reviewed twice: by the author's own /code-review in finalize-pr step 2, then by review-pr, a fresh session that never saw the author's reasoning. At high, the first pass is the biggest fan-out in an implement run, and its findings overlap the critic's. The routines account keeps hitting its usage limit, so the self-review drops to medium. The independent critic is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The diff is the size of its problem: one dial, four mentions, a version bump, one why.md section. Nothing is smuggled in, and the skill/ceiling split holds — #317 and #318 carry those. The body's rule-delta claim checks out: 94 → 94, nothing removed. Two things weaken it. The stated premise, reviewed twice, fails on the TINY tier, where this same skill says step 2 is the only agent read. And one mention of high was missed.
Findings
should-fix—workflow/skills/finalize-pr/SKILL.md:141: the premise fails onTINYdiffs. See thread.should-fix—docs/why.md:367: still reads "/code-review high... each fan out reviewer agents", present tense, naming step 2's composition. Line 368's median is history and can stay.consider—workflow/skills/finalize-pr/SKILL.md:131: the level is hard-coded in four places. See thread.consider—workflow/skills/finalize-pr/SKILL.md:156:/code-review ultranames no level. They are low, medium, high, xhigh, max.maxis the one Claude may not pick itself, which is what that sentence describes.consider— the body omits## Change outline.pr-template.mdmakes it optional only at or underreview.skipWhen, and this diff is 5 files.
What was checked
Read whole on the branch: finalize-pr/SKILL.md, review-pr/SKILL.md, pr-template.md, review-scope.mjs, marketplace.json, and why.md's sections on simplify fan-out, tiny diffs, and plugins no routine has. new-pieces.mjs: NONE, so no streamliner ran. git grep '/code-review' over the branch: 11 hits, 1 stale. marketplace.json pins no version, so 5.14.0 needs nothing beside it. No question threads, so no second opinions. No ## Preview is correct — this repo configures no previewUrl. No contract surface touched. Reviewer profile read.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The level was typed into four places: finalize-pr's step 2 twice, review-pr's stance, review-scope.mjs's header comment and docs/why.md. The review of #319 found one of them still reading `high`, which is the failure this prevents: a tuning change that needs five edits will miss one, and a stale level in a run-loaded skill is read as an instruction. `review.selfReview.level` holds it now, so the next change is a data edit with no version bump. The cost is one config lookup in a skill the run already reads loop-config.json for. No behaviour change: the level stays `medium`. review-scope.mjs's comment drops the level entirely — it was describing which reviews run, not at what level. Addresses #319 (comment) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjX7iLXaSzsKR9YZwd6
The PR's premise — every PR is read twice, so the first pass can drop to `medium` — fails at or under `review.skipWhen`. The dispatcher skips the critic on that threshold and this skill skips `/simplify`, so step 2 is the only agent that reads a TINY diff. Lowering it there removes a finding with nothing behind it to catch the miss, which is the failure this prevents. `review.selfReview.tinyLevel` holds `high`, the level main already ran, so a TINY diff is unchanged by #319. The cost is bounded: a TINY diff is at most two files and forty lines, which is where `high` is cheapest. Addresses #319 (comment) Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjX7iLXaSzsKR9YZwd6
Two level names were wrong, both found by the review of #319. `why.md#the-reviews-run-while-simplify-does` read `/code-review high` in the present tense, describing step 2's composition, which #319 made false. It drops the level: the entry is about three reviews running together, not about any one's level. The median on the next line is a measurement taken at `high` and stays as history. `finalize-pr` step 2 offered the user `/code-review ultra`, which is not a level. The levels are low, medium, high, xhigh and max, and `max` is the one Claude may not pick for itself — which is what that sentence was describing. A skill naming a level that does not exist sends the reader to a command that fails. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjX7iLXaSzsKR9YZwd6
Whitespace only. The config-name substitutions pushed three lines past the surrounding wrap, and one left a four-word orphan line. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjX7iLXaSzsKR9YZwd6
|
Four commits, head Adopted
Nothing rebutted, nothing asked. No base merge: the branch sits on Lean gate green, 184 lib tests. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. 🤖 Written by the sydevs autonomous loop — see what this is
Summary
finalize-prstep 2 runs/code-review mediumon aFULLdiff, and keepshighonTINY.review.selfReview, so the next tuning change is a data edit.why.md:367readhigh, and step 2 offeredultra.Change outline
Behaviour — which level step 2 runs at
Step 2 picked one level for every diff. It now reads the level per tier, and the
TINYtier keeps the levelmainalready ran.classify(origin/<base>...HEAD) workflow/skills/finalize-pr/SKILL.md TINY — at or under review.skipWhen skip /simplify, and the dispatcher skips the critic - /code-review high # step 2, "as usual" + /code-review <review.selfReview.tinyLevel> # high: the only agent that reads this diff FULL — over review.skipWhen /simplify ‖ step 2 - /code-review high + /code-review <review.selfReview.level> # medium: review-pr reads it again, unanchoredContract — the dial left the prose
The level was typed in four places, and the review of this PR found one of them still reading
high.loop-config.jsonholds it now, and each reader names the key.loop-config.json review skipWhen { maxFiles: 2, maxLines: 40 } + selfReview { level: "medium", tinyLevel: "high" }The failure this prevents
The Routines account keeps hitting its usage limit. Every PR over
review.skipWhenis reviewed twice: by the author's own/code-reviewinfinalize-pr, then byreview-pr, a fresh session that never saw the author's reasoning. Athigh, the self-review is the biggest agent fan-out in animplementrun, and its findings overlap the critic's.mediumstill catches the plain bugs before the PR opens. The critic, which isn't anchored on the author's view, is unchanged.That premise does not hold at or under
review.skipWhen. There the dispatcher skips the critic and this skill skips/simplify, so step 2 is the only agent read, and a dropped finding has nothing behind it to catch the miss.tinyLevelkeepshighon that tier, where the diff is at most two files and forty lines andhighis cheapest.What it gives up: lower-confidence findings from the self-review, on
FULLdiffs only. The critic either repeats those or rightly drops them. If critic reviews start reporting bugs a self-review should have caught, revert this.Local note:
/code-reviewremembers the last level typed, so a local/workflow:finalize-prleaves your next bare/code-reviewatmedium.Test results
claude plugin validate ./workflow --strict, then 184 lib tests pass.rule-delta.mjs --base origin/main workflow/skills: 94 → 94 directives, none removed./security-review: no findings. The diff adds no executable code, widens noallowed-tools, and weakens no gate.Notes for reviewer
6108f8emoves the dial to config (no behaviour change),4b434dccarves outTINY,6f3c85afixes the two level names,54ba4eeis whitespace.## Change outlineand theTINYcarve-out answer the two review threads; the level names came from the review body.why.md's heading still reads "runs at medium" because that file forbids renaming a heading — skills cite it by anchor.🤖 Generated with Claude Code