Skip to content
mentoor

Topic 3 of 5 · 5 min read

Review checklists by change type

Goal: Choose the checks that matter for a given change type and find the defect a generic checklist would miss.

A generic checklist catches generic problems; each type of change has its own dangerous failure, so review with the checklist for that type. "Does it compile, are there tests, is it readable" would pass a migration that locks a production table for an hour.

Check yourself · 1 of 3

An agent's pull request adds a database column with a default value to a table of 80 million rows. Which check matters most?

Choose one answer

Why it matters

Agents produce changes of every type, and all of them look tidy. The risk is not style; it is the thing that is expensive to undo. Pick the checklist by asking: "What is the worst thing this kind of change can do, and who finds out first?"

Checks by type

Schema migration. Does it lock a large table (adding a column with a default, creating an index without a concurrent option)? Is it reversible, and is there a down step? Do old and new application versions both work during the deploy? Does it drop or rename something still read? Was it run on a copy of real data?

API change. Is it backward compatible for existing clients? Are new fields optional and old fields kept? Is the status code and error shape consistent with the other endpoints? Are auth and rate limits applied? Is the documentation or schema updated?

Dependency bump. Is the package real, maintained and the one you meant (agents sometimes invent or misspell names)? What is in the changelog and the lockfile diff? Does it pull in new transitive packages or install scripts? What is the licence?

UI change. Does it work with keyboard and screen reader, on a small screen, with long text and with an empty or error state? Is every user-facing string in the translation files? Did you look at it running, not only at the code?

Config and infra. Are secrets kept out of the diff? Is the blast radius limited to one environment? Is there a rollback?

Before and after

A generic review of this diff says "looks fine":

ALTER TABLE orders ADD COLUMN status text NOT NULL DEFAULT 'open';
CREATE INDEX idx_orders_status ON orders (status);

A migration review asks how big orders is. On a table with 80 million rows, the plain index build blocks writes. The reviewed version uses CREATE INDEX CONCURRENTLY in a separate migration, and the team checks that the older app version tolerates the new column.

What goes wrong

  • One checklist for everything. It lists easy items and skips the one that hurts.
  • Reading code for a UI change. Layout bugs only show when you run it.
  • Trusting a dependency name. The package may not exist or may be a lookalike.
  • Checking only the diff. The lockfile and generated files hold the real change.

Examples

Dependency bump

An agent adds reqeusts to requirements.txt after a typo in its own plan. The name is not the real library. A review of the lockfile and the package page catches it; a review of the Python code does not.

API field rename

The diff renames userName to username in a response and updates the web app. A mobile client still reads userName. The API checklist asks "who else calls this?"; the fix is to return both fields for a release.

Key points

  • Pick the checklist by asking what the worst failure of this type of change is.
  • For a migration, check locks, reversibility and whether old and new app versions both work.
  • For an API change, check backward compatibility, error shape, auth and docs.
  • For a dependency bump, confirm the package is real, read the lockfile diff and look at new install scripts.
  • For a UI change, run it and test keyboard, small screens, long text and empty states.

Common mistakes

  • Using one generic checklist for every type of change.
  • Reviewing a UI change by reading the code and never running it.
  • Reading the source change but not the lockfile, migration or generated files.
  • Accepting a new dependency without checking that it exists and who maintains it.

Check yourself · 2 of 3

An agent adds a new package to the project. What is a type-specific check for a dependency change?

Choose one answer

Check yourself · 3 of 3

Which check is part of reviewing an API change but not a typical UI change?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic