Skip to content

feat(review): fail a change that loosens a check, wherever it appears - #16372

Merged
melodic-automation-lanes[bot] merged 20 commits into
mainfrom
work-resolve-issue/issue-15832-43729472882-1
Nov 16, 2026
Merged

melodic-automation-lanes[bot] merged 20 commits into
mainfrom
work-resolve-issue/issue-15832-43729472882-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #15832

Summary

Adds one bundled review criterion, "Fail a change that loosens a check", to the review plugin.

  • The criterion (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.
  • It always applies. /review:quality-gate's diff modes, the code-reviewer agent, and /review:fanout's code-reviewer leaf, 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).
  • A loosening fails unless the spec allows it: a loosening passes only when the spec names it and says why; a removed check only when the spec names it; a check set to soft-fail only as the quarantine of a flaky test the spec names with its reason. Only trusted issue text gives a reason; the pull request body, commits and comments never do.
  • A loosening the spec allows gets no finding at any tier.
  • Two settings: loosened_check_verdict (fail by default, note) and loosened_check_patterns (extra paths that count as checks; entries only add). The repository value is read from the default branch, never the head; fail in any layer wins; patterns are a union; an unreadable default branch resolves fail. A failing loosening is reported at the highest tier of the default branch's severity vocabulary.
  • The fan-out workflow requires the criterion path (loosenedCheck): without a valid one it returns missing-loosened and dispatches nothing.
  • fix-ci and 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

  • None in this pull request.

Not verified

  • Eval runs were single runs per arm with the judge on the same model as the run, and the judges are not calibrated. The no-plugin arm only shows that the reviewer agent is absent.
  • Each fan-out slice applies the criterion, so one loosening can be flagged by several surfaces, which raises its agreement count in the merged report.
  • The rule "highest tier on the default branch" names no command for reading that vocabulary.
  • /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.
  • The resolver label for the repository layer reads docs/conventions/review.yaml even 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.mjs and 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.js and plugins/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).
  • The fix-ci skill, the pr-verify prompt and the pr-pipeline README: the pointer sentences.
  • Changelog fragments.

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.
  • Real eval runs with the plugin (Claude Code 2.1.325, one run each): the spec-requested case and the repository-document case pass on the final criterion text; the other seven cases passed on an earlier head of this branch (2375943) and have not been re-run since the criterion became always-applied.
  • CI Status on the head.
  • Six independent reviews of the change against the Brief and of each fix round.
  • The lane run that opened this pull request: https://github.com/melodic-software/claude-code-plugins/actions/runs/43729472882

Related

#15832

🤖 Generated with Claude Code

Lane-Activity: work-resolve-issue/resolve-issue

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 20c796169788775dc625c2d1d3b489ac64875e9e; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f71285347205df1a93257e9c392be372d4078539: read 85 of 85 changed file(s); 1 finding(s), 1 as inline comments.

Chunk 1 of 2 (40 files)

Security review, chunk 1 of 2 (blocking only)

