Files
bortstack-forge/skills/code-review/references/finding-quality.md
T

50 lines
1.7 KiB
Markdown

# Finding Quality and Severity
Before reporting a finding, verify:
## Evidence
- Is the issue caused or exposed by the reviewed change?
- Is there a concrete execution/data/runtime path?
- Did you inspect enough surrounding code to rule out an existing guard/helper?
- Is the behavior actually contrary to repository requirements/tests/decisions?
- Can the condition occur with realistic inputs/state?
If any answer is unknown, gather more evidence or lower confidence. Do not present speculation as fact.
## Good finding structure
**[Severity] Short title** — `file/area`
Explain the failure in one compact paragraph: the triggering condition, observed consequence, and why the changed code permits it. Mention validation evidence or limitations where useful.
## Severity prompts
### Critical
- Realistic severe compromise?
- Irreversible/catastrophic data loss?
- Production-wide outage with a direct path?
### High
- Authorization/security bypass?
- Data corruption/loss?
- Core workflow broken for common inputs?
- Migration/deployment likely to fail broadly?
### Medium
- Real but narrower functional/reliability defect?
- Edge case that affects legitimate users/data?
- Maintainability flaw with a concrete near-term failure mode?
### Low
- Minor concrete defect with limited user/operational impact?
Do not use severity as implementation priority unless repository conventions explicitly map the two.
## Reject these weak findings
- Pure naming/style preference.
- "Could maybe fail" without a path.
- Generic security advice unrelated to the diff.
- Existing behavior unchanged by the patch, unless the patch newly relies on it in an unsafe way.
- Missing tests for trivial implementation details.
- A design alternative presented as a correctness bug.