review
Purpose
Code quality analysis. Review finds bugs, bad patterns, security issues, and untested code. It does NOT fix anything — it reports findings and delegates: bugs go to rune:fix, untested code goes to rune:test, security-critical code goes to rune:sentinel.
<HARD-GATE>
A review that says "LGTM" or "code looks good" without specific file:line references is NOT a review.
Every review MUST cite at least one specific concern, suggestion, or explicit approval per file changed.
</HARD-GATE>
Triggers
- Called by
cookPhase 5 REVIEW — after implementation complete - Called by
fixfor self-review on complex fixes /rune review— manual code review- Auto-trigger: when PR is created or significant code changes committed
Calls (outbound)
scout(L2): find related code for fuller context during reviewtest(L2): when untested edge cases found — write tests for themfix(L2): when bugs found during review — trigger fixsentinel(L2): when security-critical code detected (auth, input, crypto)docs-seeker(L3): verify API usage is current and correcthallucination-guard(L3): verify imports and API calls in reviewed codedesign(L2): when UI anti-patterns suggest missing design system — recommend design skill invocationperf(L2): when performance patterns detected in frontend diffreview-intake(L2): structured intake for complex multi-file reviewssast(L3): static analysis security scan on reviewed code- L4 extension packs: domain-specific review patterns when context matches (e.g., @rune/ui for frontend, @rune/security for auth code)
neural-memory| After review complete | Capture code quality insightcouncil(L3): Step 1.6 — decorrelated bug-finding on the diff when blast radius is 50+ callers with a HIGH-severity change, mode=review
Called By (inbound)
cook(L1): Phase 5 REVIEW — post-implementation quality checkfix(L2): complex fix requests self-review- User:
/rune reviewdirect invocation surgeon(L2): review refactored code qualityrescue(L1): review refactored code qualitydesign(L2): review UI/design implementation qualitygraft(L2): review grafted code integration
Cross-Hub Connections
review→test— untested edge case found → test writes itreview→fix— bug found during review → fix applies correctionreview→scout— needs more context → scout finds related codereview→improve-architecture— when reviewer flag mentions "shallow", "wrapper", "indirection", or pass-through patternreview←fix— complex fix requests self-reviewreview→sentinel— security-critical code → sentinel deep scanreview→council— blast radius 50+ callers with HIGH-severity change → decorrelated bug-finding on the diff
Execution
Review Policy
Three rules govern every step below. When a later step seems to conflict with one of these, the policy wins.
1. Precision over recall. A false alarm costs more reviewer trust than a missed LOW finding. One wrong CRITICAL teaches the developer to skim the next report; a missed style nit costs nothing. Optimise for a report where every line is worth reading — not for coverage.
2. Blocking split. Correctness and security findings are blocking. Style and idiom findings are non-blocking and never gate a merge on their own. Report both; only the first kind may produce REQUEST CHANGES.
3. Never guess at missing context. When the surrounding code, caller, or convention needed to judge a line is not in front of you, either go read it (Read, Grep, rune:scout) or stay silent. A finding invented to fill a gap in your own reading is the single most expensive kind of false alarm.
Step 1: Scope
Determine what to review.
- If triggered by a commit or PR: use
Bashwithgit diff main...HEADorgit diff HEAD~1to see exactly what changed - If triggered by a specific file or feature: use
Readon each named file - If context is unclear: use
rune:scoutto identify all files touched by the change - List every file in scope before proceeding — do not review files outside the stated scope
Strict Focus Rule — the scope list you just wrote is the only set of files this review may produce findings about.
- Reads outside that list are for understanding only. Open any file you need to judge the diff correctly (callers, types, config, conventions) — that is encouraged, not scope creep.
- A finding whose subject is a file outside scope is dropped, not reported — not downgraded to LOW, not filed under "while I was in there". Dropped.
- If you spot a genuine issue elsewhere while gathering context, record it as a one-line follow-up in the report footer, never as a review finding. It carries no severity and does not affect the verdict.
The reason is trust, not bureaucracy: a review that wanders produces findings the author cannot act on in this change, and trains them to skim the ones they can.
Rule Loading — pick the checklists this diff actually needs, then stop.
- Collect the distinct file extensions across the scope list you just wrote.
Readreferences/rules/index.mdand follow its mapping to the matching rule files — at most one per language present in the diff.- Always read
references/rules/default.md. It carries the five dimensions every file is judged on. - Read nothing further. Never read all rule files — a Go rule cannot produce a true finding about a diff with no Go in it, only a plausible-looking one, and that is the noise this split exists to remove.
Every rule in those files ends with a Do not report when… clause. That clause is as binding as the rule above it: a rule that only says when to fire will fire on everything. Rules do not restate the Review Policy, the Evidence Contract, or the claim types — they inherit all three from this file, and a rule never invents a severity or a gate of its own.
Step 1.5: Blast Radius Assessment
For each modified function/class, estimate its blast radius before reviewing.
Use Grep to count direct callers/importers of each modified symbol:
blast_radius = count(files importing or calling this symbol)
| Blast Radius | Risk | Review Depth |
|-------------|------|-------------|
| 1-5 callers | Low | Standard review |
| 6-20 callers | Medium | Check all callers for compatibility |
| 21-50 callers | High | Thorough review + regression test check |
| 50+ callers | Critical | MUST escalate to adversarial analysis (rune:adversary) even in quick triage |
<HARD-GATE>
Modifying a symbol with 50+ callers + HIGH severity change (logic, types, behavior) → adversarial analysis REQUIRED. Quick review is NOT sufficient for high-blast-radius changes.
</HARD-GATE>