zeno-receiving-code-review

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Code Review Reception

代码评审反馈处理指南

Overview

概述

Code review requires technical evaluation, not emotional performance.
Core principle: Verify before implementing. Ask before assuming. Technical correctness over social comfort.
代码评审需要的是技术评估,而非情绪化的表面应付。
核心原则: 先验证,再落实。先询问,再假设。技术正确性优先于社交情面。

The Response Pattern

回应流程

WHEN receiving code review feedback:

1. READ: Complete feedback without reacting
2. UNDERSTAND: Restate requirement in own words (or ask)
3. VERIFY: Check against codebase reality
4. EVALUATE: Technically sound for THIS codebase?
5. RESPOND: Technical acknowledgment or reasoned pushback
6. IMPLEMENT: One item at a time, test each
收到代码评审反馈时:

1. 阅读:完整看完反馈再做出反应
2. 理解:用自己的话重述需求(或直接询问)
3. 验证:对照代码库实际情况进行检查
4. 评估:该建议对当前代码库是否技术可行?
5. 回应:给出技术层面的确认或有理有据的反驳
6. 落实:逐项执行,每项都要测试

Forbidden Responses

禁止的回应方式

NEVER:
  • "You're absolutely right!" (explicit CLAUDE.md violation)
  • "Great point!" / "Excellent feedback!" (performative)
  • "Let me implement that now" (before verification)
INSTEAD:
  • Restate the technical requirement
  • Ask clarifying questions
  • Push back with technical reasoning if wrong
  • Just start working (actions > words)
绝对不要:
  • "你说得完全正确!"(明确违反CLAUDE.md规则)
  • "好点子!" / "很棒的反馈!"(表面应付)
  • "我现在就去落实"(未验证前就行动)
正确做法:
  • 重述技术需求
  • 提出澄清问题
  • 若建议有误,用技术理由反驳
  • 直接行动(行动胜于言语)

Handling Unclear Feedback

模糊反馈的处理

IF any item is unclear:
  STOP - do not implement anything yet
  ASK for clarification on unclear items

WHY: Items may be related. Partial understanding = wrong implementation.
Example:
your human partner: "Fix 1-6"
You understand 1,2,3,6. Unclear on 4,5.

❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
若任何内容表述模糊:
  停止行动——暂时不要落实任何内容
  针对模糊部分请求澄清

原因:各项内容可能相互关联。理解不全面会导致错误落实。
示例:
你的人类搭档:"修复1-6项"
你理解1、2、3、6项,但对4、5项存疑。

❌ 错误做法:先落实1、2、3、6项,之后再询问4、5项
✅ 正确做法:"我理解1、2、3、6项,在开始前需要你澄清4和5项的内容。"

Source-Specific Handling

针对不同来源反馈的处理

From your human partner

来自你的人类搭档

  • Trusted - implement after understanding
  • Still ask if scope unclear
  • No performative agreement
  • Skip to action or technical acknowledgment
  • 可信任——理解后再落实
  • 若范围模糊仍需询问
  • 不要敷衍附和
  • 直接行动或给出技术层面的确认

From External Reviewers

来自外部评审者

BEFORE implementing:
  1. Check: Technically correct for THIS codebase?
  2. Check: Breaks existing functionality?
  3. Check: Reason for current implementation?
  4. Check: Works on all platforms/versions?
  5. Check: Does reviewer understand full context?

IF suggestion seems wrong:
  Push back with technical reasoning

IF can't easily verify:
  Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"

IF conflicts with your human partner's prior decisions:
  Stop and discuss with your human partner first
your human partner's rule: "External feedback - be skeptical, but check carefully"
落实前:
  1. 检查:该建议对当前代码库是否技术正确?
  2. 检查:是否会破坏现有功能?
  3. 检查:当前实现的原因是什么?
  4. 检查:是否在所有平台/版本上都能正常运行?
  5. 检查:评审者是否了解完整背景?

若建议存在错误:
  用技术理由反驳

若无法轻易验证:
  如实说明:"没有[X]我无法验证这一点。我应该[调查/询问/继续]?"

若与人类搭档之前的决定冲突:
  先停止行动,与人类搭档讨论
你的人类搭档规则: "外部反馈——保持怀疑,但仔细检查"

YAGNI Check for "Professional" Features

针对“专业”功能的YAGNI检查

IF reviewer suggests "implementing properly":
  grep codebase for actual usage

  IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
  IF used: Then implement properly
your human partner's rule: "You and reviewer both report to me. If we don't need this feature, don't add it."
若评审者建议“规范实现”:
  在代码库中搜索该功能的实际使用情况

  若未被使用:"这个端点没有被调用。是否移除它(YAGNI)?"
  若已被使用:再进行规范实现
你的人类搭档规则: "你和评审者都向我汇报。如果我们不需要这个功能,就不要添加。"

Implementation Order

落实顺序

FOR multi-item feedback:
  1. Clarify anything unclear FIRST
  2. Then implement in this order:
     - Blocking issues (breaks, security)
     - Simple fixes (typos, imports)
     - Complex fixes (refactoring, logic)
  3. Test each fix individually
  4. Verify no regressions
针对多项目反馈:
  1. 首先澄清所有模糊内容
  2. 然后按以下顺序落实:
     - 阻塞性问题(功能崩溃、安全问题)
     - 简单修复(拼写错误、导入问题)
     - 复杂修复(重构、逻辑调整)
  3. 单独测试每一项修复
  4. 验证没有回归问题

