5.8 KiB
Maintainer Review Style
Use this reference only when turning proved findings into comments. The baseline maintainer samples favor short, direct comments and reserve long explanations for architecture or non-obvious failure paths.
Official docs: contributing and review process.
Evidence basis
This calibration used 928 PRs merged from 2026-05-10 through 2026-08-08. Candidates were ranked by substantive human inline-review threads, then by distinct reviewers and review rounds. Author self-comments, bots and AI reviewers, and bodyless approvals were excluded. Counts selected the sample; the practices below came from reading root comments and follow-up replies.
The main set contains the six leaders after filtering; three other high-ranked PRs add core-runtime and benchmark coverage. All were merged.
| PR | Review boundary |
|---|---|
| #2906 | New TTS model, shared utilities, recipes, and request state. |
| #3907 | Full-duplex API, session lifecycle, concurrency, and realtime evidence. |
| #2162 | Diffusion world model, OpenPI serving, tests, examples, and docs. |
| #3454 | Diffusion model, generic CLI surface, loaders, and configuration scope. |
| #4425 | Structured configuration, typing, defaults, and compatibility. |
| #5397 | Distributed offload, collectives, failure handling, and load semantics. |
| #4281 | Composable parallelism, configuration contracts, and examples. |
| #3628 | Stage metrics, benchmark definitions, opt-in API behavior, and cleanup. |
| #3855 | Stage runtime, thread safety, startup, and compatibility. |
Historical comments calibrate delivery; they do not create merge policy. Live
code, tests, repository docs, and the current CODEOWNERS file remain
authoritative. When refreshing this study, promote a practice only when it
recurs across at least three PRs or is supported by current repository guidance.
Recurring review behavior
- Start from a changed contract, not a style preference. State the exact request, configuration, topology, or failure path that triggers the issue.
- Protect repository boundaries. Keep model-specific behavior in its domain, move genuinely reusable logic to a shared module, and reuse existing loaders, protocols, definitions, and config sources instead of bypassing them.
- Challenge unrelated scope and abstractions. Ask why a new flag, config, class, helper, fallback, or file is needed when an existing path appears sufficient.
- Trace concurrency and terminal paths: overlapping requests, disconnect, cancellation, partial failure, stale replies, collective schedule mismatch, cleanup, and retry. Prefer an explicit startup error for unsupported combinations over silently running with incomplete state or wrong weights.
- Preserve user-visible behavior across variants. An accepted CLI/API/config field must be applied, explicitly rejected, or visibly warned about; compare normal and headless, offline and online, and streaming and non-streaming paths.
- Ask for evidence at the affected boundary: a regression test using the real tensor or protocol shape, correct pytest markers so CI runs it, comparable A/B performance results, or an SLO-oriented latency/quality measurement.
- Keep interfaces explicit: avoid
Anyand opaque strings where a precise union, enum, or typed envelope exists; remove dead code and duplicated constants; validate requests before expensive execution. - Document module scope and non-obvious invariants. Update examples, recipes, supported-model/feature docs, and hardware assumptions when users rely on them.
- When expertise crosses an ownership boundary, ask a named owner to inspect a
specific file or contract and explain why. Do not send a generic
PTALlist. - Keep non-blocking cleanup in a linked follow-up only after the current PR is safe. If a revision fixes only part of a failure chain, continue the existing thread with the remaining trigger instead of opening a duplicate finding.
Write the finding
- Lead with the issue or decisive question; omit a review preamble.
- Name the concrete trigger and impact, then the smallest fix direction.
- Keep obvious fixes to one sentence. Use more detail only when the call path or ownership boundary is otherwise unclear.
- Prefer one root-cause comment over repeated symptom comments.
- Hedge only when evidence is genuinely incomplete; mark that item as a question or validation gap rather than overstating severity.
- Say briefly that no findings were found when the review is clean; zero comments is a valid outcome when posting is authorized.
Useful forms:
This leaves <state> allocated when <failure/cancellation path>. Release it in
the shared terminal cleanup path.
Does this producer also update <consumer>? It still reads the old field here.
With <configuration>, this bypasses <existing loader/validator>, so <impact>.
Reuse that path or reject this combination before startup.
@<owner>, could you check <specific boundary>? This changes <contract> used by
<consumer>.
Use a priority label only for a proved high-impact defect. Avoid generic praise, routine “Nit:” prefixes, decorative severity labels, audit templates, rule IDs, comment-count narration, and “I left a few comments.” Keep approvals, review events, reviewer requests, mentions, and GitHub replies subject to the user's explicit authorization.