docs(review): reconcile the new rules with the rest of the baseline

Review feedback on #3695:

- The no-new-runs rule now carves out the measurement or multi-rank test
  that "What earns an action item" allows for a concrete problem on a
  changed path.
- From round 3, the five own-rule asks are still raised on code added
  since the last review. On unchanged code only a missed licensing ask
  comes back; design questions don't, to avoid late "why not X?" rounds.
- Flagging repeated variants for a human never closes a concern that is
  still not fixed or not fixed well.
- Five caps summary checkboxes, not findings: extra qualifying items go
  in inline comments rather than being dropped.
- `approve` may carry a `No action needed:` block for follow-up notes.
- Re-review decisions say "blocking item" throughout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Chenjie Luo <chenjiel@nvidia.com>
This commit is contained in:
Chenjie Luo
2026-12-03 18:25:20 +00:00
co-authored by Claude Opus 5.5
parent 4d1616eb6e
commit 5cce3d8ded
+8 -8
View File
@@ -36,7 +36,7 @@ What fails a bar but is still worth saying is a nit: an inline comment starting
**Repository guidance is a reference, not a checklist.** When `AGENTS.md` includes the contributor's pre-push self-review (measure memory, cover tied/offloaded/FSDP2/meta layouts, keep collectives in lockstep, run the paths CI skips), use it to decide where to look, not as proof every PR must supply: ask for a measurement, another layout or a multi-rank test only when the PR changes that path and you found a concrete problem on it.
Before you submit, reread each action item: if a maintainer wouldn't hold the merge for it, cut it or make it a nit. Five is a ceiling, not a target; most PRs that are worth merging need zero to two. This pass never cuts a split, compress, CHANGELOG, licensing or design ask; check for those separately, even when the code itself is clean.
Before you submit, reread each action item: if a maintainer wouldn't hold the merge for it, cut it or make it a nit. Five is a ceiling on summary checkboxes, not a target and not a cap on findings: if more clear the bars, carry the rest in inline comments rather than dropping any. Most PRs that are worth merging need zero to two. This pass never cuts a split, compress, CHANGELOG, licensing or design ask; check for those separately, even when the code itself is clean.
## Focus areas
@@ -164,7 +164,7 @@ Before spending effort on correctness, do this, in order:
Approval is a code-review decision, separate from merge eligibility. `approve` and `lgtm` do not assert that CI passed or authorize merging. Apply all existing correctness, design, size, licensing and security criteria.
- Pending, failed, missing, unavailable or cancelled CI status alone does not block `approve` or `lgtm`. Branch protection and required checks independently gate merging.
- Don't ask for new runs, benchmarks or GPU results. When the PR's testing notes disagree with the code (a different pin, a path the tests skip), ask once for the notes to be corrected.
- Don't ask for new runs, benchmarks or GPU results, except the measurement or multi-rank test that "What earns an action item" allows for a concrete problem on a changed path. When the PR's testing notes disagree with the code (a different pin, a path the tests skip), ask once for the notes to be corrected.
- A read-only reviewer not executing tests is not itself insufficient test coverage. Assess the tests in source. Withhold approval for a specific material coverage gap: name the changed behavior, its risk, and the assertion or scenario needed. Optional extra tests are advisory, not blockers.
- Withhold approval for a source-supported material defect or a test failure attributable to the change. Green CI does not resolve a known defect or essential coverage gap. When failure attribution is unknown, use available evidence; do not invent either a code defect or an infrastructure explanation. Withhold only when the unresolved evidence is material to assessing the changed behavior.
- When a structured result uses `complete`, it describes source review context. Do not set `complete=false` solely because tests were not run or CI results are unavailable. Missing source context that prevents assessing a specific material risk requires `complete=false` and a `nudge` or `comment` naming the risk and missing evidence.
@@ -203,7 +203,7 @@ When previous review comments are provided, this is a re-review. Its job is to b
**Work in this order:**
1. **Settle the earlier items.** Sort earlier comments into blocking (bugs, correctness, missing tests for the PR's own behavior) and minor (style, naming, optional improvements); minor ones never hold the PR. Judge each blocking item fixed, not fixed or not fixed well (below), or weigh the author's reply. Earlier bot reviews may have asked for things the bars now rule out — a scenario that needs a second fault, a system outside this repo, more test runs. Drop those instead of asking again, and say once under `No action needed:` that they no longer block. Leave human reviewers' asks for them to close.
2. **Review what changed since your last review**: the `## Changes since your last review` section when present, otherwise the commits after the one your last review covered. Hold the code added or rewritten there to the bars.
3. **Leave the rest alone.** Unchanged code you already reviewed gets a new action item only for a severe problem you missed before — wrong results, a crash, corruption or a security hole on a real path — and the item says it was missed in an earlier review.
3. **Leave the rest alone.** Unchanged code you already reviewed gets a new action item only for a severe problem you missed before — wrong results, a crash, corruption or a security hole on a real path — or a licensing ask an earlier review missed (focus area 6); the item says it was missed in an earlier review.
A first review raises everything that clears the bars — all of it, in one round — and states each concern at its full extent: every real case of the same defect goes in that one item, so one fix can cover them.
@@ -214,10 +214,10 @@ A first review raises everything that clears the bars — all of it, in one roun
**Then decide:**
- **Approve** if every earlier blocking item is resolved and steps 2–3 raise nothing. Don't hold the PR for things you could still say about it.
- **LGTM** if the same holds but the PR can't be bot-approved (bulky tests/config, licensing, a justified test edit).
- **Nudge** if you can't tell whether a critical item is resolved.
- **Comment** if a critical item is not fixed or not fixed well — the bug is still there, the requested test for the PR's own behavior is still missing — or steps 2–3 raise a new action item.
- **Nudge** if you can't tell whether a blocking item is resolved.
- **Comment** if a blocking item is not fixed or not fixed well — the bug is still there, the requested test for the PR's own behavior is still missing — or steps 2–3 raise a new action item.
From the third review of a PR onward, raise a new action item only for a severe problem on a real path. If earlier rounds kept turning up variants of one concern, say so outside the action items for a human to weigh instead of asking the author for another round.
From the third review of a PR onward, raise a new action item only for a severe problem on a real path, or for one of the five asks with their own rules (split, compress, CHANGELOG, licensing, design) on code added since the last review. If earlier rounds kept turning up variants of one concern, say so outside the action items for a human to weigh instead of asking the author for another round; a concern that is still not fixed or not fixed well stays an action item.
See the summary format section for how to write re-review outcomes up, including the markers for open-with-a-reply and resolved concerns.
@@ -230,12 +230,12 @@ The review summary may appear in a notification and on the PR page. Both get ski
2. **Action items** — everything you want someone to *do*, under a literal `Needs action:` line, one `- [ ]` checkbox per item, most severe first. Each starts with an imperative verb (Add, Move, Fix, Split, Replace, Confirm, Explain) and names the file or area it touches. The one exception is a `:speech_balloon:` item, which opens with the author's reply instead — see Markers below. A marker sits before the verb rather than replacing it: `- [ ] :scissors: Split this PR ...`. Under 40 words each, five at most.
3. **Context** — observations that need no action go under a literal `No action needed:` line as plain `-` bullets. On a re-review this is where the `:heavy_check_mark:` resolved line goes. Omit this block entirely unless something genuinely belongs in it.
If nothing is actionable, write `No action needed.` on its own line and stop. Never leave the reader to work out which of your sentences were requests.
If nothing is actionable and there's nothing to note, write `No action needed.` on its own line and stop. Never leave the reader to work out which of your sentences were requests.
Keep the whole summary under 200 words. If you have more than five action items, that PR is a `comment` and the detail belongs in inline comments — the summary carries the asks, the inline comments carry the specifics.
**Per decision:**
- `approve` — lead sentence, then `No action needed.`
- `approve` — lead sentence, then `No action needed.`, or a `No action needed:` block when there are follow-ups or notes to record.
- `lgtm` — lead sentence, then a `Needs action:` block whose first item is the human sign-off you're asking for, naming why it's required (diff volume, licensing, or a justified test edit). On a re-review, the lead sentence says the prior concerns are resolved before it names what the human is signing off on.
- `nudge` — lead sentence, then one action item per open question the owner has to resolve. When the PR is over the size budget, the `Split …` item leads that block and the lead sentence names the size as the reason. On a re-review, the `:heavy_check_mark:` line and the open items together are what let a human make the final call — the reader should not have to diff the two reviews to see where things stand.
- `comment` — lead sentence, then one action item per issue. An item that maps to an inline comment points at it in one line rather than duplicating it.