Repository navigation
feat: skip_human_reviewed and rereview_requires_commits gate which PRs get a review (15.4.0) - #325
Conversation
…s get a review (15.3.0) skip_human_reviewed: enabled gives no first review to a PR that a person already reviewed, unless a re-review trigger asks. rereview_requires_commits: enabled re-reviews only after new commits: a trigger at the reviewed SHA is cleared after a description edit or a dismissal, and an owed review guide starts no second round at that head. Both default to the current behavior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🛡️ Code Guardian - Code guardian repo — 6e16e7e
PR #325: feat: skip_human_reviewed and rereview_requires_commits gate which PRs get a review (15.3.0)
Author: lamoghaighoroje | Branch: feat/skip-human-reviewed → main | Changes: +132 −9 (10 files)
Summary
The PR adds two opt-in gates. skip_human_reviewed skips a first review on a person-reviewed PR; rereview_requires_commits needs new commits for a second review.
Limits: 3 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering.
4 suggestion(s) dropped under the 🟢 budget.
Findings
- 🟡 Warning: The 15.3.0 entry says only "Nothing — docs are re-read per run" (
CHANGELOG.md:16). This PR adds two off-by-default keys, and a migration reads only this block. No instance then offers the keys (docs/self-modification.md§12,docs/persistence.mdstep 2). Reported by Agent Engineering.
Fix: Name each off-by-default key and its one-line effect in the 15.3.0 Upgrade block, in the offer form. - 🟡 Warning: Under
rereview_requires_commits: enableda description edit or a dismissed review enters the same-SHA cleanup (docs/review-bookkeeping.md:29). The cleanup comment then states "no description edit since" and offers two remedies that the key refuses (docs/review-bookkeeping.md:23,scripts/preflight.sh:1376).docs/review-rereview.md:21still says an edited body always answers the trigger. Reported by Agent Engineering.
Fix: Derive the reason and the remedy from the branch that produced the entry. Name the one remedy that works. - 🟡 Warning:
docs/config.md:110says an unpublished owed guide starts no second round at that head.docs/artifact.md:47and its self-check (docs/artifact.md:125) still promise one guide round. Under the key the<!-- guide-owed -->marker has no end state, and the shepherd holds its nudge (docs/shepherd.md:49). Reported by Agent Engineering.
Fix: State the exception in the document that owns the guide round. Define what clears the owed marker and the held nudge.
Human Review Guide
📊 Visual guide for the human reviewer — who counts as a human reviewer, and whether the same-SHA doc stays (about 20 min)
Documentation Check (doc-drift)
✅ No findings.
Agent Engineering
- 🟢 Suggestion: The new
skip_human_reviewedbullet citesworklist.md→ The pre-flight contract (docs/config.md:104). That section's decision list does not name the new suppression. An agent then sees a skipped PR with only a log line.
Fix: Add the first-review decision to the section that lists the decisions preflight computes.
Verdict
COMMENT — The gates work, but three statements in the tree still contradict them.
For the human reviewer
The change adds two switches. One switch stops the first automatic review when a person already reviewed the pull request. The other switch allows a second review only after new commits. A person must decide whether a switch that withholds a review also withholds the review guide, because the agent then never builds that page.
Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi
…at upgrade, keep them out of onboarding (15.3.0) - The same-SHA cleanup reply and its log line derive the reason and the remedy from rereview_requires_commits. - Under the key an owed review guide starts no round and holds no shepherd nudge; artifact.md, shepherd.md, review-rereview.md and runbook.md say so. - The 15.3.0 Upgrade block offers both keys; ONBOARDING.md does not set them. - worklist.md lists the first-review decision of skip_human_reviewed.
|
Answer to the review at
Checks: check 1 → |
There was a problem hiding this comment.
🛡️ Code Guardian - Code guardian repo — 238fcb2
PR #325: feat: skip_human_reviewed and rereview_requires_commits gate which PRs get a review (15.3.0)
Author: lamoghaighoroje | Branch: feat/skip-human-reviewed → main | Changes: +204 −34 (16 files)
Summary
Two new opt-in keys gate which PRs get a review. skip_human_reviewed skips a first review on a person-reviewed PR, and rereview_requires_commits needs new commits for a second one.
Limits: 3 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering.
Changes since last review
Previous HEAD: 6e16e7e (2026-11-30T14:37:24Z) — verdict COMMENT
- ✅ Fixed: 15.3.0 entry offers no key for two new gates (
CHANGELOG.md:16) - ✅ Fixed: cleanup reply states a false reason and refused remedies (
docs/review-bookkeeping.md:29) - ✅ Fixed: withheld guide round leaves a stale promise and a held nudge (
docs/config.md:110) - ✅ Fixed: config.md cites a worklist section without the new decision (
docs/config.md:104) - 🆕 New: same-head rule omits the unseen guide_label exception (
docs/config.md:106)
Findings
- 🟡 Warning: Four places say a second review comes only after new commits (
docs/config.md:106,README.md:148,CHANGELOG.md:21,docs/review-bookkeeping.md:32). An unseenguide_labelstill posts one at the reviewed head (docs/runbook.md:288), and preflight acts on it (scripts/preflight.sh:1364). An operator who reads the key reference cannot predict that case.
Fix: name the unseenguide_labelas the one same-head exception in each of the four places.
Human Review Guide
📊 Visual guide for the human reviewer — whether an unseen guide_label stays the one same-head exception (about 15 min)
Documentation Check (doc-drift)
✅ No findings.
Agent Engineering
✅ No findings.
Verdict
COMMENT — the key reference states the same-head rule without its guide_label exception.
Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi
…_commits is stated (15.3.0)
|
Answer to the review at
|
What and why
The operator wants less review clutter. The agent must not add a review to a PR that a person already reviewed, and must not post a second review without new commits. No key controls this now. This PR adds two opt-in keys. The defaults keep the current behavior.
skip_human_reviewed: enabled: no first review on a PR that a person already reviewed. A person is an account that is not a bot and not the PR author, with a submitted review that has no agent marker. A re-review trigger (the label, a review request, the delta label) still starts the review.rereview_requires_commits: enabled: a re-review only after new commits. At the reviewed SHA, a trigger is cleared also after a description edit or a dismissed review, and the cleanup reply names the one remedy: push a commit. The one same-head exception is aguide_labelthat no round saw yet: it still starts a guide round, and the cleanup reply names it when it is set and unseen. A review guide that a round did not publish starts no second round at that head and holds no shepherd nudge.Onboarding does not ask for or write either key. The 15.4.0 Upgrade block offers both keys to the operator of a deployed instance.
Where to look
scripts/preflight.sh→ the first-review branch:human_reviewedreuses the cached review list of the marker scan. An API failure defers the decision, and it never skips the review silently.scripts/preflight.sh→ the same-SHA branch andhas_owed: under the key, only new commits or an unseenguide_labelcan schedule a review at that head. (open)scripts/preflight.sh→ the shepherd guide hold: underrereview_requires_commits: enabled, an owed guide does not hold the reviewer nudge.Scope
preflight.sh(both gates, config object, the shepherd guide hold),review-pr.sh(one comment),verify-onboarding.sh(keys, checks), the key docs (config.md,review-bookkeeping.md,review-rereview.md,artifact.md,shepherd.md,runbook.md,worklist.md,README.md), tests,VERSION15.4.0 andCHANGELOG.md. No issue tracks this change. #324 merged first as 15.3.0, so this PR takes 15.4.0.Testing
test_review_basic.sh(six new cases),test_verify_onboarding.shandtest_profile.shpassed at6e16e7e. The fix round adds one case totest_shepherd.shand one assertion totest_review_basic.sh; the suite did not run for that round or for the round at2b6ef52, which changes docs and one code comment only (no Docker daemon).