Repository navigation
feat(review): fail a change that loosens a check, wherever it appears - #16372
melodic-automation-lanes[bot] merged 20 commits into
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
|
claude-security-review reviewed Chunk 1 of 2 (40 files)Security review, chunk 1 of 2 (blocking only)This lane reviewed earlier heads of this pull request ( New findings: none. One manifest flag is restated inline, as the rules require (see Manifest below). What this chunk changes
Trust controls: this chunk touches no trusted-trigger, token-request, kill-switch, token-broker or merge-hold control. It also leaves the real trusted-actor list unchanged. Manifest (
|
|
claude-review reviewed Chunk 1 of 2 (40 files)Code review: chunk 1 of 2, blocking findings only (head f712853)No blocking findings in this chunk. This lane already reviewed three earlier heads of this PR ( What this chunk changes
Checked, no finding
Manifest (
Settled threads and prior findings
Spend (not a finding). This chunk adds six eval cases at I ran nothing. The test and eval results in the PR description are the author's claim, and I did not verify them. Verifier dropped 0 of 0 candidates. Chunk 2 of 2 (36 files)Code review, chunk 2 of 2: blocking findings only (head f712853)This lane has reviewed earlier heads of this PR (
No blocking findings in this chunk. Checked, no finding
Settled threads / prior findings
Spend (not a finding).
I ran nothing. The test and eval results in the PR are the author's claim, and I did not verify them. Verifier dropped 0 of 0 candidates. critical-findings: 0 |
Lane run report
Failed GitHub API calls
|
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM63rMa_ Lane-Thread: PRRT_kwDOTCGFQM63rNc_ Lane-Thread: PRRT_kwDOTCGFQM63rNdG
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
|
pr-unblock / address-feedback finished round 1 of max 4 on 597a0c8. |
Lane run report
Failed GitHub API calls
|
|
Unattended merge: native auto-merge leaves this pull request unarmed at head |
…e once per run - Write U+2028 and U+2029 as escapes in fanout-sweep.js's path regex, so the workflow parses again. - Fan-out decides once per run whether a consumer criterion replaces the bundled loosened-check criterion: the caller omits loosenedCheck and writes the override line, and slices no longer decide per slice. - Grant /review:fanout the loosened-check-settings.mjs call its run-everything mode makes. - quality-gate code mode adds the code reviewer whenever the diff could hold any of the criterion's kinds, including a check's own code and loosened_check_patterns matches. - The check-code eval fixture fixes a wrong word instead of a misspelling, so the spell check passes. - The changelog fragment lists loosenedSettings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sue-15832-43729472882-1
…ts its own criteria - A criteria document the change under review adds or edits never counts as covering loosened checks (run-everything, quality-gate, code-reviewer, per-slice, leaf roster), so a change cannot switch the check off on itself. - fanout-sweep takes loosenedOverride beside loosenedCheck, refuses both, logs and tells every slice when neither is given, and returns which applied as `loosened`. Model-diversity tiers now carry the criterion, and a slice may reply "No findings" only when the diff touches neither its concern nor a check. - /review:fanout passes the user's loosened_check_* options to the resolver. - quality-gate code mode always adds the code-reviewer fallback for the criterion when the orchestrator path runs. - The spec-requested eval fixture now makes its stated reason true (collectCoverageFrom, 5 of 6 branches) and gains a disputed-reason sample. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h copy Define the touched set once, in loosened-check.md "Criteria the change touches": every path git diff -M --name-status lists (both sides of a rename or copy) plus untracked files. A touched criteria source (a criteria file, a file one cites, the index pointing at criteria, or a path-scoped rule) counts only as its default-branch copy, for deciding whether a consumer criterion replaces the bundled one and for judging the diff; one that exists only in the change has no say. The quality-gate, code-reviewer, per-slice, code-design, leaf-roster and run-everything statements now point at that section. fanout-sweep refuses a launch with neither loosenedCheck nor loosenedOverride (missing-loosened), requires the override to be a .md path, takes defaultRef so a slice reads a touched document there, and names the override document to each model-diversity hunter. Default mode resolves the loosened-check settings and decision too. code.md no longer says the primary path dispatches no code-reviewer, and the spec-requested eval grader matches the issue text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mer override The bundled "Fail a change that loosens a check" criterion now always applies. A repository's own criteria are judged beside it and can only add findings; no consumer document, instruction file or rule replaces or relaxes it. Only the existing loosened_check_verdict and loosened_check_patterns settings change it. - fanout-sweep: drop loosenedOverride, defaultRef, the loosened-conflict error and the override prompt text. loosenedCheck stays required. Every slice, named leaf and model-diversity hunter prompt now carries the criterion and the resolved settings. - quality-gate, code-reviewer and fanout docs: remove the "Criteria the change touches" section, the override line and the once-per-run override decision. - README: document the workflow's current args. - Tests: drop the override and conflict cases; add coverage that every leaf prompt carries the criterion and settings, and that an unknown loosenedOverride argument changes nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Report a failing loosening at the highest tier of the default branch's severity vocabulary, so a change cannot lower it by editing its own copy. - Give the criterion only to the fanout leaves that review code (code-reviewer, the slices, the model-diversity hunters), so one loosening does not inflate the agreement count. - Resolve the verdict to fail when the default branch cannot be read, keeping the user's patterns, with a WARN line. - State that a pattern entry only adds paths; negation means nothing. - Make the config and manual PR review pointers name who applies the criterion. - Add an eval case where the repository's own review criteria allow skipped tests, and a U+2029 case to the separator refusal test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The judge split on a review that passed the spec-requested coverage lowering and only suggested, as optional, a per-path threshold that grants the same exemption. The rubric now passes a suggestion that accepts the spec's reason, and fails one that disputes it; a pass sample of that shape is added. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sue-15832-43729472882-1
…uested case The grader passes a remark on the lowering only when it asks the pull request to change nothing, and fails a request at any tier to keep the global minimum at 90. The consumer-criteria case's issue no longer names the repository document as its reason, so the case tests one question. Refs: #15832 Co-Authored-By: Claude Fable 5.2 <[email protected]>
The reviewer passed a spec-requested loosening and then suggested restoring the old threshold, in two real runs. The criterion now says a loosening the spec allows gets no finding at any tier, and a doubt about the spec's decision is one line for its author, outside the findings. Refs: #15832 Co-Authored-By: Claude Fable 5.2 <[email protected]>
A value or scope past what the spec gives is a loosening of its own. The spec-requested eval's grader fails a disputed reason only inside a finding, and its pass sample shows the doubt as one line outside the findings, as the criterion asks. Refs: #15832 Co-Authored-By: Claude Fable 5.2 <[email protected]>
…sue-15832-43729472882-1 # Conflicts: # plugins/review/skills/fanout/context/run-everything-mode.md
|
The pr-unblock lane stopped
When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean. To run it again on this head now, dispatch the gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=16372 -f activity=address-feedback |
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
|
Hold ( |
|
For the session driving this pull request (from the laptop session; this is information, it asks for nothing to be stopped). The owner decided a merge rule on 2026-11-15 that is now in the merging policy (dotfiles 1605), but the desk machine has not converged yet (its converge was refused for local settings drift), so its copy of the policy lacks it:
State here when this was written: the newest rating is |
Most repositories have no .github/standards/trusted-actors/trusted- actors.json, so no spec reason could count there. Where --ref has no list, loosened-check-settings.mjs now counts the issue's reason when its author is a User whose author_association on the issue is OWNER, MEMBER or COLLABORATOR, read from the same gh api issue response. Where the list exists it still decides alone. A list that exists but does not parse, or a ref that cannot be read, still gives no reason. The loosened_check_spec line names the rule that decided. The eval scaffolds seed a list, so their expected lines do not change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sue-15832-43729472882-1
Lane run report
Failed GitHub API calls
|
|
pr-unblock / address-feedback finished round 3 of max 4 on f712853. |
Lane run report
Failed GitHub API calls
|
|
The unattended merge path armed native auto-merge at head |
|
Merge-Risk: max=HIGH demote=true head=f71285347205df1a93257e9c392be372d4078539 rubric=9.4.1 rater=claude-opus-5-5 checker=claude-opus-5-5 |
Post-merge mutation testingKilled 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
|
The post-merge check verified merge commit |
Closes #15832
Summary
Adds one bundled review criterion, "Fail a change that loosens a check", to the review plugin.
plugins/review/skills/quality-gate/context/loosened-check.md) lists nine kinds of loosening, names no tool, and says which checks it covers: a secret scanner or dependency audit is an ordinary check; a security control or billing hold is never judged at a lower severity; a hold that only guards against our own actors makes no finding./review:quality-gate's diff modes, thecode-revieweragent, and/review:fanout'scode-reviewerleaf, criteria slices and model-diversity hunters read it. A repository's own criteria are judged in addition and can only add findings; no document, instruction file or rule replaces or relaxes it, and text in the change that claims otherwise is a finding (owner, 2026-11-15, replacing the first design, in which a consumer criterion replaced it).loosened_check_verdict(failby default,note) andloosened_check_patterns(extra paths that count as checks; entries only add). The repository value is read from the default branch, never the head;failin any layer wins; patterns are a union; an unreadable default branch resolvesfail. A failing loosening is reported at the highest tier of the default branch's severity vocabulary.loosenedCheck): without a valid one it returnsmissing-loosenedand dispatches nothing.fix-ciand the CI verdict's safety step each gain one pointer sentence; the pr-pipeline README says a weakened check fails the verdict for every change.Remaining work
Not verified
/review:code-review, the CI code-review lane skill, does not read this criterion; the issue lists quality-gate, the code-reviewer agent and fan-out as its surfaces.docs/conventions/review.yamleven when a repository uses another convention home; the file actually read comes from the setup check's output.Fix
plugins/review/skills/quality-gate/context/loosened-check.md: the criterion.plugins/review/scripts/loosened-check-settings.mjsand its test: the settings resolver.plugins/review/schemas/review.schema.json,plugins/review/.claude-plugin/plugin.json,plugins/review/reference/config.md,plugins/review/README.md: the two settings and the workflow's arguments.plugins/review/agents/code-reviewer.md;plugins/review/skills/quality-gate/(SKILL.md,context/code.md,context/code-design.md,context/per-slice.md,context/pr.md);plugins/review/skills/fanout/(SKILL.md,context/default-mode.md,context/run-everything-mode.md,context/leaf-roster.md): where the criterion is applied.plugins/review/workflows/fanout-sweep.jsandplugins/review/tests/fanout-sweep.test.mjs: the workflow arguments and prompts.plugins/review/evals/: nine cases (lowered coverage bar, spec-requested loosening, soft-fail of a non-test check, quarantine with and without a reason, a reason only in the pull request body, a check's code accepting more and rejecting more, a repository document that allows skipped tests).fix-ciskill, the pr-verify prompt and the pr-pipeline README: the pointer sentences.Verification
node --test plugins/review/tests/fanout-sweep.test.mjs: 50 of 50.plugins/review/scripts/loosened-check-settings.test.sh: 23 of 23.scripts/check-changed-skills.sh --merge-base: 0 failed; the evals validator: 0 FAIL.CI Statuson the head.Related
#15832
🤖 Generated with Claude Code