.agents/skills/gh-pr-review/references/judgment-matrix.md
Risk level is per-issue, not per-type — the same category (e.g., rename) can be low or high risk depending on scope and impact.
| Risk | Rule | Examples |
|---|---|---|
| Low | Only one reasonable fix exists | null check, fix incorrect comment, rename to match convention, remove redundant duplicate code, fix obvious off-by-one error, missing useEffect cleanup, missing i18n key |
| Medium | Multiple fixes possible, but no design decision or external contract involved | extracting shared logic across functions, removing unused internal methods, simplifying cross-function control flow, adjusting internal module boundaries, refactoring Redux selector logic |
| High | Involves design decisions or external contracts | public API change (signature, behavior, deprecation), IPC channel contract change, Redux state shape change (BLOCKED by v2), IndexedDB schema change (BLOCKED by v2), architecture restructuring, algorithm replacement with multiple viable approaches, introducing a new dependency, changing data persistence/serialization format, performance optimization involving space-time trade-offs, user-facing behavior change beyond the stated bug scope, build system configuration change |
FIX_MODE | Low risk | Medium risk | High risk |
|---|---|---|---|
| full | Auto-fix | Auto-fix | Auto-fix |
| low_medium | Auto-fix | Auto-fix | Confirm |
| low | Auto-fix | Confirm | Confirm |
Special rule for "full" mode: issues that would change test baselines (screenshot comparisons, golden files) are always deferred for user confirmation, regardless of risk level.
V2 block rule: any fix that would modify Redux state shape or IndexedDB schema is ALWAYS deferred for user confirmation with a warning that these changes are currently blocked until v2.0.0.
Code-checklist and doc-checklist define what to look for. This section defines whether to fix a discovered issue.
console.log → loggerService: always worth fixing (project convention).Patterns that frequently produce false positives. Skip unless there is strong evidence of an actual bug: