Skip to content

fix(aidd-dev): name one severity scale across assert, audit and refactor - #997

Merged
blafourcade merged 1 commit into
nextfrom
fix/severity-major
Oct 11, 2026
Merged

blafourcade merged 1 commit into
nextfrom
fix/severity-major

Conversation

@blafourcade

Copy link
Copy Markdown
Contributor

🎯 What & why

The review grades findings critical, major, minor since #977. Assert's architecture check, the audit template and refactor still called the middle level warning. An audit feeds refactor, and the review grades the same code, so one severity had two names depending on which skill wrote it.

🛠️ How it works

The change only renames warning to major; the audit's definition of the level stays the same:

A new guard, aidd-dev-severities-share-one-scale.test.js, fails on any warning left in an aidd-dev skill. It also pins each of the three skills to this scale.

🧪 How to verify

  • node scripts/check-tests-leave-git-alone.js -- node --test scripts/__tests__/aidd-dev-severities-share-one-scale.test.js:
    • 4 failures on next, 4 passes on this branch;
    • each test goes red under its own mutation.
  • Real runs with claude -p --plugin-dir plugins/aidd-dev on a fixture with a copied formatPrice:
    • three code-quality audits each counted 0 critical, 1 major, 3 minor;
    • two architecture checks rated their violations major;
    • no run wrote warning.

✅ I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VE16AxC1V9wAMGmGgefe4z

The review grades findings critical, major, minor since #977, but assert's
architecture check, the audit template and refactor still named the middle
level `warning`. An audit feeds refactor and the review grades the same code,
so one severity carried two names depending on the skill that wrote it.

`warning` becomes `major` in the three skills, with the audit's definition
unchanged. A guard fails on any `warning` left in an aidd-dev skill, and one
per skill pins its scale; each goes red under its own mutation.

Measured with `claude -p` against the plugin from this tree: three code-quality
audits counted `0 critical, 1 major, 3 minor`, and two architecture checks rated
their violations `major`. No run wrote `warning`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VE16AxC1V9wAMGmGgefe4z
@blafourcade
blafourcade marked this pull request as ready for review October 11, 2026 19:33
@blafourcade
blafourcade requested a review from a team as a code owner October 11, 2026 19:33
@blafourcade
blafourcade merged commit 3710dd3 into next Oct 11, 2026
25 checks passed
@aidd-bot aidd-bot Bot mentioned this pull request Oct 16, 2026
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.

1 participant