Monday’s five pull requests each have a verdict now. You wrote an intent for each one before opening its diff, ranked the queue by what a mistake would cost, and ran something on every branch. You approved the heading fix in #40 and both of Quill’s changes. The customer cleanup in #44 and the payment retry in #46 went back with must-fix comments, each pointing at a line and a run.
None of those verdicts depended on who opened the pull request. They came from one routine, which you can take to the next queue as it is.
The Routine for the Next Change
A pull request arrives with a title, a tidy description, and often a green test run, and all three invite you to agree with it. Each step below gives you something written down or run to check the change against instead:
- Write the intent before you open the diff. Turn the request into a checklist, one item per thing it asks for, and mark the items you inferred, so that a wrong guess becomes a question for whoever asked. For #43, the intent came from Mei Tan’s
READ20, WELCOME10report in the first course. - Scan the change in order and estimate its reach. Treat the description as a claim. Read the file list with
git show --stat, then each hunk once. Tell reformatted or moved code from changed code first, withgit diff -band a-Gsearch for spaces that matter inside strings, regular expressions, and template literals. Search for every reader of what it touches, saved data too. List what it reaches and sort each effect: undone by a revert, needing a data fix, or not undoable. - Triage before you read closely. Rank by reach, reversibility, stored data, money, security, personal data, novelty, and whether a test runs the changed line. Rate how often a path runs separately from what one run costs, as #24’s rare refund showed. Size and author aren’t on that list. Check a coverage claim by breaking the line once and running
npm test, thengit restoreit and check thatgit statusis clean. Write a triage note: what you’ll read closely, what lightly, and why. - Read the risky parts closely against the checklist, and run them. Map each checklist item to its hunk, with enough of the file open around it, and name any item missing or partly handled and anything nobody asked for. Read removed lines as closely as added ones. Where no test runs the changed line, add a check of your own that matches the risk the triage found.
- Give a verdict with its scope. Each comment gives the location, explains what’s wrong and why it matters, and assigns a severity: must fix, suggestion, or question. The most severe open comment decides the verdict, and a scope note says what you read closely, skimmed, ran, and didn’t check.
Every change, however small, gets steps 1, 2, 3, and 5 and a minimum run: npm run seed, then npm test on its branch. Step 4, the close read and the check you write yourself, scales with the triage. No test reads the heading in #40, so its check was a look at its one line and a search for the old word, alongside its npm test run. The retry in #46 needed a script you wrote yourself.