sd-severity-taxonomy
Severity taxonomy for specwright review findings. Apply this taxonomy in every review.
Every finding must carry exactly one severity marker. Severities are NOT interchangeable.
Severity levels
| Severity | Marker | Meaning | When to use |
|---|---|---|---|
| BLOCK | ๐ด | Must fix before merge / close-out | Constitution violation, layer violation, broken behavior, security issue, regression risk, ROOT_CAUSE not addressed (bug review), invariant violated (refactor), correctness broken (perf), critical missing test for a Success criterion. |
| WARN | ๐ | Should fix; ask user to decide | Convention drift, minor coupling concern, missing edge-case test, suboptimal naming that future-readers will pay for. |
| SUGGEST | ๐ก | Improvement opportunity; non-blocking | Cleaner alternative exists, readability improvement, dead-code candidate, dependency simplification. |
| PASS | ๐ข | Verified compliant | Explicit positive note with citation. Used sparingly to surface non-obvious compliance. |
Anchors
Every BLOCK or WARN must cite an anchor. No anchor = no BLOCK/WARN. Which anchors are legal
depends on what is being reviewed โ they are not interchangeable, and a caller may use only the
row that matches its target:
| Target | Legal anchors | Used by |
|---|---|---|
| Code | A constitution ยงN.M section OR a spec acceptance criterion | sd-reviewer |
| The .specs/ tree itself | A lint rule ID (e.g. SL003) from the rule table in /sd:spec validate | /sd:spec validate |
The code row is the strict one and stays strict: reviewing code against a lint rule ID is not a
thing, and "the spec tree has its own anchors" is never a reason to relax it. A code finding with
no ยงN.M and no acceptance criterion is still not a finding.
Rules
- SUGGEST is "if you have time". WARN is "we should address this". Never conflate them.
- Style preferences are WARN at most. Constitution-mandated style is the only exception that can be BLOCK.
- PASS findings are short (one-liner) and used sparingly to flag non-obvious compliance.
Output structure (mandatory)
# Review: <target summary>
**Verdict**: <N> ๐ด BLOCK, <N> ๐ WARN, <N> ๐ก SUGGEST, <N> ๐ข PASS across <F> files.
---
## ๐ด BLOCK
### B1: <short title>
- **File:line**: `src/.../foo.cs:84`
- **Constitution**: ยง1.1 layer dependency direction
- **Finding**: <one-paragraph description of what is wrong>
- **Suggested direction**: <NOT exact code - direction only>
---
## ๐ WARN
### W1: <short title>
- ... (same shape as BLOCK)
---
## ๐ก SUGGEST
### S1: ...
---
## ๐ข PASS
### P1: Layer rule ยง1.1 respected at `src/.../bar.cs:42` (brief explanation).
If a section has zero findings, write _No findings._ โ do not omit the section.
Anti-patterns
- Conflating SUGGEST with WARN.
- Marking style preferences as BLOCK (unless constitution-mandated).
- Issuing BLOCK without a legal anchor for the target (see "Anchors").
- Omitting PASS notes on non-obvious compliant areas (reviewer reports are also a positive signal).