Skip to content

A code review checklist for context, not just correctness

Good reviews check whether a change fits the system around it: callers, contracts, data, failure modes, observability and rollback. A checklist you can copy.

October 13, 2026 · 2 min read · RepoGrasp team

Most review checklists focus on the diff: naming, style, obvious bugs. Those matter, and linters catch many of them. The issues that cause incidents are usually about context: how the change interacts with the rest of the system. This checklist focuses on that.

Intent

  • I can say what the change does and why, in one sentence.
  • The change does one thing. If it does several, it should probably be split.

Callers and contracts

  • I know who calls each changed function, component or endpoint.
  • Inputs, outputs, errors and side effects either haven't changed, or every caller has been checked.
  • Public APIs (endpoints, exported functions, events) stay backward-compatible, or the break is intended and announced.

Data

  • Any change to stored data is backward-compatible with code that's still running during the deploy.
  • Migrations can be run safely on production data size, and rolled back or rolled forward.
  • Multi-step writes that must succeed together use a transaction.

Failure modes

  • Errors are handled, not swallowed, and users see something sensible.
  • Retries are safe: retried operations are idempotent.
  • Timeouts are set for network calls.
  • Empty, missing, duplicate and unauthorised cases behave correctly.

Security

  • Authorisation is checked on the server for every new or changed operation.
  • Input is validated where it enters the system.
  • No secrets in code, logs or client bundles.

Performance

  • No queries inside loops (N+1).
  • Large lists are paginated.
  • Hot paths don't gain expensive work.

Observability

  • Failures can be noticed: logs, metrics or alerts exist for the new path.
  • Log lines carry enough context to debug, without personal data.

Tests

  • New behaviour has tests, including at least one failure case.
  • Changed tests were changed for a good reason.

Rollout

  • Risky changes are behind a flag or can be rolled back quickly.
  • Anyone affected (other teams, support, docs) knows.

Getting context quickly

The context items take the most time when you don't know the code. Before reviewing, ask RepoGrasp about the code the change touches: "what calls updateSubscription, and what do callers expect it to return or throw?" Check the cited lines, then review with that context. See how to review a pull request in code you don't know.