Navigating a Technical Standoff During Pull Request Review
BehavioralModel answerLast updated
Describe a time you and a colleague disagreed strongly about a pull request, how you separated real risk from taste, used evidence to resolve it, and kept the working relationship healthy.
Scenario
Tell a story about a time you and a teammate held opposing technical positions on a pull request, and the disagreement was serious enough that the PR could not simply be merged or approved as-is.
Your answer should cover
- The core of the conflict. What was each person's position, and what was actually at stake?
- How you approached it. How did you decide whether the issue was a matter of correctness or a matter of taste? What evidence did you gather, and how did you communicate?
- The outcome. What was decided, what happened to the code and the product, and how did the working relationship fare?
What a strong answer demonstrates
- You can tell objective risk (bugs, security holes, data-integrity problems, architectural violations) apart from subjective preference (style, naming, pattern choice), and you spend your effort accordingly.
- You resolve disputes with data, documentation, reproductions, or small experiments rather than seniority or persistence.
- You keep the discussion about the code, not the person.
- You balance shipping quality software with preserving a good relationship with your colleague.
Aim for roughly three to four minutes when speaking, and be ready for follow-ups such as "What if you had never reached agreement?"
Hints
Hint 1
Pick a story with a genuine trade-off where both sides had merit (for example performance versus consistency, or speed of delivery versus safety), not a formatting or naming quarrel.
Hint 2
Say out loud how you classified the issue: risk or preference. Then show the evidence you used, such as a test, benchmark, traffic breakdown, or doc, and the moment you moved from written comments to a live conversation.
Hint 3
Close with measurable results, a durable change (a test, guideline, or checklist), the state of the relationship, and something you conceded or learned. Avoid a story where you were simply right.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
What the interviewer is really testing
This question probes technical judgment and interpersonal maturity at the same time. They want to see that you:
- Separate risk from preference. You push hard on "this can corrupt data or lose money" and let go of "I would have named it differently."
- Settle disputes with evidence, not rank or stubbornness.
- Preserve the relationship. Your colleague should leave the exchange feeling respected.
- Optimize for the outcome, not for winning. The best stories end in a third option better than either starting position, or in you changing your mind.
- Know when to stop debating and how to escalate cleanly.
Structure: STAR, weighted toward Action
| Part | Share | Content |
|---|---|---|
| Situation | ~15% | System, stakes, the teammate, what the PR changed |
| Task | ~10% | Your role (reviewer or author) and what was at risk |
| Action | ~55% | Framing, evidence, conversation, resolution |
| Result | ~20% | Measurable outcome, relationship, process change |
State the core conflict in a single sentence early, for example: "The disagreement was latency versus correctness on a read path used for authorization."
Example answer outline
Situation. I was on a team owning a service that exposed account balances to display screens and to a money-movement flow. A peer who strongly owned that service opened a PR adding an in-process cache with a 5-second TTL. p99 latency had drifted to about 180 ms, and his load test showed roughly 20 ms with the cache.
Task. I was the assigned reviewer. The latency gain was real and the product team wanted it. But I suspected that serving cached balances to a path that authorizes debits could let concurrent requests act on stale data. That is a correctness issue, not a style one.
Action.
- Classify first. Invalidation strategy or key naming would have been preference. Authorizing a debit against data up to 5 seconds old was potential risk. So I would block, but only on that one point.
- Critique the system, not the person. I opened by acknowledging the latency win, then wrote a specific scenario: two concurrent withdrawals both reading the pre-debit balance. I attached a short timeline diagram instead of just asserting "unsafe."
- Go synchronous quickly. After two rounds of comments I proposed a 20-minute call. Long threads harden positions.
- Use evidence and listen. He pointed out that the ledger re-checks the balance at write time, so the worst case is a rejected transaction, not an overdraft. That was a good point I had under-weighted. We wrote a small concurrency test together. It confirmed no overdraft was possible, but also exposed a poor user experience: the UI showed a balance, accepted the action, and then the server rejected it. We also pulled traffic data and found about 85% of reads were display views, with only a small share on the authorization path.
- Build a third option. We split the read paths. Display reads used the cache with TTL plus invalidation on ledger write events. Authorization reads went straight to the ledger. He implemented it; I reviewed the invalidation logic and added the concurrency test to CI.
Result.
- Overall p99 fell from about 180 ms to about 35 ms, while the authorization path stayed strongly consistent.
- The CI test caught a regression two months later during a refactor.
- We wrote a brief guideline: any cached financial data must document its staleness tolerance and whether it feeds authorization decisions.
- He later asked me to review his design doc for the next caching project. I also acknowledged that my initial "block it entirely" stance was too strong.
Admitting you were partly wrong is a strength. It signals intellectual honesty.
Why this works
- A genuine trade-off with merit on both sides.
- Explicit classification of risk versus preference.
- Concrete evidence: benchmark, traffic split, reproducible test.
- A third option that beat both original positions.
- Durable improvements: a CI test and a guideline, not just a merged PR.
- Credit to the teammate for a valid point.
Common mistakes
- A style dispute posing as a conflict. Tabs versus spaces suggests poor prioritization.
- The hero narrative. "I was right and they eventually saw it" shows no learning.
- Vagueness. "We talked and agreed" skips the part being evaluated.
- Disparaging the teammate, even subtly ("he was junior and didn't get it").
- Escalating first, before trying evidence and a direct conversation.
- No result. Always end with outcomes, ideally quantified, and what changed afterward.
Likely follow-ups
What if you still could not agree? Write a short neutral document laying out both options, trade-offs, and evidence, phrased so both of us agree it represents our views fairly. Often this alone resolves it. If not, ask a neutral decision-maker (tech lead or service owner) to decide, then commit fully even if the decision goes against me. The exception is a real safety or security risk: I would not approve a merge I believed was unsafe, and I would say so plainly.
When is a debate no longer productive?
- The same arguments repeat with no new information.
- The conversation drifts from the code to tone or personalities.
- The disagreement is about values (risk tolerance, roadmap priority) that neither person owns.
- The delay costs more than the downside of either option.
A reasonable rule of thumb: if two async rounds plus one live call do not converge, bring in a decider with a written summary.
What would you do differently? Raise the concern earlier, ideally at design time, so the disagreement happens over a doc rather than a finished PR, and ask for the author's failure-mode analysis up front instead of inferring it.
Delivery tips
- Keep it to three to four minutes and lead with the one-sentence conflict.
- Use "we" for the resolution and "I" for your own actions.
- Include one or two real numbers.
- Choose a story where the stakes were genuine but the other person remains someone you respect.