Skip to content

docs: recurring review pitfalls for contributors#2040

Merged
jaylfc merged 3 commits into
devfrom
docs/contributor-pitfalls
Jul 19, 2026
Merged

docs: recurring review pitfalls for contributors#2040
jaylfc merged 3 commits into
devfrom
docs/contributor-pitfalls

Conversation

@jaylfc

@jaylfc jaylfc commented Jul 19, 2026

Copy link
Copy Markdown
Owner

A pre-push checklist distilled from the defect classes that have actually blocked PRs here, each with the real PR where it bit us. Fifteen items across security/auth, correctness, store/schema, and process.

Intended audience: everyone opening PRs against this repo, including the builder agents. Review gates already enforce all of these; this just makes them checkable before pushing instead of discovered in review.

Source examples cited: #1935 #1944 #1997 #2009 #2023 #2025 #2026 #2027 #2028 #2034 #2036 #2037.

Summary by CodeRabbit

  • Documentation
    • Added a new contributor guide focused on recurring review pitfalls.
    • Includes a numbered checklist covering security and authentication, correctness, store and schema practices, and development process expectations.
    • Highlights common failure modes and recommended safeguards, such as authorization coverage, data validation, timestamp handling, error management, and merge-ready review verification.

Distills the defect classes that have blocked real PRs into a pre-push
checklist: auth gates + negative tests on new endpoints, dual-direction
binding on authenticated channels, fail-closed test provisioning,
SecretsStore for anything sensitive, first-element-of-collection bugs,
limit-encoding mismatches, UTC timestamps, empty catches, refactor
parity, SCHEMA vs MIGRATIONS boot-brick rule, idempotent migrations,
fix+test in one PR, fork CI verification, fold-every-finding.
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 96fd8c87-a081-47d7-8c9d-ec428a6e2b65

📥 Commits

Reviewing files that changed from the base of the PR and between 1523a90 and e19c47d.

📒 Files selected for processing (1)
  • docs/contributor-pitfalls.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/contributor-pitfalls.md

📝 Walkthrough

Walkthrough

This change adds a contributor guide containing 15 numbered rules for recurring security, correctness, schema, refactoring, testing, CI, and pull request review pitfalls.

Changes

Contributor review guidance

Layer / File(s) Summary
Recurring review pitfalls checklist
docs/contributor-pitfalls.md
Adds 15 documented rules covering authentication, fail-closed behavior, secrets and schema discipline, correctness constraints, error handling, behavior-preserving refactors, test pairing, CI verification, and review follow-up.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the new contributor guide about recurring review pitfalls and matches the documentation-focused changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/contributor-pitfalls

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gitar-bot

gitar-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

Gitar is working

Gitar

@kilo-code-bot

kilo-code-bot Bot commented Jul 19, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

The incremental diff adds documentation prose only (lines 102-106 of docs/contributor-pitfalls.md, expanding item 14 about fork-PR CI staleness). No executable code, no behavioral/API changes, and no security or correctness surface to review. The text is internally consistent.

Note: an existing CodeRabbit finding on line 70 (#2037 parsed as a heading, MD018) is out of scope for this incremental diff (line 70 was not changed) and remains tracked separately by that bot.

Files Reviewed (1 file)
  • docs/contributor-pitfalls.md
Previous Review Summary (commit 1523a90)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 1523a90)

Status: No Issues Found | Recommendation: Merge

This PR adds a new documentation file (docs/contributor-pitfalls.md) only. The changes are prose describing recurring review pitfalls; there is no executable code, no API/behavior changes, and no security or correctness surface to review. The content is internally consistent and well-formed.

Files Reviewed (1 file)
  • docs/contributor-pitfalls.md

Reviewed by hy3:free · Input: 29.5K · Output: 1.1K · Cached: 60.5K

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/contributor-pitfalls.md`:
- Line 70: Update the wrapped PR reference in the contributor pitfalls document
so the line beginning with “#2037” does not parse as a Markdown heading; escape
the hash or move “PR `#2037`” onto the preceding line while preserving the
existing text.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 853e5887-bbb2-4b36-8bd4-73cf5ba5451c

📥 Commits

Reviewing files that changed from the base of the PR and between 91af53e and 1523a90.

📒 Files selected for processing (1)
  • docs/contributor-pitfalls.md

When extracting or splitting a component, diff the capability list before and
after. If something is intentionally dropped (a panel, revision history, a
share flow), state it in the PR body and file a follow-up issue. Example: PR
#2037 silently lost the Share/members panel and per-entry revision history.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Escape the hash in the wrapped PR reference.

Line [70] starts with #2037, so Markdown parses it as a heading and triggers MD018. Escape the hash or keep PR #2037`` on the preceding line.

Proposed fix
-#2037 silently lost the Share/members panel and per-entry revision history.
+\`#2037` silently lost the Share/members panel and per-entry revision history.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#2037 silently lost the Share/members panel and per-entry revision history.
\`#2037` silently lost the Share/members panel and per-entry revision history.
🧰 Tools
🪛 markdownlint-cli2 (0.23.0)

[warning] 70-70: No space after hash on atx style heading

(MD018, no-missing-space-atx)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/contributor-pitfalls.md` at line 70, Update the wrapped PR reference in
the contributor pitfalls document so the line beginning with “#2037” does not
parse as a Markdown heading; escape the hash or move “PR `#2037`” onto the
preceding line while preserving the existing text.

Source: Linters/SAST tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant