Skip to content
Chapter 103Lesson 3

Quiz - The review surface

Quiz progress

0 / 0

A 30-file PR is open. A teammate reviews it top-to-bottom, file by file, flagging anything that looks off as they go. Why is that the wrong default — even though it feels thorough?

File order sorts the diff by position, not by risk — attention drains on cheap stuff near the top, so the dropped tenant filter on line 200 gets a tired skim.
Reading in file order is fine; the real mistake is not leaving a comment on every file so the author knows it was read.
A diff that large should never be read at all — the only correct move is to reject it unread.

While scanning a diff you spot db.select().from(invoices) with no org filter. The pattern map files this under pattern #1 (“use tenantDb”), a layer-3 concern. How should you actually treat it?

As a layer-1 security finding that holds the merge — the consequence is one tenant reading another’s rows, and the higher layer’s severity wins.
As a layer-3 style nudge — it’s on the pattern map, so it’s a convention reminder, not a blocker.
As a layer-5 polish note — it’s a one-line fix, so its severity is low.

Which of these belong on the human reviewer’s beat — the things worth a comment? Select all that apply.

A new helper file dropped in /utils/ instead of its feature module.
A test that asserts a mock was called rather than the behavior a user would notice.
Inconsistent indentation and quote style the formatter would rewrite.
”I’d have used a ternary here instead of an if/else.”

A reviewer is certain a path must go through authedAction, but to seem collaborative they write: “Can we maybe use authedAction here?” Why is that the wrong shape?

It dresses a position as a question to dodge committing to it — the author answers “yeah, we can” instead of acting, softening a real requirement into an idle musing.
Questions are never allowed in review comments; every comment must assert a position.
The phrasing is fine — softening a demand into a question is what keeps reviews collaborative.

A working function does its job correctly, but the reviewer is convinced — strongly — it would read better split in two. What severity label fits?

suggestion: — the code works, so a cleaner factoring is a preference, not a decision the codebase already made.
blocking: — the reviewer holds the view strongly, and strong conviction is what makes a comment blocking.
question: — phrase it as a question so the author doesn’t feel pressured.

You’re the author. A reviewer left a blocking: comment, but after a careful re-read you’re confident the code is correct and the blocker is mistaken. What’s the right move?

Reply in the thread with the evidence, argue the label down to a non-blocker in the open, and merge only once that’s resolved.
Apply the change anyway — conceding is faster, and the reviewer’s call carries more weight on their own comment.
Resolve the thread yourself and merge, since you’ve already satisfied yourself the code is correct.

Quiz complete

Score by topic