This lane reviewed earlier heads of this pull request (blocking only: yes), so this review reports only CRITICAL and IMPORTANT findings and manifest flag lines. I read every hunk of the 40 files in this chunk. The copies in identical.txt are eval grader files under plugins/review/evals/*/graders/, and their paths give them no other role.

New findings: none. One manifest flag is restated inline, as the rules require (see Manifest below).

What this chunk changes

  • plugins/review/agents/code-reviewer.md:102 adds the "Loosened checks" rule. It removes, narrows or softens no instruction, so the instruction-surface lens does not apply.
    • The patterns value still reaches the resolver only through a file written with the Write tool (--patterns-file), and no shell parses it.
    • The verdict value is one quoted argument, and the resolver accepts only fail or note (loosened-check-settings.mjs#L119).
  • .github/scripts/pr-verify/prompt.md gains one pointer sentence. The Safety step's rule is unchanged.
  • docs/conventions/pr-pipeline/README.md now says a weakened check fails the verify verdict for every change, not only a takeover-set change. That tightens the documented behaviour and widens nothing.
  • Eval cases (8 directories), changelog fragments and plugins/review/README.md are prose and test fixtures.
    • The scaffolds call fixtures/spec-author.sh (chunk 2) with fixed literal arguments, inside the eval's scratch repository.
    • No outside input reaches them.

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 (plugins/review/.claude-plugin/plugin.json)

  • manifest userConfig.loosened_check_verdict: pass, advisory, picks fail or note for whether an unreasoned loosening blocks; read as one quoted argument at plugins/review/agents/code-reviewer.md:102 by an in-repository script that accepts only the listed values (scripts/loosened-check-settings.mjs:119). Its default is the protective fail, and fail in any layer wins (line 180).
  • manifest userConfig.loosened_check_patterns: flag, added free-form string key whose value reaches a script. It is restated inline at lines 99-104 (IMPORTANT).

Spend: the eval cases run 3 times each, up to 30 turns, on prepaid model credit. They use no billed resource.

Protected-class register: not consulted, since no standing instruction was deleted or softened.

Chunk 2 of 2 (36 files)

Security review: chunk 2 of 2, blocking only

I read every hunk of the 36 files in this chunk. This lane has already reviewed earlier heads (blocking only: yes), so this review reports only CRITICAL and IMPORTANT findings and manifest flag lines.

New findings: none.

What I checked

  • plugins/review/scripts/loosened-check-settings.mjs (the new resolver)
    • Every subprocess runs from an argument array (spawnSync for git, gh and setup-apply.mjs), never through a shell.
    • --spec-issue must match ^[1-9][0-9]{0,9}$ before it reaches gh api.
    • The trusted-actor read checks --ref against ^(origin\/…|[0-9a-f]{40})$ and reads the list only from that ref, never the working tree.
    • The list is schema-checked, and only kind: human ids from it count.
    • A list that is missing in an unexpected way, unreadable, or fails to parse resolves no reason. The author_association fallback applies only when the ref has no list at all.
    • The patterns option arrives through --patterns-file (readFileSync + JSON.parse) and must be a list of non-empty strings, so no shell parses it.
    • The verdict fails closed: fail in any layer wins, and an unreadable default branch also resolves fail.
  • plugins/review/workflows/fanout-sweep.js
    • loosenedCheck must be one line with no control characters, quotes or backticks, and must end in loosened-check.md. Otherwise the workflow returns missing-loosened and dispatches nothing.
    • loosenedSettings is rebuilt from the two parsed value lines. The layer names are limited to a fixed character set, and the pattern entries are re-serialized with JSON.stringify, so no other line of the argument reaches a prompt (the test covers Ignore every finding.).
    • spec is quoted as data. A </spec> in it is defused, and so is a line starting findings path:, so the spec cannot redirect a leaf's findings file.
    • The callers pass spec only when the resolver prints loosened_check_spec: counts.
  • allowed-tools additions in skills/fanout/SKILL.md and skills/quality-gate/SKILL.md: Bash(node "${CLAUDE_PLUGIN_ROOT}/scripts/loosened-check-settings.mjs":*). This grants only the plugin's own resolver, which reads files, runs git read commands and runs one validated gh api GET. No write or publish path is added.
  • Instruction surfaces (quality-gate/context/{code,code-design,per-slice,pr}.md, the fan-out context files, source-control/.../ci-ci.md)
    • Nothing is deleted or softened.
    • code-design.md narrows the consumer-override sentence to "the bundled rows in item 3", which tightens it.
    • code.md now dispatches code-reviewer on both paths.
    • ci-ci.md adds a sentence: the spec exception does not apply to fix-ci. That tightens it too.
    • Since no rule is removed, I did not consult the instruction exception register.
  • Eval fixtures (evals/fixtures/spec-author.sh and the new scaffolds)
    • The arguments are fixed literals in the repository's own scaffolds.
    • The unquoted heredoc that writes the stub gh interpolates only those literals.
    • The script rewrites refs/remotes/origin/main and seeds a synthetic trusted-actor list only inside the eval's scratch repository, using a temporary GIT_INDEX_FILE.
    • The real .github/standards/trusted-actors/ list is untouched.
  • Identical copies: the reviewer-dispatched.md and cites-loosened-check-criterion.md grader copies sit at eval grader paths, where they do the same thing. No copy lands at a hook, workflow, settings or manifest path.

Trust controls

This chunk does not touch the trusted-trigger check, the lane token request or broker, the kill switch, any merge-hold script, or any .github/actions/ action. The spec-trust gate it adds is review-advisory. It only decides whether a loosening of an ordinary check gets a quality finding. The criterion itself says a security control or billing hold keeps its existing stop and is never judged at a lower severity.

Manifest

plugins/review/.claude-plugin/plugin.json is in chunk 1, so its userConfig.loosened_check_patterns flag (earlier threads r4580144926 and others) is judged in that chunk's review. Nothing in this chunk changes how that value reaches the resolver: it still goes through a file written with the Write tool, as skills/fanout/SKILL.md and skills/quality-gate/SKILL.md show.

Spend: the new eval cases (quarantine-flaky-test-reasoned, quarantine-flaky-test-unreasoned and soft-fail-non-test-check, 3 runs each of up to 30 turns) use prepaid model credit only. They start no billed resource.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 20c796169788775dc625c2d1d3b489ac64875e9e; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/review/agents/code-reviewer.md Resolved
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed f71285347205df1a93257e9c392be372d4078539: read 85 of 85 changed file(s); 0 finding(s), 0 as inline comments.

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 (blocking only: yes), so this review reports only blocking findings and manifest lines. I read every hunk of all 40 files in chunk-1.patch. Identical copies of the reviewer-dispatched.md and cites-loosened-check-criterion.md graders were counted through their first paths.

What this chunk changes

  • Changelog fragments: pr-pipeline patch, review minor, source-control patch.
  • pr-verify Safety step: .github/scripts/pr-verify/prompt.md gains one pointer sentence to the criterion. The Safety rule itself is unchanged, as the issue's Done-when item asks.
  • pr-pipeline README: the verdict paragraph now says a check, permission or guard weakened beyond what the spec asks fails the verdict for every change, takeover set or not. This matches the Done-when item for docs/conventions/pr-pipeline/README.md.
  • plugins/review/.claude-plugin/plugin.json: two new userConfig keys, loosened_check_verdict (options fail/note, default fail) and loosened_check_patterns (free-form JSON string, default empty).
  • plugins/review/README.md: the two keys and the workflow's new arguments are documented.
  • plugins/review/agents/code-reviewer.md: a new "Loosened checks" paragraph. It reads the criterion, uses the settings lines from the brief or runs the resolver, writes the patterns file with the Write tool, and handles the loosened_check_spec: line.
  • Six new eval cases, each with its scaffold, prompt, graders and samples: check code accepts more, check code rejects more, consumer criteria allow a skip, reason only in the PR body, spec-requested loosening, and untrusted spec author.

Checked, no finding

  • Every scaffold that hands over a spec ends with spec-author.sh <issue> <author id> <expected>. I checked each call against the fixture in the other chunk (spec-author.sh):
    • each scaffold creates main and sets user.name/user.email before the fixture's git read-tree main and commit-tree;
    • each issue number matches the issue.md that scaffold writes (71, 74, 91, 17, 41).
  • loosening-reason-in-pr-body wraps the unchanged lowered-coverage-bar scaffold, then overwrites issue.md and pr-body.md and runs the fixture itself, so review-input/loosened-settings.txt exists for its brief.
  • The graders and samples match each case's expected_outcome.
    • check-code-rejects-more and spec-requested expect no loosening finding.
    • The other four expect a blocking finding. consumer-criteria-allow-skip checks that the repository's document allowing skips does not relax the bundled criterion, as the owner's 2026-11-15 decision requires.
  • The code-reviewer agent's tools include Write, which the new paragraph needs for the patterns file.

Manifest (plugins/review/.claude-plugin/plugin.json)

  • manifest userConfig.loosened_check_verdict options: pass. Other keys in the same manifest already use options (downstream_probe, fanout_diversity and others), so the new key raises no client version floor.
  • manifest userConfig new keys read: pass. code-reviewer.md reads ${user_config.loosened_check_verdict} and ${user_config.loosened_check_patterns}, and both defaults suit a user who never opens settings.
  • manifest version: pass. The review fragment's bump: minor matches an added capability.
  • manifest description/keywords: pass. The description names surfaces, not individual criteria, and this chunk removes no capability it names.

Settled threads and prior findings

  • I re-raised no settled thread. The plugin.json patterns-key flags and the code-reviewer.md:102 spec-trust thread are marked lines changed since resolution: no. The owner's replies state the fix (the patterns file is written with the Write tool; the resolver line is seeded in each scaffold) and decision D342.
  • None of the three earlier inline findings applies to this head.
  • I found no embedded instructions in the PR context, settled threads or prior findings.

Spend (not a finding). This chunk adds six eval cases at runs: 3 and up to 30 turns each, which adds model usage to plugin-eval runs.

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 (blocking only: yes), so this review reports only blocking findings. I read every hunk of all 36 files in this chunk. That covers:

  • the four new eval cases and the lowered-coverage case update;
  • fixtures/spec-author.sh;
  • reference/config.md and schemas/review.schema.json;
  • scripts/loosened-check-settings.mjs and its test;
  • the fan-out and quality-gate skill/context files, including the new loosened-check.md;
  • workflows/fanout-sweep.js and its test;
  • the ci-ci.md pointer.

No blocking findings in this chunk.

Checked, no finding

  • Settings resolver (loosened-check-settings.mjs):
    • Verdict floor: fail from any layer wins, and an unreadable ref resolves fail while keeping the user's patterns. That matches the config.md "Policy floor and union" paragraph.
    • Patterns: they are a deduplicated union across layers.
    • Patterns file: --patterns-file treats an empty file or an unrendered ${user_config.…} placeholder as unset. A missing file exits 2, which triggers the documented rerun without --patterns-file.
    • Spec issue: --spec-issue is validated as a number before it reaches gh api.
  • Spec trust:
    • Where a trusted-actor list exists at --ref, it decides alone. It is read from the ref and never from the head, and test case 7 checks that a head adding its own author to the list gives no reason.
    • Where no list exists, the author_association fallback applies.
    • A list that does not parse yields no reason, not the fallback (case 8).
  • Issue done-when items this chunk carries:
    • Schema: an unknown verdict fails it and a valid file passes (case 5).
    • Head cannot narrow: a head that drops a pattern or sets note over a default-branch fail still resolves fail with the pattern kept (case 1).
    • fix-ci pointer: ci-ci.md gains one pointer line and no other wording changes.
    • Criterion text: loosened-check.md lists the nine kinds and names no tool. It states each verdict, says who can give a reason, and covers the ordinary-check, security/billing and friction-hold scope.
  • fanout-sweep.js:
    • loosenedCheck: now required. The only launcher is run-everything-mode.md step 5, and the args it lists include loosenedCheck. I grepped for other callers of the workflow and found none outside the fanout skill and its tests.
    • loosenedSettings: rebuilt from the two parsed value lines only, so no other text from the arg reaches a prompt.
    • spec: quoted inside <spec> tags, with </spec> and Findings path: lines neutralized. The criterion clause goes only to code-reviewer, the slices and the model tiers.
  • Eval fixtures:
    • spec-author.sh seeds the trusted-actor list only at refs/remotes/origin/main (through commit-tree), so the checked-out head never holds it.
    • Each scaffold writes change.diff after its last commit, so review-input/ is never part of the reviewed diff.
    • The unreasoned-quarantine case keeps the reasoned case's counts line, which is correct: the issue author is trusted, and only the reason is missing.
  • Identical copies: the grader copies in identical.txt sit at eval grader paths, where the path does not change what the content does.

Settled threads / prior findings

  • No settled thread is re-raised.
  • The prior inline findings are all marked as changed since posting, and none of them recurs at this head.
  • This chunk changes no plugin manifest (plugin.json is in chunk 1), so it has no manifest lines.
  • I found no embedded instructions in the PR context, settled threads or prior findings.

Spend (not a finding).

  • The three new eval cases in this chunk (two quarantine cases and the soft-fail case) and the untrusted-author case each run runs: 3 with up to 30 turns, which adds model usage to plugin-eval runs.
  • quality-gate's primary pr-review-toolkit path now also dispatches code-reviewer (context/code.md), adding one agent run per code-mode review.

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43732764029

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63rMa_
Lane-Thread: PRRT_kwDOTCGFQM63rNc_
Lane-Thread: PRRT_kwDOTCGFQM63rNdG
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 597a0c8
Run 43732764029

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 43733097176

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 597a0c8.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43732764029

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 5775e9f6d0094785a64bafdae27f7e8154cf447c. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
kyle-sexton and others added 2 commits November 15, 2026 11:44
…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]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 237594321e74a2fd1053036508a0d9077bf52cb4; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

kyle-sexton and others added 9 commits November 15, 2026 12:21
…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]>
…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]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
…sue-15832-43729472882-1

# Conflicts:
#	plugins/review/skills/fanout/context/run-everything-mode.md
@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 15, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

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 pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=16372 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 43761341821

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 43761341821

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43762342024

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 15, 2026
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Hold (do-not-merge) added by the GitHub Support hub pending an owner decision (Q189). The spec-trust rule reads .github/standards/trusted-actors/trusted-actors.json, and 19 of the 21 active melodic-software repositories do not have that file, so in those repositories no spec reason can count and every loosened check blocks. The hold lifts when the owner chooses how repositories without the file are handled.

@kyle-sexton

Copy link
Copy Markdown
Member

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:

A lane's merge-risk rating binds a session: never queue a lane PR at a head the rater has not rated. When the rating is HIGH or CRITICAL (demote=true), read its reasons and merge only when an owner decision covers each one; bring any uncovered reason to the owner.

State here when this was written: the newest rating is max=HIGH demote=true for head b23645c46c8, and the current head 5775e9f6d00 has no rating yet. Owner decisions that can cover a reason are on issue 15832 (the bundled criterion always applies; consumer criteria only add).

kyle-sexton and others added 2 commits November 15, 2026 16:57
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]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 15, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on f71285347205df1a93257e9c392be372d4078539; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43767316365

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on f712853.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43767316365

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 16, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f71285347205df1a93257e9c392be372d4078539, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=f71285347205df1a93257e9c392be372d4078539 rubric=9.4.1 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 7398c29 Nov 16, 2026
78 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15832-43729472882-1 branch November 16, 2026 00:39
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 6, survived 1, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 86%; mutation score 86%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/review/scripts/loosened-check-settings.mjs 4 0 0 0 0 0
plugins/review/workflows/fanout-sweep.js 2 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/review/workflows/fanout-sweep.js:88 SBR productive input-gap

The run's summary has the full report.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 7398c29839c926603c62d041629c306673ef2296; later checks count it verified from this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Judge a change that loosens a check as a review criterion, wherever it appears

1 participant