Skip to content

feat(review): make the design-smell baseline a setting and name finding classes - #16020

Merged
kyle-sexton merged 7 commits into
mainfrom
feat/review-smell-baseline-class-findings
Nov 13, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
feat/review-smell-baseline-class-findings

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

No related issue: owner decision in a design review of our review, PR-body and retro skills

Summary

Three review-plugin changes from one design review. The CI review lanes now name a finding's class so one fix covers every instance. The code-reviewer agent's twelve-smell baseline moves out of the agent into a shipped reference file that a repository can keep, turn off or replace through a setting, and /review:setup can write a repository's own list from a catalog. The standards contract's resolution ladder tells planning and implementing skills to read the repository's review-criteria index too.

Fix

  • Finding classes. /review:code-review and /review:security-review ("High-signal bar") and the lane-verifier hunter: when a finding is one of several of the same class in the diff, name the class and each place it occurs. The fix side reads the same way: /review:quality-gate's review-fix rule and /review:fanout fix's scope fence count every listed instance of a named class as part of the finding.
  • Design-smell baseline. New plugins/review/reference/design-smells.md: the twelve baseline smells, moved unchanged, plus the other twelve of Refactoring chapter 3 as further candidates (list checked against the publisher's sample chapter, InformIT, which names all 24). New smell_baseline key (user option, docs/conventions/review.yaml, schema, config.md, README): default (unchanged behavior), off, or a repository-relative .md path; a missing file falls back to the shipped baseline, and a change that edits review.yaml or the list file itself cannot pick its own list (the reviewer uses the shipped baseline and says so). The reviewer reports a Smell baseline: line and says when it used the shipped list because the repository documents no standards. /review:setup gains a "Design-smell list" step: offer the catalog, write only the picked entries after showing them, then set the key through the existing confirm-before-write flow. quality-gate code-design's three bundled principles now cite the same file.
  • Standards contract 1.1.5 (docs/contracts/standards/README.md, synced to planning, review and improvement): planning and implementing skills also read docs/review/README.md when present and load only the files its rows match. The path is fixed: no configurable root exists for review docs today (REVIEW.md names the same fixed path).
  • Changelog fragments: review (minor), planning and improvement (patch, synced contract).

Verification

  • plugins/review/skills/setup/scripts/setup-apply.test.sh: 436 checks pass, including a new case that accepts default, off and docs/standards/design-smells.md and refuses maybe, ../outside.md, /etc/smells.md and docs/smells.txt.
  • node --test over plugins/review/**/*.test.mjs: 240 pass; change-set-block.test.sh and both standards-binding.test.sh suites (review, planning) pass; validate-plugins.sh --only "improvement planning review" passes.
  • scripts/sync-shared-copies.sh --check-bump origin/main: every carrying plugin has a fragment. check-skill.sh over plugins/review/skills: 8 passed, 0 failed.
  • scripts/sync-plugin-options-docs.py --check: the README options table matches plugin.json.

Related

  • Companion PR from the same review: feat(review): rate migrations by the door test and their run cost as impact #16018 (migrations and the door definition).
  • Left out: the implementation plugin's implement skill resolves the standards index by a path rule and carries no contract copy, so it does not yet pick up the new ladder line; and docs/contracts/config-cascade/README.md does not yet list smell_baseline among the review keys. Both are outside this change's scope.

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 13, 2026 15:02
…ng classes

- smell_baseline (user option and docs/conventions/review.yaml):
  default keeps the shipped twelve-smell baseline, off turns the check
  off, a repository-relative .md path reads the repository's own list.
  The baseline moves into reference/design-smells.md beside a catalog
  of the other twelve chapter-3 smells, which /review:setup offers and
  writes into the repository's criteria on confirmation.
- The CI review lanes and the lane-verifier hunter name a finding's
  class and every place it occurs, so one fix covers each instance.
- Standards contract 1.1.5: planning and implementing skills also read
  docs/review/README.md when present, loading only the rows the change
  touches.

Co-authored-by: Claude Opus 5.5 <[email protected]>
The quality-gate review-fix rule and the fanout fix pass fenced each fix
to the lines or file a finding names; a finding that names a class now
counts every listed instance as named, so the fix covers each one.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 13, 2026 20:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T20:11:02.503803Z f56a5d5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

The link text quoted the sample chapter's title, which carries an em
dash on a path declared purged; the link now reads as plain words.

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 f760498aa710c021f3ae5d6f21ecf90b251addee; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16020 (design-smell baseline setting, finding classes, standards contract 1.1.5)

Result: one IMPORTANT manifest flag. No CRITICAL findings and no path to an exploit. This lane already reviewed an earlier head (f760498a), so this pass reports blocking findings only. SUGGESTION-level items were dropped.

critical-findings: 0

I read every hunk of the 21 files on the to-read list in .claude-lane/pr.diff. The planning and review copies of reference/standards-contract.md match the improvement copy exactly. They are generated reference docs, so a copy's path does not change what its content does.

Manifest

  • manifest userConfig.smell_baseline: flag, a new string key with no options list. Its value can be a path the code-reviewer agent reads, so it is neither a selector nor inert. The previous post and the owner-settled thread both cover lines that have changed since, so I'm reporting the flag again inline. A manifest flag is never dropped as settled. The thread's fix is in: code-reviewer.md#L229 now falls back to the shipped Baseline when the change set edits the resolved list file. The key installs and runs no code. On update, users get "default": "default", which keeps the old behavior. IMPORTANT.

Other changes checked

  • Trust controls: the diff touches nothing under .github/, no trusted-actor list, no lane token or broker file, no kill switch and no merge hold.
  • Repository-layer read: the agent reads review.yaml through the plugin's own setup-apply.mjs --check. It is not repository code, and that layer is skipped when the change set edits review.yaml. The schema pattern (review.schema.json#L38) rejects a leading /, any .. and backslashes, and requires .md. Setup test case 29 covers those refusals.
  • Instruction-surface lens: the twelve-smell list moves unchanged into reference/design-smells.md, and off can turn the check off. Design-smell advice matches none of the protected classes in the instruction exception register (irreversible action, secret handling, data integrity, external publication, legal compliance, agent authority), so this is not a finding.
  • Finding-class text (code-review, security-review, lane-verifier, quality-gate, fanout fix): only adds "name the class and each place it occurs". The fix-scope fence still limits each edit to its own file. No check is loosened.
  • Standards contract 1.1.5: planning and implementing skills also read docs/review/README.md. That file has the same repository trust as the standards index they already read, so no new untrusted text reaches a credentialed lane.
  • PR context and settled threads: neither contains any embedded instruction aimed at this lane.

Spend: nothing new beyond the existing reviewer runs. The change adds no billable resource.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #16020, no blocking findings

Blocking only: this lane already reviewed an earlier head (f760498a). This pass reports only blocking findings and manifest <field>: flag lines, and drops advisory findings.

Scope: I read all 21 files in scope from .claude-lane/pr.diff. plugins/planning/reference/standards-contract.md and plugins/review/reference/standards-contract.md are byte-identical generated copies of plugins/improvement/reference/standards-contract.md. They are passive reference docs, so their paths don't change what the content does.

What changed since the last review: the head now closes the settled thread on plugin.json L61-66, which an owner reply decided (key kept, list-file gap fixed in the next push):

  • code-reviewer.md L92 uses the shipped Baseline, and says so, when the change set edits the resolved list file. This mirrors the existing review.yaml skip.
  • plugin.json L165, the README options row, reference/config.md L14 and the review changelog fragment all say the same.

The fix matches the decision in that thread, so I raise nothing on it.

Plugin manifest (plugins/review/.claude-plugin/plugin.json)

  • manifest userConfig.smell_baseline: pass. It's a new key whose default default keeps the prior behavior. plugins/review/agents/code-reviewer.md reads it through ${user_config.smell_baseline}, and the owner accepted the key in the settled thread.
  • manifest version: pass. The repository releases from changelog fragments. The review fragment is bump: minor for a new setting. Improvement and planning are patch for the synced contract text.
  • manifest description/keywords: pass. The change removes no capability they name.

Closing issue: none ("No related issue: owner decision"), so there are no acceptance criteria to check.

Verification: the author's results (436 setup-apply checks, 240 node --test passes, validate-plugins, the sync checks) are the author's claims. I had no shell and did not re-run them.

Spend: the code-reviewer agent now uses a turn or so of its 30-turn cap to resolve smell_baseline through setup-apply.mjs --check. That draws on subscription or prepaid usage only, so it is not a hold.

No embedded instructions were found in the PR context, the settled threads or the prior findings.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43499036990

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/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43521235031

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

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

@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 43521235031

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/resolve-feedback-threads
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43521235031

Failed GitHub API calls

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

@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 13, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The pr-unblock lane stopped address-feedback on this pull request: the lane left a review finding open and no adjudicator verdict settled it: none was recorded, it found the finding does not hold where the lane had not disputed it (an UNCERTAIN or VALID-defer reply), which only an INCORRECT reply lets a verdict resolve, it found the finding asks only for tests whose covering check runs had not all passed when the round began, or it raised a security question on a finding the security-review lane rated below CRITICAL; so 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=16020 -f activity=address-feedback

@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 43521235031

Failed GitHub API calls

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

kyle-sexton and others added 3 commits November 13, 2026 18:13
A change set that edits the list file smell_baseline names no longer
chooses its own smell list: the code-reviewer uses the shipped
baseline and says so, as it already does when the change set edits
docs/conventions/review.yaml.

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 ce673921a9696328fbc8628576300cc05eb32e7a; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
@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 13, 2026
Merged via the queue into main with commit 470eae9 Nov 13, 2026
75 checks passed
@kyle-sexton
kyle-sexton deleted the feat/review-smell-baseline-class-findings branch November 13, 2026 23:35
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Nov 14, 2026
… edit (#16050)

No related issue: owner decision in a design review of our review,
PR-body and retro skills

## Summary

Two follow-ups left out of #16020. `/implementation:implement` now reads
the repository's
review-criteria index before the first edit, and the config-cascade
contract lists the review
plugin's `smell_baseline` setting.

## Fix

- `plugins/implementation/skills/implement/SKILL.md` ("Paved paths, read
before the first edit"):
read the review-criteria index as the standards contract's
"Review-criteria index" paragraph
directs, by link to
`docs/contracts/standards/README.md#resolution-ladder`, loading only the
files
its rows match to the paths being edited. The skill still carries no
copy of the contract.
`implement-dispatch` and the `implementer`, `scoped-implementer` and
`phase-verifier` agents
  carry no standards-index read, so nothing changed there.
- New eval case 44 in `implement/evals/evals.json`: with two index rows,
only the file whose row
  matches the edited path loads.
- `docs/contracts/config-cascade/README.md`, `review` row: names the
`code-reviewer` agent as the
reader of `smell_baseline` (`default`, `off`, or a repository-relative
`.md` path; a missing file,
or one the reviewed change set edits, falls back to the shipped
baseline), as
  `plugins/review/reference/config.md` defines it.
- Changelog fragment: implementation (minor).

## Verification

- `check-skill.sh` over `plugins/implementation/skills`: 3 passed, 0
failed.
- `validate-plugins.sh --only implementation`: all manifests and the
catalog validated.
- `sync-config-cascade-semantics.py --check`: up to date.
`check-changelog-fragments.sh --check`:
valid. `sync-shared-copies.sh --check-bump origin/main`: no bumps
required.

## Related

- #16020 (the review-plugin change these follow).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant