Repository navigation
fix(aidd-dev): name one severity scale across assert, audit and refactor - #997
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
The review grades findings
critical,major,minorsince #977. Assert's architecture check, the audit template and refactor still called the middle levelwarning. 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
warningtomajor; the audit's definition of the level stays the same:criticalormajor.critical,majorandminor, and the legend at line 24 now reads🟡 major.🔴 critical, 🟡 major, 🟢 minor.A new guard, aidd-dev-severities-share-one-scale.test.js, fails on any
warningleft 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:next, 4 passes on this branch;claude -p --plugin-dir plugins/aidd-devon a fixture with a copiedformatPrice:0 critical, 1 major, 3 minor;major;warning.✅ I certify
🤖 Generated with Claude Code
https://claude.ai/code/session_01VE16AxC1V9wAMGmGgefe4z