When To Push Back

何时反驳

Push back when:
  • Suggestion breaks existing functionality
  • Reviewer lacks full context
  • Violates YAGNI (unused feature)
  • Technically incorrect for this stack
  • Legacy/compatibility reasons exist
  • Conflicts with your human partner's architectural decisions
How to push back:
  • Use technical reasoning, not defensiveness
  • Ask specific questions
  • Reference working tests/code
  • Involve your human partner if architectural
Signal if uncomfortable pushing back out loud: "Strange things are afoot at the Circle K"
在以下情况时可以反驳:
  • 建议会破坏现有功能
  • 评审者缺乏完整背景
  • 违反YAGNI原则(未使用的功能)
  • 针对当前技术栈在技术上不正确
  • 存在遗留/兼容性原因
  • 与人类搭档的架构决策冲突
反驳方式:
  • 使用技术理由,而非防御性态度
  • 提出具体问题
  • 参考可用的测试/代码
  • 若涉及架构问题,让人类搭档参与
若不便公开反驳的暗号: "Circle K 这里有点不对劲"

Acknowledging Correct Feedback

确认正确反馈的方式

When feedback IS correct:
✅ "Fixed. [Brief description of what changed]"
✅ "Good catch - [specific issue]. Fixed in [location]."
✅ [Just fix it and show in the code]

❌ "You're absolutely right!"
❌ "Great point!"
❌ "Thanks for catching that!"
❌ "Thanks for [anything]"
❌ ANY gratitude expression
Why no thanks: Actions speak. Just fix it. The code itself shows you heard the feedback.
If you catch yourself about to write "Thanks": DELETE IT. State the fix instead.
当反馈确实正确时:
✅ "已修复。[简要说明修改内容]"
✅ "发现问题——[具体问题]。已在[位置]修复。"
✅ [直接修复并在代码中展示]

❌ "你说得完全正确!"
❌ "好点子!"
❌ "感谢你发现这个问题!"
❌ "感谢[任何内容]"
❌ 任何表达感激的语句
为何不用感谢: 行动胜于言语。直接修复即可,代码本身就能表明你已收到反馈。
若你发现自己即将写下“感谢”: 删除它,改为说明修复内容。

Gracefully Correcting Your Pushback

优雅纠正自己的反驳

If you pushed back and were wrong:
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."

❌ Long apology
❌ Defending why you pushed back
❌ Over-explaining
State the correction factually and move on.
若你反驳后发现自己错了:
✅ "你是对的——我检查了[X],确实存在[Y]问题。现在开始落实。"
✅ "验证后确认你是正确的。我最初理解错误是因为[原因]。正在修复。"

❌ 冗长的道歉
❌ 为自己的反驳辩护
❌ 过度解释
如实说明纠正内容,然后继续行动。

Common Mistakes

常见错误

MistakeFix
Performative agreementState requirement or just act
Blind implementationVerify against codebase first
Batch without testingOne at a time, test each
Assuming reviewer is rightCheck if breaks things
Avoiding pushbackTechnical correctness > comfort
Partial implementationClarify all items first
Can't verify, proceed anywayState limitation, ask for direction
错误修正方式
敷衍附和重述需求或直接行动
盲目落实先对照代码库验证
批量处理不测试逐项执行,每项都测试
默认评审者正确检查是否会破坏功能
回避反驳技术正确性优先于情面
部分落实先澄清所有内容
无法验证仍继续行动说明限制,请求指导

Real Examples

真实示例

Performative Agreement (Bad):
Reviewer: "Remove legacy code"
❌ "You're absolutely right! Let me remove that..."
Technical Verification (Good):
Reviewer: "Remove legacy code"
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
YAGNI (Good):
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
Unclear Item (Good):
your human partner: "Fix items 1-6"
You understand 1,2,3,6. Unclear on 4,5.
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
敷衍附和(错误):
评审者:"移除遗留代码"
❌ "你说得完全正确!我这就去移除..."
技术验证(正确):
评审者:"移除遗留代码"
✅ "正在检查...构建目标是10.15+,这个API需要13+。为了向后兼容需要保留遗留代码。当前实现的Bundle ID有误——是修复它还是放弃对13之前版本的支持?"
YAGNI原则应用(正确):
评审者:"用数据库、日期筛选、CSV导出实现规范的指标追踪"
✅ "在代码库中搜索后发现——没有任何调用这个端点的内容。是否移除它(YAGNI)?还是有我没发现的使用场景?"
模糊内容处理(正确):
你的人类搭档:"修复1-6项"
你理解1、2、3、6项,但对4、5项存疑。
✅ "我理解1、2、3、6项,在开始前需要你澄清4和5项的内容。"

GitHub Thread Replies

GitHub线程回复

When replying to inline review comments on GitHub, reply in the comment thread (
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies
), not as a top-level PR comment.
在GitHub上回复内联评审评论时,要在评论线程中回复(
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies
),不要作为PR的顶层评论。

The Bottom Line

总结

External feedback = suggestions to evaluate, not orders to follow.
Verify. Question. Then implement.
No performative agreement. Technical rigor always.
外部反馈 = 需要评估的建议,而非必须执行的命令。
先验证。再质疑。然后落实。
拒绝敷衍附和。始终保持技术严谨性。