Code Review Process Guide
This guide documents the workflow for responding to code review comments (e.g., from Codex) on GitHub pull requests.Overview
Every code review comment requires:- Analysis (valid or invalid)
- Action (fix or rebuttal)
- Response (explanation posted to thread)
- Resolution (mark conversation as Resolved)
Workflow
Step 1: Identify & Analyze Comments
Where to find comments:- Review threads on the PR (inline code comments)
- PR comments section
- Review submissions
- Is the comment factually correct?
- Does it point to an actual issue in the code/docs?
- Is there evidence to support the claim?
- Can it be fixed or is it based on incorrect assumptions?
Step 2: Determine if Valid or Invalid
| Valid Comment | Invalid Comment |
|---|---|
| Points out real bug or issue | Based on misunderstanding |
| Documentation is incorrect | Code already has the fix |
| Best practice violation | References non-existent code |
| Legitimate improvement | Outdated information about codebase |
Step 3: Take Action
If VALID:- Fix the code or documentation
- Test the changes
- Note the commit hash(es)
- Gather evidence proving it’s wrong
- Collect file paths and commit references
- Prepare detailed explanation
Step 4: Post Response to Thread
CRITICAL: Always respond to the comment thread BEFORE marking as resolved. Response format for valid comments:Step 5: Mark Conversation as Resolved
After posting your response:- Go to the comment thread
- Click “Resolve conversation”
- Confirm resolution
Example Walkthrough
Scenario: Invalid Comment
Codex Comment:“Remove premature claim that auth use cases are deleted”Analysis: Invalid — use cases were actually deleted in commit d86d832 Response Posted:
Scenario: Valid Comment
Codex Comment:“Fix broken cross-doc links”Analysis: Valid — links use relative paths that don’t resolve Action Taken:
- Fixed
../go/architecture/authentication→/backend/go/architecture/authentication - Fixed
../../shared/authentication-flow→/shared/authentication-flow - Committed in commit 0a10905
Best Practices
- Always provide context — Include file paths, commit hashes, or code snippets
- Use evidence over opinions — Back up your response with facts
- Be concise but complete — Explain the decision clearly but briefly
- Document decisions — The response thread is the audit trail for architectural/review decisions
- Don’t skip the response — Even if obvious to you, document why the feedback was accepted/rejected
Related Links
- Pull Request Reviews — Active PRs
- Codex Documentation — About Codex code review bot